QGIS API Documentation 3.41.0-Master (af5edcb665c)
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:
40 QgsSymbolAnimationSettingsWidget( QWidget *parent SIP_TRANSFERTHIS = nullptr );
41
47 void setAnimationSettings( const QgsSymbolAnimationSettings &settings );
48
54 QgsSymbolAnimationSettings animationSettings() const;
55
56 private:
57 bool mBlockUpdates = false;
58};
59
65class GUI_EXPORT QgsSymbolAnimationSettingsDialog : public QDialog
66{
67 Q_OBJECT
68 public:
70 QgsSymbolAnimationSettingsDialog( QWidget *parent SIP_TRANSFERTHIS = nullptr, Qt::WindowFlags f = Qt::WindowFlags() );
71
77 void setAnimationSettings( const QgsSymbolAnimationSettings &settings );
78
84 QgsSymbolAnimationSettings animationSettings() const;
85
86 private:
87 QgsSymbolAnimationSettingsWidget *mWidget = nullptr;
88};
89
90#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