Alessandro Pasotti
1816087485
QgsSourceSelectProviderRegistry delayed initialization
...
Due to QgsGui being initialized after data provider.
2017-09-04 09:10:56 +02:00
Alessandro Pasotti
90f873086c
Attach QgsSourceSelectProviderRegistry to QgsGui
...
And make it a singleton
2017-09-04 08:00:14 +02:00
Alessandro Pasotti
7cd7f1685f
Added last missing signal replaceVectorLayer
...
This is only used by virtual layers, but it
might be handy for others too and now I can
start to remove all specialized source
select add methods from the datas source
manager dialog.
This is only the first step: next is looping
through the source select provider registry
to get all needed GUI elements for the dialog.
2017-09-03 21:30:45 +02:00
Alessandro Pasotti
d4868b3f82
Update sip file
2017-09-01 18:20:06 +02:00
Alessandro Pasotti
4c46f64647
Add QgsSourceSelectProviderRegistry with tests
2017-09-01 17:47:55 +02:00
Alessandro Pasotti
cd1c9b1e28
Add class QgsSourceSelectProvider and tests
...
This is the first step for QEP 101
2017-09-01 14:30:34 +02:00
Nyall Dawson
78b834c5b0
Fix missing Q_OBJECT macros
...
Thanks to Clazy
2017-08-29 18:03:41 +10:00
Nyall Dawson
1fddfcf622
Flip Q_ENUMS to Q_ENUM
...
See https://woboq.com/blog/q_enum.html for rationale
2017-08-29 18:03:41 +10:00
Alessandro Pasotti
b947406155
More robust multiple paths split and utility static method
2017-08-24 08:29:40 +02:00
Alessandro Pasotti
d1fb2490a7
Allow multiple raster selection from GDAL source select widget
...
Since I'm using QgsFileWidget I also added
multiple files support to that widget and
tests for this new behavior.
2017-08-23 16:17:15 +02:00
Nyall Dawson
9bfca65ac3
Add API to enable/disable preview jobs
...
Disabled by default, and enabled only for main canvas (not
secondary canvases)
2017-08-18 00:04:07 +10:00
Matthias Kuhn
55cdc89a11
Merge pull request #5004 from jgrocha/helpviewer
...
[needs-docs] Refactoring of all help calls, deprecating QgsContextHelp+Helpviewer
2017-08-16 18:30:59 +02:00
Jorge Gustavo Rocha
32c81a0311
Update sip files
2017-08-16 16:20:38 +02:00
Martin Dobias
0be0a4e30c
Always use snapping configuration from the project in adv.digitizing dock
...
It was slightly confusing to have another override for snapping while it is possible
to configure "no snapping" or "all layers" snapping mode in project anyway.
And with the nice snapping toolbar it can be also done very quickly.
2017-08-16 14:37:19 +02:00
Martin Dobias
42933a279b
Remove class members that were never used
2017-08-16 14:37:19 +02:00
Jorge Gustavo Rocha
fe59a19e17
Change all ocurrences on_buttonBox_helpRequested to showHelp
...
Add help button to 3 dialogs
Fix missing QStringLiteral
Fix CMakeLists.txt indentation
Fix qhelp.h and qgis_sip.h includes with <>
2017-08-15 23:51:03 +02:00
Alessandro Pasotti
7d074de90d
Geopackage fix mixed geometry layers and attributes
...
In addition to geometry filtered layers for each geometry
type in a mixed-geometry type layer adds a table
layer with all attributes.
Tehre is no perfetc solution here, if the layer is created
with a filter on geometrytype, the attributes are not shown
(this is probably a pre-existing bug), if the layer is added
as is, only the first geometry type is drawn.
With this implementation at least all data (attributes and
geometries) are accessible in some way.
Note that geopackage layers added by DB Manager do not show
all geometries of a mixed type layer.
2017-08-14 20:25:47 +02:00
Sebastian Dietrich
479e3cb736
Reset digitizing tools when new project is loaded/created
...
Refs #4237 https://issues.qgis.org/issues/4237
2017-08-13 14:21:39 +02:00
Juergen E. Fischer
03e0298f49
msvc warning fixes:
...
* use AUTORCC to avoid locked qrc_images.cpp during build of gui tests
* bump minimum version of cmake to 3.0.0 for AUTORCC
* suppress some warnings in sip bindings
* suppress unreachable warnings and some more
* split sip files in more parts to suppress warning BK4504
* also remove old WITH_INTERNAL_YAML from travis
2017-08-10 00:09:14 +02:00
Jorge Gustavo Rocha
32624bbc36
SIP bindings
2017-08-09 19:56:58 +02:00
Jorge Gustavo Rocha
3a103b7c62
Refactoring of all help calls, deprecating QgsContextHelp and the former helviewer
2017-08-09 09:27:29 +02:00
Nyall Dawson
df3bcddab7
Hook up clearing guides
2017-08-07 19:34:28 +10:00
Nyall Dawson
ab726c4777
Add methods to determine visible pages in a view
2017-08-07 19:34:28 +10:00
Nyall Dawson
886a1208ef
Dropping guides outside of pages doesn't create new guides
2017-08-07 19:34:28 +10:00
Nyall Dawson
b0956c9bd7
[needs-docs] Partial WIP of dragging rulers to create guide lines
...
Unlike in 2.x, Layouts in 3.0 adopt the standard UX of dragging
out rulers to create guide lines (instead of clicking on a ruler
position to create a guide)
2017-08-07 19:34:28 +10:00
Nyall Dawson
ef6727518d
[FEATURE] Add a dock widget showing snap guides for current page
...
Allows creation of snap lines at specific locations, and
adjusting position of existing guides to exact coordinates
2017-08-07 19:34:28 +10:00
Nyall Dawson
798ec83681
Start on snapping marker
2017-08-07 19:34:28 +10:00
Nyall Dawson
f57212eee5
Hook up snapping for QgsLayoutViewTools
...
Tools can now indicate (via setFlags()) if they desire snapping
to be active for the tool. When a tool has the flag set,
any QgsLayoutViewMouseEvents it receives will have a snappedPoint()
available which returns the mouse event point snapped using
the layout's snapping settings.
2017-08-07 19:34:28 +10:00
Nyall Dawson
cad54f2cea
Fix incorrect icon sizes in Python console
...
Console was not respecting application icon size setting
2017-08-07 05:24:12 +10:00
Nyall Dawson
434bda725f
Merge pull request #4982 from nyalldawson/drop_file_drop_file_drop_file_drop_file_drop
...
Remove QgsFileDropEdit widget and integrate functionality into QgsFileWidget
2017-08-07 05:14:28 +10:00
Nyall Dawson
c3b62ad4ca
Customise->Customize
2017-08-07 01:37:19 +10:00
Juergen E. Fischer
487a7a00b7
fix 'allows to/allows one to' spell errors and enhance to our spellchecker to deal with those
2017-08-06 17:34:22 +02:00
Nyall Dawson
b1a6c790cf
Remove QgsFileDropEdit widget and integrate functionality into QgsFileWidget
...
It makes no sense to have two classes covering this use case, with
partial functionality in each. Smash the two together so we can
safely use QgsFileWidget for all use cases in future.
2017-08-06 23:26:46 +10:00
Denis Rouzaud
06f9842637
rename symbology-ng to symbology
2017-08-06 14:18:57 +02:00
Alessandro Pasotti
a612a6874d
Sipify docstring for signal
2017-08-06 09:02:27 +02:00
Alessandro Pasotti
acead27197
Add raster widget to data source manager dialog
...
Also:
- created source select widget for GDAL provider
- created source select widget for OGR provider
- added addVecorLayers signal to the base class
2017-08-05 16:38:33 +02:00
Alessandro Pasotti
fef3bc099d
Renamed button slots and make ogr dialog inherit from the abstract base
2017-08-04 22:06:07 +02:00
Alessandro Pasotti
dc6017dc1d
Move the buttons and connections into the base class
...
This was a small refactoring to homogenize the
dialogs buttons and add an Ok/Add button bar.
2017-08-04 17:43:23 +02:00
Nyall Dawson
082dafe22d
Fix infinitely growing widgets
...
Fixes #16849
2017-08-03 00:46:33 +10:00
Nyall Dawson
917263a9a3
Allow setting project for QgsExpressionBuilderWidget
...
(still defaults to QgsProject::instance())
2017-07-31 08:18:09 +10:00
Nyall Dawson
e79bf3fb94
Add some unit tests for QgsExpressionBuilderWidget
2017-07-31 08:08:18 +10:00
Nyall Dawson
687adbf669
Fix tiny svg preview size on hidpi displays
2017-07-27 09:00:44 +10:00
Hugo Mercier
d19b4aa2bf
Merge pull request #4905 from pblottiere/bugfix_scrolllocked
...
Fixes value relation widget to keep scrollbar activated, fixes #16654
2017-07-26 10:52:55 +02:00
Nyall Dawson
f0a6376adb
Merge pull request #4910 from nyalldawson/layout_next
...
Layouts, chapter III
2017-07-26 17:03:36 +10:00
Nyall Dawson
20029c2956
Add a lot of framework code for showing item properties in designer
...
And hook up a non-functional page properties widget which is
shown when right clicking on a page in the view.
2017-07-25 12:54:58 +10:00
Nyall Dawson
0f90e23fe6
Refine item widget creation methods in layout item gui registry
2017-07-25 12:54:58 +10:00
Nyall Dawson
72bf2924d4
Port base class for item configuration widgets
2017-07-25 12:54:58 +10:00
Nyall Dawson
f1dfd3dbe2
Add an interface for creation of QgsLayoutView context menus
...
Allows display of custom right click menus when right click
events are not handled by the current layout view tool.
2017-07-25 12:54:58 +10:00
Nyall Dawson
416e1e4bbf
Fix drawing of rulers with multipage layouts
2017-07-25 12:54:57 +10:00
Nyall Dawson
3021fc86d2
QgsLayoutUnitComboBox can be linked to spin boxes so that their
...
values are automatically updated when the combo box unit changes
This means that you can flip between units and things like
the existing width and height are converted immediately to the
new unit
2017-07-25 12:54:57 +10:00