-
Notifications
You must be signed in to change notification settings - Fork 122
/
IndirectDiffractionReduction.h
68 lines (53 loc) · 1.7 KB
/
IndirectDiffractionReduction.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#ifndef MANTIDQTCUSTOMINTERFACES_INDIRECTDIFFRACTIONREDUCTION_H_
#define MANTIDQTCUSTOMINTERFACES_INDIRECTDIFFRACTIONREDUCTION_H_
//----------------------
// Includes
//----------------------
#include "ui_IndirectDiffractionReduction.h"
#include "MantidQtAPI/BatchAlgorithmRunner.h"
#include "MantidQtAPI/UserSubWindow.h"
namespace MantidQt
{
namespace CustomInterfaces
{
class IndirectDiffractionReduction : public MantidQt::API::UserSubWindow
{
Q_OBJECT
public:
/// The name of the interface as registered into the factory
static std::string name() { return "Diffraction"; }
// This interface's categories.
static QString categoryInfo() { return "Indirect"; }
public:
/// Default Constructor
IndirectDiffractionReduction(QWidget *parent = 0);
~IndirectDiffractionReduction();
public slots:
void demonRun();
void instrumentSelected(int);
void reflectionSelected(int);
void openDirectoryDialog();
void help();
void plotResults(bool error);
private:
virtual void initLayout();
void initLocalPython();
void loadSettings();
void saveSettings();
bool validateRebin();
bool validateVanCal();
Mantid::API::MatrixWorkspace_sptr loadInstrument(std::string instrumentName,
std::string reflection = "");
void runGenericReduction(QString instName, QString mode);
void runOSIRISdiffonlyReduction();
private:
Ui::IndirectDiffractionReduction m_uiForm; /// The form generated using Qt Designer
QIntValidator * m_valInt;
QDoubleValidator * m_valDbl;
QString m_settingsGroup; /// The settings group
MantidQt::API::BatchAlgorithmRunner *m_batchAlgoRunner;
QStringList m_plotWorkspaces;
};
}
}
#endif //MANTIDQTCUSTOMINTERFACES_INDIRECTDIFFRACTIONREDUCTION_H_