00001 // Copyright (C) 2007-2011 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 // VISU VISUGUI : GUI of VISU component 00021 // File : VisuGUI_InputPanel.cxx 00022 // Author : Oleg Uvarov 00023 // Module : VISU 00024 // 00025 #ifndef VISUGUI_INPUTPANEL_H 00026 #define VISUGUI_INPUTPANEL_H 00027 00028 #include <QtxDockWidget.h> 00029 00030 #include <QMap> 00031 00032 class VisuGUI_BasePanel; 00033 00038 class VisuGUI_InputPanel : public QtxDockWidget 00039 { 00040 Q_OBJECT 00041 00042 public: 00043 VisuGUI_InputPanel( QWidget* theParent = 0 ); 00044 virtual ~VisuGUI_InputPanel(); 00045 00046 void showPanel( VisuGUI_BasePanel* thePanel ); 00047 void hidePanel( VisuGUI_BasePanel* thePanel ); 00048 void clear(); 00049 00050 bool isEmpty() const; 00051 bool isShown( VisuGUI_BasePanel* thePanel ) const; 00052 00053 protected slots: 00054 void onClosePanel(); 00055 00056 private: 00057 QWidget* myGrp; 00058 QMap<VisuGUI_BasePanel*, bool> myPanels; 00059 VisuGUI_BasePanel* myCurrentPanel; 00060 }; 00061 00062 #endif 00063 00064