#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);
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;
QStringList myFamilisLst;
QStringList myGroupsLst;
QStringList myPrsLst;
- SALOMEDS::SObject_var mySelectionObj;
+
+ _PTR(SObject) mySelectionObj;
+ VISU::StreamLines_i* myPrs;
+ SalomeApp_Module* myVisuGUI;
private slots:
void setVColor();