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.h
Go to the documentation of this file.
1/*==============================================================================
2
3 Program: 3D Slicer
4
5 Copyright (c) Seattle Children's Hospital d/b/a Seattle Children's Research Institute.
6
7 See COPYRIGHT.txt
8 or http://www.slicer.org/copyright/copyright.txt for details.
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15
16 This file was originally developed by Csaba Pinter, EBATINCA, S.L.
17 and was funded by by Murat Maga (Seattle Children's Research Institute).
18
19==============================================================================*/
20
21#ifndef __qSlicerTerminologyEditorDialog_h
22#define __qSlicerTerminologyEditorDialog_h
23
24// Qt includes
25#include <QObject>
26
27// Colors includes
28#include "qSlicerColorsModuleWidgetsExport.h"
29
30// Terminologies includes
32
33class qSlicerTerminologyEditorDialogPrivate;
35
37class Q_SLICER_MODULE_COLORS_WIDGETS_EXPORT qSlicerTerminologyEditorDialog : public QObject
38{
39public:
40 Q_OBJECT
41
42public:
43 typedef QObject Superclass;
44 qSlicerTerminologyEditorDialog(QObject* parent = nullptr);
45#ifndef __VTK_WRAP__
47 qSlicerTerminologyNavigatorWidget::TerminologyInfoBundle &initialTerminologyInfo, QObject* parent = nullptr );
48#endif
50
51public:
52#ifndef __VTK_WRAP__
58 static bool getTerminology(
60
63#endif
64
69 static bool getTerminology(vtkSlicerTerminologyEntry* terminologyEntry, QObject* parent);
70
74 virtual bool exec();
75
77 Q_INVOKABLE bool execDialog() { return this->exec(); };
78
79protected slots:
81
82protected:
83 QScopedPointer<qSlicerTerminologyEditorDialogPrivate> d_ptr;
84
85private:
86 Q_DECLARE_PRIVATE(qSlicerTerminologyEditorDialog);
87 Q_DISABLE_COPY(qSlicerTerminologyEditorDialog);
88};
89
90#endif
Q_INVOKABLE bool execDialog()
Python compatibility function for showing dialog (calls exec)
void terminologyInfo(qSlicerTerminologyNavigatorWidget::TerminologyInfoBundle &terminologyInfo)
Get selected terminology and other metadata (name, color, auto-generated flags) into given info bundl...
static bool getTerminology(qSlicerTerminologyNavigatorWidget::TerminologyInfoBundle &terminologyInfo, QObject *parent)
qSlicerTerminologyEditorDialog(qSlicerTerminologyNavigatorWidget::TerminologyInfoBundle &initialTerminologyInfo, QObject *parent=nullptr)
static bool getTerminology(vtkSlicerTerminologyEntry *terminologyEntry, QObject *parent)
qSlicerTerminologyEditorDialog(QObject *parent=nullptr)
~qSlicerTerminologyEditorDialog() override
QScopedPointer< qSlicerTerminologyEditorDialogPrivate > d_ptr