1 // File : SUPERVGUI_BrowseNodeDlg.h
2 // Created : 10 / 01 / 2003
3 // Author : Vitaly SMETANNIKOV
6 // Copyright : Open CASCADE
9 #ifndef SUPERVGUI_BrowseNodeDlg_H
10 #define SUPERVGUI_BrowseNodeDlg_H
13 #include "SUPERVGUI_Def.h"
14 #include "SUPERVGUI_Port.h"
15 #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
53 class SUPERVGUI_BrowseNodeDlg: public QDialog {
58 SUPERVGUI_BrowseNodeDlg( SUPERVGUI_Node* theNode );
59 virtual ~SUPERVGUI_BrowseNodeDlg();
66 void onFieldActivated();
67 void onSelectionChanged();
70 void showEvent( QShowEvent* theEvent );
73 SUPERVGUI_Node* myNode;
75 QPtrList<SUPERVGUI_PortField> myPortsList;
76 SUPERVGUI_PortField* myActiveField;
77 SALOME_Selection* mySelection;
81 * Get Value dialog box
83 class SUPERVGUI_GetValueDlg: public QDialog {
87 // SUPERVGUI_GetValueDlg( SUPERVGUI_Port thePort );
88 SUPERVGUI_GetValueDlg( SUPERVGUI_PortIn* thePort );
89 SUPERVGUI_GetValueDlg( SUPERVGUI_PortInESNode* thePort );
90 ~SUPERVGUI_GetValueDlg();
95 void onSelectionChanged();
99 QPushButton* myCancelBtn;
100 SUPERVGUI_PortField* myField;
101 SUPERVGUI_PortIn* myPort;
102 SUPERVGUI_PortInESNode* myPortESNode; //last correction
103 SALOME_Selection* mySelection;