1 /*-==============================================================-
3 file : CustomDialog.hpp
5 creation date : 08/02/2012
7 author : S. Domas (sdomas@iut-bm.univ-fcomte.fr)
11 supp. infos : saved in UTF-8 [éè]
13 -==============================================================-*/
14 #ifndef __CUSTOMDIALOG_H__
15 #define __CUSTOMDIALOG_H__
27 class CustomDialog : public QDialog {
33 CustomDialog(const QString &dialogTitle, const QString &boxTitle, QWidget *_parent = NULL);
38 QPushButton *okButton;
39 QPushButton *cancelButton;
41 void setContent(QVBoxLayout *boxLayout);
44 QHBoxLayout *layBottom;
47 virtual void checkBeforeAccept();
48 virtual bool confirmAccept();
51 #endif //__CUSTOMDIALOG_H__