Back to index

salome-paravis  6.5.0
pqCustomXYChartDisplayPanel.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 __pqCustomXYChartDisplayPanel_h
00021 #define __pqCustomXYChartDisplayPanel_h
00022 
00023 #include "pqDisplayPanel.h"
00024 
00025 class pqRepresentation;
00026 class pqDataInformationModel;
00027 class QModelIndex;
00028 
00030 class pqCustomXYChartDisplayPanel : public pqDisplayPanel
00031 {
00032   Q_OBJECT
00033 public:
00034   pqCustomXYChartDisplayPanel(pqRepresentation* display, QWidget* parent=0);
00035   virtual ~pqCustomXYChartDisplayPanel();
00036 
00037 public slots:
00039   void reloadSeries();
00040 
00041 protected slots:
00043   void activateItem(const QModelIndex &index);
00044 
00045   void updateOptionsWidgets();
00046 
00047   void setCurrentSeriesColor(const QColor &color);
00048 
00049   void setCurrentSeriesThickness(int thickness);
00050 
00051   void setCurrentSeriesStyle(int listIndex);
00052 
00053   void setCurrentSeriesAxes(int listIndex);
00054 
00055   void setCurrentSeriesMarkerStyle(int listIndex);
00056 
00057   void useArrayIndexToggled(bool);
00058 
00059   void useDataArrayToggled(bool);
00060 
00062   void autoSelectToggled(bool checked);
00063   void ignoreUnitsToggled(bool checked);
00064 
00066   void resetUnitsControls();
00067 
00069   void updateViewOptions();
00070 
00071 private:
00072   pqCustomXYChartDisplayPanel(const pqCustomXYChartDisplayPanel&); // Not implemented.
00073   void operator=(const pqCustomXYChartDisplayPanel&); // Not implemented.
00074 
00078   void setDisplay(pqRepresentation* display);
00079 
00081   void changeDialog(pqRepresentation* display);
00082   
00083   Qt::CheckState getEnabledState() const;
00084 
00085   class pqInternal;
00086   pqInternal* Internal;
00087 
00088   pqDataInformationModel* Model;
00089 };
00090 
00091 #endif