Back to index

salome-paravis  6.5.0
PVGUI_ParaViewSettingsPane.h
Go to the documentation of this file.
00001 // PARAVIS : ParaView wrapper SALOME module
00002 //
00003 // Copyright (C) 2010-2012  CEA/DEN, EDF R&D
00004 //
00005 // This library is free software; you can redistribute it and/or
00006 // modify it under the terms of the GNU Lesser General Public
00007 // License as published by the Free Software Foundation; either
00008 // version 2.1 of the License.
00009 //
00010 // This library is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013 // Lesser General Public License for more details.
00014 //
00015 // You should have received a copy of the GNU Lesser General Public
00016 // License along with this library; if not, write to the Free Software
00017 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00018 //
00019 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00020 //
00021 // File   : PVGUI_ParaViewSettingsPane.h
00022 // Author : Vitaly Smetannikov
00023 //
00024 
00025 
00026 #ifndef PVGUI_ParaViewSettingsPane_H
00027 #define PVGUI_ParaViewSettingsPane_H
00028 
00029 #include <QtxPagePrefMgr.h>
00030 
00031 #include <QWidget>
00032 
00033 #include "pqComponentsExport.h"
00034 
00035 class pqOptionsContainer;
00036 class OptionsDialogForm;
00037 class pqOptionsPage;
00038 class QString;
00039 
00040 
00041 class PVGUI_ParaViewSettingsPane : public QtxUserDefinedContent
00042 {
00043   Q_OBJECT
00044 
00045 public:
00046   PVGUI_ParaViewSettingsPane(QWidget *parent=0);
00047   virtual ~PVGUI_ParaViewSettingsPane();
00048 
00053   //bool isApplyNeeded() const;
00054 
00058   //void setApplyNeeded(bool applyNeeded);
00059 
00068   void addOptions(const QString &path, pqOptionsPage *options);
00069 
00077   void addOptions(pqOptionsContainer *options);
00078 
00086   void removeOptions(pqOptionsPage *options);
00087 
00089   virtual void store(QtxResourceMgr* theRes, QtxPreferenceMgr* thePref);
00090   virtual void retrieve(QtxResourceMgr* theRes, QtxPreferenceMgr* thePref);
00091 
00092 
00093 public slots:
00097   void setCurrentPage(const QString &path);
00098 
00100   void applyChanges();
00101 
00103   void resetChanges();
00104 
00105 signals:
00107   void aboutToApplyChanges();
00108 
00110   void appliedChanges();
00111 
00112 protected slots:
00113   void pluginLoaded(QObject* plugin_interface);
00114 
00115 private slots:
00117   void changeCurrentPage();
00118 
00119 private:
00120   OptionsDialogForm *Form; 
00121 };
00122 
00123 #endif