Medical Imaging Interaction Toolkit  2018.4.99-389bf124
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 
37 struct IMenuManager : public virtual IContributionManager, public IContributionItem
38 {
39 
41 
48  virtual void AddMenuListener(QObject* listener) = 0;
49 
64  virtual IMenuManager::Pointer FindMenuUsingPath(const QString& path) const = 0;
65 
75  virtual IContributionItem::Pointer FindUsingPath(const QString& path) const = 0;
76 
85  virtual bool GetRemoveAllWhenShown() const = 0;
86 
93  bool IsEnabled() const override = 0;
94 
101  virtual void RemoveMenuListener(QObject* listener) = 0;
102 
111  virtual void SetRemoveAllWhenShown(bool removeAll) = 0;
112 
120  virtual void UpdateAll(bool force) = 0;
121 
122 };
123 
124 }
125 
126 #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