QGIS API Documentation  2.6.0-Brighton
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
qgslayerpropertieswidget.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgslayerpropertieswidget.h
3  ---------------------
4  begin : June 2012
5  copyright : (C) 2012 by Martin Dobias
6  email : aruntheguy at gmail.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 
16 #ifndef QGSLAYERPROPERTIESWIDGET_H
17 #define QGSLAYERPROPERTIESWIDGET_H
18 
19 #include "ui_widget_layerproperties.h"
20 
21 class QgsSymbolV2;
22 class QgsSymbolLayerV2;
24 class QgsVectorLayer;
25 
26 class SymbolLayerItem;
27 
28 #include <QMap>
29 #include <QStandardItemModel>
30 
31 
32 class GUI_EXPORT QgsLayerPropertiesWidget : public QWidget, private Ui::LayerPropertiesWidget
33 {
34  Q_OBJECT
35 
36  public:
37  QgsLayerPropertiesWidget( QgsSymbolLayerV2* layer, const QgsSymbolV2* symbol, const QgsVectorLayer* vl, QWidget* parent = NULL );
38 
39  public slots:
40  void layerTypeChanged();
41  void emitSignalChanged();
42 
43  signals:
44  void changed();
45  void changeLayer( QgsSymbolLayerV2* );
46 
47  protected:
48  void populateLayerTypes();
49  void updateSymbolLayerWidget( QgsSymbolLayerV2* layer );
50 
51  protected: // data
53 
56 };
57 
58 #endif //QGSLAYERPROPERTIESWIDGET_H