QGIS API Documentation  2.6.0-Brighton
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
qgsdatadefinedsymboldialog.h
Go to the documentation of this file.
1 #ifndef QGSDATADEFINEDSYMBOLLAYERDIALOG_H
2 #define QGSDATADEFINEDSYMBOLLAYERDIALOG_H
3 
4 #include "ui_qgsdatadefinedsymboldialogbase.h"
5 #include <QDialog>
6 
7 class QgsVectorLayer;
8 class QComboBox;
9 
10 
11 
12 class GUI_EXPORT QgsDataDefinedSymbolDialog: public QDialog, private Ui::QgsDataDefinedSymbolDialog
13 {
14  Q_OBJECT
15  public:
16 
18  {
19  DataDefinedSymbolEntry( const QString& p, const QString& t, const QString& v, const QString& h ):
20  property( p ), title( t ), initialValue( v ), helpText( h ) {}
21  QString property;
22  QString title;
23  QString initialValue;
24  QString helpText;
25  };
26 
27  QgsDataDefinedSymbolDialog( const QList< DataDefinedSymbolEntry >& entries, const QgsVectorLayer* vl, QWidget * parent = 0, Qt::WindowFlags f = 0 );
29  QMap< QString, QString > dataDefinedProperties() const;
30 
31  //common help texts
32  static QString doubleHelpText();
33  static QString colorHelpText();
34  static QString offsetHelpText();
35  static QString fileNameHelpText();
36  static QString horizontalAnchorHelpText();
37  static QString verticalAnchorHelpText();
38  static QString gradientTypeHelpText();
39  static QString gradientCoordModeHelpText();
40  static QString gradientSpreadHelpText();
41  static QString boolHelpText();
42 
43  private:
44  const QgsVectorLayer* mVectorLayer;
45 };
46 
47 #endif // QGSDATADEFINEDSYMBOLLAYERDIALOG_H