Slicer  4.11
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Types | Properties | Public Slots | Signals | Public Member Functions | Protected Slots | Protected Attributes
qSlicerModuleSelectorToolBar Class Reference

#include <Base/QTGUI/qSlicerModuleSelectorToolBar.h>

Inheritance diagram for qSlicerModuleSelectorToolBar:
Inheritance graph
[legend]
Collaboration diagram for qSlicerModuleSelectorToolBar:
Collaboration graph
[legend]

Public Types

typedef QToolBar Superclass
 

Properties

QString selectedModule
 

Public Slots

void selectModule (const QString &moduleName)
 Select a module by name. It looks for the module action and triggers it. More...
 
void selectNextModule ()
 
void selectPreviousModule ()
 
void setModuleManager (qSlicerModuleManager *moduleManager)
 Module manager contains all the loaded modules. More...
 
void showModuleFinder ()
 

Signals

void moduleSelected (const QString &name)
 

Public Member Functions

Q_INVOKABLE qSlicerModulesMenumodulesMenu () const
 Returns a pointer to the modules menu used to populate the list of modules. More...
 
Q_INVOKABLE ctkMenuComboBox * modulesMenuComboBox () const
 
 qSlicerModuleSelectorToolBar (const QString &title, QWidget *parent=nullptr)
 
 qSlicerModuleSelectorToolBar (QWidget *parent=nullptr)
 
QString selectedModule () const
 Returns the selected module name. More...
 
 ~qSlicerModuleSelectorToolBar () override
 

Protected Slots

void actionSelected (QAction *action)
 
void moduleRemoved (const QString &moduleName)
 
void onModuleSelected (const QString &name)
 

Protected Attributes

QScopedPointer< qSlicerModuleSelectorToolBarPrivate > d_ptr
 

Detailed Description

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.

Member Typedef Documentation

◆ Superclass

Definition at line 47 of file qSlicerModuleSelectorToolBar.h.

Property Documentation

◆ selectedModule

QString qSlicerModuleSelectorToolBar::selectedModule
readwrite

Definition at line 48 of file qSlicerModuleSelectorToolBar.h.

Constructor & Destructor Documentation

◆ 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

Member Function Documentation

◆ 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()

Q_INVOKABLE qSlicerModulesMenu* qSlicerModuleSelectorToolBar::modulesMenu ( ) const

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

void qSlicerModuleSelectorToolBar::setModuleManager ( qSlicerModuleManager moduleManager)
slot

Module manager contains all the loaded modules.

◆ showModuleFinder

void qSlicerModuleSelectorToolBar::showModuleFinder ( )
slot

Member Data Documentation

◆ d_ptr

QScopedPointer<qSlicerModuleSelectorToolBarPrivate> qSlicerModuleSelectorToolBar::d_ptr
protected

Definition at line 92 of file qSlicerModuleSelectorToolBar.h.


The documentation for this class was generated from the following file: