Slicer  4.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
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 
34 class qSlicerTerminologySelectorDialogPrivate;
36 
39 class Q_SLICER_MODULE_TERMINOLOGIES_WIDGETS_EXPORT qSlicerTerminologySelectorDialog : public QObject
40 {
41 public:
42  Q_OBJECT
43 
44 public:
45  typedef QObject Superclass;
47  qSlicerTerminologyNavigatorWidget::TerminologyInfoBundle &initialTerminologyInfo, QObject* parent = NULL );
49 
50 public:
56  static bool getTerminology(
57  qSlicerTerminologyNavigatorWidget::TerminologyInfoBundle &terminologyInfo, QObject* parent );
58 
60  void terminologyInfo(qSlicerTerminologyNavigatorWidget::TerminologyInfoBundle &terminologyInfo);
61 
65  virtual bool exec();
66 
68  Q_INVOKABLE bool execDialog() { return this->exec(); };
69 
70 protected slots:
71  void setSelectButtonEnabled(bool);
72 
73 protected:
74  QScopedPointer<qSlicerTerminologySelectorDialogPrivate> d_ptr;
75 
76 private:
77  Q_DECLARE_PRIVATE(qSlicerTerminologySelectorDialog);
78  Q_DISABLE_COPY(qSlicerTerminologySelectorDialog);
79 };
80 
81 #endif
Q_INVOKABLE bool execDialog()
Python compatibility function for showing dialog (calls exec)
QScopedPointer< qSlicerTerminologySelectorDialogPrivate > d_ptr
Qt dialog for selecting a terminology entry.