void EnggDiffMultiRunFittingQtWidget::setupUI() {
  m_ui.setupUi(this);

  connect(m_ui.listWidget_runLabels, SIGNAL(itemSelectionChanged()), this,
          SLOT(processSelectRun()));
  connect(m_ui.checkBox_plotFittedPeaks, SIGNAL(stateChanged(int)), this,
          SLOT(plotFittedPeaksStateChanged()));
  connect(m_ui.pushButton_removeRun, SIGNAL(clicked()), this,
          SLOT(processRemoveRun()));
  connect(m_ui.pushButton_plotToSeparateWindow, SIGNAL(clicked()), this,
          SLOT(processPlotToSeparateWindow()));
}
void EnggDiffMultiRunFittingWidgetPresenter::notify(
    IEnggDiffMultiRunFittingWidgetPresenter::Notification notif) {
  switch (notif) {
  case Notification::PlotPeaksStateChanged:
    processPlotPeaksStateChanged();
    break;

  case Notification::PlotToSeparateWindow:
    processPlotToSeparateWindow();
    break;

  case Notification::RemoveRun:
    processRemoveRun();
    break;

  case Notification::SelectRun:
    processSelectRun();
    break;
  }
}