|
Mantid
|
#include <StartLiveDataDialog.h>
Public Slots | |
| void | changePostProcessingAlgorithm () |
| Slot called when picking a different algorithm in the AlgorithmSelectorWidget. | |
| void | changeProcessingAlgorithm () |
| Slot called when picking a different algorithm in the AlgorithmSelectorWidget. | |
| void | chkPreserveEventsToggled () |
| Slot called when the preserve events checkbox changes. | |
| void | radioPostProcessClicked () |
| Slot called when one of the radio buttons in "processing" are picked. | |
| void | radioProcessClicked () |
| Slot called when one of the radio buttons in "processing" are picked. | |
| void | radioTimeClicked () |
| Slot called when one of the radio buttons in "starting time" are picked. | |
Public Member Functions | |
| StartLiveDataDialog (QWidget *parent=nullptr) | |
| Default Constructor. | |
| ~StartLiveDataDialog () override | |
| Destructor. | |
Public Member Functions inherited from MantidQt::API::AlgorithmDialog | |
| AlgorithmDialog (QWidget *parent=nullptr) | |
| DefaultConstructor. | |
| void | initializeLayout () |
| Create the layout of the widget. Can only be called once. | |
| bool | isInitialized () const |
| Is this dialog initialized. | |
| bool | isShowKeepOpen () const |
| Set if the keep open option is shown. | |
| void | setShowKeepOpen (const bool showOption) |
| Set if the keep open option is shown. | |
| ~AlgorithmDialog () override | |
| Destructor. | |
| void | setAlgorithm (const Mantid::API::IAlgorithm_sptr &) |
| The following methods were made public for testing in GenericDialogDemo.cpp. | |
| void | setPresetValues (const QHash< QString, QString > &presetValues) |
| Set a list of suggested values. | |
| void | isForScript (bool forScript) |
| Set whether this is intended for use from a script or not. | |
| void | executeOnAccept (bool on) |
| If true then execute the algorithm on acceptance. | |
| void | setOptionalMessage (const QString &message) |
| Set an optional message to be displayed at the top of the dialog. | |
| void | addEnabledAndDisableLists (const QStringList &enabled, const QStringList &disabled) |
| Set comma-separated-list of enabled parameter names. | |
| void | addAlgorithmObserver (Mantid::API::AlgorithmObserver *observer) |
| Add an AlgorithmObserver to the algorithm. | |
| void | disableExitButton () |
| Disable the exit button. | |
Private Slots | |
| void | accept () override |
| void | initListenerPropLayout (const QString &listener) |
| Update the Listener Properties group box for the current LiveListener. | |
| void | setDefaultAccumulationMethod (const QString &) |
| Slot called when picking a different instrument. | |
| void | updateConnectionChoices (const QString &inst_name) |
| Slot to update list of available connections when instrument is changed. | |
| void | updateConnectionDetails (const QString &connection) |
| Slot to update connection parameters when connection selected. | |
| void | updateUiElements (const QString &) |
| Another slot called when picking a different instrument. | |
Private Member Functions | |
| Mantid::API::Algorithm_sptr | changeAlgorithm (MantidQt::MantidWidgets::AlgorithmSelectorWidget *selector, MantidQt::API::AlgorithmPropertiesWidget *propWidget) |
| void | fillInstrumentComboBox () |
| Fill the instrument combo box from the default facility's live-data instruments. | |
| void | initLayout () override |
| Initialize the layout. | |
| void | parseInput () override |
| Parse the input from the dialog when it has been accepted. | |
Private Attributes | |
| Mantid::API::Algorithm_sptr | m_postProcessingAlg |
| The algorithm for processing the accumulated workspace. | |
| Mantid::API::Algorithm_sptr | m_processingAlg |
| The algorithm for processing chunks. | |
| API::WidgetScrollbarDecorator | m_scrollbars |
| This dialog needs scrollbars on small screens. | |
| bool | m_usePostProcessAlgo |
| bool | m_usePostProcessScript |
| bool | m_useProcessAlgo |
| bool | m_useProcessScript |
| Ui::StartLiveDataDialog | ui |
| The form generated by Qt Designer. | |
Static Private Attributes | |
| static const QString | CUSTOM_CONNECTION = "[Custom]" |
| Constant used for custom listener connection setups. | |
Additional Inherited Members | |
Signals inherited from MantidQt::API::AlgorithmDialog | |
| void | algCompletedSignal () |
| Emitted when alg completes and dialog is staying open. | |
| void | closeEventCalled () |
Protected Slots inherited from MantidQt::API::AlgorithmDialog | |
| void | accept () override |
| A default slot that can be used for an OK button. | |
| void | reject () override |
| A default slot that can be used for a rejected button. | |
| virtual void | helpClicked () |
| Help button clicked;. | |
| virtual void | keepOpenChanged (int state) |
| Keep open checkbox clicked;. | |
| virtual void | algorithmCompleted () |
| Keep the running algorithm has completed. | |
| virtual void | executeAlgorithmAsync () |
| Executes the algorithm in a separate thread. | |
| virtual void | removeAlgorithmFromManager () |
| Removes the algorithm from the manager. | |
| void | enableExitButton () |
| Enable to exit button. | |
Protected Member Functions inherited from MantidQt::API::AlgorithmDialog | |
| virtual void | saveInput () |
| Save the input history of an accepted dialog. | |
| const QString & | getOptionalMessage () const |
| Get the message string. | |
| void | addOptionalMessage (QVBoxLayout *mainLay) |
| Add the optional message to the given layout. | |
| bool | isForScript () const |
| Get the usage boolean value. | |
| bool | isMessageAvailable () const |
| Is there a message string available. | |
| bool | isWidgetEnabled (const QString &propName) const |
| Check is a given property should have its control enabled or not. | |
| Mantid::API::IAlgorithm_sptr | getAlgorithm () const |
| Get the algorithm pointer. | |
| Mantid::Kernel::Property * | getAlgorithmProperty (const QString &propName) const |
| Get a pointer to the named property. | |
| bool | requiresUserInput (const QString &propName) const |
| Return a true if the given property requires user input. | |
| QString | getInputValue (const QString &propName) const |
| Get an input value from the form, dealing with blank inputs etc. | |
| QLabel * | getValidatorMarker (const QString &propname) |
| Get a property validator label. | |
| void | storePropertyValue (const QString &name, const QString &value) |
| Adds a property (name,value) pair to the stored map. | |
| void | removePropertyValue (const QString &name) |
| Removes a property (name, value) pair from the stored map. | |
| bool | setPropertyValues (const QStringList &skipList=QStringList()) |
| Set properties on this algorithm by pulling values from the tied widgets. | |
| bool | setPropertyValue (const QString &pName, bool validateOthers) |
| Sets the value of a single property, using the value previously stored using storePropertyValue() | |
| void | showValidators () |
| Show the validators for all the properties. | |
| QWidget * | tie (QWidget *widget, const QString &property, QLayout *parent_layout=nullptr, bool readHistory=true) |
| Tie a widget to a property. | |
| void | untie (const QString &property) |
| Untie a widget to a property. | |
| QString | openFileDialog (const QString &propName) |
| Open a file dialog to select a file. | |
| QStringList | openMultipleFileDialog (const QString &propName) |
| Open a file dialog to select many file. | |
| void | fillAndSetComboBox (const QString &propName, QComboBox *optionsBox) const |
| Fill a combo box for the named algorithm's allowed values. | |
| void | fillLineEdit (const QString &propName, QLineEdit *field) |
| Fill in the necessary input for a text field. | |
| 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. | |
| QPushButton * | createHelpButton (const QString &helpText=QString("?")) const |
| Create a help button for this algorithm. | |
| void | flagInputWS (QWidget *inputWidget) |
| Flag an input workspace combobox with its property name. | |
| QString | getValue (QWidget *widget) |
| Retrieve a text value for a property from a widget. | |
| void | parse () |
| Parse out the input from the dialog. | |
| bool | requestedToKeepEnabled (const QString &propName) const |
| Test if the given name's widget has been explicity asked to be enabled. | |
| QString | getPreviousValue (const QString &propName) const |
| Get the property value from either the previous input store or from Python argument. | |
| void | setPreviousValue (QWidget *widget, const QString &property) |
| Set a value based on any old input that we have. | |
| void | finishHandle (const Mantid::API::IAlgorithm *alg) override |
| Handle completion of algorithm started while staying open. | |
| void | errorHandle (const Mantid::API::IAlgorithm *alg, const std::string &what) override |
| Handle completion of algorithm started while staying open. | |
| void | closeEvent (QCloseEvent *evt) override |
| Only allow close when close is enabled. | |
Protected Attributes inherited from MantidQt::API::AlgorithmDialog | |
| Mantid::API::IAlgorithm_sptr | m_algorithm |
| The algorithm associated with this dialog. | |
| QString | m_algName |
| The name of the algorithm. | |
| QStringList | m_algProperties |
| The properties associated with this dialog. | |
| QHash< QString, QString > | m_propertyValueMap |
| A map of property <name, value> pairs that have been taken from the dialog. | |
| QHash< QString, QWidget * > | m_tied_properties |
| A list pointers to the widget for each property. | |
| bool | m_forScript |
| A boolean indicating whether this is for a script or not. | |
| QStringList | m_python_arguments |
| A list of property names that have been passed from Python. | |
| QStringList | m_enabled |
| A list of property names that should have their widgets enabled. | |
| QStringList | m_disabled |
| A list of property names that the user has requested to be disabled (overrides those in enabled) | |
| QString | m_strMessage |
| The message string to be displayed at the top of the widget; if it exists. | |
| bool | m_keepOpen |
| Whether to keep the dialog box open after alg execution. | |
| bool | m_msgAvailable |
| Is the message string empty or not. | |
| bool | m_isInitialized |
| Whether the layout has been initialized. | |
| bool | m_autoParseOnInit |
| Flag if the input should be parsed automatically on initialization. | |
| QHash< QString, QLabel * > | m_validators |
| A list of labels to use as validation markers. | |
| QHash< QString, QString > | m_errors |
| A map where key = property name; value = the error for this property (i.e. | |
| QStringList | m_noValidation |
| A list of property names whose widgets handle their own validation. | |
| QList< QWidget * > | m_inputws_opts |
| Store a list of the names of input workspace boxes. | |
| QList< QLineEdit * > | m_outputws_fields |
| Store a list of output workspace text edits. | |
| QHash< QPushButton *, int > | m_wsbtn_tracker |
| A map to keep track of replace workspace button presses. | |
| QCheckBox * | m_keepOpenCheckBox |
| QPushButton * | m_okButton |
| QPushButton * | m_exitButton |
| std::vector< Mantid::API::AlgorithmObserver * > | m_observers |
| A list of AlgorithmObservers to add to the algorithm prior to execution. | |
| QTimer | m_btnTimer |
| Enable the close button when the timer fires. | |
| bool | m_statusTracked |
| A flag to track whether the status of the algorithm is being tracked. | |
Definition at line 21 of file StartLiveDataDialog.h.
| MantidQt::CustomDialogs::StartLiveDataDialog::StartLiveDataDialog | ( | QWidget * | parent = nullptr | ) |
|
override |
Destructor.
Definition at line 90 of file StartLiveDataDialog.cpp.
|
overrideprivateslot |
Definition at line 382 of file StartLiveDataDialog.cpp.
References MantidQt::API::AlgorithmDialog::accept(), MantidQt::API::AlgorithmDialog::storePropertyValue(), and ui.
|
private |
|
slot |
Slot called when picking a different algorithm in the AlgorithmSelectorWidget.
Definition at line 315 of file StartLiveDataDialog.cpp.
References m_postProcessingAlg, and ui.
Referenced by initLayout().
|
slot |
Slot called when picking a different algorithm in the AlgorithmSelectorWidget.
Definition at line 305 of file StartLiveDataDialog.cpp.
References m_processingAlg, and ui.
Referenced by initLayout().
|
slot |
Slot called when the preserve events checkbox changes.
Definition at line 298 of file StartLiveDataDialog.cpp.
References ui.
Referenced by initLayout().
|
private |
Fill the instrument combo box from the default facility's live-data instruments.
Fill the instrument combo box with the instruments that have a live listener in the algorithm's facility, and restore the previously used value if it is still one of them.
Definition at line 459 of file StartLiveDataDialog.cpp.
References index, ui, and Mantid::Kernel::Logger::warning().
Referenced by initLayout().
|
overrideprivatevirtual |
Initialize the layout.
Set up the dialog layout.
Implements MantidQt::API::AlgorithmDialog.
Definition at line 97 of file StartLiveDataDialog.cpp.
References changePostProcessingAlgorithm(), changeProcessingAlgorithm(), chkPreserveEventsToggled(), MantidQt::API::AlgorithmDialog::createDefaultButtonLayout(), MantidQt::API::AlgorithmDialog::fillAndSetComboBox(), fillInstrumentComboBox(), initListenerPropLayout(), m_scrollbars, radioPostProcessClicked(), radioProcessClicked(), radioTimeClicked(), setDefaultAccumulationMethod(), MantidQt::API::WidgetScrollbarDecorator::setEnabled(), MantidQt::API::AlgorithmDialog::tie(), ui, updateConnectionChoices(), updateConnectionDetails(), and updateUiElements().
|
privateslot |
Update the Listener Properties group box for the current LiveListener.
Definition at line 400 of file StartLiveDataDialog.cpp.
References MantidQt::API::AlgorithmDialog::m_algorithm, MantidQt::API::AlgorithmDialog::m_algProperties, MantidQt::API::AlgorithmDialog::tie(), and ui.
Referenced by initLayout().
|
overrideprivatevirtual |
Parse the input from the dialog when it has been accepted.
Parse input when the dialog is accepted.
Reimplemented from MantidQt::API::AlgorithmDialog.
Definition at line 230 of file StartLiveDataDialog.cpp.
References m_postProcessingAlg, m_processingAlg, m_usePostProcessAlgo, m_usePostProcessScript, m_useProcessAlgo, m_useProcessScript, MantidQt::API::AlgorithmDialog::storePropertyValue(), and ui.
|
slot |
Slot called when one of the radio buttons in "processing" are picked.
Definition at line 283 of file StartLiveDataDialog.cpp.
References m_usePostProcessAlgo, m_usePostProcessScript, and ui.
Referenced by initLayout().
|
slot |
Slot called when one of the radio buttons in "processing" are picked.
Definition at line 274 of file StartLiveDataDialog.cpp.
References m_useProcessAlgo, m_useProcessScript, and ui.
Referenced by initLayout().
|
slot |
Slot called when one of the radio buttons in "starting time" are picked.
Definition at line 295 of file StartLiveDataDialog.cpp.
References ui.
Referenced by initLayout().
|
privateslot |
Slot called when picking a different instrument.
Disables the 'Add' option if the listener is going to pass back histograms.
| listener | :: The listener class name. |
Definition at line 327 of file StartLiveDataDialog.cpp.
References ui.
Referenced by initLayout().
|
privateslot |
Slot to update list of available connections when instrument is changed.
| inst_name | Name of selected instrument |
Definition at line 496 of file StartLiveDataDialog.cpp.
References CUSTOM_CONNECTION, index, and ui.
Referenced by initLayout().
|
privateslot |
Slot to update connection parameters when connection selected.
| connection | Name of selected live listener connection |
Definition at line 522 of file StartLiveDataDialog.cpp.
References CUSTOM_CONNECTION, index, and ui.
Referenced by initLayout().
|
privateslot |
Another slot called when picking a different instrument.
Disables UI elements that are not used by the instrument Currently, only TOPAZ listener uses this (and only for the "Starting Time" group.
| inst | :: The instrument name. |
Definition at line 364 of file StartLiveDataDialog.cpp.
References ui.
Referenced by initLayout().
|
staticprivate |
Constant used for custom listener connection setups.
Definition at line 77 of file StartLiveDataDialog.h.
Referenced by updateConnectionChoices(), and updateConnectionDetails().
|
private |
The algorithm for processing the accumulated workspace.
Definition at line 74 of file StartLiveDataDialog.h.
Referenced by changePostProcessingAlgorithm(), and parseInput().
|
private |
The algorithm for processing chunks.
Definition at line 71 of file StartLiveDataDialog.h.
Referenced by changeProcessingAlgorithm(), and parseInput().
|
private |
This dialog needs scrollbars on small screens.
Definition at line 63 of file StartLiveDataDialog.h.
Referenced by initLayout().
|
private |
Definition at line 67 of file StartLiveDataDialog.h.
Referenced by parseInput(), and radioPostProcessClicked().
|
private |
Definition at line 68 of file StartLiveDataDialog.h.
Referenced by parseInput(), and radioPostProcessClicked().
|
private |
Definition at line 65 of file StartLiveDataDialog.h.
Referenced by parseInput(), and radioProcessClicked().
|
private |
Definition at line 66 of file StartLiveDataDialog.h.
Referenced by parseInput(), and radioProcessClicked().
|
private |
The form generated by Qt Designer.
Definition at line 60 of file StartLiveDataDialog.h.
Referenced by accept(), changePostProcessingAlgorithm(), changeProcessingAlgorithm(), chkPreserveEventsToggled(), fillInstrumentComboBox(), initLayout(), initListenerPropLayout(), parseInput(), radioPostProcessClicked(), radioProcessClicked(), radioTimeClicked(), setDefaultAccumulationMethod(), updateConnectionChoices(), updateConnectionDetails(), and updateUiElements().