1012 Commits

Author SHA1 Message Date
Nyall Dawson
aaa813a15a Split indentation guide color from edge color in code editor settings
Reusing the same color resulted in too subtle indentation guides
2020-10-12 11:53:34 +10:00
Nyall Dawson
4ee9feb56b Sipify 2020-10-09 11:20:09 +10:00
Nyall Dawson
c9fb3620db Fix fold icon colors in code editors -- allow these to be set so that
they can match the editor theme
2020-10-07 15:06:02 +10:00
Nyall Dawson
3f40dbfb10 Fix rendering of CSS comments in QgsCodeEditorCSS
Refs https://www.riverbankcomputing.com/pipermail/qscintilla/2019-July/001414.html
2020-10-07 13:13:17 +10:00
Nyall Dawson
3098fa5906 Move code editor color scheme tracking to dedicated registry,
QgsCodeEditorColorSchemeRegistry

This cleans up the code, and makes it possible for creation of plugins
which add new code editor color schemes!
2020-10-06 17:11:34 +10:00
Nyall Dawson
1bafa2f66f Code shuffle: move QgsCodeEditor classes to their own folder 2020-10-06 17:11:34 +10:00
Nyall Dawson
df6c8d74cd Allow plugins and scripts to register custom logic to prevent
the QGIS application from exiting

This interface allows plugins to implement custom logic to determine whether it is safe
for the application to exit, e.g. by checking whether the plugin or script has any
unsaved changes which should be saved or discarded before allowing QGIS to exit.
2020-10-06 17:04:49 +10:00
Nyall Dawson
ec2b21001e Ensure autocomplete correctly works for all QgsCodeEditorPython instances 2020-10-06 03:57:50 +10:00
Nyall Dawson
f5cd52f81b Show a code editor preview widget in the code editor settings panel
Allows instant preview of changes
2020-10-05 13:24:46 +10:00
Nyall Dawson
d9782a12f5 Move more code to QgsCodeEditorPython base class 2020-10-05 13:24:46 +10:00
Nyall Dawson
96db7ad4f3 Ensure that all open code editors respond immediately to color/font changes 2020-10-05 13:24:46 +10:00
Nyall Dawson
527e8850ef Add universal last-resort signal QgsGui::optionsChanged()
This signal is emitted whenever the application options have been changed.

This signal is a "blanket" signal, and will be emitted whenever the options dialog
has been accepted regardless of whether or not individual settings are changed.
It is designed as a "last resort" fallback only, allowing widgets to respond
to possible settings changes.
2020-10-05 13:24:46 +10:00
Nyall Dawson
47236421af [needs-docs] Move Python Console settings for font colors and family
to new "Code Editor" tab in options dialog

These settings apply to more than just the Python console editors -
rather they apply to all code editors across QGIS (including expression
editors)
2020-10-05 13:24:46 +10:00
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