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
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
berryCommandCategory.h
Go to the documentation of this file.
1
/*===================================================================
2
3
BlueBerry Platform
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
17
#ifndef BERRYCOMMANDCATEGORY_H_
18
#define BERRYCOMMANDCATEGORY_H_
19
20
#include "
common/berryNamedHandleObject.h
"
21
#include "
berryICommandCategoryListener.h
"
22
23
#include <
org_blueberry_core_commands_Export.h
>
24
25
namespace
berry
26
{
27
35
class
BERRY_COMMANDS
CommandCategory
:
public
NamedHandleObject
36
{
37
38
public
:
39
40
berryObjectMacro
(
CommandCategory
);
41
49
void
AddCategoryListener(
ICommandCategoryListener
* categoryListener);
50
65
void
Define(
const
QString& name,
const
QString& description);
66
74
void
RemoveCategoryListener(
ICommandCategoryListener
* categoryListener);
75
76
/*
77
* (non-Javadoc)
78
*
79
* @see org.eclipse.core.commands.common.HandleObject#toString()
80
*/
81
QString ToString()
const override
;
82
83
/*
84
* (non-Javadoc)
85
*
86
* @see org.eclipse.core.commands.common.HandleObject#undefine()
87
*/
88
void
Undefine()
override
;
89
90
protected
:
91
92
friend
class
CommandManager
;
93
105
CommandCategory
(
const
QString&
id
);
106
107
private
:
108
116
void
FireCategoryChanged(
const
SmartPointer<CommandCategoryEvent>
categoryEvent);
117
122
ICommandCategoryListener::Events
categoryEvents;
123
};
124
125
}
126
127
#endif
/* BERRYCOMMANDCATEGORY_H_ */
berry
Definition:
QmitkPropertyItemModel.h:27
berry::ICommandCategoryListener::Events
Definition:
berryICommandCategoryListener.h:42
berry::NamedHandleObject
Definition:
berryNamedHandleObject.h:31
berry::SmartPointer
Implements transparent reference counting.
Definition:
berryICommandCategoryListener.h:25
berry::ICommandCategoryListener
Definition:
berryICommandCategoryListener.h:39
berryObjectMacro
#define berryObjectMacro(...)
Definition:
berryMacros.h:37
BERRY_COMMANDS
#define BERRY_COMMANDS
Definition:
org_blueberry_core_commands_Export.h:23
berry::CommandManager
Definition:
berryCommandManager.h:53
berryNamedHandleObject.h
berryICommandCategoryListener.h
org_blueberry_core_commands_Export.h
berry::CommandCategory
Definition:
berryCommandCategory.h:35
git
MITK
Plugins
org.blueberry.core.commands
src
berryCommandCategory.h
Generated on Fri Feb 3 2017 20:51:43 for Medical Imaging Interaction Toolkit by
1.8.9.1