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
14 #include "SUPERVGUI_Def.h"
15 #include "SUPERVGUI_Port.h"
16 #include "SALOME_Selection.h"
21 * Class for ports values management (for internal using)
23 class SUPERVGUI_PortField : public QObject {
28 SUPERVGUI_PortField( QWidget* theParent, SUPERV_Port thePort );
29 virtual ~SUPERVGUI_PortField() {};
31 bool eventFilter( QObject* o, QEvent* e );
33 bool isEditable () { return myIsEditable; }
35 void setData( const QString& data ) { myValue->setText( data ); myValue->home( false ); }
36 void updateGUI() { myValue->setText( myPort->ToString() ); }
52 * Browse Node Dialog box
54 class SUPERVGUI_BrowseNodeDlg: public QDialog {
59 SUPERVGUI_BrowseNodeDlg( SUPERVGUI_Node* theNode );
60 virtual ~SUPERVGUI_BrowseNodeDlg();
67 void onFieldActivated();
68 void onSelectionChanged();
71 void showEvent( QShowEvent* theEvent );
74 SUPERVGUI_Node* myNode;
76 QPtrList<SUPERVGUI_PortField> myPortsList;
77 SUPERVGUI_PortField* myActiveField;
78 SALOME_Selection* mySelection;
82 * Get Value dialog box
84 class SUPERVGUI_GetValueDlg: public QDialog {
88 // SUPERVGUI_GetValueDlg( SUPERVGUI_Port thePort );
89 SUPERVGUI_GetValueDlg( SUPERVGUI_PortIn* thePort );
90 SUPERVGUI_GetValueDlg( SUPERVGUI_PortInESNode* thePort );
91 ~SUPERVGUI_GetValueDlg();
96 void onSelectionChanged();
100 QPushButton* myCancelBtn;
101 SUPERVGUI_PortField* myField;
102 SUPERVGUI_PortIn* myPort;
103 SUPERVGUI_PortInESNode* myPortESNode; //last correction
104 SALOME_Selection* mySelection;