Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryWorkbenchWindowAdvisor.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 BERRYWORKBENCHWINDOWADVISOR_H_
18 #define BERRYWORKBENCHWINDOWADVISOR_H_
19 
20 #include <berrySmartPointer.h>
21 
23 
24 namespace berry
25 {
26 
27 struct IActionBarConfigurer;
28 struct IMemento;
29 struct IWorkbenchWindowConfigurer;
30 
31 class ActionBarAdvisor;
32 class Shell;
33 
70 {
71 
72 private:
73 
75 
76 protected:
77 
83  SmartPointer<IWorkbenchWindowConfigurer> GetWindowConfigurer();
84 
85 public:
86 
94  virtual ~WorkbenchWindowAdvisor();
95 
109  virtual void PreWindowOpen();
110 
119  virtual SmartPointer<ActionBarAdvisor> CreateActionBarAdvisor(
121 
138  virtual void PostWindowRestore();
139 
153  virtual void OpenIntro();
154 
166  virtual void PostWindowCreate();
167 
179  virtual void PostWindowOpen();
180 
201  virtual bool PreWindowShellClose();
202 
211  virtual void PostWindowClose();
212 
232  virtual void CreateWindowContents(SmartPointer<Shell> shell);
233 
245  virtual QWidget* CreateEmptyWindowContents(QWidget* parent);
246 
253  virtual bool SaveState(SmartPointer<IMemento> memento);
254 
261  virtual bool RestoreState(SmartPointer<IMemento> memento);
262 };
263 
264 }
265 
266 #endif /*BERRYWORKBENCHWINDOWADVISOR_H_*/
Implements transparent reference counting.
#define BERRY_UI_QT