3289 Commits

Author SHA1 Message Date
Nyall Dawson
f821fefdf2 Add method to select a QgsDataItem directly in QgsBrowserTreeView 2022-07-18 12:50:18 +10:00
Nyall Dawson
f57f9485d1 Add browser tree view to QgsDataItemGuiContext
This allows the item gui providers to access the view associated
with an action, e.g. to automatically select something in that
view
2022-07-18 12:50:18 +10:00
Julien Cabieces
d5505e329d Add missing Q_OBJECT macros and enable clazy check missing-qobject-macro 2022-07-13 08:24:23 +10:00
Nyall Dawson
12321df49a Allow actions which work on selection to also work with vector tile selections 2022-07-08 09:12:46 +10:00
uclaros
6e0eb8d4ca fix qgsgeometryrubberband on rotated canvas 2022-06-17 10:41:04 +10:00
Nyall Dawson
9d0cb90705 Make virtual layer source layer creation much more user friendly
Instead of just forcing the user to type a free-form source string,
add a "..." button which allows them to browse for the layer source
using the browser dialog. Makes it MUCH easier for users to add
gpkg/postgis/wfs/... layers as sources for virtual layers.
2022-06-16 13:55:09 +10:00
Mathieu Pellerin
ac7b711dea Fix setting min/max through histogram doesn't activate contrast
enhancement algorithm

The commit also makes the histogram work for the single band pseudo color
raster renderer.
2022-06-06 17:12:54 +10:00
Nyall Dawson
994257b538 If the elevation profile mouse cursor is snapped, then use the snapped
position when drawing the marker on the map canvas to indicate the
cursor position

Otherwise things are misleading -- the elevation profile will show
snapped results yet the corresponding canvas point may be slightly
displaced from what the elevation plot is showing
2022-05-27 11:56:10 +10:00
Nyall Dawson
5a09da294d Fix potential crash if canvas is deleted before QgsMapToolCapture 2022-05-22 13:20:33 +10:00
Nyall Dawson
aa7bc651f3 Create QObjectParentUniquePtr smart pointer for non-qobject children
owned by a parent QObject

E.g. QGraphicsItem subclasses are not QObjects themselves, but
are owned by a QObject QGraphicsScene. Depending on whether the
graphics item is deleted first or the scene, we can end up with
a double-free situation.

Fix this by creating a QObjectParentUniquePtr smart pointer which
is automatically nulled if the parent QObject (e.g. the QGraphicsScene)
is deleted first.

