QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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 
33  bool usingLevels() const;
34 
35  // used by rule-based renderer (to hide checkbox to enable/disable ordering)
36  void setForceOrderingEnabled( bool enabled );
37 
38  public slots:
39  void updateUi();
40 
41  void renderingPassChanged( int row, int column );
42 
43  protected:
44  void populateTable();
45  void setDefaultLevels();
46 
47  protected:
53 };
54 
55 #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