-
Notifications
You must be signed in to change notification settings - Fork 122
/
IndirectDiffractionReduction.h
58 lines (47 loc) · 1.31 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
#ifndef MANTIDQTCUSTOMINTERFACES_INDIRECTDIFFRACTIONREDUCTION_H_
#define MANTIDQTCUSTOMINTERFACES_INDIRECTDIFFRACTIONREDUCTION_H_
//----------------------
// Includes
//----------------------
#include "ui_IndirectDiffractionReduction.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();
private:
/// Initialize the layout
virtual void initLayout();
void initLocalPython();
void loadSettings();
void saveSettings();
bool validateDemon();
private:
/// The form generated using Qt Designer
Ui::IndirectDiffractionReduction m_uiForm;
QIntValidator * m_valInt;
QDoubleValidator * m_valDbl;
/// The settings group
QString m_settingsGroup;
};
}
}
#endif //MANTIDQTCUSTOMINTERFACES_INDIRECTDIFFRACTIONREDUCTION_H_