00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date$ 00006 Version: $Revision$ 00007 00008 Copyright (c) German Cancer Research Center, Division of Medical and 00009 Biological Informatics. All rights reserved. 00010 See MITKCopyright.txt or https://www.mitk.org/copyright.html for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 00018 #ifndef QMITKEXTAPPWORKBENCHADVISOR_H_ 00019 #define QMITKEXTAPPWORKBENCHADVISOR_H_ 00020 00021 #ifdef __MINGW32__ 00022 // We need to inlclude winbase.h here in order to declare 00023 // atomic intrinsics like InterlockedIncrement correctly. 00024 // Otherwhise, they would be declared wrong within qatomic_windows.h . 00025 #include <windows.h> 00026 #endif 00027 00028 #include <berryQtWorkbenchAdvisor.h> 00029 00030 #include "mitkQtExtAppDll.h" 00031 00032 class MITK_QT_EXTAPP QmitkExtAppWorkbenchAdvisor: public berry::QtWorkbenchAdvisor 00033 { 00034 public: 00035 00036 static const std::string DEFAULT_PERSPECTIVE_ID; // = "org.mitk.extapp.defaultperspective" 00037 00038 void Initialize(berry::IWorkbenchConfigurer::Pointer configurer); 00039 00040 berry::WorkbenchWindowAdvisor* CreateWorkbenchWindowAdvisor( 00041 berry::IWorkbenchWindowConfigurer::Pointer configurer); 00042 00043 std::string GetInitialWindowPerspectiveId(); 00044 00045 }; 00046 00047 #endif /*QMITKEXTAPPWORKBENCHADVISOR_H_*/