Salome HOME
Fixed bug with cut lines preview (9298)
[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 <SALOMEconfig.h>
20 #include CORBA_SERVER_HEADER(SALOMEDS)
21
22
23 class SALOMEDSClient_SObject;
24
25 namespace VISU {
26   class Container_i;
27 }
28
29
30 struct CurveStruct {
31   QString TableName;
32   QString CurveName;
33   QString CurveEntry;
34 };
35
36
37 class VisuGUI_EditContainerDlg: public QDialog
38 {
39     Q_OBJECT
40
41 public:
42     VisuGUI_EditContainerDlg (QWidget* parent, bool theIsModal = true);
43     ~VisuGUI_EditContainerDlg() {};
44
45     void initFromPrsObject (VISU::Container_i* theContainer);
46     void storeToPrsObject  (VISU::Container_i* theContainer);
47
48 private slots:
49   void onLeftClicked();
50   void onRightClicked();
51   void onLeftSelected();
52   void onRightSelected();
53
54 private:
55     //QString getSObjectName (_PTR(SObject) theSObject);
56     QString getSObjectName (SALOMEDS::SObject_ptr theSObject);
57
58     QListView* myStudyLst;
59     QListView* myContainerLst;
60     QToolButton* myLeftBtn;
61     QToolButton* myRightBtn;
62 };
63
64 #endif // VISUGUI_EDITCONTAINER_H