2194 Commits

Author SHA1 Message Date
Martin Dobias
8ed0bb38d1 Start using QgsProjectStorageGuiRegistry + its providers (gpkg projects work again)
Also deprecate gui methods in QgsProjectStorage but keep compatibility
2019-06-21 16:28:21 +02:00
Matthias Kuhn
db18ef260f
Merge pull request #30281 from nyalldawson/text_symbol
Handle text formats in style manager
2019-06-21 16:14:16 +02:00
Nyall Dawson
4e5d95cf18
Update python/gui/auto_generated/symbology/qgsstylesavedialog.sip.in 2019-06-21 20:31:59 +10:00
Nyall Dawson
689b82da53 When saving a new symbol to the style, default to tagging it with
the current tag filter (if set)
2019-06-21 18:06:33 +10:00
Harrissou Sant-anna
059277ceca Remove some dialogs geometry size settings
replaced with automatic restoring
2019-06-21 16:54:54 +10:00
Nyall Dawson
78bfb4a18b Allow saving label settings from layer settings 2019-06-21 15:52:56 +10:00
Nyall Dawson
850ea71c4d More wip 2019-06-21 15:52:56 +10:00
Nyall Dawson
d4d77808f9 Style model work 2019-06-21 15:52:56 +10:00
Nyall Dawson
65230abc16 Sync column sizes in all style item list widgets 2019-06-21 15:52:56 +10:00
Nyall Dawson
4ea55fceaa Split symbol list off to its own reusable widget 2019-06-21 15:52:56 +10:00
Martin Dobias
437f635949 Revert api changes in gui registries to fix some tests 2019-06-20 16:00:06 +02:00
Martin Dobias
c396d70d14 Doxygen fixes and api break fixes 2019-06-20 14:15:07 +02:00
Martin Dobias
6918bac9df Revert API break and move WidgetMode back to QgsProviderRegistry 2019-06-20 10:49:36 +02:00
Martin Dobias
78f69ad5a6 Added sip files for newly added classes 2019-06-19 23:09:13 +02:00
Martin Dobias
f6049e01d0 Misc fixes to get the branch compiling & running with Python
- grass data item provider fixes
- removed QgsProviderMetadata constructor (with std::function / PyObject) due to sip errors (api break)
- reverted DataCapability move to Qgis - back to QgsDataProvider (avoiding api breaks)
- WidgetMode enum documentation
- sipify monkey patching fix
- renamed WidgetMode's "None" to "Normal" value - in python None has special meaning (api break)
2019-06-19 23:02:11 +02:00
Larry Shaffer
ebd4f0d8ca
Add layer tree layer contextual menu mark, floating on right of viewport
This accomplishes several things:
- Offers an indication to user that there are layer-related actions
- Single click access to contextual menu
- Offers an indication to user where layers are located when viewport is
  horizontally scrolled to right, and layer names are not visible
2019-06-19 10:06:37 -06:00
Larry Shaffer
a06a96cf7c
Reset minimum section size to layer tree veiwport width on resize
Since last column is resized to content (instead of stretched), the
active selection rectangle ends at width of widest visible item in tree,
regardless of which item is selected. This causes layer indicators to
become 'inactive' (not clickable and no tool tip) unless their rectangle
enters the view item's selection (active) rectangle. Always resetting
the minimum section size relative to the viewport ensures the view
item's selection rectangle extends to the right edge of the viewport,
which allows indicators to become active again.
2019-06-19 10:05:59 -06:00
Denis Rouzaud
6dfe113d67 do not hold a pointer to an QGraphicsItem within a QGraphicsItem
since map canvas is deleting them all, this is causing a crash when trying to delete the already deleted item in the parent item
2019-06-19 16:20:32 +02:00
Peter Petrik
62d615c2cd [QEP 149] Introduce static data providers [API BREAK]
- adds QgsProviderGuiRegistry and QgsProviderGuiMetadata
- adds QgsProjectStorageGuiRegistry
- requires providerMetadataFactory for dynamic data providers
- requires providerMetadataGuiFactory for dynamic data providers (GUI only)
- removes QgsProviderRegistry::WidgetMode
2019-06-18 15:15:36 +02:00
Matthias Kuhn
242c9fcfba Fix setStatusTip
Fixes #30249
2019-06-18 07:20:27 +02:00
Nyall Dawson
fbd243be65 [processing] Port map layer selection combobox widget to c++
And:

