QGIS API Documentation  master-6227475
src/gui/symbology-ng/qgslayerpropertieswidget.h
Go to the documentation of this file.
00001 /***************************************************************************
00002     qgslayerpropertieswidget.h
00003     ---------------------
00004     begin                : June 2012
00005     copyright            : (C) 2012 by Martin Dobias
00006     email                : aruntheguy at gmail.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 
00016 #ifndef QGSLAYERPROPERTIESWIDGET_H
00017 #define QGSLAYERPROPERTIESWIDGET_H
00018 
00019 #include "ui_widget_layerproperties.h"
00020 
00021 class QgsSymbolV2;
00022 class QgsSymbolLayerV2;
00023 class QgsSymbolLayerV2Widget;
00024 class QgsVectorLayer;
00025 
00026 class SymbolLayerItem;
00027 
00028 #include <QMap>
00029 #include <QStandardItemModel>
00030 
00031 
00032 class GUI_EXPORT QgsLayerPropertiesWidget : public QWidget, private Ui::LayerPropertiesWidget
00033 {
00034     Q_OBJECT
00035 
00036   public:
00037     QgsLayerPropertiesWidget( QgsSymbolLayerV2* layer, const QgsSymbolV2* symbol, const QgsVectorLayer* vl, QWidget* parent = NULL );
00038 
00039   public slots:
00040     void layerTypeChanged();
00041     void emitSignalChanged();
00042 
00043   signals:
00044     void changed();
00045     void changeLayer( QgsSymbolLayerV2* );
00046 
00047   protected:
00048     void populateLayerTypes();
00049     void updateSymbolLayerWidget( QgsSymbolLayerV2* layer );
00050 
00051   protected: // data
00052     QgsSymbolLayerV2* mLayer;
00053 
00054     const QgsSymbolV2* mSymbol;
00055     const QgsVectorLayer* mVectorLayer;
00056 };
00057 
00058 #endif //QGSLAYERPROPERTIESWIDGET_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines