Back to index

salome-gui  6.5.0
LightApp_Plot2dSelector.h
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // This library is free software; you can redistribute it and/or
00004 // modify it under the terms of the GNU Lesser General Public
00005 // License as published by the Free Software Foundation; either
00006 // version 2.1 of the License.
00007 //
00008 // This library is distributed in the hope that it will be useful,
00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011 // Lesser General Public License for more details.
00012 //
00013 // You should have received a copy of the GNU Lesser General Public
00014 // License along with this library; if not, write to the Free Software
00015 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00016 //
00017 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00018 //
00019 
00020 #ifndef LIGHTAPP_PLOT2DSELECTOR_H
00021 #define LIGHTAPP_PLOT2DSELECTOR_H
00022 
00023 #include "LightApp.h"
00024 
00025 #include <SUIT_Selector.h>
00026 #include <SUIT_DataOwner.h>
00027 #include <Plot2d_ViewModel.h>
00028 
00029 class LightApp_DataObject;
00030 
00035 class LIGHTAPP_EXPORT LightApp_Plot2dSelector : public QObject, public SUIT_Selector
00036 {
00037   Q_OBJECT
00038 
00039 public:
00040   LightApp_Plot2dSelector( Plot2d_Viewer*, SUIT_SelectionMgr* );
00041   virtual ~LightApp_Plot2dSelector();
00042 
00044   virtual QString type() const { return "PLot2dViewer"; }
00045 
00046 private slots:
00047   void         onSelectionChanged( const QString& );
00048   void         onClearSelected();
00049 
00050 protected:
00051   virtual void getSelection( SUIT_DataOwnerPtrList& ) const;
00052   virtual void setSelection( const SUIT_DataOwnerPtrList& );
00053 
00054 private:
00055   QString             myCurEntry;
00056   Plot2d_Viewer*      myViewer;
00057 };
00058 
00059 #endif