1 // SUPERV SUPERVGUI : GUI for Supervisor component
3 // Copyright (C) 2003 CEA/DEN, EDF R&D
7 // File : SUPERVGUI_BrowseNodeDlg.h
8 // Author : Vitaly SMETANNIKOV
11 #ifndef SUPERVGUI_BrowseNodeDlg_H
12 #define SUPERVGUI_BrowseNodeDlg_H
15 #include "SUPERVGUI_Def.h"
16 #include "SALOME_Selection.h"
20 * Class for ports values management (for internal using)
22 class SUPERVGUI_PortField : public QObject {
27 SUPERVGUI_PortField( QWidget* theParent, SUPERV_Port thePort );
28 virtual ~SUPERVGUI_PortField() {};
30 bool eventFilter( QObject* o, QEvent* e );
32 bool isEditable () { return myIsEditable; }
34 void setData( const QString& data ) { myValue->setText( data ); myValue->home( false ); }
35 void updateGUI() { myValue->setText( myPort->ToString() ); }
51 * Browse Node Dialog box
54 class SUPERVGUI_CanvasNode;
56 class SUPERVGUI_BrowseNodeDlg: public QDialog {
61 SUPERVGUI_BrowseNodeDlg( SUPERVGUI_Node* theNode );
62 SUPERVGUI_BrowseNodeDlg( SUPERVGUI_CanvasNode* theNode );
63 virtual ~SUPERVGUI_BrowseNodeDlg();
70 void onFieldActivated();
71 void onSelectionChanged();
74 void showEvent( QShowEvent* theEvent );
79 SUPERVGUI_Node* myNode;
80 SUPERVGUI_CanvasNode* myNodeCanvas;
83 QPtrList<SUPERVGUI_PortField> myPortsList;
84 SUPERVGUI_PortField* myActiveField;
85 SALOME_Selection* mySelection;
89 * Get Value dialog box
91 class SUPERVGUI_PortIn;
92 class SUPERVGUI_PortInESNode;
93 class SUPERVGUI_CanvasPort;
95 class SUPERVGUI_GetValueDlg: public QDialog {
99 // SUPERVGUI_GetValueDlg( SUPERVGUI_Port thePort );
100 SUPERVGUI_GetValueDlg( SUPERVGUI_PortIn* thePort );
101 SUPERVGUI_GetValueDlg( SUPERVGUI_PortInESNode* thePort );
102 SUPERVGUI_GetValueDlg( SUPERVGUI_CanvasPort* thePort );
103 ~SUPERVGUI_GetValueDlg();
108 void onSelectionChanged();
113 QPushButton* myOKBtn;
114 QPushButton* myCancelBtn;
115 SUPERVGUI_PortField* myField;
117 SUPERVGUI_PortIn* myPort;
118 SUPERVGUI_PortInESNode* myPortESNode; //last correction
119 SUPERVGUI_CanvasPort* myPortCanvas;
121 SALOME_Selection* mySelection;
126 * Stream Port Parameter dialog box
128 class SUPERVGUI_StreamPortIn;
129 class SUPERVGUI_CanvasStreamPortIn;
130 class SUPERVGUI_StreamInDlg: public QDialog
134 SUPERVGUI_StreamInDlg(SUPERVGUI_StreamPortIn* thePort);
135 SUPERVGUI_StreamInDlg(SUPERVGUI_CanvasStreamPortIn* thePort);
136 virtual ~SUPERVGUI_StreamInDlg() {};
145 SUPERVGUI_StreamPortIn* myPort;
146 SUPERVGUI_CanvasStreamPortIn* myPortCanvas;
147 QComboBox* mySchemaCombo;
148 QComboBox* myInterCombo;
149 QComboBox* myExterCombo;
152 class SUPERVGUI_StreamPortOut;
153 class SUPERVGUI_CanvasStreamPortOut;
154 class SUPERVGUI_StreamOutDlg: public QDialog
158 SUPERVGUI_StreamOutDlg(SUPERVGUI_StreamPortOut* thePort);
159 SUPERVGUI_StreamOutDlg(SUPERVGUI_CanvasStreamPortOut* thePort);
160 virtual ~SUPERVGUI_StreamOutDlg() {};
168 SUPERVGUI_StreamPortOut* myPort;
169 SUPERVGUI_CanvasStreamPortOut* myPortCanvas;
170 QLineEdit* myValEdit;