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
16 #include "SUPERVGUI_Def.h"
17 #include "SUPERVGUI_Port.h"
18 #include "SALOME_Selection.h"
23 * Class for ports values management (for internal using)
25 class SUPERVGUI_PortField : public QObject {
30 SUPERVGUI_PortField( QWidget* theParent, SUPERV_Port thePort );
31 virtual ~SUPERVGUI_PortField() {};
33 bool eventFilter( QObject* o, QEvent* e );
35 bool isEditable () { return myIsEditable; }
37 void setData( const QString& data ) { myValue->setText( data ); myValue->home( false ); }
38 void updateGUI() { myValue->setText( myPort->ToString() ); }
54 * Browse Node Dialog box
56 class SUPERVGUI_BrowseNodeDlg: public QDialog {
61 SUPERVGUI_BrowseNodeDlg( SUPERVGUI_Node* theNode );
62 virtual ~SUPERVGUI_BrowseNodeDlg();
69 void onFieldActivated();
70 void onSelectionChanged();
73 void showEvent( QShowEvent* theEvent );
76 SUPERVGUI_Node* myNode;
78 QPtrList<SUPERVGUI_PortField> myPortsList;
79 SUPERVGUI_PortField* myActiveField;
80 SALOME_Selection* mySelection;
84 * Get Value dialog box
86 class SUPERVGUI_GetValueDlg: public QDialog {
90 // SUPERVGUI_GetValueDlg( SUPERVGUI_Port thePort );
91 SUPERVGUI_GetValueDlg( SUPERVGUI_PortIn* thePort );
92 SUPERVGUI_GetValueDlg( SUPERVGUI_PortInESNode* thePort );
93 ~SUPERVGUI_GetValueDlg();
98 void onSelectionChanged();
101 QPushButton* myOKBtn;
102 QPushButton* myCancelBtn;
103 SUPERVGUI_PortField* myField;
104 SUPERVGUI_PortIn* myPort;
105 SUPERVGUI_PortInESNode* myPortESNode; //last correction
106 SALOME_Selection* mySelection;