293 Commits

Author SHA1 Message Date
elpaso
e5ca63deed Refactored the python init function selector
Do not rely on the presence of a dot to load
a module. Loading a module can now be achieved
through the code editor in the dialog.

* added an option to load from environment
* added a file selector to specify the file
* changed tooltips accordingly
2015-12-05 09:45:09 +01:00
Nathan Woodrow
18c52abfda More default path fixes. Remove What's This? from toolbar 2015-12-04 08:54:05 +10:00
Matthias Kuhn
a50f2d051f Refactor edit form configuration out of QgsVectorLayer 2015-11-19 15:32:28 +01:00
Sebastian Dietrich
5399855566 restore original subset string on dialog cancel (fix #13620) 2015-11-18 18:00:57 +01:00
elpaso
322496a704 Fixed save/load from DB sync init 2015-11-05 19:14:58 +01:00
Nyall Dawson
b7e1cae4f0 Switch double quoted single character to single quotes for some
QString methods

Using single quotes is a significant performance boost. Rough
benchmarks indicate the QString single quote methods take
about 15% of the time the double quote variants take.
2015-11-02 17:55:08 +11:00
Nyall Dawson
c6df096c38 Followup c49b5b7, more fixes 2015-10-07 18:32:24 +11:00
Juergen E. Fischer
1b4ca622c9 add cppcheck fixes 2015-10-03 21:57:17 +02:00
Martin Dobias
fa0b021f9f GUI for rule-based labeling
This code has been funded by Tuscany Region (Italy) - SITA (CIG: 63526840AE) and commissioned to Gis3W s.a.s.
2015-09-24 15:48:05 +08:00
Martin Dobias
c30dd043c2 Start of GUI for rule-based labeling
This code has been funded by Tuscany Region (Italy) - SITA (CIG: 63526840AE) and commissioned to Gis3W s.a.s.
2015-09-24 15:48:05 +08:00
Nyall Dawson
a62c6a917a Give symbol widgets optional access to a map canvas
This allows symbol widgets to fetch properties from the main map
canvas, for instance fetching the current scale from the map.
2015-09-16 21:57:27 +10:00
Nyall Dawson
ddb80ebd8a Update vector layer variable widget on apply 2015-09-14 15:52:41 +10:00
Nyall Dawson
f628ebd423 Replace foreach with Q_FOREACH
For:
- consistency
- to make it immediately clear that this is a Qt macro and that it
works slightly differently to c++ for loops
2015-09-09 19:17:29 +10:00
Nyall Dawson
bd2d78cea9 Ensure that select atlas variables are shown in expression builder
...even when they don't currently have a value assigned. This helps
users know which variables will be available in certain contexts.
2015-09-08 17:31:52 +10:00
Nyall Dawson
183f401788 Remove use of $map special column
Now replaced by @map_id variable. But don't panic, old expressions
with $map will still work!

Also adds a deprecated group for expression functions, which aren't
shown in the builder. $map added to deprecated group
2015-09-07 20:24:57 +10:00
Nyall Dawson
8c716f678a More vector layer property leak fixes 2015-09-01 16:06:43 +10:00
Nyall Dawson
1c1e574d64 More contexts for expression builder dialogs 2015-08-22 19:01:42 +10:00
Nyall Dawson
d6542276e7 Add a bunch of layer related variables, including things like
metadata, extent, crs, feature count, geometry types, etc...
2015-08-22 19:01:39 +10:00
Matthias Kuhn
e832b2a28a Add QgsVectorLayer::fields() as alias to pendingFields()
pendingFields() is not very intuitive and leads to confusion for new developers.
2015-08-04 15:13:31 +02:00
Nyall Dawson
d36cd02722 Correct use of ellipsis in style menus (fix #10549) 2015-07-13 16:07:09 +10:00
Nyall Dawson
cfee456c05 [FEATURE] Add option to force a vector layer to render as a raster
(under the layer properties, rendering tab)

So why would you want this? Well, extremely detailed layers (eg
polygon layers with a huge number of nodes) can cause composer
exports in PDF/SVG format to be huge as all nodes are included in
the exported file. This can also make the resultant file very slow
to work with/open in other programs (*cough* Inkscape *cough*).

Now, these you can force these layers to be rasterised so that the
exported files won't have to include all the nodes contained in these
layers. (Before you could also do this by forcing the composer to
export as a raster, but that was an all-or-nothing solution).

The ideal solution would be a simplification option for composer
exports which would simplify the layers by removing redundant points
at the export DPI, but this is an easy workaround for now.
2015-07-09 18:34:55 +10:00
Denis Rouzaud
9e3183c63f Revert "sort includes"
This reverts commit 2b7d3d3c73b50ba6dc74abec6dd652ff1b87c0ec.
2015-06-10 14:54:47 +02:00
Denis Rouzaud
2b7d3d3c73 sort includes 2015-06-10 13:59:08 +02:00
Nyall Dawson
7ce618a603 Start modernising diagram ui 2015-04-22 18:03:14 +10:00
Nyall Dawson
437fc82435 Followup 43f150d, fix labels always enabling with diagrams 2015-04-13 23:16:14 +10:00
Hugo Mercier
4a52750a48 Allow provider-level filtering on layers with joined fields (fix conflicts) 2015-03-25 11:32:00 +01:00
Denis Rouzaud
a9e58e66d8 [joins] editing keeps the same order and selection in GUI 2015-03-12 14:17:35 +01:00
Denis Rouzaud
827f84ee7f fix joins edition (do not loose target field) 2015-03-11 14:49:56 +01:00
Denis Rouzaud
95ebf45ee8 [joins] prevent joining an already joined layer
also fix crash when editing a join with all fields joined
2015-03-10 16:00:58 +01:00
Denis Rouzaud
4bfbcb2629 [joins] allow edition of joins in layer properties 2015-03-10 14:21:08 +01:00
Denis Rouzaud
0c052c53a0 [joins] display prefix and joined fields in layer properties 2015-03-10 10:16:20 +01:00
Nyall Dawson
5e1b5a43f2 Coverity fixes 2015-02-12 20:53:13 +11:00
Nyall Dawson
868720b7e0 Coverity null dereference fixes 2015-02-11 16:03:04 +11:00
Juergen E. Fischer
a3668f5853 more coverity fixes 2015-02-07 02:31:42 +01:00
Juergen E. Fischer
4afdf553e7 fix signal/slot warnings 2015-01-24 22:08:52 +01:00
Matthias Kuhn
60712cd9bd [FEATURE] Allow to specify custom prefix for joins 2015-01-22 15:58:34 +01:00
Martin Dobias
295f466d23 Layer properties dialogs: add style manager actions under Style button
This allows for more convenient configuration of layer styles and switching
between them compared to the context menu in the layer tree.

This code has been funded by Tuscany Region (Italy) - SITA (CIG: 6002233F59)
and commissioned to Gis3W s.a.s.
2015-01-19 23:28:39 +07:00
Martin Dobias
15068e55f1 Replace the row of style-related buttons by a button with context menu
This saves vertical space and will allow addition of more actions.

This code has been funded by Tuscany Region (Italy) - SITA (CIG: 6002233F59)
and commissioned to Gis3W s.a.s.
2015-01-19 22:01:05 +07:00
Nyall Dawson
1a46c40a74 Port a bunch of CRS selectors across to QgsProjectionSelectionWidget 2015-01-06 13:46:16 +11:00
Nyall Dawson
8a182b7f34 Clean up QgsMapLayer scale based visibility api 2014-12-05 20:39:09 +11:00
Matthias Kuhn
49c10fc466 MapTip: ParagraphSeparator to \n to support multiline expressions
This allows to properly use multiline expressions in the expression builder
when the map tip HTML definition contains newlines (which are formatted as
ParagraphSeparators in QTextCursor)
See http://qt-project.org/doc/qt-4.8/qtextcursor.html#selectedText
2014-12-02 15:15:40 +01:00
Juergen E. Fischer
82b6e0342a cosmetic cleanups, typo fixes, formatting 2014-10-21 01:33:20 +02:00
Martin Dobias
f73b0b61e5 Return to previous state of vector joins if the vector props dialog was cancelled 2014-09-16 12:11:15 +07:00
Martin Dobias
9945a6d145 [FEATURE] Joins: optionally use just a subset of fields from the joined layer 2014-09-13 14:27:52 +07:00
Martin Dobias
55c4ae5755 Remove the legend from the application completely. 2014-05-21 14:49:34 +07:00
Denis Rouzaud
862367af69 fix ScaleRangeWidget: crash when setting canvas, order of the min/max widgets, denom/true scale, raster and rulebased dialogs, tooltip, alignement, etc. 2014-05-12 16:28:43 +02:00
Denis Rouzaud
d83f3ec4e6 QgsScaleRangeWidget: renamed from QgsScaleVisibilityWidget, do not use ui file 2014-05-12 16:28:42 +02:00
Denis Rouzaud
2cf3e7c5dd custom widgets for Qt Designer, QgsScaleVisibilityGroupBox plugin 2014-05-12 16:28:42 +02:00
Marco Hugentobler
d6535a82ba [FEATURE]: Add legend url to wms capabilities. Patch from mlechner 2014-04-22 05:03:41 +02:00
Juergen E. Fischer
b9a539ece4 fix utf string 2014-04-02 23:50:22 +02:00