3014 Commits

Author SHA1 Message Date
Nyall Dawson
01226a3294 [annotations] Add framework for map tools for creating new annotation
items
2021-09-08 15:32:15 +10:00
Nyall Dawson
76e20c608e Correctly set context for annotation items (map canvas, message bar) 2021-09-07 18:44:57 +10:00
Nyall Dawson
adcd793b89 Add QgsAnnotationItemCommonPropertiesWidget widget for controlling
common properties of annotation items (e.g. reference scale, z order)

And include this in the point text item configuration widget
2021-09-07 18:44:57 +10:00
Nyall Dawson
4f1fc3b1a4 Always refetch the current item from the layer and then update it
when we are editing annotation items, as properties of the item
which aren't exposed in the widget (e.g. it's geometry) may
have changed in the meantime and we don't want to lose those.
2021-09-07 15:48:17 +10:00
Nyall Dawson
ac4d252b1a [annotations] Pressing delete while an annotation item is selected
will delete the item
2021-09-07 15:48:17 +10:00
Nyall Dawson
d16254e0a3 Add QgsMapToolModifyAnnotation::selectionCleared signal 2021-09-07 15:48:17 +10:00
Nyall Dawson
a8b6f89316 Fix naming clash 2021-09-07 10:35:02 +10:00
Nyall Dawson
77466dadaa Fix doxygen warning 2021-09-07 10:35:02 +10:00
Nyall Dawson
48715202f7 When the modify annotation tool is used to select an annotation item,
show a panel in the layer styling dock allowing users to modify
the appearance of the annotation
2021-09-07 10:35:02 +10:00
Nyall Dawson
39263a421f Add new class QgsMapLayerConfigWidgetContext
This class encapsulates the context in which a map layer config
widget is being shown (e.g. the corresponding map canvas, message
bar and other properties useful for the config widgets)
2021-09-07 10:35:02 +10:00
Nyall Dawson
c7c7b6dd1e [api] Create annotation item gui registry
This registry is attached to QgsGui and handles registration of
functions which create widgets for modifying QgsAnnotationItems

Modeled heavily off the print layout API
2021-09-07 10:35:02 +10:00
Nyall Dawson
758b33ed2e [api] Add initial framework for QgsMapToolModifyAnnotation
This is the start of a map tool for interactive editing of items
in annotation layers. Currently it supports selecting items, and
pre-highlighting their nodes as the cursor is moved over the items.

(Not exposed in QGIS gui yet)
2021-09-07 10:35:02 +10:00
Nyall Dawson
3f977b51a3 [api] Also expose method for adding additional (non-project) layers
to QgsMapLayerComboBox
2021-09-06 16:24:15 +10:00
Nyall Dawson
26b536b068 Add QgsRubberBand::copyPointsFrom to quickly copy all points from
one rubber band to another
2021-09-01 17:25:45 +10:00
Nyall Dawson
660433d9a9 [api] Add framework for collecting rendered item details during map
renderer operations

This follow a similar pattern as how labeling results could be collected
after a map render job, but generalises the API so that it can be
used for storing details of rendered items of any type.

