Slicer  4.10
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...
 

Signals

void moduleSelected (const QString &name)
 

Public Member Functions

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

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 42 of file qSlicerModuleSelectorToolBar.h.

Member Typedef Documentation

◆ Superclass

Definition at line 46 of file qSlicerModuleSelectorToolBar.h.

Property Documentation

◆ selectedModule

QString qSlicerModuleSelectorToolBar::selectedModule
readwrite

Definition at line 47 of file qSlicerModuleSelectorToolBar.h.

Constructor & Destructor Documentation

◆ qSlicerModuleSelectorToolBar() [1/2]

qSlicerModuleSelectorToolBar::qSlicerModuleSelectorToolBar ( const QString &  title,
QWidget *  parent = 0 
)

Constructor title is the name of the toolbar (can appear using right click on the toolbar area)

◆ qSlicerModuleSelectorToolBar() [2/2]

qSlicerModuleSelectorToolBar::qSlicerModuleSelectorToolBar ( QWidget *  parent = 0)

◆ ~qSlicerModuleSelectorToolBar()

virtual qSlicerModuleSelectorToolBar::~qSlicerModuleSelectorToolBar ( )
virtual

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

qSlicerModulesMenu* qSlicerModuleSelectorToolBar::modulesMenu ( ) const

Returns a pointer to the modules menu used to populate the list of modules.

◆ 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.

Member Data Documentation

◆ d_ptr

QScopedPointer<qSlicerModuleSelectorToolBarPrivate> qSlicerModuleSelectorToolBar::d_ptr
protected

Definition at line 85 of file qSlicerModuleSelectorToolBar.h.


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