File indexing completed on 2024-03-24 05:57:04
0001 /* 0002 SPDX-FileCopyrightText: 2009-2010 Tom Albers <toma@kde.org> 0003 SPDX-FileCopyrightText: 2010 Juan Luis Baptiste <juan.baptiste@gmail.com> 0004 0005 SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 #ifndef BREAKCONTROL_H 0009 #define BREAKCONTROL_H 0010 0011 #include <QWidget> 0012 0013 class QLabel; 0014 class QPushButton; 0015 class QVBoxLayout; 0016 0017 class BreakControl : public QWidget 0018 { 0019 Q_OBJECT 0020 0021 public: 0022 BreakControl(QWidget *, Qt::WindowType); 0023 void setText(const QString &); 0024 void showMinimize(bool show); 0025 void showLock(bool show); 0026 void showPostpone(bool arg1); 0027 0028 protected: 0029 void paintEvent(QPaintEvent *event) override; 0030 0031 private slots: 0032 void slotCenterIt(); 0033 void slotLock(); 0034 0035 signals: 0036 void skip(); 0037 void lock(); 0038 void postpone(); 0039 0040 private: 0041 QLabel *m_textLabel; 0042 QPushButton *m_skipButton; 0043 QPushButton *m_lockButton; 0044 QVBoxLayout *m_vbox; 0045 QPushButton *m_postponeButton; 0046 }; 0047 0048 #endif // BREAKCONTROL_H