Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
QmitkDiffusionImagingAppWorkbenchAdvisor.cpp
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
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 
18 
19 #include "internal/QmitkDiffusionApplicationPlugin.h"
20 
21 #include <berryPlatform.h>
25 
26 #include <QApplication>
27 #include <QPoint>
28 
29 const QString QmitkDiffusionImagingAppWorkbenchAdvisor::WELCOME_PERSPECTIVE_ID = "org.mitk.diffusionimagingapp.perspectives.welcome";
30 
31 
32 void
34 {
36 
37  configurer->SetSaveAndRestore(true);
38 
39 }
40 
44 {
45  QList<QString> perspExcludeList;
46  perspExcludeList.push_back( "org.blueberry.uitest.util.EmptyPerspective" );
47  perspExcludeList.push_back( "org.blueberry.uitest.util.EmptyPerspective2" );
48 // perspExcludeList.push_back( std::string("org.mitk.coreapp.defaultperspective") );
49  //perspExcludeList.push_back( std::string("org.mitk.extapp.defaultperspective") );
50  perspExcludeList.push_back( "org.mitk.perspectives.publicdiffusionimaging" );
51  perspExcludeList.push_back("org.mitk.perspectives.diffusionimaginginternal" );
52  // Exclude the help perspective from org.blueberry.ui.qt.help from
53  // the normal perspective list.
54  // The perspective gets a dedicated menu entry in the help menu
55  perspExcludeList.push_back("org.blueberry.perspectives.help");
56 
57  QList<QString> viewExcludeList;
58  viewExcludeList.push_back( "org.mitk.views.controlvisualizationpropertiesview" );
59  viewExcludeList.push_back( "org.mitk.views.imagenavigator" );
60 // viewExcludeList.push_back( std::string("org.mitk.views.datamanager") );
61  viewExcludeList.push_back( "org.mitk.views.modules" );
62  viewExcludeList.push_back( "org.blueberry.ui.internal.introview" );
63 
64  configurer->SetInitialSize(QPoint(1000,770));
65 
66  QmitkExtWorkbenchWindowAdvisor* advisor = new QmitkExtWorkbenchWindowAdvisor(this, configurer);
67  advisor->ShowViewMenuItem(true);
68  advisor->ShowNewWindowMenuItem(true);
69  advisor->ShowClosePerspectiveMenuItem(true);
70  advisor->SetPerspectiveExcludeList(perspExcludeList);
71  advisor->SetViewExcludeList(viewExcludeList);
72  advisor->ShowViewToolbar(false);
73  advisor->ShowPerspectiveToolbar(false);
74  advisor->ShowVersionInfo(false);
75  advisor->ShowMitkVersionInfo(false);
76  advisor->ShowMemoryIndicator(false);
77  advisor->SetProductName("MITK Diffusion");
78  advisor->SetWindowIcon(":/org.mitk.gui.qt.diffusionimagingapp/app-icon.png");
79  return advisor;
80 }
81 
83 {
85 }
berry::WorkbenchWindowAdvisor * CreateWorkbenchWindowAdvisor(berry::IWorkbenchWindowConfigurer::Pointer configurer) override
void Initialize(IWorkbenchConfigurer::Pointer configurer) override
void Initialize(berry::IWorkbenchConfigurer::Pointer configurer) override
void SetPerspectiveExcludeList(const QList< QString > &v)
void SetViewExcludeList(const QList< QString > &v)