-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqgsdiagramproperties.h
63 lines (48 loc) · 2.27 KB
/
qgsdiagramproperties.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/***************************************************************************
qgsdiagramproperties.h
Properties for diagram layers
-------------------
begin : August 2012
copyright : (C) Matthias Kuhn
email : matthias at opengis dot ch
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef QGSDIAGRAMPROPERTIES_H
#define QGSDIAGRAMPROPERTIES_H
#include <QDialog>
#include <ui_qgsdiagrampropertiesbase.h>
class QgsVectorLayer;
class APP_EXPORT QgsDiagramProperties : public QWidget, private Ui::QgsDiagramPropertiesBase
{
Q_OBJECT
public:
QgsDiagramProperties( QgsVectorLayer* layer, QWidget* parent );
~QgsDiagramProperties();
/** Adds an attribute from the list of available attributes to the assigned attributes with a random color.*/
void addAttribute( QTreeWidgetItem * item );
public slots:
void apply();
void on_mDiagramTypeComboBox_currentIndexChanged( int index );
void on_mAddCategoryPushButton_clicked();
void on_mAttributesTreeWidget_itemDoubleClicked( QTreeWidgetItem * item, int column );
void on_mFindMaximumValueButton_clicked();
void on_mRemoveCategoryPushButton_clicked();
void on_mDiagramFontButton_clicked();
void on_mDiagramAttributesTreeWidget_itemDoubleClicked( QTreeWidgetItem * item, int column );
void on_mEngineSettingsButton_clicked();
void showAddAttributeExpressionDialog();
void on_mDiagramStackedWidget_currentChanged( int index );
void on_mPlacementComboBox_currentIndexChanged( int index );
protected:
QFont mDiagramFont;
QgsVectorLayer* mLayer;
private:
QString guessLegendText( const QString &expression );
};
#endif // QGSDIAGRAMPROPERTIES_H