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 Member Functions | Protected Attributes
qSlicerModulesListView Class Reference

#include <Base/QTGUI/qSlicerModulesListView.h>

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

Public Types

typedef QListView Superclass
 Superclass typedef. More...
 

Properties

bool checkBoxVisible
 False by default. More...
 
QStringList checkedModules
 
QStringList uncheckedModules
 

Public Slots

void hideSelectedModules ()
 
void moveLeftSelectedModules ()
 
void moveRightSelectedModules ()
 
void moveSelectedModules (int offset)
 
void scrollToSelectedModules ()
 
void setCheckBoxVisible (bool show)
 
void setCheckedModules (const QStringList &moduleNames)
 
void setUncheckedModules (const QStringList &moduleNames)
 

Signals

void checkedModulesChanged (const QStringList &)
 This signal is emitted when a module is checked. More...
 
void uncheckedModulesChanged (const QStringList &)
 This signal is emitted when a module is unchecked. More...
 

Public Member Functions

QStringList checkedModules () const
 
qSlicerAbstractModuleFactoryManagerfactoryManager () const
 
qSlicerModuleFactoryFilterModelfilterModel () const
 
bool isCheckBoxVisible () const
 
QStringList modules () const
 Return the list of all loaded, ignored and toIgnore modules. More...
 
 qSlicerModulesListView (QWidget *parent=nullptr)
 Constructor. More...
 
void setFactoryManager (qSlicerAbstractModuleFactoryManager *manager)
 
QStringList uncheckedModules () const
 
 ~qSlicerModulesListView () override
 Destructor. More...
 

Protected Slots

void addModule (const QString &moduleName)
 
void addModules (const QStringList &moduleNames)
 
void onItemChanged (QStandardItem *item)
 
void updateModule (const QString &moduleName)
 
void updateModules ()
 
void updateModules (const QStringList &moduleName)
 

Protected Member Functions

void keyPressEvent (QKeyEvent *event) override
 

Protected Attributes

QScopedPointer< qSlicerModulesListViewPrivate > d_ptr
 

Detailed Description

Definition at line 35 of file qSlicerModulesListView.h.

Member Typedef Documentation

◆ Superclass

Superclass typedef.

Definition at line 48 of file qSlicerModulesListView.h.

Property Documentation

◆ checkBoxVisible

bool qSlicerModulesListView::checkBoxVisible
readwrite

False by default.

Definition at line 39 of file qSlicerModulesListView.h.

◆ checkedModules

QStringList qSlicerModulesListView::checkedModules
readwrite

Definition at line 42 of file qSlicerModulesListView.h.

◆ uncheckedModules

QStringList qSlicerModulesListView::uncheckedModules
readwrite

Definition at line 45 of file qSlicerModulesListView.h.

Constructor & Destructor Documentation

◆ qSlicerModulesListView()

qSlicerModulesListView::qSlicerModulesListView ( QWidget *  parent = nullptr)
explicit

Constructor.

◆ ~qSlicerModulesListView()

qSlicerModulesListView::~qSlicerModulesListView ( )
override

Destructor.

Member Function Documentation

◆ addModule

void qSlicerModulesListView::addModule ( const QString &  moduleName)
protectedslot

◆ addModules

void qSlicerModulesListView::addModules ( const QStringList &  moduleNames)
protectedslot

◆ checkedModules()

QStringList qSlicerModulesListView::checkedModules ( ) const

Return the list of checked modules. It is the list of all the modules to load at startup.

◆ checkedModulesChanged

void qSlicerModulesListView::checkedModulesChanged ( const QStringList &  )
signal

This signal is emitted when a module is checked.

◆ factoryManager()

qSlicerAbstractModuleFactoryManager* qSlicerModulesListView::factoryManager ( ) const

◆ filterModel()

qSlicerModuleFactoryFilterModel* qSlicerModulesListView::filterModel ( ) const

◆ hideSelectedModules

void qSlicerModulesListView::hideSelectedModules ( )
slot

◆ isCheckBoxVisible()

bool qSlicerModulesListView::isCheckBoxVisible ( ) const

◆ keyPressEvent()

void qSlicerModulesListView::keyPressEvent ( QKeyEvent *  event)
overrideprotected

◆ modules()

QStringList qSlicerModulesListView::modules ( ) const

Return the list of all loaded, ignored and toIgnore modules.

◆ moveLeftSelectedModules

void qSlicerModulesListView::moveLeftSelectedModules ( )
slot

◆ moveRightSelectedModules

void qSlicerModulesListView::moveRightSelectedModules ( )
slot

◆ moveSelectedModules

void qSlicerModulesListView::moveSelectedModules ( int  offset)
slot

◆ onItemChanged

void qSlicerModulesListView::onItemChanged ( QStandardItem *  item)
protectedslot

◆ scrollToSelectedModules

void qSlicerModulesListView::scrollToSelectedModules ( )
slot

◆ setCheckBoxVisible

void qSlicerModulesListView::setCheckBoxVisible ( bool  show)
slot

◆ setCheckedModules

void qSlicerModulesListView::setCheckedModules ( const QStringList &  moduleNames)
slot

Check the modules in the moduleNames list. Uncheck the modules not in the moduleNames list.

◆ setFactoryManager()

void qSlicerModulesListView::setFactoryManager ( qSlicerAbstractModuleFactoryManager manager)

Set the module factory manager that contains the list of modules and modules to ignore

◆ setUncheckedModules

void qSlicerModulesListView::setUncheckedModules ( const QStringList &  moduleNames)
slot

Uncheck the modules in the moduleNames list. Check the modules not in the moduleNames list.

◆ uncheckedModules()

QStringList qSlicerModulesListView::uncheckedModules ( ) const

Return the list of unchecked modules. Please note it is the same than the qSlicerModuleFactoryManager::modulesToIgnore property.

◆ uncheckedModulesChanged

void qSlicerModulesListView::uncheckedModulesChanged ( const QStringList &  )
signal

This signal is emitted when a module is unchecked.

◆ updateModule

void qSlicerModulesListView::updateModule ( const QString &  moduleName)
protectedslot

◆ updateModules [1/2]

void qSlicerModulesListView::updateModules ( )
protectedslot

◆ updateModules [2/2]

void qSlicerModulesListView::updateModules ( const QStringList &  moduleName)
protectedslot

Member Data Documentation

◆ d_ptr

QScopedPointer<qSlicerModulesListViewPrivate> qSlicerModulesListView::d_ptr
protected

Definition at line 106 of file qSlicerModulesListView.h.


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