QGIS API Documentation 3.41.0-Master (3440c17df1d)
Loading...
Searching...
No Matches
qgssymbolanimationsettingswidget.h
Go to the documentation of this file.
1/***************************************************************************
2 qgssymbolanimationsettingswidget.h
3 ---------------------
4 begin : April 2022
5 copyright : (C) 2022 by Nyall Dawson
6 email : nyall dot dawson at gmail dot com
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
16#ifndef QGSSYMBOLANIMATIONSETTINGSWIDGET_H
17#define QGSSYMBOLANIMATIONSETTINGSWIDGET_H
18
19#include "ui_qgssymbolanimationsettingswidgetbase.h"
20
21#include "qgis_gui.h"
22#include "qgis_sip.h"
23#include "qgspanelwidget.h"
24
25#include <QDialog>
26
28
29
35class GUI_EXPORT QgsSymbolAnimationSettingsWidget: public QgsPanelWidget, private Ui::QgsSymbolAnimationSettingsWidgetBase
36{
37 Q_OBJECT
38 public:
39
41 QgsSymbolAnimationSettingsWidget( QWidget *parent SIP_TRANSFERTHIS = nullptr );
42
48 void setAnimationSettings( const QgsSymbolAnimationSettings &settings );
49
55 QgsSymbolAnimationSettings animationSettings() const;
56
57 private:
58
59 bool mBlockUpdates = false;
60
61};
62
68class GUI_EXPORT QgsSymbolAnimationSettingsDialog : public QDialog
69{
70 Q_OBJECT
71 public:
72
74 QgsSymbolAnimationSettingsDialog( QWidget *parent SIP_TRANSFERTHIS = nullptr, Qt::WindowFlags f = Qt::WindowFlags() );
75
81 void setAnimationSettings( const QgsSymbolAnimationSettings &settings );
82
88 QgsSymbolAnimationSettings animationSettings() const;
89
90 private:
91
92 QgsSymbolAnimationSettingsWidget *mWidget = nullptr;
93
94};
95
96#endif // QGSSYMBOLANIMATIONSETTINGSWIDGET_H
Base class for any widget that can be shown as a inline panel.
A dialog for customising animation settings for a symbol.
A widget for customising animation settings for a symbol.
Contains settings relating to symbol animation.
Definition qgssymbol.h:41
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:53