Salome HOME
sources v1.2
[modules/kernel.git] / src / SALOMEGUI / SALOMEGUI_StudyPropertiesDlg.h
1 //  SALOME SALOMEGUI : implementation of desktop and GUI kernel
2 //
3 //  Copyright (C) 2003  CEA/DEN, EDF R&D
4 //
5 //
6 //
7 //  File   : SALOMEGUI_StudyPropertiesDlg.h
8 //  Author : Sergey ANIKIN
9 //  Module : SALOME
10 //  $Header$
11
12 #ifndef SALOMEGUI_STUDY_PROPERTIES_DLG_H
13 #define SALOMEGUI_STUDY_PROPERTIES_DLG_H
14
15 #include <qdialog.h>
16
17 #include <SALOMEconfig.h>
18 #include CORBA_SERVER_HEADER(SALOMEDS)
19
20 class QAD_ListView;
21 class QAD_ListViewItem;
22 class QPushButton;
23
24 class SALOMEGUI_StudyPropertiesDlg : public QDialog
25
26   Q_OBJECT
27
28 public:
29
30   enum {
31     prpAuthorId,
32     prpModeId,
33     prpDateId,
34     prpSavedId,
35     prpLockedId,
36     prpModificationsId,
37     prpLastId
38   };
39
40   SALOMEGUI_StudyPropertiesDlg( QWidget* parent = 0 );
41   ~SALOMEGUI_StudyPropertiesDlg();
42
43   bool isChanged() { return myChanged; } 
44
45 public slots:
46   void onOK();
47
48 private:
49   void initData(); 
50   bool acceptData(); 
51   bool propChanged(); 
52   
53 private:
54   QAD_ListView*       myPropList;
55   QPushButton*        myOKBtn;
56   QPushButton*        myCancelBtn;
57   bool                myChanged;  
58
59   SALOMEDS::Study_var myStudyDoc;
60 };
61  
62 #endif // SALOMEGUI_STUDY_PROPERTIES_DLG_H