-
Notifications
You must be signed in to change notification settings - Fork 122
/
JumpFit.h
50 lines (42 loc) · 1.44 KB
/
JumpFit.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef MANTIDQTCUSTOMINTERFACES_JUMPFIT_H_
#define MANTIDQTCUSTOMINTERFACES_JUMPFIT_H_
#include "ui_JumpFit.h"
#include "MantidQtCustomInterfaces/IndirectBayesTab.h"
namespace MantidQt
{
namespace CustomInterfaces
{
class DLLExport JumpFit : public IndirectBayesTab
{
Q_OBJECT
public:
JumpFit(QWidget * parent = 0);
// Inherited methods from IndirectBayesTab
QString help() { return "JumpFit"; };
void setup();
bool validate();
void run();
/// Load default settings into the interface
void loadSettings(const QSettings& settings);
private slots:
/// Handle when the sample input is ready
void handleSampleInputReady(const QString& filename);
/// Slot to handle plotting a different spectrum of the workspace
void handleWidthChange(const QString& text);
/// Slot for when the min range on the range selector changes
void minValueChanged(double min);
/// Slot for when the min range on the range selector changes
void maxValueChanged(double max);
/// Slot to update the guides when the range properties change
void updateProperties(QtProperty* prop, double val);
/// Find all spectra with width data in the workspace
void findAllWidths(Mantid::API::MatrixWorkspace_const_sptr ws);
private:
// The UI form
Ui::JumpFit m_uiForm;
// map of axis labels to spectrum number
std::map<std::string, int> spectraList;
};
} // namespace CustomInterfaces
} // namespace MantidQt
#endif