]> SALOME platform Git repositories - modules/paravis.git/blob - src/PVGUI/PVGUI_ParaViewSettingsPane.h
Salome HOME
193e3184d4019f149eff27274995311fb09b87af
[modules/paravis.git] / src / PVGUI / PVGUI_ParaViewSettingsPane.h
1 // PARAVIS : ParaView wrapper SALOME module
2 //
3 // Copyright (C) 2010-2014  CEA/DEN, EDF R&D
4 //
5 // This library is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU Lesser General Public
7 // License as published by the Free Software Foundation; either
8 // version 2.1 of the License, or (at your option) any later version.
9 //
10 // This library is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 // Lesser General Public License for more details.
14 //
15 // You should have received a copy of the GNU Lesser General Public
16 // License along with this library; if not, write to the Free Software
17 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
18 //
19 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 //
21 // File   : PVGUI_ParaViewSettingsPane.h
22 // Author : Vitaly Smetannikov
23 //
24
25
26 #ifndef PVGUI_ParaViewSettingsPane_H
27 #define PVGUI_ParaViewSettingsPane_H
28
29 #include <QtxPagePrefMgr.h>
30
31 #include <QWidget>
32
33 #include "vtkPVConfig.h"
34
35 class pqOptionsContainer;
36 class OptionsDialogForm;
37 class pqOptionsPage;
38 class QString;
39
40
41 class PVGUI_ParaViewSettingsPane : public QtxUserDefinedContent
42 {
43   Q_OBJECT
44
45 public:
46   PVGUI_ParaViewSettingsPane(QWidget *parent=0);
47   virtual ~PVGUI_ParaViewSettingsPane();
48
49   /// Implementation of QtxUserDefinedContent interface
50   virtual void store(QtxResourceMgr* theRes, QtxPreferenceMgr* thePref);
51   virtual void retrieve(QtxResourceMgr* theRes, QtxPreferenceMgr* thePref);
52
53
54 public slots:
55   /// Calls each page to apply any changes.
56   void applyChanges();
57
58   /// Calls each page to reset any changes.
59   void resetChanges();
60
61   void onRequestParaviewSettings();
62
63 signals:
64   /// Emitted before the option changes are applied.
65   void aboutToApplyChanges();
66
67   /// Emitted after the option changes have been applied.
68   void appliedChanges();
69
70 private:
71   OptionsDialogForm *Form; /// Stores the form and class data.
72 };
73
74 #endif