QGIS API Documentation  2.12.0-Lyon
qgspainteffectpropertieswidget.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgspainteffectpropertieswidget.h
3  --------------------------------
4  begin : January 2015
5  copyright : (C) 2015 by Nyall Dawson
6  email : nyall dot dawson 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 QGSPAINTEFFECTPROPERTIESWIDGET_H
17 #define QGSPAINTEFFECTPROPERTIESWIDGET_H
18 
19 #include "ui_qgseffectpropertieswidget.h"
20 
21 class QgsPaintEffect;
22 
23 
31 class GUI_EXPORT QgsPaintEffectPropertiesWidget : public QWidget, private Ui::EffectPropertiesWidget
32 {
33  Q_OBJECT
34 
35  public:
36 
41  QgsPaintEffectPropertiesWidget( QgsPaintEffect* effect, QWidget* parent = NULL );
42 
43  public slots:
44 
47  void effectTypeChanged();
48 
51  void emitSignalChanged();
52 
53  signals:
54 
57  void changed();
58 
61  void changeEffect( QgsPaintEffect* effect );
62 
63  private:
64 
65  QgsPaintEffect* mEffect;
66 
67  void populateEffectTypes();
68  void updateEffectWidget( QgsPaintEffect* effect );
69 
70 };
71 
72 #endif //QGSPAINTEFFECTPROPERTIESWIDGET_H
Base class for visual effects which can be applied to QPicture drawings.
A widget which modifies the properties of a QgsPaintEffect.