NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkBaseWorkbenchWindowAdvisor.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  NifTK: A software platform for medical image computing.
4 
5  Copyright (c) University College London (UCL). All rights reserved.
6 
7  This software is distributed WITHOUT ANY WARRANTY; without even
8  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  PURPOSE.
10 
11  See LICENSE.txt in the top level directory for details.
12 
13 =============================================================================*/
14 
15 #ifndef niftkBaseWorkbenchWindowAdvisor_h
16 #define niftkBaseWorkbenchWindowAdvisor_h
17 
18 #include <uk_ac_ucl_cmic_commonapps_Export.h>
19 #include <QmitkExtWorkbenchWindowAdvisor.h>
20 
21 
22 namespace niftk
23 {
24 
31 class COMMONAPPS_EXPORT BaseWorkbenchWindowAdvisor : public QmitkExtWorkbenchWindowAdvisor
32 {
33  Q_OBJECT
34 
35 public:
36 
37  BaseWorkbenchWindowAdvisor(berry::WorkbenchAdvisor* wbAdvisor,
38  berry::IWorkbenchWindowConfigurer::Pointer configurer);
39 
43  virtual void PreWindowOpen() override;
44 
48  virtual void PostWindowCreate() override;
49 
50 public slots:
51 
53  void OnHelpAbout();
54 
55 protected:
56 
60  void OpenEditor(const QString& editorName);
61 
65  void OpenEditorIfEnvironmentVariableIsON(const std::string& envVariable, const QString& editorName);
66 };
67 
68 }
69 
70 #endif
Definition: niftkBaseWorkbenchWindowAdvisor.h:31
Definition: niftkExceptionObject.h:21
GLsizei const GLcharARB ** string
Definition: glew.h:5194