Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
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#endif
49
50public:
51#ifndef __VTK_WRAP__
58
61#endif
62
67 static bool getTerminology(vtkSlicerTerminologyEntry* terminologyEntry, QObject* parent);
68
72 virtual bool exec();
73
75 Q_INVOKABLE bool execDialog() { return this->exec(); };
76
77protected slots:
79
80protected:
81 QScopedPointer<qSlicerTerminologyEditorDialogPrivate> d_ptr;
82
83private:
84 Q_DECLARE_PRIVATE(qSlicerTerminologyEditorDialog);
85 Q_DISABLE_COPY(qSlicerTerminologyEditorDialog);
86};
87
88#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