Salome HOME
IPAL9008
[modules/gui.git] / src / SalomeApp / SalomeApp_StudyPropertiesDlg.h
1 //  SALOME SalomeApp
2 //
3 //  Copyright (C) 2005  CEA/DEN, EDF R&D
4 //
5 //
6 //
7 //  File   : SalomeApp_StudyPropertiesDlg.h
8 //  Author : Sergey ANIKIN
9 //  Module : SALOME
10 //  $Header$
11
12 #ifndef SALOMEAPP_STUDY_PROPERTIES_DLG_H
13 #define SALOMEAPP_STUDY_PROPERTIES_DLG_H
14
15 #include "SalomeApp.h"
16 #include <SALOMEDSClient_definitions.hxx>
17 #include <qdialog.h>
18 #include <qlineedit.h>
19 #include <qcombobox.h>
20 #include <qlistview.h>
21
22 #include <SALOMEconfig.h>
23 #include CORBA_SERVER_HEADER(SALOMEDS)
24
25 #include <SALOMEDSClient_Study.hxx>
26
27 class SalomeApp_ListView;
28 class QPushButton;
29 class QToolButton;
30
31 class SALOMEAPP_EXPORT SalomeApp_StudyPropertiesDlg : public QDialog
32
33   Q_OBJECT
34
35 public:
36   enum {
37     prpAuthorId,
38     prpModeId,
39     prpDateId,
40     prpSavedId,
41     prpLockedId,
42     prpModificationsId,
43     prpLastId
44   };
45
46 public:
47   SalomeApp_StudyPropertiesDlg( QWidget* parent = 0 );
48   ~SalomeApp_StudyPropertiesDlg();
49
50   bool isChanged() { return myChanged; } 
51
52 public slots:
53   void onOK();
54
55 private:
56   void initData(); 
57   bool acceptData(); 
58   bool propChanged(); 
59   
60 private:
61   SalomeApp_ListView* myPropList;
62   QPushButton*        myOKBtn;
63   QPushButton*        myCancelBtn;
64   bool                myChanged;  
65
66   _PTR(Study)         myStudyDoc;
67 };
68  
69 #endif // SALOMEAPP_STUDY_PROPERTIES_DLG_H