- fix enable state of selected features only after changing between
map layers with/without selections
- fix state of selected features only when running an algorithm
from the history list, e.g. respect original setting for
selected features only (or not)
- ensure no duplicate changed signals are sent, and correctly
emit changed signals in all applicable circumstances
- handle drag and dropped layers from browser panel (UX fix)
- soak with unit tests
2019-06-15 15:05:48 +10:00
Nyall Dawson
cf63a7af97 [needs-docs] Allow dragging project layers from legend over map layer comboboxes to select
Greatly assists with usability of the combobox with large projects,
especially those with multiple copies of layers with the same name...
2019-06-13 04:57:37 +10:00
Nyall Dawson
54434a6f41 Allow double-clicking items in data source select dialog to choose them 2019-06-13 04:56:45 +10:00
Matthias Kuhn
40b3e82886 Add missing sip file 2019-06-11 21:12:19 +02:00
Matthias Kuhn
a9e3950841
Merge pull request #30079 from olivierdalang/fix_cad_graphical_glitches
[cad] fix graphical glitches
2019-06-11 17:38:46 +02:00
Larry Shaffer
018df8c129
Fix WFS connection's version Detect button, which did not support auth
Adds QgsNewHttpConnection protected member to access auth settings
2019-06-06 10:41:58 -06:00
Nyall Dawson
87d2d9e824 Fix inverted polygon renderer widget not opening colors and other
panels inline in style dock
2019-06-05 04:00:58 +10:00
olivierdalang
da4a8d24ef [cad] fix graphical glitches 2019-06-04 11:29:04 +02:00
Nyall Dawson
788ee78d74 Sip update 2019-05-30 06:28:32 +10:00
Nyall Dawson
dac7259b46 [needs-docs] Rework new project CRS handling
The previous approach was severely broken, because the default
CRS for new projects setting was ignored as soon as a layer
was added to the project.

Instead, refine the setting to add options
- "Use CRS from first layer added": same as previous behavior,
the project CRS is set to match the first layer added to a new
project
- "Use a default CRS": CRS for a new project is set to a preset
default CRS, and is left unchanged when adding layers to the
project

Also update qgis_global_settings.ini to reflect these changes.

Fixes #27516
2019-05-30 06:28:32 +10:00
Denis Rouzaud
09126ded98
make flashing independent from panning/zooming in attribte table in attribute editor mode (#29955) 2019-05-26 22:21:10 -05:00
Denis Rouzaud
f0f0790777
move QgsHighlight style setting in a static method (#10064) 2019-05-23 07:56:49 -05:00
Nyall Dawson
7e78874807 Fix rule based label/symbol renderers reset max scale for rules to
1:100000

And improve dox

Fixes #21845
2019-05-23 12:55:33 +10:00
Alessandro Pasotti
2b14dacd51 Fix identify on map in relation reference widget
Fixes #22071 - Relation reference widget wrong feature when "on map identification"
2019-05-21 19:09:18 +02:00
nirvn
7132cf3b2e [ui] Improve UX by adding an original source label when changing / updating layer data source 2019-05-20 14:25:55 +07:00
Matthias Kuhn
d03714b0c7 Use SIP_FORCE 2019-05-19 09:47:55 +02:00
Matthias Kuhn
03faaa3e0f
Merge pull request #9988 from olivierdalang/cad-floater-squashed
floating widget for advanced input next to the cursor
2019-05-19 09:29:43 +02:00
Bas Couwenberg
2628c480c5 Don't include revision in sources.
Prevent changes to files that weren't changed between releases.
This eases review of the changes between releases significantly.
2019-05-17 16:47:47 +02:00
olivierdalang
1e5d2f0b74 (trying to fix travis build) 2019-05-15 19:56:02 +02:00
olivierdalang
5b6dd73949 add missing docstring
with sip_include.sh
2019-05-15 18:09:27 +02:00
olivierdalang
4163be67cf unstable API notice 2019-05-15 14:33:21 +02:00
Denis Rouzaud
c0a0f7d6c9 add first/last buttons 2019-05-15 06:52:08 -05:00
Denis Rouzaud
f680466bf7 [FEATURE] add toolbar in attribute table to browse feature list
arrows allow browsing the feature list in the attribute table in form view
the current edited feature can be highlighted and the map canvas automatically panned or zoomed
2019-05-15 06:52:08 -05:00
olivierdalang
d32a319d2f prepare commit & coding style 2019-05-15 13:30:29 +02:00
olivierdalang
d6ac603556 [FEATURE][needs-docs] add a floater showing advanced input editlines next to the mouse
Sponsored by Kanton Schaffhausen in collaboration with OPENGIS.ch
2019-05-13 14:25:31 +02:00
Nyall Dawson
1d258d53c6 Nicer behaviour of QgsCharacterSelectorDialog 2019-05-02 20:38:21 +10:00
Nyall Dawson
243acb328f Dynamically set number of columns to show in character widget
based on widget width, and avoid unnecessary horizontal scroll bar
2019-05-02 15:13:38 +10:00
Nyall Dawson
ffe02c37b6 Allow QgsScrollArea to maintain horizontal width of area for
child widgets, and apply scroll area to vertical contents only
2019-05-02 15:13:38 +10:00
nirvn
3747cf7870 [FEATURE][symbology] Unlock string as character for font markers 2019-04-30 18:32:03 +07:00
nirvn
dc7bfc5cd3 [FEATURE][ui] Add a line edit to type character for the font marker
The line edit also supports pasting of unicode code in decimal or
hexadecimal format (i.e. 123 or 0x2713).

In addition, the character widget now grabs the keyboard
focus and will change the selected character based on
key stroke.
2019-04-30 15:42:20 +07:00