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 "SUPERVGUI_Port.h"
17 #include "SALOME_Selection.h"
22 * Class for ports values management (for internal using)
24 class SUPERVGUI_PortField : public QObject {
29 SUPERVGUI_PortField( QWidget* theParent, SUPERV_Port thePort );
30 virtual ~SUPERVGUI_PortField() {};
32 bool eventFilter( QObject* o, QEvent* e );
34 bool isEditable () { return myIsEditable; }
36 void setData( const QString& data ) { myValue->setText( data ); myValue->home( false ); }
37 void updateGUI() { myValue->setText( myPort->ToString() ); }
53 * Browse Node Dialog box
55 class SUPERVGUI_BrowseNodeDlg: public QDialog {
60 SUPERVGUI_BrowseNodeDlg( SUPERVGUI_Node* theNode );
61 virtual ~SUPERVGUI_BrowseNodeDlg();
68 void onFieldActivated();
69 void onSelectionChanged();
72 void showEvent( QShowEvent* theEvent );
75 SUPERVGUI_Node* myNode;
77 QPtrList<SUPERVGUI_PortField> myPortsList;
78 SUPERVGUI_PortField* myActiveField;
79 SALOME_Selection* mySelection;
83 * Get Value dialog box
85 class SUPERVGUI_GetValueDlg: public QDialog {
89 // SUPERVGUI_GetValueDlg( SUPERVGUI_Port thePort );
90 SUPERVGUI_GetValueDlg( SUPERVGUI_PortIn* thePort );
91 SUPERVGUI_GetValueDlg( SUPERVGUI_PortInESNode* thePort );
92 ~SUPERVGUI_GetValueDlg();
97 void onSelectionChanged();
100 QPushButton* myOKBtn;
101 QPushButton* myCancelBtn;
102 SUPERVGUI_PortField* myField;
103 SUPERVGUI_PortIn* myPort;
104 SUPERVGUI_PortInESNode* myPortESNode; //last correction
105 SALOME_Selection* mySelection;