QGIS API Documentation 3.36.0-Maidenhead (09951dc0acf)
Loading...
Searching...
No Matches
qgsplaybackcontrollerwidget.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsplaybackcontrollerwidget.h
3 --------------------------------------
4 begin : November 2023
5 copyright : (C) 2023 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 QGSPLAYBACKCONTROLLERWIDGET_H
17#define QGSPLAYBACKCONTROLLERWIDGET_H
18
19#include "ui_qgsplaybackcontrollerwidgetbase.h"
20#include "qgis_sip.h"
21#include "qgis_gui.h"
22#include "qgis.h"
23#include <QWidget>
24
30class GUI_EXPORT QgsPlaybackControllerWidget : public QWidget, private Ui::QgsPlaybackControllerWidgetBase
31{
32 Q_OBJECT
33
34 public:
35
39 explicit QgsPlaybackControllerWidget( QWidget *parent SIP_TRANSFERTHIS = nullptr );
40
44 QPushButton *button( Qgis::PlaybackOperation operation );
45
46 public slots:
47
51 void setState( Qgis::AnimationState state );
52
56 void togglePause();
57
58 signals:
59
64
65 private slots:
66
67 void togglePlayForward();
68 void togglePlayBackward();
69 void pause();
70 void next();
71 void previous();
72 void skipToEnd();
73 void rewindToStart();
74
75 private:
76
78 bool mPlayingForward = true;
79};
80
81#endif // QGSPLAYBACKCONTROLLERWIDGET_H
PlaybackOperation
Media playback operations.
Definition qgis.h:2064
AnimationState
Animation states.
Definition qgis.h:2051
@ Idle
Animation is paused.
A compound widget containing a set of buttons for controlling media playback.
void operationTriggered(Qgis::PlaybackOperation operation)
Emitted when a playback operation is triggered.
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:53