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 PLOT2D_VIEWMANAGER_H 00024 #define PLOT2D_VIEWMANAGER_H 00025 00026 #include "Plot2d.h" 00027 #include "SUIT_ViewManager.h" 00028 00029 class SUIT_Desktop; 00030 class SUIT_PreferenceMgr; 00031 class Plot2d_ViewWindow; 00032 class Plot2d_Viewer; 00033 class Plot2d_ViewFrame; 00034 00035 class PLOT2D_EXPORT Plot2d_ViewManager : public SUIT_ViewManager 00036 { 00037 Q_OBJECT 00038 00039 public: 00040 Plot2d_ViewManager( SUIT_Study*, SUIT_Desktop* ); 00041 ~Plot2d_ViewManager(); 00042 00043 Plot2d_Viewer* getPlot2dModel() const; 00044 Plot2d_ViewWindow* cloneView( Plot2d_ViewWindow* srcWnd ); 00045 00046 static int fillPreferences( SUIT_PreferenceMgr*, const int ); 00047 00048 protected: 00049 bool insertView(SUIT_ViewWindow* theView); 00050 00051 public slots: 00052 void createView(); 00053 00054 protected slots: 00055 void onCloneView(); 00056 00057 signals: 00058 void cloneView( Plot2d_ViewFrame*, Plot2d_ViewFrame* ); 00059 }; 00060 00061 #endif