QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
qgsrendererv2propertiesdialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsrendererv2propertiesdialog.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 QGSRENDERERV2PROPERTIESDIALOG_H
18 #define QGSRENDERERV2PROPERTIESDIALOG_H
19 
20 #include <QDialog>
21 
22 #include "ui_qgsrendererv2propsdialogbase.h"
23 
24 #include "qgsfeaturerequest.h"
25 
26 class QKeyEvent;
27 
28 class QgsVectorLayer;
29 class QgsStyleV2;
30 class QgsSymbolV2;
31 class QgsPaintEffect;
33 class QgsMapCanvas;
34 
38 class GUI_EXPORT QgsRendererV2PropertiesDialog : public QDialog, private Ui::QgsRendererV2PropsDialogBase
39 {
40  Q_OBJECT
41 
42  public:
43 
51  QgsRendererV2PropertiesDialog( QgsVectorLayer* layer, QgsStyleV2* style, bool embedded = false, QWidget* parent = nullptr );
53 
59  void setMapCanvas( QgsMapCanvas* canvas );
60 
66  void setDockMode( bool dockMode );
67 
68  signals:
74  void layerVariablesChanged();
75 
80  void widgetChanged();
81 
88  void showPanel( QgsPanelWidget* panel );
89 
90  public slots:
92  void rendererChanged();
93 
95  void apply();
96 
98  void onOK();
99 
110  void openPanel( QgsPanelWidget* panel );
111 
112 
113  private slots:
114  void showOrderByDialog();
115 
116  void changeOrderBy( const QgsFeatureRequest::OrderBy& orderBy, bool orderByEnabled );
117 
118  void updateUIState( bool hidden );
119 
120  void syncToLayer();
121 
122  protected:
131  void connectValueChanged( QList<QWidget *> widgets, const char *slot );
132 
134  void keyPressEvent( QKeyEvent * event ) override;
135 
138 
140 
142 
144 
146 
147  private:
148  bool mDockMode;
149 };
150 
151 
152 #endif
Base class for visual effects which can be applied to QPicture drawings.
Base class for any widget that can be shown as a inline panel.
Map canvas is a class for displaying all GIS data types on a canvas.
Definition: qgsmapcanvas.h:109
virtual void keyPressEvent(QKeyEvent *e)
Base class for renderer settings widgets.
Represents a vector layer which manages a vector based data sets.
Represents a list of OrderByClauses, with the most important first and the least important last...