1 // SUPERV SUPERVGUI : GUI for Supervisor component
3 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
24 // File : SUPERVGUI_Notification.h
25 // Author : Francis KLOSS
28 #ifndef SUPERVGUI_Notification_H
29 #define SUPERVGUI_Notification_H
32 #include "SUPERVGUI_Def.h"
35 #include <qcheckbox.h>
36 #include <qlineedit.h>
37 #include <qpushbutton.h>
41 class SUPERVGUI_CanvasNode;
42 class SUPERVGUI_NotifWidget;
44 class SUPERVGUI_Notification: public QDialog
49 SUPERVGUI_Notification(SUPERVGUI_Main* m);
50 ~SUPERVGUI_Notification();
53 void setLogged( bool on, QString logFile = QString::null );
56 void setFiltered( bool on );
58 void setWarning( bool on );
60 void setStep( bool on );
62 void setTrace( bool on );
64 void setVerbose( bool on );
73 SUPERVGUI_Main* myMain;
77 QPushButton* myCancelBtn;
78 QCheckBox* myLogCheck;
79 QCheckBox* myFilterCheck;
80 QLineEdit* myFileEdit;
81 QPushButton* myBrowseBtn;
82 SUPERVGUI_NotifWidget* myMainNotif;
83 QList<SUPERVGUI_NotifWidget> myNotifList;
86 class SUPERVGUI_NotifWidget : public QWidget
89 SUPERVGUI_NotifWidget( QWidget* parent, SUPERVGUI_CanvasNode* n );
90 SUPERVGUI_NotifWidget( QWidget* parent, QString title );
91 ~SUPERVGUI_NotifWidget();
93 SUPERVGUI_CanvasNode* getNode() { return myNode; }
95 bool getWarning() { return myWarningCheck->isChecked(); }
96 bool getStep() { return myStepCheck->isChecked(); }
97 bool getTrace() { return myTraceCheck->isChecked(); }
98 bool getVerbose() { return myVerboseCheck->isChecked(); }
100 void setWarning( bool on ) { myWarningCheck->setChecked( on ); }
101 void setStep( bool on ) { myStepCheck->setChecked( on ); }
102 void setTrace( bool on ) { myTraceCheck->setChecked( on ); }
103 void setVerbose( bool on ) { myVerboseCheck->setChecked( on ); }
110 SUPERVGUI_CanvasNode* myNode;
111 QCheckBox* myWarningCheck;
112 QCheckBox* myStepCheck;
113 QCheckBox* myTraceCheck;
114 QCheckBox* myVerboseCheck;