Mantid
Loading...
Searching...
No Matches
SequentialFitDialog.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2009 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
9//----------------------------
10// Includes
11//----------------------------
12
13#include "DllOption.h"
16#include "ui_SequentialFitDialog.h"
17
18namespace MantidQt {
19namespace MantidWidgets {
20class PropertyHandler;
21class FitPropertyBrowser;
31 Q_OBJECT
32
33public:
35 SequentialFitDialog(FitPropertyBrowser *fitBrowser, QObject *mantidui);
36
39 bool addWorkspaces(const QStringList &wsNames);
40
41private:
43 Ui::SequentialFitDialog ui;
44
47
48signals:
49
52 void needShowPlot(Ui::SequentialFitDialog * /*_t1*/, MantidQt::MantidWidgets::FitPropertyBrowser * /*_t2*/);
53
54public slots:
55
57 void accept() override;
58
59private slots:
60
62 void addWorkspace();
64 void addFile();
66 void removeItem();
68 void functionChanged();
69
71 // void showPlot();
73 void helpClicked();
74
76 void spectraChanged(int row, int col);
78 void selectionChanged();
79
80 void plotAgainstLog(bool /*yes*/);
81
82private:
85 bool validateLogs(const QString &wsName);
86
88 void populateParameters();
89
91 void finishHandle(const Mantid::API::IAlgorithm *alg) override;
92
94 void getFitResults();
95
97 void setSpectrum(int row, int spec);
98
100 void setWSIndex(int row, int wi);
101
102 void setRange(int row, double from, double to);
103
106 QString getIndex(int row) const;
107
109 bool isFile(int row) const;
110
111 int rowCount() const;
112
113 int defaultSpectrum() const;
114
115 QString name(int row) const;
116
117 // name of the output wokrspace
118 std::string m_outputName;
119};
120} // namespace MantidWidgets
121} // namespace MantidQt
#define EXPORT_OPT_MANTIDQT_COMMON
Definition: DllOption.h:15
void removeItem(WorkspaceGroup &self, const std::string &name)
void addWorkspace(WorkspaceGroup &self, const boost::python::object &pyobj)
Class FitPropertyBrowser implements QtPropertyBrowser to display and control fitting function paramet...
This is a dialog for doing sequential fit.
void needShowPlot(Ui::SequentialFitDialog *, MantidQt::MantidWidgets::FitPropertyBrowser *)
This signal is fired from finishHandle running in the algorithm's thread and caught by showPlot slot ...
Ui::SequentialFitDialog ui
The form generated with Qt Designer.
FitPropertyBrowser * m_fitBrowser
Pointer to the calling fit browser.
Observes Algorithm notifications: start,progress,finish,error.
IAlgorithm is the interface implemented by the Algorithm base class.
Definition: IAlgorithm.h:45
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...