2023-09-16 14:09:21 +02:00
|
|
|
#ifndef LOGDOCTOR__DIALOGS__BOOLEAN_DIALOG_H
|
|
|
|
#define LOGDOCTOR__DIALOGS__BOOLEAN_DIALOG_H
|
|
|
|
|
2022-10-05 21:20:42 +02:00
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
2022-10-23 16:41:36 +02:00
|
|
|
|
2022-10-05 21:20:42 +02:00
|
|
|
namespace Ui {
|
|
|
|
class DialogBool;
|
|
|
|
}
|
|
|
|
|
2022-11-19 00:07:56 +01:00
|
|
|
//! DialogBool
|
|
|
|
/*!
|
|
|
|
YES/NO choice dialog
|
|
|
|
*/
|
2024-01-21 16:35:00 +01:00
|
|
|
class DialogBool final : public QDialog
|
2022-10-05 21:20:42 +02:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2022-11-19 00:07:56 +01:00
|
|
|
|
|
|
|
/*!
|
|
|
|
\param title The title
|
|
|
|
\param text The message
|
|
|
|
\param parent The parent Widget
|
|
|
|
*/
|
2023-01-23 19:07:24 +01:00
|
|
|
explicit DialogBool( const QString& title, const QString& text, QWidget *parent=nullptr );
|
2024-02-12 20:36:43 +01:00
|
|
|
Q_DISABLE_COPY_MOVE(DialogBool)
|
2022-10-05 21:20:42 +02:00
|
|
|
|
|
|
|
private slots:
|
2022-11-19 00:07:56 +01:00
|
|
|
|
|
|
|
//! Called when the NO button gets clicked
|
2022-10-05 21:20:42 +02:00
|
|
|
void on_button_NO_clicked();
|
|
|
|
|
2022-11-19 00:07:56 +01:00
|
|
|
//! Called when the YES button gets clicked
|
2022-10-05 21:20:42 +02:00
|
|
|
void on_button_YES_clicked();
|
|
|
|
|
|
|
|
private:
|
2023-08-27 18:49:34 +02:00
|
|
|
QSharedPointer<Ui::DialogBool> ui;
|
2022-10-05 21:20:42 +02:00
|
|
|
};
|
|
|
|
|
2023-09-16 14:09:21 +02:00
|
|
|
|
|
|
|
#endif // LOGDOCTOR__DIALOGS__BOOLEAN_DIALOG_H
|