Medical Imaging Interaction Toolkit  2018.4.99-93926fb8
Medical Imaging Interaction Toolkit
berryIContributionManager.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 BERRYICONTRIBUTIONMANAGER_H
15 #define BERRYICONTRIBUTIONMANAGER_H
16 
17 #include <berryMacros.h>
18 #include <berryObject.h>
19 
20 class QAction;
21 
22 namespace berry {
23 
24 struct IContributionItem;
25 struct IContributionManagerOverrides;
26 
51 struct IContributionManager : public virtual Object
52 {
53 
55 
63  virtual void Add(QAction* action, const QString& id) = 0;
64 
70  virtual void Add(const SmartPointer<IContributionItem>& item) = 0;
71 
84  virtual void AppendToGroup(const QString& groupName, QAction* action, const QString& id) = 0;
85 
95  virtual void AppendToGroup(const QString& groupName, const SmartPointer<IContributionItem>& item) = 0;
96 
104  virtual SmartPointer<IContributionItem> Find(const QString& id) const = 0;
105 
111  virtual QList<SmartPointer<IContributionItem> > GetItems() const = 0;
112 
119 
128  virtual void InsertAfter(const QString& id, const SmartPointer<IContributionItem>& item) = 0;
129 
138  virtual void InsertBefore(const QString& id, const SmartPointer<IContributionItem>& item) = 0;
139 
147  virtual bool IsDirty() const = 0;
148 
155  virtual bool IsEmpty() const = 0;
156 
160  virtual void MarkDirty() = 0;
161 
171  virtual void PrependToGroup(const QString& groupName, const SmartPointer<IContributionItem>& item) = 0;
172 
181  virtual SmartPointer<IContributionItem> Remove(const QString& id) = 0;
182 
192 
196  virtual void RemoveAll() = 0;
197 
207  virtual void Update(bool force) = 0;
208 };
209 
210 }
211 
212 #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:72
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
berryObjectMacro(berry::IContributionManager)
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 Add(QAction *action, const QString &id)=0
virtual void RemoveAll()=0
virtual QList< SmartPointer< IContributionItem > > GetItems() const =0
virtual bool IsDirty() const =0
virtual void PrependToGroup(const QString &groupName, const SmartPointer< IContributionItem > &item)=0