32 :
MantidQt::
API::AlgorithmDialog(parent), lineHost(nullptr), lineName(nullptr), minSpLineEdit(nullptr),
33 maxSpLineEdit(nullptr), listSpLineEdit(nullptr), updateLineEdit(nullptr) {}
38 auto *paramsLayout =
new QGridLayout;
39 auto *label =
new QLabel(tr(
"DAE Name"));
42 paramsLayout->addWidget(label, 0, 0);
43 paramsLayout->addWidget(
lineHost, 0, 1);
46 label =
new QLabel(tr(
"Workspace Name"));
49 paramsLayout->addWidget(label, 1, 0);
50 paramsLayout->addWidget(
lineName, 1, 1);
53 auto *minSpLabel =
new QLabel(
"Starting spectrum");
55 paramsLayout->addWidget(minSpLabel, 2, 0);
59 auto *maxSpLabel =
new QLabel(
"Ending spectrum");
61 paramsLayout->addWidget(maxSpLabel, 3, 0);
65 auto *listSpLabel =
new QLabel(
"Spectrum List");
67 paramsLayout->addWidget(listSpLabel, 4, 0);
71 auto *updateLayout =
new QHBoxLayout;
72 auto *updateLabel =
new QLabel(
"Update every");
74 QIntValidator *ival =
new QIntValidator(1, 99999999,
updateLineEdit);
77 label =
new QLabel(
" seconds");
78 paramsLayout->addWidget(updateLabel, 5, 0);
80 updateLayout->addWidget(label);
81 paramsLayout->addLayout(updateLayout, 5, 1);
84 auto *mainLayout =
new QVBoxLayout;
85 mainLayout->addLayout(paramsLayout);
88 setLayout(mainLayout);
89 setWindowTitle(tr(
"Load Workspace from DAE"));
90 setFixedHeight(sizeHint().
height());
#define DECLARE_DIALOG(classname)
QLayout * createDefaultButtonLayout(const QString &helpText=QString("?"), const QString &loadText=QString("Run"), const QString &cancelText=QString("Close"), const QString &keepOpenText=QString("Keep Open"))
Create a row layout of buttons with specified text.
QWidget * tie(QWidget *widget, const QString &property, QLayout *parent_layout=nullptr, bool readHistory=true)
Tie a widget to a property.
QLineEdit * maxSpLineEdit
QLineEdit * listSpLineEdit
QLineEdit * updateLineEdit
~LoadDAEDialog() override
Destruktor.
QLineEdit * minSpLineEdit
LoadDAEDialog(QWidget *parent=nullptr)
Constructor.
void initLayout() override
This does the work and must be overridden in each deriving class.
An object for constructing a shared_ptr that won't ever delete its pointee.
void operator()(const void *)
Does nothing.
void operator()(void *)
Does nothing.
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...