|
Krita Source Code Documentation
|
The KisTransportControls class provides a simple, reusable widget for common transport controls, including play/pause, stop, seek and skip. The client code will want to add this widget, configure it, and hook into the appropriate signals. More...
#include <kis_transport_controls.h>
Inheritance diagram for KisTransportControls:Public Slots | |
| void | setPlaying (bool playing) |
| setPlaying flips the icon on the play/pause button. When playing, the button will show a pause icon. When paused, the button will show a play icon. | |
| void | showSeekButtons (bool show) |
| void | showSkipButtons (bool show) |
| void | showStateButtons (bool show) |
Signals | |
| void | back () |
| void | forward () |
| void | playPause () |
| void | skipBack () |
| void | skipForward () |
| void | stop () |
Public Member Functions | |
| KisTransportControls (QWidget *parent=nullptr) | |
| QSize | sizeHint () const override |
| ~KisTransportControls () | |
Private Attributes | |
| QToolButton * | buttonBack |
| QToolButton * | buttonForward |
| QToolButton * | buttonPlayPause |
| QToolButton * | buttonSkipBack |
| QToolButton * | buttonSkipForward |
| QToolButton * | buttonStop |
The KisTransportControls class provides a simple, reusable widget for common transport controls, including play/pause, stop, seek and skip. The client code will want to add this widget, configure it, and hook into the appropriate signals.
Definition at line 23 of file kis_transport_controls.h.
| KisTransportControls::KisTransportControls | ( | QWidget * | parent = nullptr | ) |
Definition at line 18 of file kis_transport_controls.cpp.
References back(), buttonBack, buttonForward, buttonPlayPause, buttonSkipBack, buttonSkipForward, buttonStop, connect(), forward(), KisIconUtils::loadIcon(), playPause(), showSeekButtons(), showSkipButtons(), showStateButtons(), skipBack(), skipForward(), and stop().
| KisTransportControls::~KisTransportControls | ( | ) |
Definition at line 86 of file kis_transport_controls.cpp.
|
signal |
|
signal |
|
signal |
|
slot |
setPlaying flips the icon on the play/pause button. When playing, the button will show a pause icon. When paused, the button will show a play icon.
Definition at line 95 of file kis_transport_controls.cpp.
References buttonPlayPause, and KisIconUtils::loadIcon().
|
slot |
Definition at line 115 of file kis_transport_controls.cpp.
References buttonBack, and buttonForward.
|
slot |
Definition at line 126 of file kis_transport_controls.cpp.
References buttonSkipBack, and buttonSkipForward.
|
slot |
Definition at line 104 of file kis_transport_controls.cpp.
References buttonPlayPause, and buttonStop.
|
override |
Definition at line 90 of file kis_transport_controls.cpp.
|
signal |
|
signal |
|
signal |
|
private |
Definition at line 55 of file kis_transport_controls.h.
|
private |
Definition at line 58 of file kis_transport_controls.h.
|
private |
Definition at line 57 of file kis_transport_controls.h.
|
private |
Definition at line 54 of file kis_transport_controls.h.
|
private |
Definition at line 59 of file kis_transport_controls.h.
|
private |
Definition at line 56 of file kis_transport_controls.h.