/
qgsdecorationlayoutextentdialog.h
53 lines (42 loc) · 1.86 KB
/
qgsdecorationlayoutextentdialog.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
/***************************************************************************
qgsdecorationlayoutextentdialog.h
-------------------
begin : May 2017
copyright : (C) 2017 by Nyall Dawson
email : nyall dot dawson 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 QGSDECORATIONLAYOUTEXTENTDIALOG_H
#define QGSDECORATIONLAYOUTEXTENTDIALOG_H
#include "ui_qgsdecorationlayoutextentdialog.h"
#include <QDialog>
#include "qgis_app.h"
#include "qgstextrenderer.h"
#include "qgshelp.h"
#include <memory>
class QgsDecorationLayoutExtent;
class QgsFillSymbol;
class APP_EXPORT QgsDecorationLayoutExtentDialog : public QDialog, private Ui::QgsDecorationLayoutExtentDialog
{
Q_OBJECT
public:
QgsDecorationLayoutExtentDialog( QgsDecorationLayoutExtent &decoration, QWidget *parent = nullptr );
~QgsDecorationLayoutExtentDialog() override;
private slots:
void apply();
void buttonBox_accepted();
void buttonBox_rejected();
void showHelp();
private:
QgsDecorationLayoutExtent &mDeco;
void updateGuiElements();
void updateDecoFromGui();
};
#endif // QGSDECORATIONLAYOUTEXTENTDIALOG_H