-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqgsdecorationgriddialog.h
66 lines (54 loc) · 2.21 KB
/
qgsdecorationgriddialog.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
64
65
66
/***************************************************************************
qgsdecorationgriddialog.h
----------------------
begin : May 10, 2012
copyright : (C) 2012 by Etienne Tourigny
email : etourigny.dev at gmail dot com
***************************************************************************/
/***************************************************************************
* *
* 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 QGSDECORATIONGRIDDIALOG_H
#define QGSDECORATIONGRIDDIALOG_H
#include "ui_qgsdecorationgriddialog.h"
#include <QDialog>
#include "qgis_app.h"
class QgsDecorationGrid;
class QgsLineSymbol;
class QgsMarkerSymbol;
/**
@author Etienne Tourigny
*/
class APP_EXPORT QgsDecorationGridDialog : public QDialog, private Ui::QgsDecorationGridDialog
{
Q_OBJECT
public:
QgsDecorationGridDialog( QgsDecorationGrid &decoGrid, QWidget *parent = nullptr );
~QgsDecorationGridDialog();
private slots:
void apply();
void on_buttonBox_accepted();
void on_buttonBox_rejected();
void on_buttonBox_helpRequested();
void on_mGridTypeComboBox_currentIndexChanged( int index );
void on_mLineSymbolButton_clicked();
void on_mMarkerSymbolButton_clicked();
void on_mPbtnUpdateFromExtents_clicked();
void on_mPbtnUpdateFromLayer_clicked();
// from composer map
/* void on_mLineColorButton_clicked(); */
void on_mAnnotationFontButton_clicked();
private:
QgsDecorationGrid &mDeco;
QgsLineSymbol *mLineSymbol = nullptr;
QgsMarkerSymbol *mMarkerSymbol = nullptr;
void updateGuiElements();
void updateDecoFromGui();
void updateInterval( bool force = false );
};
#endif