Mantid
|
Tree widget with the categories and algorithms listed. More...
#include <AlgorithmSelectorWidget.h>
Public Slots | |
void | update () |
Update the list of algos in the tree. More... | |
Signals | |
void | executeAlgorithm (const QString &, int) |
Signal emitted when the widget requests that we execute that algorithm. More... | |
Public Member Functions | |
AlgorithmTreeWidget (QWidget *w) | |
SelectedAlgorithm | getSelectedAlgorithm () |
Return the selected algorithm in the tree. More... | |
void | mouseDoubleClickEvent (QMouseEvent *e) override |
SLOT called when double-clicking on an entry in the tree. More... | |
void | mouseMoveEvent (QMouseEvent *e) override |
SLOT called when dragging the mouse around the tree. More... | |
void | mousePressEvent (QMouseEvent *e) override |
SLOT called when clicking the mouse around the tree. More... | |
~AlgorithmTreeWidget () override=default | |
Private Attributes | |
QPoint | m_dragStartPosition |
Tree widget with the categories and algorithms listed.
Definition at line 98 of file AlgorithmSelectorWidget.h.
|
inline |
Definition at line 101 of file AlgorithmSelectorWidget.h.
|
overridedefault |
|
signal |
Signal emitted when the widget requests that we execute that algorithm.
Referenced by mouseDoubleClickEvent().
SelectedAlgorithm MantidQt::MantidWidgets::AlgorithmTreeWidget::getSelectedAlgorithm | ( | ) |
Return the selected algorithm in the tree.
Definition at line 195 of file AlgorithmSelectorWidget.cpp.
References MantidQt::MantidWidgets::SelectedAlgorithm::name, and MantidQt::MantidWidgets::SelectedAlgorithm::version.
Referenced by MantidQt::MantidWidgets::AlgorithmSelectorWidget::getSelectedAlgorithm(), and mouseDoubleClickEvent().
|
override |
SLOT called when double-clicking on an entry in the tree.
Definition at line 245 of file AlgorithmSelectorWidget.cpp.
References executeAlgorithm(), and getSelectedAlgorithm().
|
override |
SLOT called when dragging the mouse around the tree.
Definition at line 226 of file AlgorithmSelectorWidget.cpp.
References m_dragStartPosition.
|
override |
SLOT called when clicking the mouse around the tree.
Definition at line 214 of file AlgorithmSelectorWidget.cpp.
References m_dragStartPosition.
|
slot |
Update the list of algos in the tree.
Definition at line 257 of file AlgorithmSelectorWidget.cpp.
References Mantid::Kernel::SingletonHolder< T >::Instance(), and n.
Referenced by MantidQt::MantidWidgets::AlgorithmSelectorWidget::update().
|
private |
Definition at line 116 of file AlgorithmSelectorWidget.h.
Referenced by mouseMoveEvent(), and mousePressEvent().