mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
46 lines
927 B
C++
46 lines
927 B
C++
#ifndef SPECIALMESSAGEBOX_H
|
|
#define SPECIALMESSAGEBOX_H
|
|
|
|
#include <QDialog>
|
|
|
|
namespace Ui {
|
|
class SpecialMessageBox;
|
|
}
|
|
|
|
class SpecMsgBox : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
enum TypeSpecMsgBox {
|
|
warningYesNo,
|
|
warningClose,
|
|
criticalClose,
|
|
infoOk
|
|
};
|
|
|
|
private:
|
|
explicit SpecMsgBox(QWidget *parent, TypeSpecMsgBox type, const QString& text);
|
|
public:
|
|
~SpecMsgBox();
|
|
|
|
public:
|
|
static int WarningYesNo(QWidget *parent, const QString& text);
|
|
static int WarningClose(QWidget *parent, const QString& text);
|
|
static int CriticalClose(QWidget *parent, const QString& text);
|
|
static int InfoOk(QWidget *parent, const QString& text);
|
|
|
|
private:
|
|
static int work(QWidget *parent, TypeSpecMsgBox type, const QString& text);
|
|
|
|
private slots:
|
|
void on_btnYes_clicked();
|
|
|
|
void on_btnNo_clicked();
|
|
|
|
private:
|
|
Ui::SpecialMessageBox *ui;
|
|
};
|
|
|
|
#endif // SPECIALMESSAGEBOX_H
|