QGIS API Documentation 3.43.0-Master (b60ef06885e)
qgsrendererpropertiesdialog.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsrendererpropertiesdialog.h
3
4 ---------------------
5 begin : December 2009
6 copyright : (C) 2009 by Martin Dobias
7 email : wonder dot sk at gmail dot com
8 ***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
16
17#ifndef QGSRENDERERPROPERTIESDIALOG_H
18#define QGSRENDERERPROPERTIESDIALOG_H
19
20#include <QDialog>
21#include "qgis_sip.h"
22
23#include "ui_qgsrendererpropsdialogbase.h"
24
25#include "qgsfeaturerequest.h"
26#include "qgis_gui.h"
27
28class QKeyEvent;
29
30class QgsVectorLayer;
31class QgsStyle;
32class QgsSymbol;
33class QgsPaintEffect;
35class QgsMapCanvas;
37class QgsMessageBar;
38
44class GUI_EXPORT QgsRendererPropertiesDialog : public QDialog, private Ui::QgsRendererPropsDialogBase
45{
46 Q_OBJECT
47
48 public:
57 QgsRendererPropertiesDialog( QgsVectorLayer *layer, QgsStyle *style, bool embedded = false, QWidget *parent SIP_TRANSFERTHIS = nullptr );
59
65 void setMapCanvas( QgsMapCanvas *canvas );
66
71 void setContext( const QgsSymbolWidgetContext &context );
72
78 void setDockMode( bool dockMode );
79
80 signals:
81
88
94
101 void showPanel( QgsPanelWidget *panel );
102
103 public slots:
105 void rendererChanged();
106
108 void apply();
109
111 void onOK();
112
123 void openPanel( QgsPanelWidget *panel );
124
125
126 private slots:
127 void showOrderByDialog();
128
129 void changeOrderBy( const QgsFeatureRequest::OrderBy &orderBy, bool orderByEnabled );
130
131 void updateUIState( bool hidden );
132
133 void syncToLayer();
134
135 protected:
143 void connectValueChanged( const QList<QWidget *> &widgets );
144
145 // Reimplements dialog keyPress event so we can ignore it
146 void keyPressEvent( QKeyEvent *event ) override;
147
148 QgsVectorLayer *mLayer = nullptr;
149 QgsStyle *mStyle = nullptr;
150
151 QgsRendererWidget *mActiveWidget = nullptr;
152
153 QgsPaintEffect *mPaintEffect = nullptr;
154
155 QgsMapCanvas *mMapCanvas = nullptr;
156 QgsMessageBar *mMessageBar = nullptr;
157
159
160 private:
161 static void initRendererWidgetFunctions();
162
163 bool mDockMode = false;
164
165 friend class QgsAppScreenShots;
166};
167
168
169#endif
Represents a list of OrderByClauses, with the most important first and the least important last.
Map canvas is a class for displaying all GIS data types on a canvas.
A bar for displaying non-blocking messages to the user.
Base class for visual effects which can be applied to QPicture drawings.
Base class for any widget that can be shown as an inline panel.
A dialog for configuring vector layer renderers.
void showPanel(QgsPanelWidget *panel)
Emit when you require a panel to be show in the interface.
void layerVariablesChanged()
Emitted when expression context variables on the associated vector layers have been changed.
void widgetChanged()
Emitted when something on the widget has changed.
Base class for renderer settings widgets.
A database of saved style entities, including symbols, color ramps, text formats and others.
Definition qgsstyle.h:88
Contains settings which reflect the context in which a symbol (or renderer) widget is shown,...
Abstract base class for all rendered symbols.
Definition qgssymbol.h:231
Represents a vector layer which manages a vector based dataset.
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:53