Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_transport_controls.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2020 Emmet O 'Neill <emmetoneill.pdx@gmail.com>
3 * SPDX-FileCopyrightText: 2020 Eoin O 'Neill <eoinoneill1991@gmail.com>
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 */
7
8#ifndef KISTRANSPORTCONTROLS_H
9#define KISTRANSPORTCONTROLS_H
10
11#include "kritaui_export.h"
12
13#include <QWidget>
14class QToolButton;
15
16
23class KRITAUI_EXPORT KisTransportControls : public QWidget
24{
25 Q_OBJECT
26
27public:
28 KisTransportControls(QWidget* parent = nullptr);
30
31 QSize sizeHint() const override;
32
33public Q_SLOTS:
39 void setPlaying(bool playing);
40
41 void showStateButtons(bool show);
42 void showSeekButtons(bool show);
43 void showSkipButtons(bool show);
44
45Q_SIGNALS:
46 void skipBack();
47 void back();
48 void stop();
49 void playPause();
50 void forward();
52
53private:
54 QToolButton* buttonSkipBack;
55 QToolButton* buttonBack;
56 QToolButton* buttonStop;
57 QToolButton* buttonPlayPause;
58 QToolButton* buttonForward;
59 QToolButton* buttonSkipForward;
60};
61
62#endif // KISTRANSPORTCONTROLS_H
The KisTransportControls class provides a simple, reusable widget for common transport controls,...