-
Notifications
You must be signed in to change notification settings - Fork 122
/
ApplyCorr.h
51 lines (40 loc) · 1.25 KB
/
ApplyCorr.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
51
#ifndef MANTIDQTCUSTOMINTERFACESIDA_APPLYCORR_H_
#define MANTIDQTCUSTOMINTERFACESIDA_APPLYCORR_H_
#include "MantidAPI/MatrixWorkspace.h"
#include "ui_ApplyCorr.h"
#include "IDATab.h"
namespace MantidQt
{
namespace CustomInterfaces
{
namespace IDA
{
class DLLExport ApplyCorr : public IDATab
{
Q_OBJECT
public:
ApplyCorr(QWidget * parent = 0);
private slots:
/// Handles the geometry being changed
void handleGeometryChange(int index);
/// Handles a new sample being loaded
void newData(const QString &dataName);
/// Updates the preview mini plot
void plotPreview(int specIndex);
/// Handle algorithm completion
void algorithmComplete(bool error);
private:
virtual void setup();
virtual void run();
virtual bool validate();
virtual void loadSettings(const QSettings & settings);
void addRebinStep(QString toRebin, QString toMatch);
void addInterpolationStep(Mantid::API::MatrixWorkspace_sptr toInterpolate, std::string toMatch);
Ui::ApplyCorr m_uiForm;
/// Pointer to the result workspace (for plotting)
Mantid::API::MatrixWorkspace_sptr m_outputWs;
};
} // namespace IDA
} // namespace CustomInterfaces
} // namespace MantidQt
#endif /* MANTIDQTCUSTOMINTERFACESIDA_APPLYCORR_H_ */