1 // PARAVIS : ParaView wrapper SALOME module
3 // Copyright (C) 2010-2012 CEA/DEN, EDF R&D
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.
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.
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
19 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 // File : PVGUI_ParaViewSettingsPane.h
22 // Author : Vitaly Smetannikov
26 #ifndef PVGUI_ParaViewSettingsPane_H
27 #define PVGUI_ParaViewSettingsPane_H
29 #include <QtxPagePrefMgr.h>
33 #include "pqComponentsExport.h"
35 class pqOptionsContainer;
36 class OptionsDialogForm;
41 class PVGUI_ParaViewSettingsPane : public QtxUserDefinedContent
46 PVGUI_ParaViewSettingsPane(QWidget *parent=0);
47 virtual ~PVGUI_ParaViewSettingsPane();
50 /// Gets whether or not there are changes to apply.
52 /// True if there are changes to apply.
53 //bool isApplyNeeded() const;
56 /// Sets whether or not there are changes to apply.
57 /// \param applyNeeded True if there are changes to apply.
58 //void setApplyNeeded(bool applyNeeded);
61 /// Adds a page to the options dialog.
63 /// When the options object is a page container, the path parameter
64 /// becomes the path prefix for the container pages.
66 /// \param path The name hierarchy for the options page.
67 /// \param options The options page.
68 void addOptions(const QString &path, pqOptionsPage *options);
71 /// Adds a container to the options dialog.
73 /// Each page listed for the container is added to the root of the
76 /// \param options The options container to add.
77 void addOptions(pqOptionsContainer *options);
80 /// Removes the options page from the options dialog.
82 /// The page name is removed from the selection tree. If the page
83 /// is an options container, all the names are removed.
85 /// \param options The options page/container to remove.
86 void removeOptions(pqOptionsPage *options);
88 /// Implementation of QtxUserDefinedContent interface
89 virtual void store(QtxResourceMgr* theRes, QtxPreferenceMgr* thePref);
90 virtual void retrieve(QtxResourceMgr* theRes, QtxPreferenceMgr* thePref);
95 /// Sets the current options page.
96 /// \param path The name of the options page to show.
97 void setCurrentPage(const QString &path);
99 /// Calls each page to apply any changes.
102 /// Calls each page to reset any changes.
106 /// Emitted before the option changes are applied.
107 void aboutToApplyChanges();
109 /// Emitted after the option changes have been applied.
110 void appliedChanges();
113 void pluginLoaded(QObject* plugin_interface);
116 /// Changes the current page to match the user selection.
117 void changeCurrentPage();
120 OptionsDialogForm *Form; /// Stores the form and class data.