Slicer  5.1
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 Member Functions | Static Public Member Functions | Protected Slots | Protected Attributes
qSlicerTerminologySelectorDialog Class Reference

Qt dialog for selecting a terminology entry. More...

#include <Modules/Loadable/Terminologies/Widgets/qSlicerTerminologySelectorDialog.h>

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

Public Types

typedef QObject Superclass
 

Properties

bool overrideSectionVisible
 

Public Member Functions

virtual bool exec ()
 
Q_INVOKABLE bool execDialog ()
 Python compatibility function for showing dialog (calls exec) More...
 
bool overrideSectionVisible () const
 Get whether name and color override section is visible. More...
 
 qSlicerTerminologySelectorDialog (QObject *parent=nullptr)
 
 qSlicerTerminologySelectorDialog (qSlicerTerminologyNavigatorWidget::TerminologyInfoBundle &initialTerminologyInfo, QObject *parent=nullptr)
 
void terminologyInfo (qSlicerTerminologyNavigatorWidget::TerminologyInfoBundle &terminologyInfo)
 Get selected terminology and other metadata (name, color, auto-generated flags) into given info bundle object. More...
 
 ~qSlicerTerminologySelectorDialog () override
 

Static Public Member Functions

static bool getTerminology (qSlicerTerminologyNavigatorWidget::TerminologyInfoBundle &terminologyInfo, QObject *parent)
 
static bool getTerminology (vtkSlicerTerminologyEntry *terminologyEntry, QObject *parent)
 

Protected Slots

void setOverrideSectionVisible (bool)
 Show/hide name and color override section. More...
 
void setSelectButtonEnabled (bool)
 

Protected Attributes

QScopedPointer< qSlicerTerminologySelectorDialogPrivate > d_ptr
 

Detailed Description

Qt dialog for selecting a terminology entry.

Definition at line 39 of file qSlicerTerminologySelectorDialog.h.

Member Typedef Documentation

◆ Superclass

Definition at line 46 of file qSlicerTerminologySelectorDialog.h.

Property Documentation

◆ overrideSectionVisible

bool qSlicerTerminologySelectorDialog::overrideSectionVisible
readwrite

Definition at line 43 of file qSlicerTerminologySelectorDialog.h.

Constructor & Destructor Documentation

◆ qSlicerTerminologySelectorDialog() [1/2]

qSlicerTerminologySelectorDialog::qSlicerTerminologySelectorDialog ( QObject *  parent = nullptr)

◆ qSlicerTerminologySelectorDialog() [2/2]

qSlicerTerminologySelectorDialog::qSlicerTerminologySelectorDialog ( qSlicerTerminologyNavigatorWidget::TerminologyInfoBundle initialTerminologyInfo,
QObject *  parent = nullptr 
)

◆ ~qSlicerTerminologySelectorDialog()

qSlicerTerminologySelectorDialog::~qSlicerTerminologySelectorDialog ( )
override

Member Function Documentation

◆ exec()

virtual bool qSlicerTerminologySelectorDialog::exec ( )
virtual

Show dialog

Parameters
nodeToSelectNode is selected in the tree if given
Returns
Success flag (if dialog result is not Accepted then false)

◆ execDialog()

Q_INVOKABLE bool qSlicerTerminologySelectorDialog::execDialog ( )
inline

Python compatibility function for showing dialog (calls exec)

Definition at line 83 of file qSlicerTerminologySelectorDialog.h.

◆ getTerminology() [1/2]

static bool qSlicerTerminologySelectorDialog::getTerminology ( qSlicerTerminologyNavigatorWidget::TerminologyInfoBundle terminologyInfo,
QObject *  parent 
)
static

Convenience function to start dialog, initialized with a terminology entry

Parameters
terminologyInitial terminology shown by the dialog. The selected terminology is set to this as well.
nameInitial name shown by the dialog. Selected name (only if custom) is set to this as well after closing
colorInitial color shown by the dialog. Selected color (only if custom) is set to this as well after closing
Returns
Success flag

◆ getTerminology() [2/2]

static bool qSlicerTerminologySelectorDialog::getTerminology ( vtkSlicerTerminologyEntry terminologyEntry,
QObject *  parent 
)
static

Convenience function to start dialog, initialized with a terminology entry. Does not show name and color overrides.

Parameters
terminologyInitial terminology shown by the dialog. The selected terminology is set to this as well.
Returns
Success flag

◆ overrideSectionVisible()

bool qSlicerTerminologySelectorDialog::overrideSectionVisible ( ) const

Get whether name and color override section is visible.

◆ setOverrideSectionVisible

void qSlicerTerminologySelectorDialog::setOverrideSectionVisible ( bool  )
protectedslot

Show/hide name and color override section.

◆ setSelectButtonEnabled

void qSlicerTerminologySelectorDialog::setSelectButtonEnabled ( bool  )
protectedslot

◆ terminologyInfo()

void qSlicerTerminologySelectorDialog::terminologyInfo ( qSlicerTerminologyNavigatorWidget::TerminologyInfoBundle terminologyInfo)

Get selected terminology and other metadata (name, color, auto-generated flags) into given info bundle object.

Member Data Documentation

◆ d_ptr

QScopedPointer<qSlicerTerminologySelectorDialogPrivate> qSlicerTerminologySelectorDialog::d_ptr
protected

Definition at line 92 of file qSlicerTerminologySelectorDialog.h.


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