Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
berryWorkbenchWindowAdvisor.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 #ifndef BERRYWORKBENCHWINDOWADVISOR_H_
14 #define BERRYWORKBENCHWINDOWADVISOR_H_
15 
16 #include <berrySmartPointer.h>
17 
19 
20 class QWidget;
21 
22 namespace berry
23 {
24 
25 struct IActionBarConfigurer;
26 struct IMemento;
27 struct IWorkbenchWindowConfigurer;
28 
29 class ActionBarAdvisor;
30 class Shell;
31 
68 {
69 
70 private:
71 
73 
74 protected:
75 
82 
83 public:
84 
93 
107  virtual void PreWindowOpen();
108 
119 
136  virtual void PostWindowRestore();
137 
151  virtual void OpenIntro();
152 
164  virtual void PostWindowCreate();
165 
177  virtual void PostWindowOpen();
178 
199  virtual bool PreWindowShellClose();
200 
209  virtual void PostWindowClose();
210 
231 
243  virtual QWidget* CreateEmptyWindowContents(QWidget* parent);
244 
251  virtual bool SaveState(SmartPointer<IMemento> memento);
252 
259  virtual bool RestoreState(SmartPointer<IMemento> memento);
260 };
261 
262 }
263 
264 #endif /*BERRYWORKBENCHWINDOWADVISOR_H_*/
Implements transparent reference counting.
virtual bool SaveState(SmartPointer< IMemento > memento)
virtual bool PreWindowShellClose()
WorkbenchWindowAdvisor(const SmartPointer< IWorkbenchWindowConfigurer > &configurer)
virtual QWidget * CreateEmptyWindowContents(QWidget *parent)
virtual void PostWindowRestore()
SmartPointer< IWorkbenchWindowConfigurer > GetWindowConfigurer()
virtual void CreateWindowContents(SmartPointer< Shell > shell)
virtual bool RestoreState(SmartPointer< IMemento > memento)
virtual SmartPointer< ActionBarAdvisor > CreateActionBarAdvisor(SmartPointer< IActionBarConfigurer > configurer)
#define BERRY_UI_QT