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
qSlicerTerminologySelectorDialog.h
Go to the documentation of this file.
1/*==============================================================================
2
3 Program: 3D Slicer
4
5 Copyright (c) Laboratory for Percutaneous Surgery (PerkLab)
6 Queen's University, Kingston, ON, Canada. All Rights Reserved.
7
8 See COPYRIGHT.txt
9 or http://www.slicer.org/copyright/copyright.txt for details.
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16
17 This file was originally developed by Csaba Pinter, PerkLab, Queen's University
18 and was supported through the Applied Cancer Research Unit program of Cancer Care
19 Ontario with funds provided by the Ontario Ministry of Health and Long-Term Care
20
21==============================================================================*/
22
23#ifndef __qSlicerTerminologySelectorDialog_h
24#define __qSlicerTerminologySelectorDialog_h
25
26// Qt includes
27#include <QObject>
28
29// Terminologies includes
30#include "qSlicerTerminologiesModuleWidgetsExport.h"
31
33
34class qSlicerTerminologySelectorDialogPrivate;
36
38class Q_SLICER_MODULE_TERMINOLOGIES_WIDGETS_EXPORT qSlicerTerminologySelectorDialog : public QObject
39{
40public:
41 Q_OBJECT
43
44public:
45 typedef QObject Superclass;
46 qSlicerTerminologySelectorDialog(QObject* parent = nullptr);
47#ifndef __VTK_WRAP__
49 qSlicerTerminologyNavigatorWidget::TerminologyInfoBundle &initialTerminologyInfo, QObject* parent = nullptr );
50#endif
52
53public:
54#ifndef __VTK_WRAP__
60 static bool getTerminology(
62
65#endif
66
71 static bool getTerminology(vtkSlicerTerminologyEntry* terminologyEntry, QObject* parent);
72
77
81 virtual bool exec();
82
84 Q_INVOKABLE bool execDialog() { return this->exec(); };
85
86protected slots:
88
89protected:
90 QScopedPointer<qSlicerTerminologySelectorDialogPrivate> d_ptr;
91
92private:
93 Q_DECLARE_PRIVATE(qSlicerTerminologySelectorDialog);
95};
96
97#endif
Q_INVOKABLE bool execDialog()
Python compatibility function for showing dialog (calls exec)
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 bundl...
QScopedPointer< qSlicerTerminologySelectorDialogPrivate > d_ptr
bool overrideSectionVisible() const
Get whether name and color override section is visible.
static bool getTerminology(qSlicerTerminologyNavigatorWidget::TerminologyInfoBundle &terminologyInfo, QObject *parent)
qSlicerTerminologySelectorDialog(QObject *parent=nullptr)
void setOverrideSectionVisible(bool)
Show/hide name and color override section.
static bool getTerminology(vtkSlicerTerminologyEntry *terminologyEntry, QObject *parent)