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"
18 * Class for ports values management (for internal using)
20 class SUPERVGUI_PortField : public QObject {
25 SUPERVGUI_PortField( QWidget* theParent, SUPERV_Port thePort );
26 virtual ~SUPERVGUI_PortField() {};
28 bool eventFilter( QObject* o, QEvent* e );
30 bool isEditable () { return myIsEditable; }
32 void setData( const QString& data ) { myValue->setText( data ); myValue->home( false ); }
33 void updateGUI() { myValue->setText( myPort->ToString() ); }
49 * Browse Node Dialog box
51 class SUPERVGUI_CanvasNode;
53 class SUPERVGUI_BrowseNodeDlg: public QDialog {
58 SUPERVGUI_BrowseNodeDlg( SUPERVGUI_CanvasNode* theNode );
59 virtual ~SUPERVGUI_BrowseNodeDlg();
66 void onFieldActivated();
67 void onSelectionChanged();
70 void showEvent( QShowEvent* theEvent );
75 SUPERVGUI_CanvasNode* myNodeCanvas;
78 QPtrList<SUPERVGUI_PortField> myPortsList;
79 SUPERVGUI_PortField* myActiveField;
83 * Get Value dialog box
85 class SUPERVGUI_CanvasPort;
87 class SUPERVGUI_GetValueDlg: public QDialog {
91 SUPERVGUI_GetValueDlg( SUPERVGUI_CanvasPort* thePort );
92 ~SUPERVGUI_GetValueDlg();
97 void onSelectionChanged();
102 QPushButton* myOKBtn;
103 QPushButton* myCancelBtn;
104 SUPERVGUI_PortField* myField;
106 SUPERVGUI_CanvasPort* myPortCanvas;
112 * Stream Port Parameter dialog box
114 class SUPERVGUI_CanvasStreamPortIn;
115 class SUPERVGUI_StreamInDlg: public QDialog
119 SUPERVGUI_StreamInDlg(SUPERVGUI_CanvasStreamPortIn* thePort);
120 virtual ~SUPERVGUI_StreamInDlg() {};
129 SUPERVGUI_CanvasStreamPortIn* myPortCanvas;
130 QComboBox* mySchemaCombo;
131 QComboBox* myInterCombo;
132 QComboBox* myExterCombo;
135 class SUPERVGUI_CanvasStreamPortOut;
136 class SUPERVGUI_StreamOutDlg: public QDialog
140 SUPERVGUI_StreamOutDlg(SUPERVGUI_CanvasStreamPortOut* thePort);
141 virtual ~SUPERVGUI_StreamOutDlg() {};
149 SUPERVGUI_CanvasStreamPortOut* myPortCanvas;
150 QLineEdit* myValEdit;