Medical Imaging Interaction Toolkit  2021.02.99-e55a5d2f
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
virtual void AddMenuListener(QObject *listener)=0
berryObjectMacro(berry::IMenuManager)
virtual IMenuManager::Pointer FindMenuUsingPath(const QString &path) const =0
virtual IContributionItem::Pointer FindUsingPath(const QString &path) const =0
virtual void SetRemoveAllWhenShown(bool removeAll)=0
virtual void UpdateAll(bool force)=0
virtual bool GetRemoveAllWhenShown() const =0
virtual void RemoveMenuListener(QObject *listener)=0
bool IsEnabled() const override=0