setPreferenceProperty(aParaViewSettingsTab, "stretch", false );
int aPanel = addPreference(QString(), aParaViewSettingsTab, LightApp_Preferences::UserDefined, PARAVIS_MODULE_NAME, "");
- setPreferenceProperty(aPanel, "content", (qint64)(new PVGUI_ParaViewSettingsPane()));
+ setPreferenceProperty(aPanel, "content", (qint64)(new PVGUI_ParaViewSettingsPane(0, getApp())));
// Paravis settings tab
int aParaVisSettingsTab = addPreference( tr( "TIT_PVISSETTINGS" ) );
#include "PVGUI_ParaViewSettingsPane.h"
#include "ui_pqCustomSettingsWidget.h"
+#include <LightApp_Application.h>
+
#include <QtxDialog.h>
#include <QString>
bool PVGUI_ParaViewSettingsPane::ShowRestartRequired = false;
//----------------------------------------------------------------------------
-PVGUI_ParaViewSettingsPane::PVGUI_ParaViewSettingsPane(QWidget *widgetParent)
+PVGUI_ParaViewSettingsPane::PVGUI_ParaViewSettingsPane(QWidget *widgetParent, LightApp_Application * app)
: QtxUserDefinedContent(widgetParent),
Internals (new PVGUI_ParaViewSettingsPane::pqInternals())
{
// this->connect(ui.buttonBox->button(QDialogButtonBox::RestoreDefaults), SIGNAL(clicked()),
// SLOT(onRestoreDefaults()));
// this->connect(ui.buttonBox, SIGNAL(clicked(QAbstractButton*)), SLOT(clicked(QAbstractButton*)));
+
+ // [ABN] connect to reset to default emitted by Light_App:
+ this->connect(app, SIGNAL(preferenceResetToDefaults()), this, SLOT(onRestoreDefaults()));
+
this->connect(this, SIGNAL(accepted()), SLOT(onAccepted()));
this->connect(this, SIGNAL(rejected()), SLOT(onRejected()));
this->connect(ui.tabBar, SIGNAL(currentChanged(int)), this, SLOT(onTabIndexChanged(int)));
class vtkSMProperty;
class QShowEvent;
class QHideEvent;
+class LightApp_Application;
/**!
* Almost identical copy/paste of what is found in
Q_OBJECT
public:
- PVGUI_ParaViewSettingsPane(QWidget *parent=0);
+ PVGUI_ParaViewSettingsPane(QWidget *parent, LightApp_Application * app);
virtual ~PVGUI_ParaViewSettingsPane();
/// Implementation of QtxUserDefinedContent interface