1 // Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 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
22 // SUPERV SUPERVGUI : GUI for Supervisor component
23 // File : SUPERVGUI_BrowseNodeDlg.h
24 // Author : Vitaly SMETANNIKOV
27 #ifndef SUPERVGUI_BrowseNodeDlg_H
28 #define SUPERVGUI_BrowseNodeDlg_H
31 #include "SUPERVGUI_Def.h"
34 * Class for ports values management (for internal using)
36 class SUPERVGUI_PortField : public QObject {
41 SUPERVGUI_PortField( QWidget* theParent, SUPERV_Port thePort );
42 virtual ~SUPERVGUI_PortField() {};
44 bool eventFilter( QObject* o, QEvent* e );
46 bool isEditable () { return myIsEditable; }
48 QString getData() const { return myValue->text(); } // mkr : PAL11406
49 void setData( const QString& data ) { myValue->setText( data ); myValue->home( false ); }
50 void updateGUI() { myValue->setText( myPort->ToString() ); }
66 * Browse Node Dialog box
68 class SUPERVGUI_CanvasNode;
70 class SUPERVGUI_BrowseNodeDlg: public QDialog {
75 SUPERVGUI_BrowseNodeDlg( SUPERVGUI_CanvasNode* theNode );
76 virtual ~SUPERVGUI_BrowseNodeDlg();
83 void onFieldActivated();
84 void onSelectionChanged();
87 void showEvent( QShowEvent* theEvent );
92 SUPERVGUI_CanvasNode* myNodeCanvas;
95 QPtrList<SUPERVGUI_PortField> myPortsList;
96 SUPERVGUI_PortField* myActiveField;
100 * Get Value dialog box
102 class SUPERVGUI_CanvasPort;
104 class SUPERVGUI_GetValueDlg: public QDialog {
108 SUPERVGUI_GetValueDlg( SUPERVGUI_CanvasPort* thePort );
109 ~SUPERVGUI_GetValueDlg();
114 void onSelectionChanged();
119 QPushButton* myOKBtn;
120 QPushButton* myCancelBtn;
121 SUPERVGUI_PortField* myField;
123 SUPERVGUI_CanvasPort* myPortCanvas;
129 * Stream Port Parameter dialog box
131 class SUPERVGUI_CanvasStreamPortIn;
132 class SUPERVGUI_StreamInDlg: public QDialog
136 SUPERVGUI_StreamInDlg(SUPERVGUI_CanvasStreamPortIn* thePort);
137 virtual ~SUPERVGUI_StreamInDlg() {};
146 SUPERVGUI_CanvasStreamPortIn* myPortCanvas;
147 QComboBox* mySchemaCombo;
148 QComboBox* myInterCombo;
149 QComboBox* myExterCombo;
152 class SUPERVGUI_CanvasStreamPortOut;
153 class SUPERVGUI_StreamOutDlg: public QDialog
157 SUPERVGUI_StreamOutDlg(SUPERVGUI_CanvasStreamPortOut* thePort);
158 virtual ~SUPERVGUI_StreamOutDlg() {};
166 SUPERVGUI_CanvasStreamPortOut* myPortCanvas;
167 QLineEdit* myValEdit;