Salome HOME
dc6dad1f76ec8c2ee649fd7009627d915ee439f9
[modules/gui.git] / src / OCCViewer / OCCViewer_CreateRestoreViewDlg.h
1 // Copyright (C) 2005  OPEN CASCADE, CEA/DEN, EDF R&D, PRINCIPIA R&D
2 // 
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either 
6 // version 2.1 of the License.
7 // 
8 // This library is distributed in the hope that it will be useful 
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of 
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public  
14 // License along with this library; if not, write to the Free Software 
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/
18 //
19 #ifndef OCCVIEWER_CREATERESTOREVIEWDLG_H
20 #define OCCVIEWER_CREATERESTOREVIEWDLG_H
21
22 #include "OCCViewer.h"
23
24 #include "OCCViewer_ViewModel.h"
25 #include "OCCViewer_ViewWindow.h"
26
27 #include <QtxDialog.h>
28 #include <QtxListBox.h> 
29 #include <SUIT_Application.h>
30
31 #include <qmap.h>
32 #include <qvbox.h>
33 #include <qdialog.h>
34 #include <qlistbox.h>
35 #include <qstringlist.h>
36
37 class OCCViewer_ViewPort3d;
38
39 #ifdef WIN32
40 #pragma warning( disable:4251 )
41 #endif
42
43 class OCCVIEWER_EXPORT OCCViewer_CreateRestoreViewDlg : public QDialog
44 {
45         Q_OBJECT
46
47 public:
48         OCCViewer_CreateRestoreViewDlg( QWidget*, OCCViewer_Viewer* );
49         virtual ~OCCViewer_CreateRestoreViewDlg();
50
51         const viewAspectList&       parameters() const;
52         viewAspect                  currentItem() const;
53         virtual bool                                                eventFilter( QObject*, QEvent* );
54
55 public slots:
56         void                          OKpressed();
57         void                          clearList();
58         void                        editItemText( QListBoxItem* );
59         void                          changeImage( QListBoxItem* );
60         void                          deleteSelectedItems();
61
62 signals:
63         void                          dlgOk();
64
65 private:
66         int                                                                       myKeyFlag;
67         QtxListBox*                                                   myListBox;
68         OCCViewer_ViewPort3d*         myCurViewPort;
69         viewAspect                  myCurrentItem;
70         viewAspectList              myParametersMap;
71 };
72
73 #ifdef WIN32
74 #pragma warning( default:4251 )
75 #endif
76
77 #endif