Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
berryShell.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 BERRYSHELL_H_
15 #define BERRYSHELL_H_
16 
17 #include <berryMacros.h>
18 
20 #include "berryIShellListener.h"
22 
23 namespace berry {
24 
118 class BERRY_UI_QT Shell : public virtual Object
119 {
120 public:
121 
123 
124  Shell();
125 
126  Object::Pointer GetData(const QString& id = "") const;
127  void SetData(const Object::Pointer& data, const QString& id = "");
128 
129  IShellListener* GetExtraShellListener() const;
130 
131  void SetExtraShellListener(IShellListener* l);
132 
133  void SetBounds(int x, int y, int width, int height);
134 
135  virtual void SetBounds(const QRect& bounds) = 0;
136  virtual QRect GetBounds() const = 0;
137 
138  virtual void SetLocation(int x, int y) = 0;
139 
140  virtual QPoint ComputeSize(int wHint, int hHint, bool changed) = 0;
141 
149  virtual QString GetText() const = 0;
150 
155  virtual void SetText(const QString& text) = 0;
156 
157  virtual bool IsVisible() const = 0;
158  virtual void SetVisible(bool visible) = 0;
159 
160  virtual QWidget* GetControl() const = 0;
161 
162  virtual void SetImages(const QList<QIcon>& images) = 0;
163 
173  virtual bool GetMaximized() const = 0;
174 
184  virtual bool GetMinimized() const = 0;
185 
204  virtual void SetMinimized(bool minimized) = 0;
205 
224  virtual void SetMaximized(bool maximized) = 0;
225 
237  virtual void AddShellListener(IShellListener* listener) = 0;
238 
248  virtual void RemoveShellListener(IShellListener* listener) = 0;
249 
258  virtual void Open(bool block = false) = 0;
259 
267  virtual void Close() = 0;
268 
276  virtual void SetActive() = 0;
277 
289  virtual QList<Shell::Pointer> GetShells() = 0;
290 
311  virtual Qt::WindowFlags GetStyle () const = 0;
312 
313 private:
314 
315  QHash<QString, Object::Pointer> data;
316  IShellListener* extraShellListener;
317 
318 };
319 
320 }
321 
323 
324 #endif /* BERRYSHELL_H_ */
org_blueberry_ui_qt_Export.h
berryIShellListener.h
berryMacros.h
berry::SmartPointer
Implements transparent reference counting.
Definition: berryICommandCategoryListener.h:21
berry::Object
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:72
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(mitk::ProcessExecutor::Pointer)
berryGuiTkIControlListener.h
BERRY_UI_QT
#define BERRY_UI_QT
Definition: org_blueberry_ui_qt_Export.h:26
berry::IShellListener
Definition: berryIShellListener.h:40
berryObjectMacro
#define berryObjectMacro(...)
Definition: berryMacros.h:31
berry::Shell
Definition: berryShell.h:118
berry
Definition: QmitkPropertyItemModel.h:24