QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
qgsdatadefinedsymboldialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsdatadefinedsymboldialog.h
3  ---------------------
4  begin : March 2013
5  copyright : (C) 2013 by Marco Hugentobler
6  email : marco dot hugentobler at sourcepole dot ch
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 #ifndef QGSDATADEFINEDSYMBOLLAYERDIALOG_H
16 #define QGSDATADEFINEDSYMBOLLAYERDIALOG_H
17 
18 #include "ui_qgsdatadefinedsymboldialogbase.h"
19 #include <QDialog>
20 
21 class QgsVectorLayer;
22 class QComboBox;
23 
24 
29 class GUI_EXPORT QgsDataDefinedSymbolDialog: public QDialog, private Ui::QgsDataDefinedSymbolDialog
30 {
31  Q_OBJECT
32  public:
33 
35  {
36  DataDefinedSymbolEntry( const QString& p, const QString& t, const QString& v, const QString& h ):
37  property( p ), title( t ), initialValue( v ), helpText( h ) {}
42  };
43 
45  Q_DECL_DEPRECATED QgsDataDefinedSymbolDialog( const QList< DataDefinedSymbolEntry >& entries, const QgsVectorLayer* vl, QWidget * parent = nullptr, const Qt::WindowFlags& f = nullptr );
47 
49  Q_DECL_DEPRECATED QMap< QString, QString > dataDefinedProperties() const;
50 
51  //common help texts
53  Q_DECL_DEPRECATED static QString doubleHelpText();
55  Q_DECL_DEPRECATED static QString colorHelpText();
57  Q_DECL_DEPRECATED static QString offsetHelpText();
59  Q_DECL_DEPRECATED static QString fileNameHelpText();
61  Q_DECL_DEPRECATED static QString horizontalAnchorHelpText();
63  Q_DECL_DEPRECATED static QString verticalAnchorHelpText();
65  Q_DECL_DEPRECATED static QString gradientTypeHelpText();
67  Q_DECL_DEPRECATED static QString gradientCoordModeHelpText();
69  Q_DECL_DEPRECATED static QString gradientSpreadHelpText();
71  Q_DECL_DEPRECATED static QString boolHelpText();
73  Q_DECL_DEPRECATED static QString lineStyleHelpText();
75  Q_DECL_DEPRECATED static QString joinStyleHelpText();
77  Q_DECL_DEPRECATED static QString capStyleHelpText();
79  Q_DECL_DEPRECATED static QString fillStyleHelpText();
80 
81  private:
82  const QgsVectorLayer* mVectorLayer;
83 };
84 
85 #endif // QGSDATADEFINEDSYMBOLLAYERDIALOG_H
DataDefinedSymbolEntry(const QString &p, const QString &t, const QString &v, const QString &h)
typedef WindowFlags
Represents a vector layer which manages a vector based data sets.