Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
berryEmptyPerspective.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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #include "berryEmptyPerspective.h"
14 
15 namespace berry
16 {
17 
18 QString EmptyPerspective::LastPerspective;
19 const QString EmptyPerspective::PERSP_ID =
20  "org.blueberry.uitest.util.EmptyPerspective";
21 const QString EmptyPerspective::PERSP_ID2 =
22  "org.blueberry.uitest.util.EmptyPerspective2";
23 
25 {
26 
27 }
28 
30  : QObject()
31 {
32  Q_UNUSED(other)
33 }
34 
36 {
37  return LastPerspective;
38 }
39 
40 void EmptyPerspective::SetLastPerspective(const QString& perspId)
41 {
42  LastPerspective = perspId;
43 }
44 
46 {
47  SetLastPerspective(layout->GetDescriptor()->GetId());
48  // do no layout, this is the empty perspective
49 }
50 
51 }
static const QString PERSP_ID2
static const QString PERSP_ID
static void SetLastPerspective(const QString &perspId)
void CreateInitialLayout(IPageLayout::Pointer layout)