Back to index

salome-paravis  6.5.0
pqMedReaderPanel.h
Go to the documentation of this file.
00001 // Copyright (C) 2010-2012  CEA/DEN, EDF R&D
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 _pqMedReaderPanel_h
00021 #define _pqMedReaderPanel_h
00022 
00023 #include "pqNamedObjectPanel.h"
00024 
00025 #include <QTreeWidget>
00026 class pqTreeWidgetItemObject;
00027 
00028 class vtkSMProperty;
00029 
00030 class pqMedReaderPanel: public pqNamedObjectPanel
00031 {
00032 Q_OBJECT
00033   typedef pqNamedObjectPanel Superclass;
00034 public:
00036   pqMedReaderPanel(pqProxy* proxy, QWidget* p = NULL);
00038   ~pqMedReaderPanel();
00039 
00040 protected slots:
00041   void animationModeChanged(int mode);
00042 
00043   // void timeComboChanged(int timeStep);
00044 
00045   void updateSIL();
00046 
00047 protected:
00049   virtual void linkServerManagerProperties();
00050 
00051   enum PixmapType
00052   {
00053     PM_NONE = -1,
00054     PM_POINT,
00055     PM_CELL,
00056     PM_QUADRATURE,
00057     PM_ELNO
00058   };
00059 
00060   void addSelectionsToTreeWidget(const QString& prop,
00061       QTreeWidget* tree, PixmapType pix);
00062 
00063   void addSelectionToTreeWidget(const QString& name,
00064       const QString& realName, QTreeWidget* tree, PixmapType pix,
00065       const QString& prop, int propIdx);
00066 
00067   void setupAnimationModeWidget();
00068   void updateAvailableTimes();
00069 
00070   class pqUI;
00071   pqUI* UI;
00072 };
00073 
00074 #endif