File indexing completed on 2024-06-09 04:52:57
0001 /* 0002 SPDX-FileCopyrightText: 2007-2009 Sergio Pistone <sergio_pistone@yahoo.com.ar> 0003 SPDX-FileCopyrightText: 2010-2022 Mladen Milinkovic <max@smoothware.net> 0004 0005 SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 #ifndef ACTIONDIALOG_H 0009 #define ACTIONDIALOG_H 0010 0011 #include <QDialog> 0012 #include <QDialogButtonBox> 0013 #include <QPushButton> 0014 0015 QT_FORWARD_DECLARE_CLASS(QGridLayout) 0016 QT_FORWARD_DECLARE_CLASS(QVBoxLayout) 0017 QT_FORWARD_DECLARE_CLASS(QGroupBox) 0018 0019 namespace SubtitleComposer { 0020 class ActionDialog : public QDialog 0021 { 0022 Q_OBJECT 0023 0024 public: 0025 explicit ActionDialog(const QString &title, QWidget *parent = 0); 0026 0027 public slots: 0028 virtual int exec() override; 0029 virtual void show(); 0030 0031 protected: 0032 QGroupBox * createGroupBox(const QString &title = QString(), bool addToLayout = true); 0033 QGridLayout * createLayout(QGroupBox *groupBox); 0034 0035 protected: 0036 QWidget *m_mainWidget; 0037 QVBoxLayout *m_mainLayout; 0038 QDialogButtonBox *m_buttonBox; 0039 }; 0040 } 0041 #endif