A customized QDialog that displays different data storage inspectors and allows to set and get a current selection by selecting data nodes in the data storage inspectors.
More...
#include <QmitkNodeSelectionDialog.h>
|
using | NodeList = QList< mitk::DataNode::Pointer > |
|
using | SelectionCheckFunctionType = std::function< std::string(const NodeList &)> |
| Helper function that is used to check the given selection for consistency. Returning an empty string assumes that everything is alright and the selection is valid. If the string is not empty, the content of the string will be used as error message. More...
|
|
using | SelectionMode = QAbstractItemView::SelectionMode |
|
|
void | SetSelectOnlyVisibleNodes (bool selectOnlyVisibleNodes) |
| Set the selection modus to (not) include invisible nodes in the selection. The function iterates over the dialog's panels and sets the selection modus of each panel accordingly. Each panel is a concrete data storage inspector. More...
|
|
void | SetCurrentSelection (NodeList selectedNodes) |
| Set the currently selected nodes given a list of data nodes. The function iterates over the dialog's panels and sets the current selection of each panel accordingly. Each panel is a concrete data storage inspector. More...
|
|
A customized QDialog that displays different data storage inspectors and allows to set and get a current selection by selecting data nodes in the data storage inspectors.
Definition at line 35 of file QmitkNodeSelectionDialog.h.
◆ NodeList
◆ PanelVectorType
◆ SelectionCheckFunctionType
Helper function that is used to check the given selection for consistency. Returning an empty string assumes that everything is alright and the selection is valid. If the string is not empty, the content of the string will be used as error message.
Definition at line 70 of file QmitkNodeSelectionDialog.h.
◆ SelectionMode
◆ QmitkNodeSelectionDialog()
QmitkNodeSelectionDialog::QmitkNodeSelectionDialog |
( |
QWidget * |
parent = nullptr , |
|
|
QString |
caption = "" , |
|
|
QString |
hint = "" |
|
) |
| |
|
explicit |
◆ AddPanel()
◆ CurrentSelectionChanged
void QmitkNodeSelectionDialog::CurrentSelectionChanged |
( |
NodeList |
nodes | ) |
|
|
signal |
A signal that will be emitted if the selected node has changed.
- Parameters
-
nodes | A list of data nodes that are newly selected. |
◆ GetNodePredicate()
◆ GetSelectedNodes()
NodeList QmitkNodeSelectionDialog::GetSelectedNodes |
( |
| ) |
const |
◆ GetSelectionMode()
SelectionMode QmitkNodeSelectionDialog::GetSelectionMode |
( |
| ) |
const |
◆ GetSelectOnlyVisibleNodes()
bool QmitkNodeSelectionDialog::GetSelectOnlyVisibleNodes |
( |
| ) |
const |
◆ OnCancel
void QmitkNodeSelectionDialog::OnCancel |
( |
| ) |
|
|
protectedslot |
◆ OnDoubleClicked
void QmitkNodeSelectionDialog::OnDoubleClicked |
( |
const QModelIndex & |
index | ) |
|
|
protectedslot |
◆ OnFavoriteNodesButtonClicked
void QmitkNodeSelectionDialog::OnFavoriteNodesButtonClicked |
( |
| ) |
|
|
protectedslot |
◆ OnOK
void QmitkNodeSelectionDialog::OnOK |
( |
| ) |
|
|
protectedslot |
◆ OnSelectionChanged
void QmitkNodeSelectionDialog::OnSelectionChanged |
( |
NodeList |
selectedNodes | ) |
|
|
protectedslot |
◆ SetCurrentSelection
void QmitkNodeSelectionDialog::SetCurrentSelection |
( |
NodeList |
selectedNodes | ) |
|
|
slot |
Set the currently selected nodes given a list of data nodes. The function iterates over the dialog's panels and sets the current selection of each panel accordingly. Each panel is a concrete data storage inspector.
- Parameters
-
selectedNodes | A list of data nodes that should be newly selected. |
◆ SetDataStorage()
Set the data storage that will be used. The function iterates over the dialog's panels and sets the data storage of each panel accordingly. Each panel is a specific data storage inspector.
- Parameters
-
dataStorage | A pointer to the data storage to set. |
◆ SetErrorText()
void QmitkNodeSelectionDialog::SetErrorText |
( |
const std::string & |
checkResponse | ) |
|
|
protected |
◆ SetNodePredicate()
Set the node predicate that will be used. The function iterates over the dialog's panels and sets the node predicate of each panel accordingly. Each panel is a specific data storage inspector.
- Parameters
-
nodePredicate | A pointer to node predicate. |
◆ SetSelectionCheckFunction()
A selection check function can be set. If set the dialog uses this function to check the made/set selection. If the selection is valid, everything is fine. If the selection is indicated as invalid, the dialog will display the selection check function error message.
◆ SetSelectionMode()
void QmitkNodeSelectionDialog::SetSelectionMode |
( |
SelectionMode |
mode | ) |
|
Set the Qt selection mode (e.g. Single selection, multi selection). The function iterates over the dialog's panels and sets the Qt selection mode of each panel accordingly. Each panel is a concrete data storage inspector.
- Parameters
-
mode | The QAbstractItemView::SelectionMode to define the selection mode. |
◆ SetSelectOnlyVisibleNodes
void QmitkNodeSelectionDialog::SetSelectOnlyVisibleNodes |
( |
bool |
selectOnlyVisibleNodes | ) |
|
|
slot |
Set the selection modus to (not) include invisible nodes in the selection. The function iterates over the dialog's panels and sets the selection modus of each panel accordingly. Each panel is a concrete data storage inspector.
- Parameters
-
selectOnlyVisibleNodes | The bool value to define the selection modus. |
◆ m_CheckFunction
◆ m_Controls
Ui_QmitkNodeSelectionDialog QmitkNodeSelectionDialog::m_Controls |
|
protected |
◆ m_DataStorage
◆ m_FavoriteNodesButton
QPushButton* QmitkNodeSelectionDialog::m_FavoriteNodesButton |
|
protected |
◆ m_NodePredicate
◆ m_Panels
◆ m_SelectedNodes
NodeList QmitkNodeSelectionDialog::m_SelectedNodes |
|
protected |
◆ m_SelectionMode
◆ m_SelectOnlyVisibleNodes
bool QmitkNodeSelectionDialog::m_SelectOnlyVisibleNodes |
|
protected |
The documentation for this class was generated from the following file: