Salome HOME
Bug 9282: Order of commands
[modules/visu.git] / src / VISUGUI / VisuGUI_StreamLinesDlg.h
1 //  VISU VISUGUI : GUI of VISU component
2 //
3 //  Copyright (C) 2003  CEA/DEN, EDF R&D
4 //
5 //
6 //
7 //  File   : VisuGUI_StreamLinesDlg.h
8 //  Author : Vitaly SMETANNIKOV
9 //  Module : VISU
10
11 #ifndef VISUGUI_STREAMLINESDLG_H
12 #define VISUGUI_STREAMLINESDLG_H
13
14 #include "VisuGUI_ScalarBarDlg.h"
15
16 #include <qdialog.h>
17 #include <qcombobox.h>
18 #include <qcheckbox.h>
19 #include <qstringlist.h>
20
21 #include "SALOMEconfig.h"
22 #include CORBA_CLIENT_HEADER(VISU_Gen)
23
24 class QtxDblSpinBox;
25 class SALOMEDSClient_SObject;
26
27 namespace VISU{
28   class StreamLines_i;
29 }
30
31 class VisuGUI_StreamLinesDlg: public QDialog
32 {
33     Q_OBJECT
34 public:
35     VisuGUI_StreamLinesDlg(QWidget* parent);
36     ~VisuGUI_StreamLinesDlg() {};
37
38     void initFromPrsObject(VISU::StreamLines_i* thePrs);
39     int storeToPrsObject(VISU::StreamLines_i* thePrs);
40     void setColor( QColor color );
41     void enableMagnColor( bool enable );
42
43 protected slots:
44   void accept();
45
46 private slots:
47   void onSelectionActive(bool theActive);
48   void StepLengthChanged(double theValue);
49   void IntegrationStepChanged(double theValue);
50   void PropagationTimeChanged(double theValue);
51   void onSourceTypeChange(int theIndex);
52
53 private:
54   VISU::Mesh_ptr createMesh(VISU::VISUType theType, QString theName);
55
56     QtxDblSpinBox* myStepLen;
57     QtxDblSpinBox* myIntegStepLen;
58     QtxDblSpinBox* myPropTime;
59     QComboBox* myDirCombo;
60     QCheckBox* myUseScalar;
61     QPushButton*    SelColor;
62     QColor          myColor;
63     //QCheckBox* myUseSrcChk;
64     QComboBox* myUseSrcCombo;
65     QtxDblSpinBox* myPntPercent;
66     QComboBox* mySrcCombo;
67     QValueList<VISU::Prs3d_var> myPrsList;
68     QValueList<VISU::Prs3d_var> myEntityList;
69     QValueList<VISU::Prs3d_var> myFamilyList;
70     QValueList<VISU::Prs3d_var> myGroupList;
71     QStringList myEntitiesLst;
72     QStringList myFamilisLst;
73     QStringList myGroupsLst;
74     QStringList myPrsLst;
75     SALOMEDSClient_SObject* mySelectionObj;
76
77     VisuGUI_ScalarBarPane* myScalarPane;
78     VISU::StreamLines_i* myPrs;
79
80 private slots:
81   void setVColor();
82   void enableSetColor();
83 };
84
85 #endif  //VISUGUI_STREAMLINESDLG_H