Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryIWorkbenchWindowConfigurer.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 #ifndef BERRYIWORKBENCHWINDOWCONFIGURER_H_
18 #define BERRYIWORKBENCHWINDOWCONFIGURER_H_
19 
20 #include <berryObject.h>
21 
23 
24 class QMenuBar;
25 
26 namespace berry
27 {
28 
29 struct IActionBarConfigurer;
30 struct IDropTargetListener;
31 struct IMemento;
32 struct IWorkbenchConfigurer;
33 struct IWorkbenchWindow;
34 
55 {
56 
58 
60 
66  virtual SmartPointer<IWorkbenchWindow> GetWindow() = 0;
67 
73  virtual SmartPointer<IWorkbenchConfigurer> GetWorkbenchConfigurer() = 0;
74 
81  virtual SmartPointer<IActionBarConfigurer> GetActionBarConfigurer() = 0;
82 
88  virtual QString GetTitle() = 0;
89 
95  virtual void SetTitle(const QString& title) = 0;
96 
106  virtual bool GetShowMenuBar() const = 0;
107 
114  virtual void SetShowMenuBar(bool show) = 0;
115 
125  virtual bool GetShowToolBar() const = 0;
126 
133  virtual void SetShowToolBar(bool show) = 0;
134 
144  virtual bool GetShowStatusLine() const = 0;
145 
152  virtual void SetShowStatusLine(bool show) = 0;
153 
164  virtual bool GetShowPerspectiveBar() const = 0;
165 
173  virtual void SetShowPerspectiveBar(bool show) = 0;
174 
184  virtual bool GetShowProgressIndicator() const = 0;
185 
192  virtual void SetShowProgressIndicator(bool show) = 0;
193 
200  virtual Qt::WindowFlags GetWindowFlags() const = 0;
201 
214  virtual void SetWindowFlags(Qt::WindowFlags windowFlags) = 0;
215 
221  virtual QPoint GetInitialSize() const = 0;
222 
231  virtual void SetInitialSize(QPoint initialSize) = 0;
232 
233  /*
234  * Returns the data associated with this workbench window at the given key.
235  *
236  * @param key the key
237  * @return the data, or <code>null</code> if there is no data at the given
238  * key
239  */
240  //virtual Object getData(String key);
241 
242  /*
243  * Sets the data associated with this workbench window at the given key.
244  *
245  * @param key the key
246  * @param data the data, or <code>null</code> to delete existing data
247  */
248  //virtual void setData(String key, Object data);
249 
271  virtual void AddEditorAreaTransfer(const QStringList& transferTypes) = 0;
272 
294  virtual void ConfigureEditorAreaDropListener(IDropTargetListener* dropTargetListener) = 0;
295 
310  virtual QMenuBar* CreateMenuBar() = 0;
311 
328  virtual QWidget* CreateToolBar(QWidget* parent) = 0;
329 
330  /*
331  * Creates the status line control.
332  * <p>
333  * This should only be called if the advisor is defining custom window contents
334  * in <code>createWindowContents</code>, and may only be called once.
335  * The caller must lay out the status line appropriately within the parent,
336  * but must not add, remove or change items in the result (hence the
337  * return type of <code>Control</code>).
338  * The status line is populated by the window's status line manager.
339  * The application can add to the status line manager in the advisor's
340  * <code>fillActionBars</code> method instead.
341  * </p>
342  *
343  * @param parent the parent composite
344  * @return the status line control, suitable for laying out in the parent
345  */
346  //virtual Control createStatusLineControl(Composite parent);
347 
362  virtual QWidget* CreatePageComposite(QWidget* parent) = 0;
363 
371  virtual bool SaveState(SmartPointer<IMemento> memento) = 0;
372 };
373 
374 }
375 
376 #endif /*BERRYIWORKBENCHWINDOWCONFIGURER_H_*/
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:78
Implements transparent reference counting.
#define berryObjectMacro(...)
Definition: berryMacros.h:37
#define BERRY_UI_QT