Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
Home
Manual
API Reference
Download
Bugzilla
Groups
Namespace List
Class List
File List
Examples
File List
File Members
QmitkStringPropertyOnDemandEdit.h
Go to the documentation of this file.
1
/*===================================================================
2
3
The Medical Imaging Interaction Toolkit (MITK)
4
5
Copyright (c) German Cancer Research Center,
6
Division of Medical and Biological Informatics.
7
All rights reserved.
8
9
This software is distributed WITHOUT ANY WARRANTY; without
10
even the implied warranty of MERCHANTABILITY or FITNESS FOR
11
A PARTICULAR PURPOSE.
12
13
See LICENSE.txt or http://www.mitk.org for details.
14
15
===================================================================*/
16
#ifndef QMITK_STRINGPROPERTYONDEMANDDEDITOR_H_INCLUDED
17
#define QMITK_STRINGPROPERTYONDEMANDDEDITOR_H_INCLUDED
18
19
#include "
MitkQtWidgetsExtExports.h
"
20
#include <QLabel>
21
#include <QLayout>
22
#include <
mitkPropertyObserver.h
>
23
#include <
mitkStringProperty.h
>
24
25
class
MITKQTWIDGETSEXT_EXPORT
QClickableLabel2
:
public
QLabel
26
{
27
Q_OBJECT
28
29
signals:
30
void
clicked();
31
32
public
:
33
QClickableLabel2
(QWidget *parent, Qt::WindowFlags f =
nullptr
) : QLabel(parent, f) {}
34
virtual
void
mouseReleaseEvent
(QMouseEvent *)
override
{ emit clicked(); }
35
};
36
38
class
MITKQTWIDGETSEXT_EXPORT
QmitkStringPropertyOnDemandEdit
:
public
QFrame,
public
mitk::PropertyEditor
39
{
40
Q_OBJECT
41
42
public
:
43
QmitkStringPropertyOnDemandEdit
(
mitk::StringProperty
*, QWidget *parent);
44
virtual
~
QmitkStringPropertyOnDemandEdit
();
45
46
protected
:
47
virtual
void
PropertyChanged
()
override
;
48
virtual
void
PropertyRemoved
()
override
;
49
50
mitk::StringProperty
*
m_StringProperty
;
51
52
QHBoxLayout *
m_layout
;
53
QLabel *
m_label
;
54
QClickableLabel2
*
m_toolbutton
;
55
56
protected
slots:
57
58
void
onToolButtonClicked();
59
};
60
61
#endif
mitkStringProperty.h
mitk::PropertyObserver::PropertyRemoved
virtual void PropertyRemoved()=0
mitk::PropertyEditor
Definition:
mitkPropertyObserver.h:71
QmitkStringPropertyOnDemandEdit
Definition:
QmitkStringPropertyOnDemandEdit.h:38
QClickableLabel2::mouseReleaseEvent
virtual void mouseReleaseEvent(QMouseEvent *) override
Definition:
QmitkStringPropertyOnDemandEdit.h:34
MITKQTWIDGETSEXT_EXPORT
#define MITKQTWIDGETSEXT_EXPORT
Definition:
MitkQtWidgetsExtExports.h:15
QmitkStringPropertyOnDemandEdit::m_label
QLabel * m_label
Definition:
QmitkStringPropertyOnDemandEdit.h:53
QClickableLabel2
Definition:
QmitkStringPropertyOnDemandEdit.h:25
QClickableLabel2::QClickableLabel2
QClickableLabel2(QWidget *parent, Qt::WindowFlags f=nullptr)
Definition:
QmitkStringPropertyOnDemandEdit.h:33
QmitkStringPropertyOnDemandEdit::m_StringProperty
mitk::StringProperty * m_StringProperty
Definition:
QmitkStringPropertyOnDemandEdit.h:50
QmitkStringPropertyOnDemandEdit::m_layout
QHBoxLayout * m_layout
Definition:
QmitkStringPropertyOnDemandEdit.h:52
QmitkStringPropertyOnDemandEdit::m_toolbutton
QClickableLabel2 * m_toolbutton
Definition:
QmitkStringPropertyOnDemandEdit.h:54
mitk::PropertyObserver::PropertyChanged
virtual void PropertyChanged()=0
MitkQtWidgetsExtExports.h
mitk::StringProperty
Property for strings.
Definition:
mitkStringProperty.h:38
mitkPropertyObserver.h
git
MITK
Modules
QtWidgetsExt
include
QmitkStringPropertyOnDemandEdit.h
Generated on Fri Feb 3 2017 20:52:15 for Medical Imaging Interaction Toolkit by
1.8.9.1