QGIS API Documentation  master-6227475
src/gui/symbology-ng/qgssymbollevelsv2dialog.h
Go to the documentation of this file.
00001 /***************************************************************************
00002     qgssymbollevelsv2dialog.h
00003     ---------------------
00004     begin                : November 2009
00005     copyright            : (C) 2009 by Martin Dobias
00006     email                : wonder dot sk at gmail dot com
00007  ***************************************************************************
00008  *                                                                         *
00009  *   This program is free software; you can redistribute it and/or modify  *
00010  *   it under the terms of the GNU General Public License as published by  *
00011  *   the Free Software Foundation; either version 2 of the License, or     *
00012  *   (at your option) any later version.                                   *
00013  *                                                                         *
00014  ***************************************************************************/
00015 #ifndef QGSSYMBOLLEVELSV2DIALOG_H
00016 #define QGSSYMBOLLEVELSV2DIALOG_H
00017 
00018 #include <QDialog>
00019 #include <QList>
00020 
00021 #include "qgsrendererv2.h"
00022 
00023 #include "ui_qgssymbollevelsv2dialogbase.h"
00024 
00025 
00026 class GUI_EXPORT QgsSymbolLevelsV2Dialog : public QDialog, private Ui::QgsSymbolLevelsV2DialogBase
00027 {
00028     Q_OBJECT
00029   public:
00030     // @note not available in python bindings
00031     QgsSymbolLevelsV2Dialog( QgsLegendSymbolList list, bool usingSymbolLevels, QWidget* parent = NULL );
00032 
00033     bool usingLevels() const;
00034 
00035     // used by rule-based renderer (to hide checkbox to enable/disable ordering)
00036     void setForceOrderingEnabled( bool enabled );
00037 
00038   public slots:
00039     void updateUi();
00040 
00041     void renderingPassChanged( int row, int column );
00042 
00043   protected:
00044     void populateTable();
00045     void setDefaultLevels();
00046 
00047   protected:
00049     int mMaxLayers;
00050     QgsLegendSymbolList mList;
00052     bool mForceOrderingEnabled;
00053 };
00054 
00055 #endif // QGSSYMBOLLEVELSV2DIALOG_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines