Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
berryIMenuManager.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 
18 #ifndef BERRYIMENUMANAGER_H
19 #define BERRYIMENUMANAGER_H
20 
22 #include <berryIContributionItem.h>
23 
24 namespace berry {
25 
41 struct IMenuManager : public virtual IContributionManager, public IContributionItem
42 {
43 
45 
46 
52  virtual void AddMenuListener(QObject* listener) = 0;
53 
68  virtual IMenuManager::Pointer FindMenuUsingPath(const QString& path) const = 0;
69 
79  virtual IContributionItem::Pointer FindUsingPath(const QString& path) const = 0;
80 
89  virtual bool GetRemoveAllWhenShown() const = 0;
90 
97  virtual bool IsEnabled() const = 0;
98 
105  virtual void RemoveMenuListener(QObject* listener) = 0;
106 
115  virtual void SetRemoveAllWhenShown(bool removeAll) = 0;
116 
124  virtual void UpdateAll(bool force) = 0;
125 
126 };
127 
128 }
129 
130 #endif // BERRYIMENUMANAGER_H
virtual bool IsEnabled() const =0
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
berryObjectMacro(berry::IMenuManager) virtual void AddMenuListener(QObject *listener)=0