Salome HOME
7aa9034d5c7373434a0f2ef6313b4768652e6dc2
[modules/visu.git] / src / VISUGUI / VisuGUI_EditContainerDlg.h
1 //  VISU VISUGUI : GUI of VISU component
2 //
3 //  Copyright (C) 2003  CEA/DEN, EDF R&D
4 //
5 //
6 //
7 //  File   : VisuGUI_EditContainerDlg.h
8 //  Author : VSV
9 //  Module : VISU
10
11 #ifndef VISUGUI_EDITCONTAINER_H
12 #define VISUGUI_EDITCONTAINER_H
13
14 #include <qdialog.h>
15 #include <qlistview.h>
16 #include <qvaluevector.h>
17 #include <qtoolbutton.h>
18
19 #include "SALOMEDSClient_SObject.hxx"
20
21 class VisuGUI;
22
23 namespace VISU {
24   class Container_i;
25 }
26
27
28 struct CurveStruct {
29   QString TableName;
30   QString CurveName;
31   QString CurveEntry;
32 };
33
34
35 class VisuGUI_EditContainerDlg: public QDialog
36 {
37   Q_OBJECT;
38
39  public:
40   VisuGUI_EditContainerDlg (VisuGUI* theModule, bool theIsModal = true);
41   ~VisuGUI_EditContainerDlg() {};
42
43   void initFromPrsObject (VISU::Container_i* theContainer);
44   void storeToPrsObject  (VISU::Container_i* theContainer);
45
46  private slots:
47   void onLeftClicked();
48   void onRightClicked();
49   void onLeftSelected();
50   void onRightSelected();
51   void onHelp();
52
53  private:
54   QString getSObjectName (_PTR(SObject) theSObject);
55
56   QListView*   myStudyLst;
57   QListView*   myContainerLst;
58   QToolButton* myLeftBtn;
59   QToolButton* myRightBtn;
60
61   VisuGUI* myVisuGUI;
62 };
63
64 #endif // VISUGUI_EDITCONTAINER_H