#include <Base/QTGUI/qSlicerModuleSelectorToolBar.h>
|
| QScopedPointer< qSlicerModuleSelectorToolBarPrivate > | d_ptr |
| |
qSlicerModuleSelectorToolBar is a toolbar that can be added in your application and will fire events when the QAction of modules are triggered qSlicerModuleSelectorToolBar supports a tree hierarchy of modules (based on module->categories() ), previous/next buttons to browse the history of selected modules. (and a plain history button)
Definition at line 43 of file qSlicerModuleSelectorToolBar.h.
◆ Superclass
◆ selectedModule
| QString qSlicerModuleSelectorToolBar::selectedModule |
|
readwrite |
◆ qSlicerModuleSelectorToolBar() [1/2]
| qSlicerModuleSelectorToolBar::qSlicerModuleSelectorToolBar |
( |
const QString & |
title, |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
Constructor title is the name of the toolbar (can appear using right click on the toolbar area)
◆ qSlicerModuleSelectorToolBar() [2/2]
| qSlicerModuleSelectorToolBar::qSlicerModuleSelectorToolBar |
( |
QWidget * |
parent = nullptr | ) |
|
◆ ~qSlicerModuleSelectorToolBar()
| qSlicerModuleSelectorToolBar::~qSlicerModuleSelectorToolBar |
( |
| ) |
|
|
override |
◆ actionSelected
| void qSlicerModuleSelectorToolBar::actionSelected |
( |
QAction * |
action | ) |
|
|
protectedslot |
◆ moduleRemoved
| void qSlicerModuleSelectorToolBar::moduleRemoved |
( |
const QString & |
moduleName | ) |
|
|
protectedslot |
◆ moduleSelected
| void qSlicerModuleSelectorToolBar::moduleSelected |
( |
const QString & |
name | ) |
|
|
signal |
The signal is fired every time a module is selected. The QAction of the module is triggered. TODO: directly connection modules QActions with the module manager
◆ modulesMenu()
Returns a pointer to the modules menu used to populate the list of modules.
◆ modulesMenuComboBox()
| Q_INVOKABLE ctkMenuComboBox* qSlicerModuleSelectorToolBar::modulesMenuComboBox |
( |
| ) |
const |
Returns a pointer to the menu combobox used to display the modules menu.
- See also
- modulesMenu()
◆ onModuleSelected
| void qSlicerModuleSelectorToolBar::onModuleSelected |
( |
const QString & |
name | ) |
|
|
protectedslot |
◆ selectedModule()
| QString qSlicerModuleSelectorToolBar::selectedModule |
( |
| ) |
const |
Returns the selected module name.
◆ selectModule
| void qSlicerModuleSelectorToolBar::selectModule |
( |
const QString & |
moduleName | ) |
|
|
slot |
Select a module by name. It looks for the module action and triggers it.
◆ selectNextModule
| void qSlicerModuleSelectorToolBar::selectNextModule |
( |
| ) |
|
|
slot |
◆ selectPreviousModule
| void qSlicerModuleSelectorToolBar::selectPreviousModule |
( |
| ) |
|
|
slot |
◆ setModuleManager
Module manager contains all the loaded modules.
◆ showModuleFinder
| void qSlicerModuleSelectorToolBar::showModuleFinder |
( |
| ) |
|
|
slot |
◆ d_ptr
| QScopedPointer<qSlicerModuleSelectorToolBarPrivate> qSlicerModuleSelectorToolBar::d_ptr |
|
protected |
The documentation for this class was generated from the following file: