-
-//----------------------------------------------------------------------------
-PVGUI_ParaViewSettingsPane::PVGUI_ParaViewSettingsPane(QWidget *widgetParent)
- : QtxUserDefinedContent(widgetParent)
-{
- this->Form = new OptionsDialogForm();
- this->Form->setupUi(this);
- this->Form->PageNames->setModel(this->Form->Model);
-
- // Hide the tree widget header view.
- this->Form->PageNames->header()->hide();
-
- // Hide the apply and reset buttons until they are needed.
- //this->Form->ApplyButton->setEnabled(false);
- //this->Form->ResetButton->setEnabled(false);
- //this->Form->ApplyButton->hide();
- //this->Form->ResetButton->hide();
-
- this->connect(this->Form->PageNames->selectionModel(),
- SIGNAL(currentChanged(const QModelIndex &, const QModelIndex &)),
- this, SLOT(changeCurrentPage()));
- //this->connect(this->Form->ApplyButton, SIGNAL(clicked()),
- // this, SLOT(applyChanges()));
- //this->connect(this->Form->ResetButton, SIGNAL(clicked()),
- // this, SLOT(resetChanges()));
- //this->connect(this->Form->CloseButton, SIGNAL(clicked()),
- // this, SLOT(accept()));
-
- // Code From pqApplicationOptionsDialog
- //this->setApplyNeeded(true);
-
- pqApplicationOptions* appOptions = new pqApplicationOptions;
- this->addOptions(appOptions);
-
- pqGlobalRenderViewOptions* renOptions = new pqGlobalRenderViewOptions;
- this->addOptions(renOptions);
-
- QStringList pages = appOptions->getPageList();
- if(pages.size())
- {
- this->setCurrentPage(pages[0]);
- }
-
- /// Add panes as plugins are loaded.
- QObject::connect(pqApplicationCore::instance()->getPluginManager(),
- SIGNAL(guiInterfaceLoaded(QObject*)),
- this, SLOT(pluginLoaded(QObject*)));
-
- // Load panes from already loaded plugins.
- foreach (QObject* plugin_interface, pqApplicationCore::instance()->interfaceTracker()->interfaces())
- //pqApplicationCore::instance()->getPluginManager()->interfaces())
- {
- this->pluginLoaded(plugin_interface);
- }
+//-----------------------------------------------------------------------------
+void PVGUI_ParaViewSettingsPane::clicked(QAbstractButton *button)
+{
+// Ui::CustomSettingsWidget &ui = this->Internals->Ui;
+// QDialogButtonBox::ButtonRole role = ui.buttonBox->buttonRole(button);
+// switch (role)
+// {
+// case QDialogButtonBox::AcceptRole:
+// case QDialogButtonBox::ApplyRole:
+// emit this->accepted();
+// break;
+//
+// case QDialogButtonBox::ResetRole:
+// case QDialogButtonBox::RejectRole:
+// emit this->rejected();
+// break;
+// default:
+// break;
+// }