It's currently used for storing details of rendered annotation items,
so that map tools can retrieve details of annotation items visible
in the canvas in an optimised way.
2021-08-31 11:04:29 +10:00
Julien Cabieces
5c35b1cb82 Add external storage file widget drag'n drop support 2021-08-30 13:50:21 +10:00
Nyall Dawson
204af6f02f Fix a crash when destroying an extent widget while the "draw on canvas"
option is still active
2021-08-26 18:01:57 +10:00
Alessandro Pasotti
a25f798d04
Merge pull request #44710 from elpaso/dd-form-actions
[feature] Drag & Drop designer form actions
2021-08-19 17:23:22 +02:00
Nyall Dawson
06b3b1650a Fix clazy, cppcheck warnings in expression builder widgets 2021-08-17 10:41:30 +10:00
Alessandro Pasotti
6de2f2dcc4 Fix setEnabled 2021-08-16 17:44:26 +02:00
Alessandro Pasotti
cd6cd2f6f3 Tests for form action widget 2021-08-16 15:14:31 +02:00
Julien Cabieces
bbf2429d6b Fix sip incomplete type QgsExternalStorageFileWidget 2021-08-16 09:18:14 +02:00
Julien Cabieces
36813e737d Fix doc 2021-08-16 09:18:14 +02:00
Julien Cabieces
7a7964c767 Fix typo & return string by value not ref 2021-08-16 09:18:14 +02:00
Julien Cabieces
74512ffde9 Separate QgsFileWidget from QgsExternalStorageFileWidget 2021-08-16 09:18:14 +02:00
Julien Cabieces
16c916b723 fix typos and doc 2021-08-16 09:18:14 +02:00
Julien Cabieces
56127039f5 [ExternalStorage] Add widget to configure/edit and visualize external storage 2021-08-16 09:18:12 +02:00
Alessandro Pasotti
889359c3a1 Form DD action widgets initial implementation 2021-08-14 19:06:52 +02:00
uclaros
55c02f6b5b skip sip 2021-08-12 11:42:23 +10:00
uclaros
5f7a067fdf Simplify whitespaces in saved expression labels 2021-08-12 11:42:23 +10:00
Nedjima Belgacem
826c6a7c36
Disble layer rendering to 3D terrain texture for 3D rendered layers (#44367)
* add optional layer rendering to 3D terrain

* remove terrainLayers from Qgs3DMapSettings

* fix tests

* switch to layer terrain rendering when no 3d renderer is set

* fix mesh tests to handle terrain being disabled
2021-08-11 11:38:59 +02:00
Nyall Dawson
550a1d3a52 Factories can specify a path to add their pages to the options tree 2021-07-29 15:48:53 +10:00
Nyall Dawson
0a8f24e895 Show search hits for tables and tree/table headers 2021-07-29 15:48:53 +10:00
Nyall Dawson
b932108acd Working search for items when using options tree views 2021-07-29 15:48:53 +10:00
Nyall Dawson
f22f742a9f Allow options dialog to use a tree structure for tab list instead
of a flat list widget
2021-07-29 15:48:53 +10:00
Nyall Dawson
88ead4ba4d Spelling 2021-07-28 12:39:31 +10:00
Nyall Dawson
8aec877aec Documentation improvements, clazy fixed for QgsFileWidget 2021-07-28 12:39:31 +10:00
Nyall Dawson
5345103ada Fix dox warning 2021-07-27 14:25:24 +10:00
Nyall Dawson
2164a090db [api break] Remove QRegExp argument from QgsNewNameDialog constructor
Replaced with QgsNewNameDialog::setRegularExpression which accepts
a string argument.

QRegExp is deprecated and removed in qt6.
2021-07-27 14:25:24 +10:00
Nyall Dawson
b36bb62605 [browser] Ensure "File Properties" action is always present for
items which represent a file
2021-07-27 11:56:19 +10:00
Nyall Dawson
f5eebaedec Fix build 2021-07-25 15:20:13 +10:00
Nyall Dawson
7f700e35be Split QgsBrowserDockWidget to new QgsBrowserWidget class and QgsBrowserDockWidget
Moves the guts of QgsBrowserDockWidget to a reusable QWidget subclass
"QgsBrowserWidget", so that browser widgets can easily be created
which aren't a dock widget.
2021-07-25 15:20:13 +10:00
Keigo Imai
c34cfeb43b update sip file 2021-07-23 11:30:34 +10:00
Keigo Imai
811a0353a5 Add activeDecorations to iface object
Allow plugins and scripts to export animations with decorations
2021-07-23 11:30:34 +10:00
Alessandro Pasotti
276d1980f8 Address PR comments and add ENUM for widget mode 2021-07-22 10:18:13 +10:00
Alessandro Pasotti
387c403c2f First nail in the coffin of DB Manager
Replace DB Manager legend custom menu action with
C++ implementation for SQL layer
2021-07-22 10:18:13 +10:00
Nyall Dawson
9328953aa7 [layouts] Ensures that 1:1 zoom level on layout designer accounts
for actual screen dpi, and responds correctly when window is dragged
between screens
2021-07-20 11:21:29 +10:00
Alessandro Pasotti
ff54bd5380
Merge pull request #43831 from elpaso/localization-more-fixes
GUI localization tweaks
2021-07-19 10:46:41 +02:00
Nyall Dawson
4bb7f82f2e [sipify] Add check that doxygen //!< command is only used for enum
documentation

sipify can't handle it in other contexts
2021-07-19 16:05:53 +10:00
Matthias Kuhn
071e4b585d
Merge pull request #44132 from m-kuhn/respect_screen_dpi
Allow using physical DPI for map canvas
2021-07-14 08:02:42 +02:00