Medical Imaging Interaction Toolkit
2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
berryAbstractHandler.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 (DKFZ)
6
All rights reserved.
7
8
Use of this source code is governed by a 3-clause BSD license that can be
9
found in the LICENSE file.
10
11
============================================================================*/
12
13
#ifndef BERRYABSTRACTHANDLER_H_
14
#define BERRYABSTRACTHANDLER_H_
15
16
#include "
berryIHandler.h
"
17
#include "
berryIHandlerListener.h
"
18
19
#include <
org_blueberry_core_commands_Export.h
>
20
21
namespace
berry
{
22
34
class
BERRY_COMMANDS
AbstractHandler
:
public
QObject,
public
IHandler
{
// ,public EventManager {
35
36
Q_OBJECT
37
Q_INTERFACES(
berry::IHandler
)
38
39
public
:
40
berryObjectMacro
(
AbstractHandler
);
41
42
private
:
43
47
bool
baseEnabled;
48
49
IHandlerListener::Events
handlerListeners;
50
51
public
:
52
53
AbstractHandler
();
54
58
void
AddHandlerListener(
IHandlerListener
* handlerListener)
override
;
59
66
void
Dispose()
override
;
67
78
bool
IsEnabled()
const override
;
79
90
void
SetEnabled(
const
Object::Pointer
& evaluationContext)
override
;
91
98
bool
IsHandled()
const override
;
99
103
void
RemoveHandlerListener(
IHandlerListener
* handlerListener)
override
;
104
105
protected
:
106
123
void
FireHandlerChanged(
const
SmartPointer<HandlerEvent>
& handlerEvent);
124
134
void
SetBaseEnabled(
bool
state);
135
153
virtual
bool
HasListeners()
const
;
154
155
};
156
157
}
158
159
#endif
/*BERRYABSTRACTHANDLER_H_*/
berryIHandler.h
berry::IHandler
Definition:
berryIHandler.h:34
org_blueberry_core_commands_Export.h
berry::SmartPointer
Implements transparent reference counting.
Definition:
berryICommandCategoryListener.h:21
berryIHandlerListener.h
BERRY_COMMANDS
#define BERRY_COMMANDS
Definition:
org_blueberry_core_commands_Export.h:26
berry::AbstractHandler
Definition:
berryAbstractHandler.h:34
berry::IHandlerListener
Definition:
berryIHandlerListener.h:37
berryObjectMacro
#define berryObjectMacro(...)
Definition:
berryMacros.h:31
berry::IHandlerListener::Events
Definition:
berryIHandlerListener.h:40
berry
Definition:
QmitkPropertyItemModel.h:24
src
MITK
Plugins
org.blueberry.core.commands
src
berryAbstractHandler.h
Generated on Sat Nov 23 2024 02:13:07 for Medical Imaging Interaction Toolkit by
1.8.17