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
qSlicerTerminologyEditorButton.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 __qSlicerTerminologyEditorButton_h
22#define __qSlicerTerminologyEditorButton_h
23
24// Qt includes
25#include <QPushButton>
26
27// Colors includes
28#include "qSlicerColorsModuleWidgetsExport.h"
29
31
32// Terminologies includes
35
36class qSlicerTerminologyEditorButtonPrivate;
37
39class Q_SLICER_MODULE_COLORS_WIDGETS_EXPORT qSlicerTerminologyEditorButton : public QPushButton
40{
41 Q_OBJECT
42
43public:
44 explicit qSlicerTerminologyEditorButton(QWidget* parent=nullptr);
46
47#ifndef __VTK_WRAP__
50#endif
51
52public slots:
53
54#ifndef __VTK_WRAP__
57#endif
58
61
62signals:
64 void canceled();
65
68
69protected slots:
70 void onToggled(bool toggled=true);
71
72protected:
73 void paintEvent(QPaintEvent* event) override;
74
75 QScopedPointer<qSlicerTerminologyEditorButtonPrivate> d_ptr;
76private :
77 Q_DECLARE_PRIVATE(qSlicerTerminologyEditorButton);
78 Q_DISABLE_COPY(qSlicerTerminologyEditorButton);
79};
80
81#endif
void changeTerminology()
Opens a terminology dialog to select a new terminology.
void setTerminologyInfo(qSlicerTerminologyNavigatorWidget::TerminologyInfoBundle &terminologyInfo)
Set terminology and other metadata (name, color, auto-generated flags)
QScopedPointer< qSlicerTerminologyEditorButtonPrivate > d_ptr
void terminologyInfo(qSlicerTerminologyNavigatorWidget::TerminologyInfoBundle &terminologyInfo)
Get selected terminology and other metadata (name, color, auto-generated flags) into given info bundl...
~qSlicerTerminologyEditorButton() override
void onToggled(bool toggled=true)
qSlicerTerminologyEditorButton(QWidget *parent=nullptr)
void userSetCustomNameOrColor()
Emitted when the user selects a custom name or color.
void paintEvent(QPaintEvent *event) override