Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryIContributionManager.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 BERRYICONTRIBUTIONMANAGER_H
19 #define BERRYICONTRIBUTIONMANAGER_H
20 
21 #include <berryMacros.h>
22 #include <berryObject.h>
23 
24 class QAction;
25 
26 namespace berry {
27 
28 struct IContributionItem;
29 struct IContributionManagerOverrides;
30 
55 struct IContributionManager : public virtual Object
56 {
57 
59 
60 
67  virtual void Add(QAction* action, const QString& id) = 0;
68 
74  virtual void Add(const SmartPointer<IContributionItem>& item) = 0;
75 
88  virtual void AppendToGroup(const QString& groupName, QAction* action, const QString& id) = 0;
89 
99  virtual void AppendToGroup(const QString& groupName, const SmartPointer<IContributionItem>& item) = 0;
100 
108  virtual SmartPointer<IContributionItem> Find(const QString& id) const = 0;
109 
115  virtual QList<SmartPointer<IContributionItem> > GetItems() const = 0;
116 
123 
132  virtual void InsertAfter(const QString& id, const SmartPointer<IContributionItem>& item) = 0;
133 
142  virtual void InsertBefore(const QString& id, const SmartPointer<IContributionItem>& item) = 0;
143 
151  virtual bool IsDirty() const = 0;
152 
159  virtual bool IsEmpty() const = 0;
160 
164  virtual void MarkDirty() = 0;
165 
175  virtual void PrependToGroup(const QString& groupName, const SmartPointer<IContributionItem>& item) = 0;
176 
185  virtual SmartPointer<IContributionItem> Remove(const QString& id) = 0;
186 
196 
200  virtual void RemoveAll() = 0;
201 
211  virtual void Update(bool force) = 0;
212 };
213 
214 }
215 
216 #endif // BERRYICONTRIBUTIONMANAGER_H
virtual void Update(bool force)=0
virtual SmartPointer< IContributionManagerOverrides > GetOverrides()=0
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:78
virtual void MarkDirty()=0
virtual void InsertAfter(const QString &id, const SmartPointer< IContributionItem > &item)=0
Implements transparent reference counting.
virtual SmartPointer< IContributionItem > Remove(const QString &id)=0
virtual SmartPointer< IContributionItem > Find(const QString &id) const =0
virtual void InsertBefore(const QString &id, const SmartPointer< IContributionItem > &item)=0
virtual bool IsEmpty() const =0
virtual void AppendToGroup(const QString &groupName, QAction *action, const QString &id)=0
virtual void RemoveAll()=0
virtual QList< SmartPointer< IContributionItem > > GetItems() const =0
berryObjectMacro(berry::IContributionManager) virtual void Add(QAction *action
virtual bool IsDirty() const =0
virtual void Add(const SmartPointer< IContributionItem > &item)=0
virtual void PrependToGroup(const QString &groupName, const SmartPointer< IContributionItem > &item)=0