]> SALOME platform Git repositories - modules/superv.git/blobdiff - src/SUPERVGUI/SUPERVGUI_BrowseNodeDlg.h
Salome HOME
DCQ:prepare 2.0.0
[modules/superv.git] / src / SUPERVGUI / SUPERVGUI_BrowseNodeDlg.h
index 9575f2ac4d7e1b94b220125cd18f148002ee895f..21526dbba848c6d3f6b41198ee6c47a370eaf149 100644 (file)
 
 #include <qdialog.h>
 #include "SUPERVGUI_Def.h"
-#include "SUPERVGUI_Port.h"
 #include "SALOME_Selection.h"
 
-class SUPERVGUI_Node;
 
 /** 
  * Class for ports values management (for internal using)
@@ -52,12 +50,16 @@ public:
 /**
  * Browse Node Dialog box
  */
+class SUPERVGUI_Node;
+class SUPERVGUI_CanvasNode;
+
 class SUPERVGUI_BrowseNodeDlg: public QDialog {
   
   Q_OBJECT
 
 public:
   SUPERVGUI_BrowseNodeDlg( SUPERVGUI_Node* theNode );
+  SUPERVGUI_BrowseNodeDlg( SUPERVGUI_CanvasNode* theNode );
   virtual ~SUPERVGUI_BrowseNodeDlg();
 
   void setValues();
@@ -72,7 +74,11 @@ protected:
   void showEvent( QShowEvent* theEvent );
 
 private:
+  void init();
+
   SUPERVGUI_Node*               myNode;
+  SUPERVGUI_CanvasNode*         myNodeCanvas;
+  
   bool                          myIsEditable;
   QPtrList<SUPERVGUI_PortField> myPortsList;
   SUPERVGUI_PortField*          myActiveField;
@@ -82,6 +88,10 @@ private:
 /**
  * Get Value dialog box
  */
+class SUPERVGUI_PortIn;
+class SUPERVGUI_PortInESNode;
+class SUPERVGUI_CanvasPort;
+
 class SUPERVGUI_GetValueDlg: public QDialog {
   Q_OBJECT
 
@@ -89,6 +99,7 @@ public:
 //  SUPERVGUI_GetValueDlg( SUPERVGUI_Port thePort );
   SUPERVGUI_GetValueDlg( SUPERVGUI_PortIn* thePort );
   SUPERVGUI_GetValueDlg( SUPERVGUI_PortInESNode* thePort );
+  SUPERVGUI_GetValueDlg( SUPERVGUI_CanvasPort* thePort );
   ~SUPERVGUI_GetValueDlg();
 
 private slots:
@@ -97,12 +108,66 @@ private slots:
   void onSelectionChanged();
   
 private:
+  void init();
+
   QPushButton*         myOKBtn;
   QPushButton*         myCancelBtn;    
   SUPERVGUI_PortField* myField;
-  SUPERVGUI_PortIn*    myPort;
+
+  SUPERVGUI_PortIn*          myPort;
   SUPERVGUI_PortInESNode*    myPortESNode;  //last correction
+  SUPERVGUI_CanvasPort*      myPortCanvas;
+
   SALOME_Selection*    mySelection;
 };
 
+
+/**
+ * Stream Port Parameter dialog box
+ */
+class SUPERVGUI_StreamPortIn;
+class SUPERVGUI_CanvasStreamPortIn;
+class SUPERVGUI_StreamInDlg: public QDialog
+{
+  Q_OBJECT
+public:
+  SUPERVGUI_StreamInDlg(SUPERVGUI_StreamPortIn* thePort);
+  SUPERVGUI_StreamInDlg(SUPERVGUI_CanvasStreamPortIn* thePort);
+  virtual ~SUPERVGUI_StreamInDlg() {};
+
+protected slots:
+  void accept();
+
+private:
+  void init();
+  void setData(); 
+
+  SUPERVGUI_StreamPortIn* myPort;
+  SUPERVGUI_CanvasStreamPortIn* myPortCanvas;
+  QComboBox* mySchemaCombo;
+  QComboBox* myInterCombo;
+  QComboBox* myExterCombo;
+};
+
+class SUPERVGUI_StreamPortOut;
+class SUPERVGUI_CanvasStreamPortOut;
+class SUPERVGUI_StreamOutDlg: public QDialog
+{
+  Q_OBJECT
+public:
+  SUPERVGUI_StreamOutDlg(SUPERVGUI_StreamPortOut* thePort);
+  SUPERVGUI_StreamOutDlg(SUPERVGUI_CanvasStreamPortOut* thePort);
+  virtual ~SUPERVGUI_StreamOutDlg() {};
+
+protected slots:
+  void accept();
+
+private:
+  void init();
+
+  SUPERVGUI_StreamPortOut* myPort;
+  SUPERVGUI_CanvasStreamPortOut* myPortCanvas;
+  QLineEdit* myValEdit;
+};
+
 #endif