2685 Commits

Author SHA1 Message Date
Nyall Dawson
6078fe4842 Cleanup color handling in QgsCodeEditor classes
Remove a bunch of duplicate default color definitions, and ensure
that all subclasses correctly respect any user defined color overrides,
yet that we still default to following the application theme's matching
color schemes.
2020-10-03 19:58:50 +10:00
Nyall Dawson
ab6bbfda1d Fix all remaining Qt QFlags deprecated constructor warnings 2020-10-02 13:04:49 +10:00
Alessandro Pasotti
83525abd5c Respect scale lock when panning/zooming the map
Fixes #38953 and #38417
2020-09-24 09:04:36 +10:00
Nyall Dawson
c3a26db4ba [layouts] When selecting a CRS for a map item, don't show misleading
"no crs" option at the top of the dialog.

Instead, correctly label this option as "Use project CRS", which
is what it actually means.
2020-09-23 14:13:35 +10:00
Nyall Dawson
c68d05cc40 Improve misleading/confusing API, and fix "layer has no CRS" message
incorrectly show at the top of many projection selection dialog boxes
2020-09-23 14:13:35 +10:00
Nyall Dawson
05c25194d1 Also use splitter in QgsProjectionSelectionDialog 2020-09-23 14:13:35 +10:00
Nyall Dawson
8dd75cc9cc [layouts] Improve UI for formatting manual table cells
Instead of the confusing duplicate settings for foreground color
vs cell text color, remove the foreground color button and only
expose this color setting via the cell text color.
2020-09-23 03:15:28 +10:00
Denis Rouzaud
5ca4ef8f3d
QgsField::ConfigurationFlags: use a negative form for the flags so th… (#38805)
* QgsField::ConfigurationFlags: use a negative form for the flags so that default flags is None

this will make this futureproof, so newly added flags won't cause trouble for compatibility with old projects

* follow up

* remove template class

* fix order of init

* follow up

* Revert "update test projects (open and save)"

This reverts commit c738609d9177ed398ba2a0ae0e1c16448accd5f6.

* DoNotExposeVia -> HideFrom
2020-09-17 10:31:22 +02:00
nirvn
445d78f7cc Add a plugin interface to add pages to the project properties dialog 2020-09-17 13:48:57 +07:00
Denis Rouzaud
f6c98ec5f1
Merge pull request #38730 from 3nids/conf-flag-check-cb
Use a checkable combobox for fields configuration flags
2020-09-16 07:02:17 +02:00
Denis Rouzaud
7265d9de96 fix sip 2020-09-15 12:23:30 +02:00
vcloarec
5729fce778 fix release version 2020-09-15 06:47:58 +10:00
Denis Rouzaud
d273f78c23 use a checkable combo box for fields configuration flags in source fields properties tab 2020-09-14 13:24:05 +02:00
Denis Rouzaud
19d4b52f10 Add WMS/WFS to QgsField::ConfigurationFlag 2020-09-14 13:24:05 +02:00
Denis Rouzaud
b516a49b9e create helper method QgsCheckableComboBox::addItemWithCheckState 2020-09-14 13:24:05 +02:00
vcloarec
09c73433dd move QgsMeshLayerProperties to GUI 2020-09-14 15:55:18 +10:00
Matthias Kuhn
38ec62e89d
Merge pull request #38663 from signedav/relation-editor-title
Label (title) of relation editor widget instances
2020-09-10 06:48:05 +02:00
Matthias Kuhn
a853f2643d
Merge pull request #38659 from suricactus/relref_filter_expr
Add support for filter expressions in relation reference widget
2020-09-10 06:46:44 +02:00
Denis Rouzaud
d6666c0b0b
Merge pull request #38633 from 3nids/locator-autocomplete
[locator] autocomplete + allow restricting search to a single field in active layer filter
2020-09-09 14:00:04 +02:00
signedav
a209536295 configurable label (title) of relation editor widget instances
resolves #37675
2020-09-09 12:13:51 +02:00
Ivan Ivanov
c4b2a748e2 Add support for filter expressions in relation reference widget 2020-09-09 10:28:38 +03:00
signedav
a89765e9ce default flag on search widget for relation reference so it's selected when the value changes for the first time. reported here #37843 2020-09-09 11:02:22 +10:00
Denis Rouzaud
002a7033f0 [FEATURE] enable auto completion in locator
a locator filter can now return a completion list while preparing the search
the line edit will use the first matching completion and display it as light grey text
the completion can be triggered by pressing Tab key
2020-09-08 14:53:50 +02:00
Matthias Kuhn
d998bb3d17
Merge pull request #38318 from signedav/attachement-expression
Update documuent viewer in the attachment widget on attribute change
2020-09-04 21:13:07 +02:00
signedav
4b8797dacb
Merge pull request #38331 from signedav/relation-config
Multiple widgets of same relation
2020-09-03 08:27:53 +02:00
Nyall Dawson
d1bc82ca7b Misc typo fixes 2020-08-31 11:38:02 +10:00
Nyall Dawson
2135d03c9b Fix 'allow to' typos 2020-08-31 11:38:02 +10:00
signedav
c3cb69b167 call loadDocument in setDocumentViewerContent instead over a seperate method
updateDocumentViewer needs not to be called on Image before the laod of the document (because it's called after the document load (or unload))
2020-08-24 09:40:25 +02:00
Nyall Dawson
f496173bd7 Fix messy doxygen blocks which mess with sipify script
Fixes #38291
2020-08-20 17:01:35 +10:00
Mathieu Pellerin
1386474e3c
[ui] Fix SVG marker widget not properly restoring colors 2020-08-20 10:08:20 +07:00
Nyall Dawson
d4ca4a1405 [labeling][ui] Change placement mode selection widget from radio
buttons to combo box

The radio buttons don't work well here -- they cause a massive
gap in the placement UI layout for anything but polygon
layers. Using a combobox is also much more compact, giving us
some extra space to use for more helpful explanatory text
2020-08-19 06:34:19 +10:00
signedav
b5af453b8e improved texts for warning message and docs 2020-08-18 16:45:06 +02:00
Nyall Dawson
748d76aeed [feature][labeling] Add option to allow users to control the placement
of labels along line features

The new "Label Anchoring" section in the line placement settings for
labels allows users to specify whether labels should be placed
at the center, start or end of lines (or a custom percent from the
start of the line). Also allows data-defined percent along line
control!
2020-08-18 11:09:18 +10:00
signedav
6fbeb47a64 updateProperties function private and no reference for currentFormFeature 2020-08-17 17:39:08 +02:00
signedav
6be231bd35 On change of an attribute the documentViewer expression of the externalRessourceWidget depends on, the documentViewer should be updated.
To not be needed to check for all the widget values in the form, the mCurrentFormFeature is introduced that contains all the values that are received on change of the widget values.

Resolves #37678
2020-08-17 07:43:11 +02:00
signedav
458d39c7e5 setting forceSuppressFormPopup only when true in the widget (not unset it when false) and use more specific function descriptions 2020-08-14 07:08:49 +02:00
signedav
f0a390de39 correct set of forceSuppressPopup state
renamed cardinality to nmRelationId since it's not a cardinality - it's the id of the relation connected through the many-to-many cardinality in this relation editor widget
2020-08-13 11:48:23 +02:00
Alexander Bruy
2b241f42cd deprecate unused QgsSearchQueryBuilder class 2020-08-10 16:11:04 +03:00
Alexander Bruy
dad79f857a restore missed "Save query" functionality in the Query Builder (fix #18550, #12827) 2020-08-10 12:28:39 +03:00
signedav
1fadb92939 move the cardinality and the forceSuppressFormPopup to the widget configuration - stored in a QgsAttributeEditorElement 2020-08-10 07:25:00 +02:00
Nyall Dawson
97915e3203 Add a iface method to directly set a specific GPS connection to connect
to in the GPS Information panel

Allows for plugins to create subclasses of QgsGpsConnection and then
hook these into the existing GPS panel widget
2020-08-05 18:52:29 +10:00
Martin Dobias
dbe1ef8aa2
Merge pull request #37685 from vcloarec/curveMapToolCapture
digitizing and splitting feature with curves
2020-08-03 22:41:04 +02:00
Nyall Dawson
6d647aa678 Add method to filter QgsLayoutItemComboBox by item flags 2020-07-31 03:06:31 +10:00
vcloarec
e022b3eb5c renaming and typo 2020-07-29 21:32:17 -04:00
vcloarec
fd81a2edfc add button in tool bar to switch between linear/circular digitizing 2020-07-29 12:49:44 -04:00
vcloarec
938c3ff3cd sync vertices with matches 2020-07-29 12:49:44 -04:00
vcloarec
f7a16c5fd3 fix doc and pass map tool reshape test 2020-07-29 12:49:44 -04:00
vcloarec
56787d63d0 fix SIP end doc 2020-07-29 12:49:44 -04:00
vcloarec
2e3fabf945 QgsMapToolCapture support circular curve 2020-07-29 12:49:44 -04:00
Nyall Dawson
b1d02619f5 Use registry to create 3d symbol widgets, avoid hardcoded widgets 2020-07-29 10:27:17 +10:00