QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
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
21
#include "
qgis.h
"
22
#include "qgis_gui.h"
23
#include "
qgis_sip.h
"
24
25
#include <QWidget>
26
32
class
GUI_EXPORT
QgsPlaybackControllerWidget
:
public
QWidget,
private
Ui::QgsPlaybackControllerWidgetBase
33
{
34
Q_OBJECT
35
36
public
:
40
explicit
QgsPlaybackControllerWidget
( QWidget *parent
SIP_TRANSFERTHIS
=
nullptr
);
41
45
QPushButton *
button
(
Qgis::PlaybackOperation
operation );
46
47
public
slots:
48
52
void
setState
(
Qgis::AnimationState
state );
53
57
void
togglePause
();
58
59
signals:
60
64
void
operationTriggered
(
Qgis::PlaybackOperation
operation );
65
66
private
slots:
67
68
void
togglePlayForward();
69
void
togglePlayBackward();
70
void
pause();
71
void
next();
72
void
previous();
73
void
skipToEnd();
74
void
rewindToStart();
75
76
private
:
77
Qgis::AnimationState
mAnimationState =
Qgis::AnimationState::Idle
;
78
bool
mPlayingForward =
true
;
79
};
80
81
#endif
// QGSPLAYBACKCONTROLLERWIDGET_H
Qgis::PlaybackOperation
PlaybackOperation
Media playback operations.
Definition
qgis.h:2770
Qgis::AnimationState
AnimationState
Animation states.
Definition
qgis.h:2757
Qgis::AnimationState::Idle
@ Idle
Animation is paused.
Definition
qgis.h:2760
QgsPlaybackControllerWidget::operationTriggered
void operationTriggered(Qgis::PlaybackOperation operation)
Emitted when a playback operation is triggered.
QgsPlaybackControllerWidget::setState
void setState(Qgis::AnimationState state)
Sets the current animation state for the widget.
Definition
qgsplaybackcontrollerwidget.cpp:66
QgsPlaybackControllerWidget::QgsPlaybackControllerWidget
QgsPlaybackControllerWidget(QWidget *parent=nullptr)
Constructor for QgsPlaybackControllerWidget, with the specified parent widget.
Definition
qgsplaybackcontrollerwidget.cpp:20
QgsPlaybackControllerWidget::togglePause
void togglePause()
Toggles the pause state on or off.
Definition
qgsplaybackcontrollerwidget.cpp:90
QgsPlaybackControllerWidget::button
QPushButton * button(Qgis::PlaybackOperation operation)
Returns the button associated with the specified playback operation.
Definition
qgsplaybackcontrollerwidget.cpp:44
qgis.h
qgis_sip.h
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition
qgis_sip.h:52
Generated on
for QGIS API Documentation by
1.17.0