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 #include "QmitkExtDefaultPerspective.h" 00019 #include "berryIViewLayout.h" 00020 00021 00022 void QmitkExtDefaultPerspective::CreateInitialLayout(berry::IPageLayout::Pointer layout) 00023 { 00024 std::string editorArea = layout->GetEditorArea(); 00025 00026 layout->AddView("org.mitk.views.datamanager", 00027 berry::IPageLayout::LEFT, 0.3f, editorArea); 00028 00029 berry::IViewLayout::Pointer lo = layout->GetViewLayout("org.mitk.views.datamanager"); 00030 lo->SetCloseable(false); 00031 00032 layout->AddView("org.mitk.views.imagenavigator", 00033 berry::IPageLayout::BOTTOM, 0.5f, "org.mitk.views.datamanager"); 00034 00035 berry::IFolderLayout::Pointer bottomFolder = layout->CreateFolder("bottom", berry::IPageLayout::BOTTOM, 0.7f, editorArea); 00036 bottomFolder->AddView("org.mitk.views.propertylistview"); 00037 bottomFolder->AddView("org.blueberry.views.logview"); 00038 }