|
Mantid
|
A widget containing an algorithm selector and algorithm properties list, or a script editor window. More...
#include <ProcessingAlgoWidget.h>
Public Slots | |
| void | btnLoadClicked () |
| Slot called when the Load button is clicked. | |
| void | btnSaveClicked () |
| Slot called when the save button is clicked. | |
| void | changeAlgorithm () |
| Slot called when the algorithm selected changes. | |
Signals | |
| void | changedAlgorithm () |
| Signal emitted when the algorithm changes. | |
Public Member Functions | |
| bool | algoVisible () |
| void | algoVisible (bool vis) |
| Sets whether the algorithm stuff is visible. | |
| ProcessingAlgoWidgetSettings | captureSettings () const |
| Capture current widget state without persistent access. | |
| bool | editorVisible () |
| void | editorVisible (bool vis) |
| Sets whether the script editor is visible. | |
| Mantid::API::Algorithm_sptr | getAlgorithm () |
| QString | getScriptText () |
| QString | getSelectedAlgorithm () |
| QString | infoString () |
| void | infoString (const QString &text) |
| Sets the info string displayed at the top. | |
| ProcessingAlgoWidget (QWidget *parent=nullptr) | |
| Default Constructor. | |
| void | restoreSettings (const ProcessingAlgoWidgetSettings &settings) |
| Apply an immutable settings snapshot without persistent access. | |
| void | saveInput () |
| Save the inputs to algorithm history. | |
| void | setInputHistory (MantidQt::API::AbstractAlgorithmInputHistory *inputHistory) |
| Sets the AlgorithmInputHistory object recording the algorithm properties. | |
| void | setScriptText (const QString &text) |
| Set the script editor text. | |
| void | setSelectedAlgorithm (QString algo) |
| Set the name of the selected algorithm. | |
| ~ProcessingAlgoWidget () override | |
| Destructor. | |
Properties | |
| bool | algoVisible |
| bool | editorVisible |
| QString | infoString |
Private Attributes | |
| Mantid::API::Algorithm_sptr | m_alg |
| Current algorithm with properties set. | |
| QString | m_lastFile |
| Last saved file path. | |
| Ui::ProcessingAlgoWidget | ui |
| The form generated by Qt Designer. | |
A widget containing an algorithm selector and algorithm properties list, or a script editor window.
Allows the user to pick a processing step, either as a python script or an algorithm.
For use initially in the StartLiveDataDialog.
Definition at line 42 of file ProcessingAlgoWidget.h.
| MantidQt::MantidWidgets::ProcessingAlgoWidget::ProcessingAlgoWidget | ( | QWidget * | parent = nullptr | ) |
Default Constructor.
Constructor.
Definition at line 41 of file ProcessingAlgoWidget.cpp.
References btnLoadClicked(), btnSaveClicked(), changeAlgorithm(), MantidQt::MantidWidgets::ProcessingAlgoWidgetSettings::readSettings(), restoreSettings(), and ui.
|
override |
Destructor.
Definition at line 72 of file ProcessingAlgoWidget.cpp.
References captureSettings(), and MantidQt::MantidWidgets::ProcessingAlgoWidgetSettings::saveSettings().
|
inline |
Definition at line 64 of file ProcessingAlgoWidget.h.
|
inline |
Sets whether the algorithm stuff is visible.
Definition at line 66 of file ProcessingAlgoWidget.h.
|
slot |
Slot called when the Load button is clicked.
Definition at line 116 of file ProcessingAlgoWidget.cpp.
References m_lastFile, and ui.
Referenced by ProcessingAlgoWidget().
|
slot |
Slot called when the save button is clicked.
Definition at line 94 of file ProcessingAlgoWidget.cpp.
References m_lastFile, and ui.
Referenced by ProcessingAlgoWidget().
| ProcessingAlgoWidgetSettings MantidQt::MantidWidgets::ProcessingAlgoWidget::captureSettings | ( | ) | const |
Capture current widget state without persistent access.
Definition at line 88 of file ProcessingAlgoWidget.cpp.
References m_lastFile.
Referenced by ~ProcessingAlgoWidget().
|
slot |
Slot called when the algorithm selected changes.
Definition at line 133 of file ProcessingAlgoWidget.cpp.
References changedAlgorithm(), m_alg, and ui.
Referenced by ProcessingAlgoWidget(), and setSelectedAlgorithm().
|
signal |
Signal emitted when the algorithm changes.
Referenced by changeAlgorithm().
|
inline |
Definition at line 59 of file ProcessingAlgoWidget.h.
|
inline |
Sets whether the script editor is visible.
Definition at line 61 of file ProcessingAlgoWidget.h.
|
inline |
Definition at line 84 of file ProcessingAlgoWidget.h.
References m_alg.
| QString MantidQt::MantidWidgets::ProcessingAlgoWidget::getScriptText | ( | ) |
Definition at line 171 of file ProcessingAlgoWidget.cpp.
References ui.
|
inline |
Definition at line 69 of file ProcessingAlgoWidget.h.
|
inline |
Definition at line 54 of file ProcessingAlgoWidget.h.
|
inline |
Sets the info string displayed at the top.
Definition at line 56 of file ProcessingAlgoWidget.h.
| void MantidQt::MantidWidgets::ProcessingAlgoWidget::restoreSettings | ( | const ProcessingAlgoWidgetSettings & | settings | ) |
Apply an immutable settings snapshot without persistent access.
Definition at line 84 of file ProcessingAlgoWidget.cpp.
References MantidQt::MantidWidgets::ProcessingAlgoWidgetSettings::lastFile(), and m_lastFile.
Referenced by ProcessingAlgoWidget().
| void MantidQt::MantidWidgets::ProcessingAlgoWidget::saveInput | ( | ) |
Save the inputs to algorithm history.
Definition at line 81 of file ProcessingAlgoWidget.cpp.
References ui.
|
inline |
Sets the AlgorithmInputHistory object recording the algorithm properties.
Definition at line 79 of file ProcessingAlgoWidget.h.
| void MantidQt::MantidWidgets::ProcessingAlgoWidget::setScriptText | ( | const QString & | text | ) |
| void MantidQt::MantidWidgets::ProcessingAlgoWidget::setSelectedAlgorithm | ( | QString | algo | ) |
Set the name of the selected algorithm.
Updates the GUI.
| algo | :: name of the algorithm |
Definition at line 165 of file ProcessingAlgoWidget.cpp.
References changeAlgorithm(), and ui.
|
private |
Current algorithm with properties set.
Definition at line 105 of file ProcessingAlgoWidget.h.
Referenced by changeAlgorithm().
|
private |
Last saved file path.
Definition at line 108 of file ProcessingAlgoWidget.h.
Referenced by btnLoadClicked(), btnSaveClicked(), captureSettings(), and restoreSettings().
|
private |
The form generated by Qt Designer.
Definition at line 102 of file ProcessingAlgoWidget.h.
Referenced by btnLoadClicked(), btnSaveClicked(), changeAlgorithm(), getScriptText(), ProcessingAlgoWidget(), saveInput(), setScriptText(), and setSelectedAlgorithm().
|
readwrite |
Definition at line 46 of file ProcessingAlgoWidget.h.
|
readwrite |
Definition at line 45 of file ProcessingAlgoWidget.h.
|
readwrite |
Definition at line 44 of file ProcessingAlgoWidget.h.