void ModeControlWidget::onThreeSliceViewButtonClicked() { this->ui.threeSliceButton->setEnabled(false); this->ui.multiSliceButton->setEnabled(true); this->ui.splatterPlotButton->setEnabled(true); this->ui.standardButton->setEnabled(true); emit executeSwitchViews(ModeControlWidget::THREESLICE); }
mpMainWindow::mpMainWindow(QWidget *parent) : QMainWindow(parent) { this->setupUi(this); // Unset the connections since the views aren't up yet. this->removeProxyTabWidgetConnections(); new pqParaViewBehaviors(this, this); // We want the actionLoad to result in the showing up the ParaView's OpenData // dialog letting the user pick from one of the supported file formats. pqLoadDataReaction* dataLoader = new pqLoadDataReaction(this->action_Open); QObject::connect(dataLoader, SIGNAL(loadedData(pqPipelineSource*)), this, SLOT(onDataLoaded(pqPipelineSource*))); QObject::connect(this->modeControlWidget, SIGNAL(executeSwitchViews(ModeControlWidget::Views)), this, SLOT(switchViews(ModeControlWidget::Views))); //pqUndoReaction //QObject::connect() // Commented this out to only use Mantid supplied readers // Initialize all readers available to ParaView. Now our application can load // all types of datasets supported by ParaView. vtkSMProxyManager::GetProxyManager()->GetReaderFactory()->RegisterPrototypes("sources"); // Set the standard view as the default this->currentView = this->setMainViewWidget(this->viewWidget, ModeControlWidget::STANDARD); this->setMainWindowComponentsForView(); }
void ModeControlWidget::onSplatterPlotViewButtonClicked() { this->ui.splatterPlotButton->setEnabled(false); this->ui.standardButton->setEnabled(true); this->ui.multiSliceButton->setEnabled(true); this->ui.threeSliceButton->setEnabled(true); emit executeSwitchViews(ModeControlWidget::SPLATTERPLOT); }