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.salome-platform.org/ or email : webmaster.salome@opencascade.com
24 // File : SUPERVGUI_Notification.h
25 // Author : Francis KLOSS
28 #ifndef SUPERVGUI_Notification_H
29 #define SUPERVGUI_Notification_H
31 #include "SUPERVGUI_Def.h"
34 #include <qcheckbox.h>
35 #include <qlineedit.h>
36 #include <qpushbutton.h>
40 class SUPERVGUI_CanvasNode;
41 class SUPERVGUI_NotifWidget;
43 class SUPERVGUI_Notification: public QDialog
48 SUPERVGUI_Notification(SUPERVGUI_Main* m);
49 ~SUPERVGUI_Notification();
52 void setLogged( bool on, QString logFile = QString::null );
55 void setFiltered( bool on );
57 void setWarning( bool on );
59 void setStep( bool on );
61 void setTrace( bool on );
63 void setVerbose( bool on );
72 SUPERVGUI_Main* myMain;
76 QPushButton* myCancelBtn;
77 QCheckBox* myLogCheck;
78 QCheckBox* myFilterCheck;
79 QLineEdit* myFileEdit;
80 QPushButton* myBrowseBtn;
81 SUPERVGUI_NotifWidget* myMainNotif;
82 QList<SUPERVGUI_NotifWidget> myNotifList;
85 class SUPERVGUI_NotifWidget : public QWidget
88 SUPERVGUI_NotifWidget( QWidget* parent, SUPERVGUI_CanvasNode* n );
89 SUPERVGUI_NotifWidget( QWidget* parent, QString title );
90 ~SUPERVGUI_NotifWidget();
92 SUPERVGUI_CanvasNode* getNode() { return myNode; }
94 bool getWarning() { return myWarningCheck->isChecked(); }
95 bool getStep() { return myStepCheck->isChecked(); }
96 bool getTrace() { return myTraceCheck->isChecked(); }
97 bool getVerbose() { return myVerboseCheck->isChecked(); }
99 void setWarning( bool on ) { myWarningCheck->setChecked( on ); }
100 void setStep( bool on ) { myStepCheck->setChecked( on ); }
101 void setTrace( bool on ) { myTraceCheck->setChecked( on ); }
102 void setVerbose( bool on ) { myVerboseCheck->setChecked( on ); }
109 SUPERVGUI_CanvasNode* myNode;
110 QCheckBox* myWarningCheck;
111 QCheckBox* myStepCheck;
112 QCheckBox* myTraceCheck;
113 QCheckBox* myVerboseCheck;