Skip to content

Commit

Permalink
Move setupOutputOptionsPresenter implementation to cpp file
Browse files Browse the repository at this point in the history
  • Loading branch information
robertapplin committed Nov 29, 2023
1 parent 5371cda commit 75e2a07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ void IndirectDataAnalysisTab::connectFitPropertyBrowser() {
connect(m_fitPropertyBrowser, SIGNAL(functionChanged()), this, SLOT(respondToFunctionChanged()));
}

void IndirectDataAnalysisTab::setupOutputOptionsPresenter(bool const editResults) {
m_outOptionsPresenter = std::make_unique<IndirectFitOutputOptionsPresenter>(m_uiForm->ovOutputOptionsView);
m_outOptionsPresenter->setEditResultVisible(editResults);
}

void IndirectDataAnalysisTab::setupPlotView(std::optional<std::pair<double, double>> const &xPlotBounds) {
m_plotPresenter = std::make_unique<IndirectFitPlotPresenter>(m_uiForm->dockArea->m_fitPlotView);
m_plotPresenter->setFittingData(m_dataPresenter->getFittingData());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,12 @@ class MANTIDQT_INELASTIC_DLL IndirectDataAnalysisTab : public IndirectTab {
m_uiForm->dockArea->setFitDataView(new FitDataView(m_uiForm->dockArea));
}

void setupOutputOptionsPresenter(bool const editResults = false) {
m_outOptionsPresenter = std::make_unique<IndirectFitOutputOptionsPresenter>(m_uiForm->ovOutputOptionsView);
m_outOptionsPresenter->setEditResultVisible(editResults);
}

template <typename FitDataPresenter> void setUpFitDataPresenter() {
m_dataPresenter =
std::make_unique<FitDataPresenter>(m_fittingModel->getFitDataModel(), m_uiForm->dockArea->m_fitDataView);
}

void setupOutputOptionsPresenter(bool const editResults = false);
void setupPlotView(std::optional<std::pair<double, double>> const &xPlotBounds = std::nullopt);

WorkspaceID getSelectedDataIndex() const;
Expand Down

0 comments on commit 75e2a07

Please sign in to comment.