Slicer 4.2
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Public Types | Properties | Public Member Functions | Protected Attributes
qSlicerAbstractModule Class Reference

#include <Base/QTGUI/qSlicerAbstractModule.h>

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

List of all members.

Public Types

typedef qSlicerAbstractCoreModule Superclass

Properties

QIcon icon
QImage logo

Public Member Functions

Q_INVOKABLE QAction * action ()
virtual QIcon icon () const
virtual QImage logo () const
 The logo of the module, the credits given by the grants or instution.
 qSlicerAbstractModule (QObject *parent=0)
virtual ~qSlicerAbstractModule ()

Protected Attributes

QScopedPointer
< qSlicerAbstractModulePrivate > 
d_ptr

Detailed Description

Overrides qSlicerAbstractCoreModule and adds an icon property to the module and associates a QAction to it.

Definition at line 40 of file qSlicerAbstractModule.h.


Member Typedef Documentation


Property Documentation

QIcon qSlicerAbstractModule::icon [read]

This property holds the module's icon. It is also the icon of the module QAction (see action()).

Reimplemented in qSlicerScriptedLoadableModule.

Definition at line 46 of file qSlicerAbstractModule.h.

QImage qSlicerAbstractModule::logo [read]

Definition at line 47 of file qSlicerAbstractModule.h.


Constructor & Destructor Documentation

qSlicerAbstractModule::qSlicerAbstractModule ( QObject *  parent = 0)
virtual qSlicerAbstractModule::~qSlicerAbstractModule ( ) [virtual]

Member Function Documentation

Q_INVOKABLE QAction* qSlicerAbstractModule::action ( )

Returns then associated QAction of the module. It contains all the informations relative to the module. The text (QAction::text()) and icon (QAction::icon()) are the module title and icon; the name of the module is saved in the QAction's data (QAction::data().toString()) and the module index is the QAction property "index" (QAction::property("index").toInt()). It is typically used in the module selector menu; triggering the QAction will make the module current.

virtual QIcon qSlicerAbstractModule::icon ( ) const [virtual]

Icon of the module. Anytime a graphical representation of the module is needed, the icon is used. It's the icon shown in the module selector as well as in the frequently used module toolbar (if any).

Reimplemented in qSlicerScriptedLoadableModule, qSlicerAnnotationsModule, qSlicerCamerasModule, qSlicerColorsModule, qSlicerCropVolumeModule, qSlicerDataModule, qSlicerMeasurementsModule, qSlicerModelsModule, qSlicerMultiVolumeRenderingModule, qSlicerReformatModule, qSlicerSceneViewsModule, qSlicerWelcomeModule, qSlicerTransformsModule, qSlicerViewControllersModule, qSlicerVolumeRenderingModule, and qSlicerVolumesModule.

virtual QImage qSlicerAbstractModule::logo ( ) const [virtual]

The logo of the module, the credits given by the grants or instution.

Reimplemented in qSlicerCLIModule.


Member Data Documentation

QScopedPointer<qSlicerAbstractModulePrivate> qSlicerAbstractModule::d_ptr [protected]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines