1 // File : SUPERVGUI_Notification.h
2 // Created : 21 / 02 / 2002
3 // Author : Francis KLOSS
8 #ifndef SUPERVGUI_Notification_H
9 #define SUPERVGUI_Notification_H
12 #include "SUPERVGUI_Def.h"
15 #include <qcheckbox.h>
16 #include <qlineedit.h>
17 #include <qpushbutton.h>
22 class SUPERVGUI_NotifWidget;
24 class SUPERVGUI_Notification: public QDialog
29 SUPERVGUI_Notification(SUPERVGUI_Main* m);
30 ~SUPERVGUI_Notification();
33 void setLogged( bool on, QString logFile = QString::null );
36 void setFiltered( bool on );
38 void setWarning( bool on );
40 void setStep( bool on );
42 void setTrace( bool on );
44 void setVerbose( bool on );
53 SUPERVGUI_Main* myMain;
57 QPushButton* myCancelBtn;
58 QCheckBox* myLogCheck;
59 QCheckBox* myFilterCheck;
60 QLineEdit* myFileEdit;
61 QPushButton* myBrowseBtn;
62 SUPERVGUI_NotifWidget* myMainNotif;
63 QList<SUPERVGUI_NotifWidget> myNotifList;
66 class SUPERVGUI_NotifWidget : public QWidget
69 SUPERVGUI_NotifWidget( QWidget* parent, SUPERVGUI_Node* n );
70 SUPERVGUI_NotifWidget( QWidget* parent, QString title );
71 ~SUPERVGUI_NotifWidget();
73 SUPERVGUI_Node* getNode() { return myNode; }
75 bool getWarning() { return myWarningCheck->isChecked(); }
76 bool getStep() { return myStepCheck->isChecked(); }
77 bool getTrace() { return myTraceCheck->isChecked(); }
78 bool getVerbose() { return myVerboseCheck->isChecked(); }
80 void setWarning( bool on ) { myWarningCheck->setChecked( on ); }
81 void setStep( bool on ) { myStepCheck->setChecked( on ); }
82 void setTrace( bool on ) { myTraceCheck->setChecked( on ); }
83 void setVerbose( bool on ) { myVerboseCheck->setChecked( on ); }
90 SUPERVGUI_Node* myNode;
91 QCheckBox* myWarningCheck;
92 QCheckBox* myStepCheck;
93 QCheckBox* myTraceCheck;
94 QCheckBox* myVerboseCheck;