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
qSlicerTerminologySelectorButton.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 __qSlicerTerminologySelectorButton_h
24#define __qSlicerTerminologySelectorButton_h
25
26// Qt includes
27#include <QPushButton>
28
29// Terminologies includes
30#include "qSlicerTerminologiesModuleWidgetsExport.h"
31
34
35class qSlicerTerminologySelectorButtonPrivate;
36
38class Q_SLICER_MODULE_TERMINOLOGIES_WIDGETS_EXPORT qSlicerTerminologySelectorButton : public QPushButton
39{
40 Q_OBJECT
41
42public:
43 explicit qSlicerTerminologySelectorButton(QWidget* parent=nullptr);
45
46#ifndef __VTK_WRAP__
49#endif
50
51public slots:
52
53#ifndef __VTK_WRAP__
56#endif
57
60
61signals:
63 void canceled();
64
67
68protected slots:
69 void onToggled(bool toggled=true);
70
71protected:
72 void paintEvent(QPaintEvent* event) override;
73
74 QScopedPointer<qSlicerTerminologySelectorButtonPrivate> d_ptr;
75private :
76 Q_DECLARE_PRIVATE(qSlicerTerminologySelectorButton);
78};
79
80#endif
void userSetCustomNameOrColor()
Emitted when the user selects a custom name or color.
qSlicerTerminologySelectorButton(QWidget *parent=nullptr)
void changeTerminology()
Opens a terminology dialog to select a new terminology.
void paintEvent(QPaintEvent *event) override
void terminologyInfo(qSlicerTerminologyNavigatorWidget::TerminologyInfoBundle &terminologyInfo)
Get selected terminology and other metadata (name, color, auto-generated flags) into given info bundl...
void onToggled(bool toggled=true)
void setTerminologyInfo(qSlicerTerminologyNavigatorWidget::TerminologyInfoBundle &terminologyInfo)
Set terminology and other metadata (name, color, auto-generated flags)
QScopedPointer< qSlicerTerminologySelectorButtonPrivate > d_ptr