#include <QmitkDiffusionImagingPublicPerspective.h>
Public Member Functions | |
void | CreateInitialLayout (berry::IPageLayout::Pointer layout) |
Definition at line 24 of file QmitkDiffusionImagingPublicPerspective.h.
void QmitkDiffusionImagingPublicPerspective::CreateInitialLayout | ( | berry::IPageLayout::Pointer | layout ) | [virtual] |
Implements berry::IPerspectiveFactory.
Definition at line 21 of file QmitkDiffusionImagingPublicPerspective.cpp.
References berry::IPageLayout::BOTTOM, and berry::IPageLayout::LEFT.
{ std::string editorArea = layout->GetEditorArea(); layout->AddStandaloneView("org.mitk.views.datamanager", false, berry::IPageLayout::LEFT, 0.3f, editorArea); layout->AddStandaloneView("org.mitk.views.controlvisualizationpropertiesview", false, berry::IPageLayout::BOTTOM, .2f, "org.mitk.views.datamanager"); berry::IFolderLayout::Pointer left = layout->CreateFolder("org.mitk.leftcontrols", berry::IPageLayout::BOTTOM, 0.125f, "org.mitk.views.controlvisualizationpropertiesview"); layout->AddStandaloneView("org.mitk.views.imagenavigator", false, berry::IPageLayout::BOTTOM, 0.8f, "org.mitk.leftcontrols"); layout->AddStandaloneView("org.mitk.views.perspectiveswitcher", false, berry::IPageLayout::BOTTOM, 0.99f, "org.mitk.views.imagenavigator"); // layout->AddStandaloneViewPlaceholder("org.mitk.views.imagenavigator", // berry::IPageLayout::TOP, 0.9f, "org.mitk.views.perspectiveswitcher",false); left->AddView("org.mitk.views.diffusionpreprocessing"); left->AddView("org.mitk.views.tensorreconstruction"); left->AddView("org.mitk.views.qballreconstruction"); left->AddView("org.mitk.views.diffusionquantification"); left->AddView("org.mitk.views.diffusiondicomimport"); berry::IViewLayout::Pointer lo = layout->GetViewLayout("org.mitk.views.diffusionpreprocessing"); lo->SetCloseable(false); lo = layout->GetViewLayout("org.mitk.views.qballreconstruction"); lo->SetCloseable(false); lo = layout->GetViewLayout("org.mitk.views.tensorreconstruction"); lo->SetCloseable(false); lo = layout->GetViewLayout("org.mitk.views.diffusionquantification"); lo->SetCloseable(false); lo = layout->GetViewLayout("org.mitk.views.diffusiondicomimport"); lo->SetCloseable(false); //berry::IFolderLayout::Pointer right2 = // layout->CreateFolder("right2", berry::IPageLayout::BOTTOM, 0.5f, "right"); }