QGIS API Documentation  2.7.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
qgssymbollevelsv2dialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgssymbollevelsv2dialog.h
3  ---------------------
4  begin : November 2009
5  copyright : (C) 2009 by Martin Dobias
6  email : wonder dot sk at gmail dot com
7  ***************************************************************************
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  ***************************************************************************/
15 #ifndef QGSSYMBOLLEVELSV2DIALOG_H
16 #define QGSSYMBOLLEVELSV2DIALOG_H
17 
18 #include <QDialog>
19 #include <QList>
20 
21 #include "qgsrendererv2.h"
22 
23 #include "ui_qgssymbollevelsv2dialogbase.h"
24 
25 
26 class GUI_EXPORT QgsSymbolLevelsV2Dialog : public QDialog, private Ui::QgsSymbolLevelsV2DialogBase
27 {
28  Q_OBJECT
29  public:
30  // @note not available in python bindings
31  QgsSymbolLevelsV2Dialog( QgsLegendSymbolList list, bool usingSymbolLevels, QWidget* parent = NULL );
32 
34 
35  bool usingLevels() const;
36 
37  // used by rule-based renderer (to hide checkbox to enable/disable ordering)
38  void setForceOrderingEnabled( bool enabled );
39 
40  public slots:
41  void updateUi();
42 
43  void renderingPassChanged( int row, int column );
44 
45  protected:
46  void populateTable();
47  void setDefaultLevels();
48 
49  protected:
55 };
56 
57 #endif // QGSSYMBOLLEVELSV2DIALOG_H
int mMaxLayers
maximal number of layers from all symbols
bool mForceOrderingEnabled
whether symbol layers always should be used (default false)
QList< QPair< QString, QgsSymbolV2 * > > QgsLegendSymbolList
Definition: qgsrendererv2.h:41