|
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. More... | |
| void | btnSaveClicked () |
| Slot called when the save button is clicked. More... | |
| void | changeAlgorithm () |
| Slot called when the algorithm selected changes. More... | |
Signals | |
| void | changedAlgorithm () |
| Signal emitted when the algorithm changes. More... | |
Public Member Functions | |
| bool | algoVisible () |
| void | algoVisible (bool vis) |
| Sets whether the algorithm stuff is visible. More... | |
| bool | editorVisible () |
| void | editorVisible (bool vis) |
| Sets whether the script editor is visible. More... | |
| Mantid::API::Algorithm_sptr | getAlgorithm () |
| QString | getScriptText () |
| QString | getSelectedAlgorithm () |
| QString | infoString () |
| void | infoString (const QString &text) |
| Sets the info string displayed at the top. More... | |
| ProcessingAlgoWidget (QWidget *parent=nullptr) | |
| Default Constructor. More... | |
| void | saveInput () |
| Save the inputs to algorithm history. More... | |
| void | setInputHistory (MantidQt::API::AbstractAlgorithmInputHistory *inputHistory) |
| Sets the AlgorithmInputHistory object recording the algorithm properties. More... | |
| void | setScriptText (const QString &text) |
| Set the script editor text. More... | |
| void | setSelectedAlgorithm (QString algo) |
| Set the name of the selected algorithm. More... | |
| ~ProcessingAlgoWidget () override | |
| Destructor. More... | |
Properties | |
| bool | algoVisible |
| bool | editorVisible |
| QString | infoString |
Private Member Functions | |
| void | loadSettings () |
| Load QSettings from .ini-type files. More... | |
| void | saveSettings () |
| Save settings for next time. More... | |
Private Attributes | |
| Mantid::API::Algorithm_sptr | m_alg |
| Current algorithm with properties set. More... | |
| QString | m_lastFile |
| Last saved file path. More... | |
| Ui::ProcessingAlgoWidget | ui |
| The form generated by Qt Designer. More... | |
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 23 of file ProcessingAlgoWidget.h.
| MantidQt::MantidWidgets::ProcessingAlgoWidget::ProcessingAlgoWidget | ( | QWidget * | parent = nullptr | ) |
Default Constructor.
Constructor.
Definition at line 27 of file ProcessingAlgoWidget.cpp.
References btnLoadClicked(), btnSaveClicked(), changeAlgorithm(), loadSettings(), and ui.
|
override |
|
inline |
Definition at line 45 of file ProcessingAlgoWidget.h.
|
inline |
Sets whether the algorithm stuff is visible.
Definition at line 47 of file ProcessingAlgoWidget.h.
|
slot |
Slot called when the Load button is clicked.
Definition at line 103 of file ProcessingAlgoWidget.cpp.
References m_lastFile, and ui.
Referenced by ProcessingAlgoWidget().
|
slot |
Slot called when the save button is clicked.
Definition at line 81 of file ProcessingAlgoWidget.cpp.
References m_lastFile, and ui.
Referenced by ProcessingAlgoWidget().
|
slot |
Slot called when the algorithm selected changes.
Definition at line 120 of file ProcessingAlgoWidget.cpp.
References changedAlgorithm(), Mantid::Kernel::SingletonHolder< T >::Instance(), m_alg, and ui.
Referenced by ProcessingAlgoWidget(), and setSelectedAlgorithm().
|
signal |
Signal emitted when the algorithm changes.
Referenced by changeAlgorithm().
|
inline |
Definition at line 40 of file ProcessingAlgoWidget.h.
|
inline |
Sets whether the script editor is visible.
Definition at line 42 of file ProcessingAlgoWidget.h.
|
inline |
Definition at line 65 of file ProcessingAlgoWidget.h.
| QString MantidQt::MantidWidgets::ProcessingAlgoWidget::getScriptText | ( | ) |
Definition at line 158 of file ProcessingAlgoWidget.cpp.
References ui.
|
inline |
Definition at line 50 of file ProcessingAlgoWidget.h.
|
inline |
Definition at line 35 of file ProcessingAlgoWidget.h.
|
inline |
Sets the info string displayed at the top.
Definition at line 37 of file ProcessingAlgoWidget.h.
|
private |
Load QSettings from .ini-type files.
Definition at line 63 of file ProcessingAlgoWidget.cpp.
References m_lastFile.
Referenced by ProcessingAlgoWidget().
| void MantidQt::MantidWidgets::ProcessingAlgoWidget::saveInput | ( | ) |
Save the inputs to algorithm history.
Definition at line 59 of file ProcessingAlgoWidget.cpp.
References ui.
|
private |
Save settings for next time.
Definition at line 72 of file ProcessingAlgoWidget.cpp.
References m_lastFile.
Referenced by ~ProcessingAlgoWidget().
|
inline |
Sets the AlgorithmInputHistory object recording the algorithm properties.
Definition at line 60 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 152 of file ProcessingAlgoWidget.cpp.
References changeAlgorithm(), and ui.
|
private |
Current algorithm with properties set.
Definition at line 84 of file ProcessingAlgoWidget.h.
Referenced by changeAlgorithm().
|
private |
Last saved file path.
Definition at line 87 of file ProcessingAlgoWidget.h.
Referenced by btnLoadClicked(), btnSaveClicked(), loadSettings(), and saveSettings().
|
private |
The form generated by Qt Designer.
Definition at line 81 of file ProcessingAlgoWidget.h.
Referenced by btnLoadClicked(), btnSaveClicked(), changeAlgorithm(), getScriptText(), ProcessingAlgoWidget(), saveInput(), setScriptText(), and setSelectedAlgorithm().
|
readwrite |
Definition at line 23 of file ProcessingAlgoWidget.h.
|
readwrite |
Definition at line 23 of file ProcessingAlgoWidget.h.
|
readwrite |
Definition at line 23 of file ProcessingAlgoWidget.h.