Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
berryIMenuManager.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 BERRYIMENUMANAGER_H
15 #define BERRYIMENUMANAGER_H
16 
18 #include <berryIContributionItem.h>
19 
20 namespace berry {
21 
36 struct IMenuManager : public virtual IContributionManager, public IContributionItem
37 {
38 
40 
47  virtual void AddMenuListener(QObject* listener) = 0;
48 
63  virtual IMenuManager::Pointer FindMenuUsingPath(const QString& path) const = 0;
64 
74  virtual IContributionItem::Pointer FindUsingPath(const QString& path) const = 0;
75 
84  virtual bool GetRemoveAllWhenShown() const = 0;
85 
92  bool IsEnabled() const override = 0;
93 
100  virtual void RemoveMenuListener(QObject* listener) = 0;
101 
110  virtual void SetRemoveAllWhenShown(bool removeAll) = 0;
111 
119  virtual void UpdateAll(bool force) = 0;
120 
121 };
122 
123 }
124 
125 #endif // BERRYIMENUMANAGER_H
berryIContributionManager.h
berry::IMenuManager::FindMenuUsingPath
virtual IMenuManager::Pointer FindMenuUsingPath(const QString &path) const =0
berry::SmartPointer< Self >
berry::IMenuManager::FindUsingPath
virtual IContributionItem::Pointer FindUsingPath(const QString &path) const =0
berry::IMenuManager::SetRemoveAllWhenShown
virtual void SetRemoveAllWhenShown(bool removeAll)=0
berryIContributionItem.h
berry::IMenuManager::GetRemoveAllWhenShown
virtual bool GetRemoveAllWhenShown() const =0
berry::IContributionManager
Definition: berryIContributionManager.h:45
berry::IMenuManager
Definition: berryIMenuManager.h:36
berry::IContributionItem
Definition: berryIContributionItem.h:50
berry::IMenuManager::UpdateAll
virtual void UpdateAll(bool force)=0
berry::IMenuManager::RemoveMenuListener
virtual void RemoveMenuListener(QObject *listener)=0
berry::IMenuManager::IsEnabled
bool IsEnabled() const override=0
berry
Definition: QmitkPropertyItemModel.h:24
berry::IMenuManager::berryObjectMacro
berryObjectMacro(berry::IMenuManager)
berry::IMenuManager::AddMenuListener
virtual void AddMenuListener(QObject *listener)=0