Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
berryICommandCategoryListener.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 
14 #ifndef BERRYICOMMANDCATEGORYLISTENER_H_
15 #define BERRYICOMMANDCATEGORYLISTENER_H_
16 
17 #include <berryMessage.h>
18 
19 namespace berry {
20 
21 template<class T> class SmartPointer;
22 
24 
36 {
37 
38  struct Events {
39 
41 
43 
44  void AddListener(ICommandCategoryListener* listener);
46 
47 
49  };
50 
51  virtual ~ICommandCategoryListener();
52 
61  virtual void CategoryChanged(const SmartPointer<const CommandCategoryEvent>& categoryEvent) = 0;
62 };
63 
64 }
65 
66 
67 #endif /* BERRYICOMMANDCATEGORYLISTENER_H_ */
berry::ICommandCategoryListener::~ICommandCategoryListener
virtual ~ICommandCategoryListener()
berry::SmartPointer
Implements transparent reference counting.
Definition: berryICommandCategoryListener.h:21
berry::ICommandCategoryListener::Events
Definition: berryICommandCategoryListener.h:38
berry::ICommandCategoryListener::Events::AddListener
void AddListener(ICommandCategoryListener *listener)
berryMessage.h
berry::Message1
Definition: berryMessage.h:787
berry::MessageDelegate1
Definition: berryMessage.h:170
berry::ICommandCategoryListener::CategoryChanged
virtual void CategoryChanged(const SmartPointer< const CommandCategoryEvent > &categoryEvent)=0
berry::CommandCategoryEvent
Definition: berryCommandCategoryEvent.h:33
berry::ICommandCategoryListener
Definition: berryICommandCategoryListener.h:35
berry::ICommandCategoryListener::Events::Event
Message1< const SmartPointer< const CommandCategoryEvent > & > Event
Definition: berryICommandCategoryListener.h:40
berry::ICommandCategoryListener::Events::RemoveListener
void RemoveListener(ICommandCategoryListener *listener)
berry::ICommandCategoryListener::Events::Delegate
MessageDelegate1< ICommandCategoryListener, const SmartPointer< const CommandCategoryEvent > & > Delegate
Definition: berryICommandCategoryListener.h:48
berry
Definition: QmitkPropertyItemModel.h:24
berry::ICommandCategoryListener::Events::categoryChanged
Event categoryChanged
Definition: berryICommandCategoryListener.h:42