Mantid
Loading...
Searching...
No Matches
StartLiveDataDialog.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
9//----------------------
10// Includes
11//----------------------
12#include "MantidAPI/Algorithm.h"
17#include "ui_StartLiveDataDialog.h"
18
19namespace MantidQt {
20namespace CustomDialogs {
22 Q_OBJECT
23
24public:
26 StartLiveDataDialog(QWidget *parent = nullptr);
27 ~StartLiveDataDialog() override;
28
29public slots:
34 void radioTimeClicked();
36
37private slots:
38 void setDefaultAccumulationMethod(const QString & /*listener*/);
39 void updateUiElements(const QString & /*inst*/);
40 void accept() override;
42 void updateConnectionChoices(const QString &inst_name);
43 void updateConnectionDetails(const QString &connection);
44
45private:
47 void initLayout() override;
48
50 void parseInput() override;
51
54
55private:
57 Ui::StartLiveDataDialog ui;
58
61
66
69
72
74 static const QString CUSTOM_CONNECTION;
75};
76} // namespace CustomDialogs
77} // namespace MantidQt
This class should be the basis for all customised algorithm dialogs.
Widget that contains dynamically generated PropertyWidget's for each property of an algorithm,...
WidgetScrollbarDecorator : Adds scrollbar functionality to a QWidget.
Ui::StartLiveDataDialog ui
The form generated by Qt Designer.
void chkPreserveEventsToggled()
Slot called when the preserve events checkbox changes.
void parseInput() override
Parse the input from the dialog when it has been accepted.
Mantid::API::Algorithm_sptr m_postProcessingAlg
The algorithm for processing the accumulated workspace.
static const QString CUSTOM_CONNECTION
Constant used for custom listener connection setups.
Mantid::API::Algorithm_sptr changeAlgorithm(MantidQt::MantidWidgets::AlgorithmSelectorWidget *selector, MantidQt::API::AlgorithmPropertiesWidget *propWidget)
void radioTimeClicked()
Slot called when one of the radio buttons in "starting time" are picked.
void changePostProcessingAlgorithm()
Slot called when picking a different algorithm in the AlgorithmSelectorWidget.
void initLayout() override
Initialize the layout.
void updateConnectionChoices(const QString &inst_name)
Slot to update list of available connections when instrument is changed.
void initListenerPropLayout()
Update the Listener Properties group box for the current LiveListener.
void radioPostProcessClicked()
Slot called when one of the radio buttons in "processing" are picked.
Mantid::API::Algorithm_sptr m_processingAlg
The algorithm for processing chunks.
void changeProcessingAlgorithm()
Slot called when picking a different algorithm in the AlgorithmSelectorWidget.
void radioProcessClicked()
Slot called when one of the radio buttons in "processing" are picked.
void updateUiElements(const QString &)
Another slot called when picking a different instrument.
void updateConnectionDetails(const QString &connection)
Slot to update connection parameters when connection selected.
API::WidgetScrollbarDecorator m_scrollbars
This dialog needs scrollbars on small screens.
void setDefaultAccumulationMethod(const QString &)
Slot called when picking a different instrument.
A widget consisting of a ComboBox and a TreeWidget to allow a user to select an algorithm either by c...
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...
std::shared_ptr< Algorithm > Algorithm_sptr
Typedef for a shared pointer to an Algorithm.
Definition: Algorithm.h:61