Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryEmptyPerspective.cpp
Go to the documentation of this file.
1 /*===================================================================
2 
3 BlueBerry Platform
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 
17 #include "berryEmptyPerspective.h"
18 
19 namespace berry
20 {
21 
22 QString EmptyPerspective::LastPerspective;
23 const QString EmptyPerspective::PERSP_ID =
24  "org.blueberry.uitest.util.EmptyPerspective";
25 const QString EmptyPerspective::PERSP_ID2 =
26  "org.blueberry.uitest.util.EmptyPerspective2";
27 
29 {
30 
31 }
32 
34  : QObject()
35 {
36  Q_UNUSED(other)
37 }
38 
40 {
41  return LastPerspective;
42 }
43 
44 void EmptyPerspective::SetLastPerspective(const QString& perspId)
45 {
46  LastPerspective = perspId;
47 }
48 
50 {
51  SetLastPerspective(layout->GetDescriptor()->GetId());
52  // do no layout, this is the empty perspective
53 }
54 
55 }
static const QString PERSP_ID2
static const QString PERSP_ID
static void SetLastPerspective(const QString &perspId)
void CreateInitialLayout(IPageLayout::Pointer layout)