00001 // Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE 00002 // 00003 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, 00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 00005 // 00006 // This library is free software; you can redistribute it and/or 00007 // modify it under the terms of the GNU Lesser General Public 00008 // License as published by the Free Software Foundation; either 00009 // version 2.1 of the License. 00010 // 00011 // This library is distributed in the hope that it will be useful, 00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 // Lesser General Public License for more details. 00015 // 00016 // You should have received a copy of the GNU Lesser General Public 00017 // License along with this library; if not, write to the Free Software 00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 // 00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com 00021 // 00022 00023 #ifndef OCCVIEWER_CREATERESTOREVIEWDLG_H 00024 #define OCCVIEWER_CREATERESTOREVIEWDLG_H 00025 00026 #include "OCCViewer.h" 00027 00028 #include "OCCViewer_ViewWindow.h" 00029 00030 #include <QtxDialog.h> 00031 #include <SUIT_Application.h> 00032 00033 #include <QDialog> 00034 #include <QListWidget> 00035 00036 class OCCViewer_ViewPort3d; 00037 00038 class QListWidgetItem; 00039 00040 #ifdef WIN32 00041 #pragma warning( disable:4251 ) 00042 #endif 00043 00044 class OCCVIEWER_EXPORT OCCViewer_CreateRestoreViewDlg : public QDialog 00045 { 00046 Q_OBJECT 00047 00048 public: 00049 OCCViewer_CreateRestoreViewDlg( QWidget*, OCCViewer_ViewWindow* ); 00050 virtual ~OCCViewer_CreateRestoreViewDlg(); 00051 00052 const viewAspectList& parameters() const; 00053 viewAspect currentItem() const; 00054 virtual bool eventFilter( QObject*, QEvent* ); 00055 00056 public slots: 00057 void OKpressed(); 00058 void clearList(); 00059 void editItemText( QListWidgetItem* ); 00060 void changeImage( QListWidgetItem* ); 00061 void deleteSelectedItems(); 00062 00063 signals: 00064 void dlgOk(); 00065 00066 private: 00067 int myKeyFlag; 00068 QListWidget* myListBox; 00069 OCCViewer_ViewPort3d* myCurViewPort; 00070 viewAspect myCurrentItem; 00071 viewAspectList myParametersMap; 00072 }; 00073 00074 #ifdef WIN32 00075 #pragma warning( default:4251 ) 00076 #endif 00077 00078 #endif