Newer
Older
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
#include "MantidQtCustomInterfaces/Reflectometry/QtReflMainWindowView.h"
#include "MantidQtCustomInterfaces/Reflectometry/QtReflRunsTabView.h"
namespace MantidQt {
namespace CustomInterfaces {
DECLARE_SUBWINDOW(QtReflMainWindowView)
//----------------------------------------------------------------------------------------------
/** Constructor
*/
QtReflMainWindowView::QtReflMainWindowView(QWidget *parent)
: UserSubWindow(parent) {}
//----------------------------------------------------------------------------------------------
/** Destructor
*/
QtReflMainWindowView::~QtReflMainWindowView() {}
/**
Initialise the Interface
*/
void QtReflMainWindowView::initLayout() {
m_ui.setupUi(this);
// Add tabs
// 'Runs' tab
QtReflRunsTabView *runsTab = new QtReflRunsTabView(this);
runsTab->initLayout();
m_ui.mainTab->addTab(runsTab, QString("Runs"));
// This tab may need to run python code (to import/export TBL and to search
// the ICAT). The corresponding signal needs to be re-emitted by this widget
connect(runsTab, SIGNAL(runAsPythonScript(const QString &, bool)), this,
SIGNAL(runAsPythonScript(const QString &, bool)));
}
}
}