Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
qSlicerTerminologyEditorDialog Class Reference

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

#include <Modules/Loadable/Colors/Widgets/qSlicerTerminologyEditorDialog.h>

Inheritance diagram for qSlicerTerminologyEditorDialog:
Collaboration diagram for qSlicerTerminologyEditorDialog:

Public Types

typedef QObject Superclass
 

Public Member Functions

virtual bool exec ()
 
Q_INVOKABLE bool execDialog ()
 Python compatibility function for showing dialog (calls exec)
 
 qSlicerTerminologyEditorDialog (QObject *parent=nullptr)
 
 qSlicerTerminologyEditorDialog (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.
 
 ~qSlicerTerminologyEditorDialog () override
 

Static Public Member Functions

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

Protected Slots

void setSaveButtonEnabled (bool)
 

Protected Attributes

QScopedPointer< qSlicerTerminologyEditorDialogPrivate > d_ptr
 

Detailed Description

Qt dialog for selecting a terminology entry.

Definition at line 37 of file qSlicerTerminologyEditorDialog.h.

Member Typedef Documentation

◆ Superclass

Constructor & Destructor Documentation

◆ qSlicerTerminologyEditorDialog() [1/2]

qSlicerTerminologyEditorDialog::qSlicerTerminologyEditorDialog ( QObject * parent = nullptr)

◆ qSlicerTerminologyEditorDialog() [2/2]

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

◆ ~qSlicerTerminologyEditorDialog()

qSlicerTerminologyEditorDialog::~qSlicerTerminologyEditorDialog ( )
override

Member Function Documentation

◆ exec()

virtual bool qSlicerTerminologyEditorDialog::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 qSlicerTerminologyEditorDialog::execDialog ( )
inline

Python compatibility function for showing dialog (calls exec)

Definition at line 77 of file qSlicerTerminologyEditorDialog.h.

◆ getTerminology() [1/2]

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

Convenience function to start dialog, initialized with a terminology entry

Parameters
terminologyInfoTerminology shown and edited by the dialog. The edited terminology will be stored in this variable as well. terminologyInfo.ColorAutoGenerated and terminologyInfo.NameAutoGenerated set to false means that these are set (from terminology) and so their value is valid and should be used by the caller.
Returns
Success flag

◆ getTerminology() [2/2]

static bool qSlicerTerminologyEditorDialog::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

◆ setSaveButtonEnabled

void qSlicerTerminologyEditorDialog::setSaveButtonEnabled ( bool )
protectedslot

◆ terminologyInfo()

void qSlicerTerminologyEditorDialog::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<qSlicerTerminologyEditorDialogPrivate> qSlicerTerminologyEditorDialog::d_ptr
protected

Definition at line 83 of file qSlicerTerminologyEditorDialog.h.


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