1 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License.
9 // This library is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // SUPERV SUPERVGUI : GUI for Supervisor component
22 // File : SUPERVGUI_BrowseNodeDlg.h
23 // Author : Vitaly SMETANNIKOV
26 #ifndef SUPERVGUI_BrowseNodeDlg_H
27 #define SUPERVGUI_BrowseNodeDlg_H
30 #include "SUPERVGUI_Def.h"
33 * Class for ports values management (for internal using)
35 class SUPERVGUI_PortField : public QObject {
40 SUPERVGUI_PortField( QWidget* theParent, SUPERV_Port thePort );
41 virtual ~SUPERVGUI_PortField() {};
43 bool eventFilter( QObject* o, QEvent* e );
45 bool isEditable () { return myIsEditable; }
47 QString getData() const { return myValue->text(); } // mkr : PAL11406
48 void setData( const QString& data ) { myValue->setText( data ); myValue->home( false ); }
49 void updateGUI() { myValue->setText( myPort->ToString() ); }
65 * Browse Node Dialog box
67 class SUPERVGUI_CanvasNode;
69 class SUPERVGUI_BrowseNodeDlg: public QDialog {
74 SUPERVGUI_BrowseNodeDlg( SUPERVGUI_CanvasNode* theNode );
75 virtual ~SUPERVGUI_BrowseNodeDlg();
82 void onFieldActivated();
83 void onSelectionChanged();
86 void showEvent( QShowEvent* theEvent );
91 SUPERVGUI_CanvasNode* myNodeCanvas;
94 QPtrList<SUPERVGUI_PortField> myPortsList;
95 SUPERVGUI_PortField* myActiveField;
99 * Get Value dialog box
101 class SUPERVGUI_CanvasPort;
103 class SUPERVGUI_GetValueDlg: public QDialog {
107 SUPERVGUI_GetValueDlg( SUPERVGUI_CanvasPort* thePort );
108 ~SUPERVGUI_GetValueDlg();
113 void onSelectionChanged();
118 QPushButton* myOKBtn;
119 QPushButton* myCancelBtn;
120 SUPERVGUI_PortField* myField;
122 SUPERVGUI_CanvasPort* myPortCanvas;
128 * Stream Port Parameter dialog box
130 class SUPERVGUI_CanvasStreamPortIn;
131 class SUPERVGUI_StreamInDlg: public QDialog
135 SUPERVGUI_StreamInDlg(SUPERVGUI_CanvasStreamPortIn* thePort);
136 virtual ~SUPERVGUI_StreamInDlg() {};
145 SUPERVGUI_CanvasStreamPortIn* myPortCanvas;
146 QComboBox* mySchemaCombo;
147 QComboBox* myInterCombo;
148 QComboBox* myExterCombo;
151 class SUPERVGUI_CanvasStreamPortOut;
152 class SUPERVGUI_StreamOutDlg: public QDialog
156 SUPERVGUI_StreamOutDlg(SUPERVGUI_CanvasStreamPortOut* thePort);
157 virtual ~SUPERVGUI_StreamOutDlg() {};
165 SUPERVGUI_CanvasStreamPortOut* myPortCanvas;
166 QLineEdit* myValEdit;