Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryShell.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 BERRYSHELL_H_
19 #define BERRYSHELL_H_
20 
21 #include <berryMacros.h>
22 
24 #include "berryIShellListener.h"
26 
27 namespace berry {
28 
122 class BERRY_UI_QT Shell : public virtual Object
123 {
124 public:
125 
127 
128  Shell();
129 
130  Object::Pointer GetData(const QString& id = "") const;
131  void SetData(const Object::Pointer& data, const QString& id = "");
132 
133  IShellListener* GetExtraShellListener() const;
134 
135  void SetExtraShellListener(IShellListener* l);
136 
137  void SetBounds(int x, int y, int width, int height);
138 
139  virtual void SetBounds(const QRect& bounds) = 0;
140  virtual QRect GetBounds() const = 0;
141 
142  virtual void SetLocation(int x, int y) = 0;
143 
144  virtual QPoint ComputeSize(int wHint, int hHint, bool changed) = 0;
145 
153  virtual QString GetText() const = 0;
154 
159  virtual void SetText(const QString& text) = 0;
160 
161  virtual bool IsVisible() const = 0;
162  virtual void SetVisible(bool visible) = 0;
163 
164  virtual QWidget* GetControl() const = 0;
165 
166  virtual void SetImages(const QList<QIcon>& images) = 0;
167 
177  virtual bool GetMaximized() const = 0;
178 
188  virtual bool GetMinimized() const = 0;
189 
208  virtual void SetMinimized(bool minimized) = 0;
209 
228  virtual void SetMaximized(bool maximized) = 0;
229 
241  virtual void AddShellListener(IShellListener* listener) = 0;
242 
252  virtual void RemoveShellListener(IShellListener* listener) = 0;
253 
262  virtual void Open(bool block = false) = 0;
263 
271  virtual void Close() = 0;
272 
280  virtual void SetActive() = 0;
281 
293  virtual QList<Shell::Pointer> GetShells() = 0;
294 
315  virtual Qt::WindowFlags GetStyle () const = 0;
316 
317 private:
318 
319  QHash<QString, Object::Pointer> data;
320  IShellListener* extraShellListener;
321 
322 };
323 
324 }
325 
326 Q_DECLARE_METATYPE(berry::Shell*)
327 
328 #endif /* BERRYSHELL_H_ */
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:78
T::Pointer GetData(const std::string &name)
#define berryObjectMacro(...)
Definition: berryMacros.h:37
section MAP_FRAME_Mapper_Settings Mapper settings For the mapping of corrected images
#define BERRY_UI_QT