Slicer 5.4
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
qSlicerTerminologySelectorButton.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Library: CTK
4
5 Copyright (c) Kitware Inc.
6
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
10
11 https://www.apache.org/licenses/LICENSE-2.0.txt
12
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18
19=========================================================================*/
20
21#ifndef __qSlicerTerminologySelectorButton_h
22#define __qSlicerTerminologySelectorButton_h
23
24// Qt includes
25#include <QPushButton>
26
27// Terminologies includes
28#include "qSlicerTerminologiesModuleWidgetsExport.h"
29
32
33class qSlicerTerminologySelectorButtonPrivate;
34
37class Q_SLICER_MODULE_TERMINOLOGIES_WIDGETS_EXPORT qSlicerTerminologySelectorButton : public QPushButton
38{
39 Q_OBJECT
40
41public:
42 explicit qSlicerTerminologySelectorButton(QWidget* parent=nullptr);
44
45#ifndef __VTK_WRAP__
48#endif
49
50public slots:
51
52#ifndef __VTK_WRAP__
55#endif
56
59
60signals:
62 void canceled();
63
64protected slots:
65 void onToggled(bool toggled=true);
66
67protected:
68 void paintEvent(QPaintEvent* event) override;
69
70 QScopedPointer<qSlicerTerminologySelectorButtonPrivate> d_ptr;
71private :
72 Q_DECLARE_PRIVATE(qSlicerTerminologySelectorButton);
74};
75
76#endif
Button that opens terminology selector dialog.
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