Mantid
|
ComboBox for finding algorithms. More...
#include <AlgorithmSelectorWidget.h>
Public Slots | |
void | update () |
Update the list of algos in the combo box. More... | |
Signals | |
void | enterPressed () |
Public Member Functions | |
SelectedAlgorithm | getSelectedAlgorithm () |
Return the selected algorithm. More... | |
~FindAlgComboBox () override=default | |
Protected Member Functions | |
void | keyPressEvent (QKeyEvent *e) override |
Called when the combo box for finding algorithms has a key press event More... | |
Private Types | |
using | AlgNamesType = std::vector< Mantid::API::AlgorithmDescriptor > |
Private Member Functions | |
void | addAliases (AlgNamesType &algNamesList) |
Adds alias entries to the list of algorithms. More... | |
QString | stripAlias (const QString &text) const |
if a string is for an alias convert it to the algorithm name More... | |
ComboBox for finding algorithms.
Definition at line 123 of file AlgorithmSelectorWidget.h.
|
private |
Definition at line 139 of file AlgorithmSelectorWidget.h.
|
overridedefault |
|
private |
Adds alias entries to the list of algorithms.
Definition at line 348 of file AlgorithmSelectorWidget.cpp.
References Mantid::API::AlgorithmDescriptor::name.
Referenced by update().
|
signal |
Referenced by keyPressEvent().
SelectedAlgorithm MantidQt::MantidWidgets::FindAlgComboBox::getSelectedAlgorithm | ( | ) |
Return the selected algorithm.
Definition at line 377 of file AlgorithmSelectorWidget.cpp.
References stripAlias().
Referenced by MantidQt::MantidWidgets::AlgorithmSelectorWidget::getSelectedAlgorithm().
|
overrideprotected |
Called when the combo box for finding algorithms has a key press event
Definition at line 319 of file AlgorithmSelectorWidget.cpp.
References enterPressed().
|
private |
if a string is for an alias convert it to the algorithm name
Definition at line 364 of file AlgorithmSelectorWidget.cpp.
Referenced by getSelectedAlgorithm().
|
slot |
Update the list of algos in the combo box.
Definition at line 329 of file AlgorithmSelectorWidget.cpp.
References addAliases(), addItem(), and Mantid::Kernel::SingletonHolder< T >::Instance().
Referenced by MantidQt::MantidWidgets::AlgorithmSelectorWidget::update().