mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
refact1
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
#ifndef SPECIALMESSAGEBOX_H
|
||||
#define SPECIALMESSAGEBOX_H
|
||||
|
||||
#include <QDialog>
|
||||
#include "instructorsAndTrainees_global.h"
|
||||
|
||||
namespace Ui {
|
||||
class SpecialMessageBox;
|
||||
}
|
||||
|
||||
class INSTRUCTORSANDTRAINEES_EXPORT 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
|
||||
Reference in New Issue
Block a user