Salome HOME
PAL9807
[modules/visu.git] / src / VISUGUI / VisuGUI_StreamLinesDlg.h
index 0b9c78b671943ae7c1d6737a5f24800b10280d81..0e949ebd678aa5fa44f212d16a397e86f32780c8 100644 (file)
 #ifndef VISUGUI_STREAMLINESDLG_H
 #define VISUGUI_STREAMLINESDLG_H
 
-#include "QAD_SpinBoxDbl.h"
+#include "VisuGUI_ScalarBarDlg.h"
 
 #include <qdialog.h>
 #include <qcombobox.h>
 #include <qcheckbox.h>
 #include <qstringlist.h>
 
-#include "SALOMEconfig.h"
-#include CORBA_CLIENT_HEADER(VISU_Gen)
+class SalomeApp_Module;
+class QtxDblSpinBox;
 
 namespace VISU{
   class StreamLines_i;
 }
 
 class VisuGUI_StreamLinesDlg: public QDialog
-{ 
+{
     Q_OBJECT
 public:
-    VisuGUI_StreamLinesDlg();
+    VisuGUI_StreamLinesDlg (SalomeApp_Module* theModule);
     ~VisuGUI_StreamLinesDlg() {};
 
     void initFromPrsObject(VISU::StreamLines_i* thePrs);
-    void storeToPrsObject(VISU::StreamLines_i* thePrs);
+    int storeToPrsObject(VISU::StreamLines_i* thePrs);
     void setColor( QColor color );
     void enableMagnColor( bool enable );
 
+protected slots:
+  void accept();
+
 private slots:
   void onSelectionActive(bool theActive);
   void StepLengthChanged(double theValue);
@@ -45,19 +48,22 @@ private slots:
   void onSourceTypeChange(int theIndex);
 
 private:
-  VISU::Mesh_var createMesh(VISU::VISUType theType, QString theName);
+  VISU::Mesh_ptr createMesh(VISU::VISUType theType, QString theName);
 
-    QAD_SpinBoxDbl* myStepLen;
-    QAD_SpinBoxDbl* myIntegStepLen;
-    QAD_SpinBoxDbl* myPropTime;
+    QtxDblSpinBox* myStepLen;
+    QtxDblSpinBox* myIntegStepLen;
+    QtxDblSpinBox* myPropTime;
     QComboBox* myDirCombo;
     QCheckBox* myUseScalar;
     QPushButton*    SelColor;
     QColor          myColor;
     //QCheckBox* myUseSrcChk;
     QComboBox* myUseSrcCombo;
-    QAD_SpinBoxDbl* myPntPercent;
+    QtxDblSpinBox* myPntPercent;
     QComboBox* mySrcCombo;
+
+    VisuGUI_ScalarBarPane* myScalarPane;
+
     QValueList<VISU::Prs3d_var> myPrsList;
     QValueList<VISU::Prs3d_var> myEntityList;
     QValueList<VISU::Prs3d_var> myFamilyList;
@@ -66,7 +72,10 @@ private:
     QStringList myFamilisLst;
     QStringList myGroupsLst;
     QStringList myPrsLst;
-    SALOMEDS::SObject_var mySelectionObj;
+
+    _PTR(SObject) mySelectionObj;
+    VISU::StreamLines_i* myPrs;
+    SalomeApp_Module* myVisuGUI;
 
 private slots:
   void setVColor();