978 Commits

Author SHA1 Message Date
Nyall Dawson
f6f5010131 Move QGis::UnitType to QgsUnitTypes::DistanceUnit
This change consolidates more unit handling and conversion into
QgsUnitTypes.

Additionally, UnknownUnit was renamed to UnknownDistanceUnit.
All methods which accepted QGis::UnitType parameters have been
updated to take QgsUnitTypes::DistanceUnit instead.

ALso remove the unit handling methods toLiteral, fromLiteral, tr,
fromTr, and fromUnitToUnitFactor from QGis. Their corresponding
counterparts in QgsUnitTypes should be used instead.
2016-07-25 14:47:16 +10:00
Martin Dobias
ab4a83b49b Goodbye to QgsMapRenderer (#3333)
For the time being the class is kept in the server code while it is still being used there.
2016-07-24 22:40:52 +02:00
Nyall Dawson
791b2c3919 Merge pull request #3324 from nyalldawson/qgis
QGis class rename and cleanup
2016-07-22 19:28:06 +10:00
Nyall Dawson
12a2147427 [FEATURE] Add an option to show user color schemes menus
This adds the ability for users to set whether a user created
color scheme should show up in the color button drop-down menus.

It's accessed through the color picker dialog, on the lists tab.
Just add a new color scheme, then from the scheme menu tick the
new "show in buttons" option.

Handy if you have sets of common palettes and want them to be
instantly available through the color menu.
2016-07-22 07:32:07 +10:00
Nyall Dawson
1a2231f10c Rename QGis class to Qgis, for capitalisation consistency 2016-07-21 22:01:38 +10:00
Nyall Dawson
4cfacf14e3 Make API more consistent
- rename methods with XML to Xml, CRS to Crs, WMS to Wms, ID to Id
- rename methods with SRS to Crs
- rename methods with abbreviations like "dest" to "destination"
- rename methods with abbreviations like "src" to "source"
2016-07-21 08:40:50 +10:00
Nyall Dawson
44c8680b00 Remove canvas rotation option + API, now always enabled 2016-07-20 21:25:44 +10:00
Nyall Dawson
185ad05102 Remove deprecated QgsDataDefinedSymbolDialog class (#3315)
It's not used anymore, and QgsDataDefinedButton should be used
in its place.
2016-07-20 21:18:20 +10:00
Nyall Dawson
39b3e721bb Replace QgsNumericSortTreeWidgetItem with upgraded QgsTreeWidgetItem
QgsNumericSortTreeWidgetItem had a giant TODO saying "make it work".
This makes it work, and adds some other useful features like
being able to specify custom sort value and force items to always
sort on top.
2016-07-19 09:30:23 +10:00
Marco Hugentobler
4d1fbee7f0 Update sip binding 2016-07-14 17:06:22 +02:00
Martin Dobias
c5d8cc7fbc Added missing & in setTitle in SIP 2016-07-11 12:46:17 +02:00
Nyall Dawson
d3582abbf6 [FEATURE] Mouse wheel over sliders in color dialog to change value by
increments
2016-07-11 10:27:16 +10:00
Juergen E. Fischer
e451b9ad6f indentation and spelling fixes 2016-07-08 12:59:38 +02:00
Nathan Woodrow
b1de246e84 const fixes 2016-07-08 10:54:58 +10:00
Nathan
e4080edaa7 Streamline QgsMapLayerConfigWidgetFactory interface 2016-07-08 08:19:15 +10:00
Matthias Kuhn
b83aab7d74 Save attribute table sort order persistently
Fix #15235
2016-07-07 17:35:55 +02:00
Matthias Kuhn
febcabb0da Make using recent expressions API simpler and add doxygen comment 2016-07-07 16:39:13 +02:00
Matthias Kuhn
56a0af5bd8 Sort attribute table by representation value where useful
Fix #15096
And aligns some edge-cases of sort behavior
2016-07-07 16:39:13 +02:00
Nathan
e097443771 Fix globe plugin 2016-07-07 10:27:04 +10:00
Martin Dobias
1c91ae7733 Show breadcrumb and back button for rule based labeling (fixes #15153)
Following the way how rule based rendering widget was adjusted...
2016-07-06 21:48:39 +02:00
Nathan
fdf16e3c92 Rename QgsLayerStylingPanelFactory to QgsMapLayerConfigWidgetFactory
- Move QgsMapLayerPropertiesFactory into single factory object for
  dock and properties
2016-07-06 23:03:43 +10:00
Nyall Dawson
9139872c9e Fix crash when using add circular string by radius tool 2016-07-05 11:42:59 +10:00
Nyall Dawson
a240cd8f8e Replace doxygen MapComposer group with core/gui
Since the MapComposer group doesn't actually exist
2016-07-04 19:57:13 +10:00
Martin Dobias
5f6627624e Fix incorrectly loaded sublayers if they had the same name (fixes #15168)
Use "layerid=N" instead of "layername=XYZ" for OGR sublayers
2016-06-30 14:28:06 +02:00
Nyall Dawson
19564672c2 Fix raster load min/max from extent in style dock (fix #15171) 2016-06-30 18:25:20 +10:00
Nyall Dawson
c49af32e95 Fix rule based settings not saved (fix #15146, #15147, #15148) 2016-06-27 15:56:06 +10:00
Juergen E. Fischer
92bfcd4802 update QgsAttributeTableFilterModel sip bindings 2016-06-24 01:04:10 +02:00
Matthias Kuhn
437cb85cd5 Left align mapped values
Fix #15101
2016-06-23 12:50:38 +02:00
Marco Bernasocchi
b4436271fe Fix allow clicking on a tags in maptips (#3218)
this is done by listening to the linkClicked signal
2016-06-21 18:01:49 +02:00
Nathan Woodrow
8e2c201a16 Fix build 2016-06-21 17:00:03 +10:00
Nathan Woodrow
1072d9681e [styledock] Inline edit panel for rules 2016-06-21 16:26:23 +10:00
Nathan Woodrow
0914b7440f Rename Map Styling Dock to Layer Styling Dock 2016-06-20 20:56:34 +10:00
Nathan Woodrow
7a572c4ff8 [style dock] Refactor API. Move back button outside scrollarea.
Clean up API. Remove QgsPanelWidgetPage - no longer needed
QgsPanelWidgetStack widget manages back button and breadcrumb.
QgsPanelWidget manages state of active widget.
2016-06-20 10:48:53 +10:00
Nathan Woodrow
a555f91a46 Clean up showPanel API. Open dialog if not in dock mode 2016-06-15 22:07:25 +10:00
Nyall Dawson
ae93ee3ca7 Use QgsFieldProxyModel for filtering read only fields 2016-06-15 15:34:51 +10:00
Nyall Dawson
f1e4c4592b Fallback to generated layout for Select by Value if using a custom
UI form

Custom UI forms are not supported with the attribute form search
mode, but this way users with custom UI forms can still use the
feature
2016-06-15 14:57:37 +10:00
Nyall Dawson
33a5ee7ab4 Fix selecting features by radius (fix #14748) 2016-06-15 11:57:04 +10:00
Matthias Kuhn
bbbc9d0abf QgsDockWidget add openedStateChanged and openedStateChanged signals 2016-06-14 14:07:36 +02:00
Matthias Kuhn
3fcabc96fe Fix action column widget rendering artifacts
This creates an action column widget when the widget is rendered for the
first time.
The original approach was to create an image and render the buffered
image onto the cell until the first mouse action triggered the creation
of the real widget. This led to several rendering problems and triggered
some strange ownership issues with crashes under certain situations.

Followup a05b2ad9
2016-06-14 11:15:15 +02:00
Nathan Woodrow
659d91649c Add missing files 2016-06-13 18:52:24 +10:00
Nathan Woodrow
e926e2d0aa [style dock] Add better API for panels 2016-06-13 18:07:39 +10:00
Matthias Kuhn
7040ad41d2 Fix sip bindings 2016-06-11 12:50:19 +02:00
Matthias Kuhn
1877bcd081 Only show writable fields in field calculator
Fix #15000
2016-06-11 12:29:00 +02:00
Nyall Dawson
7af6d24788 Change QDockWidgets to QgsDockWidgets
No benefit as yet, but future proofing for when QgsDockWidget
gains additional fixes/tweaks over QDockWidget
2016-06-10 13:10:59 +10:00
Juergen E. Fischer
03de74dc89 fix typo 2016-06-09 11:13:11 +02:00
Nyall Dawson
fe26d33e29 [needs-docs] Add shortcut to Select by Form to toolbar and menu
Also add keyboard shortcut (F3) to open select by form
dialog
2016-06-09 16:48:27 +10:00
Nyall Dawson
b44f62a1c2 Cleanups for attribute form in search mode 2016-06-09 16:48:27 +10:00
Nyall Dawson
31c572f0ad Fix style dock forgets expanded state of rendering group (fix #14864)
Also fix a memory leak
2016-06-09 11:10:34 +10:00
Nyall Dawson
cb4dacfebc Fix style dock button not synced to dock state (fix #14862)
Add a new class QgsDockWidget which has finer control over setting
and retrieving the dock visibility, to account for dock widgets
which are open but hidden by other docks
2016-06-09 11:01:56 +10:00
Matthias Kuhn
f84584c6ad Fix header 2016-06-07 13:46:40 +02:00