(Adapted from existing QObjectUniquePtr logic and logic in
QgsSnapIndicator)
2022-05-22 13:20:33 +10:00
Nyall Dawson
b2b5ee278c Fix potential crash if canvas is deleted before cad dock 2022-05-19 15:16:50 +10:00
Nyall Dawson
2ba6b4ffe5 Allow choice of style database when saving styles 2022-05-17 16:36:00 +10:00
Nyall Dawson
42a758ec6a Allow lazy setting of style manager QgsStyle 2022-05-17 16:36:00 +10:00
Nyall Dawson
66aaf36059 [feature] Show entities from all project style databases in symbol and label
selectors
2022-05-17 16:36:00 +10:00
Even Rouault
4462aed63a Python: fix crashes when casting mapCanvas().scene().items() objects to QgsHighlight/QgsMapCanvasAnnotationItem/QgsRubberBand (fixes #48471, fixes #48436) 2022-05-16 08:53:08 +10:00
Mathieu Pellerin
5138864650 [ui] Implement scroll wheel action for color buttons 2022-05-11 10:43:07 +10:00
Mathieu Pellerin
ec9ab29dee [ui] Implement scroll wheel action for symbol buttons 2022-05-11 10:43:07 +10:00
Mathieu Pellerin
761fb89583 Fix dox strings 2022-05-09 15:48:57 +07:00
Mathieu Pellerin
0a53f86206 [ui] Add a set to null / clear current symbol action to the symbol button 2022-05-09 12:31:36 +07:00
uclaros
5e142c8933 offset maptips and clear them after a delay 2022-05-08 07:05:09 +10:00
Nyall Dawson
612164305b Ensure measure line stays in the correct location when plot is
panned/zoomed
2022-05-07 21:42:54 +10:00
Nyall Dawson
b9e10e754b Make private method public 2022-05-07 21:42:54 +10:00
Nyall Dawson
3009999748 Remove duplicate code 2022-05-07 21:42:54 +10:00
Nyall Dawson
7f7edd2be3 Add signal when plot area is changed 2022-05-07 21:42:54 +10:00
Nyall Dawson
bf046be5ad [feature] Add a measure tool to elevation profile widget
Allows measuring distances on the plot
2022-05-07 21:42:54 +10:00
Alessandro Pasotti
0d871029be
Merge pull request #48353 from elpaso/form-font-label2
Allow drag and drop forms label font and color customization
2022-05-06 09:44:27 +02:00
Nyall Dawson
4140faa178 Implement (ugly) means of converting elevation identifaction results to QgsMapToolIdentify results 2022-05-06 08:58:41 +10:00
Nyall Dawson
3c086ead05 Add framework for identifying results from profile generators 2022-05-06 08:58:41 +10:00
Samweli
998c58dff1 made canvas methods in source provider widget virtual 2022-05-03 15:58:19 +10:00
Samweli
e38f3996f7 made canvas set and get function non pure virtual functions, include tests for encode/decode uri functions in wcs
and minor cleans and code tweaks as suggested in the recent review.
2022-05-03 15:58:19 +10:00
Samweli
8846a1a265 refomartted updated provider files 2022-05-03 15:58:19 +10:00
Samweli
9fc2f58e71 updated the owssourcewidget to only update ows layers bbox 2022-05-03 15:58:19 +10:00
Samweli
d05e628ea8 set source uri when source widget is available 2022-05-03 15:58:19 +10:00
Samweli
b6f19aaffb updated prepareExtent call 2022-05-03 15:58:19 +10:00
Samweli
66503f31be removed qgsowssourcewidget from sip, updated pointer variables in qgsowssourceselect 2022-05-03 15:58:19 +10:00
Samweli
06f9f71dc8 moved prepareExtent() to private 2022-05-03 15:58:19 +10:00
Samweli
a59e4680f6 removed mapCanvasChanged() signal and made setMapCanvas virtual in the QgsAbstractDataSourceWidget 2022-05-03 15:58:19 +10:00
Samweli
5e7e0ae3d3 updated the raster layer properties dialog and wcs provider to accommodate adding an ows provider source widget 2022-05-03 15:58:19 +10:00
Samweli
4a1f27428d enabled passing a map canvas to a provider source widget 2022-05-03 15:58:19 +10:00
Samweli
b44a62863e added ows source widget 2022-05-03 15:58:19 +10:00
Samweli
445ac09cb0 updated wcs provider to use user specified bounding box when it is available 2022-05-03 15:58:19 +10:00
Samweli
4104a62f85 change state of the map canvas to non-const so it can be used in provider dialogs spatial extent input widgets 2022-05-03 15:58:19 +10:00
Nyall Dawson
4907eb2652 Don't reset plot extent so often
Be more picky about when we force a zoom full in the elevation plot,
so that we aren't zooming out when a user makes a change like
increasing the distance tolerance or nudging the curve.
2022-05-02 12:33:19 +10:00
Alessandro Pasotti
1cb3c613d4 Add test for attribute editor element
LabelStyle
2022-04-29 14:56:19 +02:00
Julien Cabieces
012b6a46db constify methods 2022-04-29 08:21:47 +10:00
Denis Rouzaud
82da43371d avoid API break by renaming arg 2022-04-29 07:57:25 +10:00
Denis Rouzaud
6dd66759cd sipify 2022-04-29 07:57:25 +10:00
Alessandro Pasotti
78fc3cae7e Individual options for font and color 2022-04-28 10:51:37 +02:00
Alessandro Pasotti
e1384446d2 Remove qgsformlabelformatwidget from sip 2022-04-27 11:19:10 +02:00
Alessandro Pasotti
a32f8b4ecb Address PR comments 2022-04-27 10:25:15 +02:00