Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
Home
Manual
API Reference
Download
Bugzilla
Groups
Namespace List
Class List
File List
Examples
File List
File Members
berrySameShellProvider.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 "
tweaklets/berryGuiWidgetsTweaklet.h
"
18
19
#include "
berrySameShellProvider.h
"
20
21
namespace
berry
22
{
23
24
SameShellProvider::SameShellProvider
(QWidget* target) :
25
targetControl(target)
26
{
27
28
}
29
30
SameShellProvider::SameShellProvider
(
Shell::Pointer
sh) :
31
targetControl(nullptr), shell(sh)
32
{
33
34
}
35
36
Shell::Pointer
SameShellProvider::GetShell
()
const
37
{
38
if
(shell != 0)
39
{
40
return
shell;
41
}
42
43
return
targetControl ==
nullptr
?
Shell::Pointer
(
nullptr
)
44
: Tweaklets::Get(
GuiWidgetsTweaklet::KEY
)->GetShell(targetControl);
45
}
46
47
}
berry
Definition:
QmitkPropertyItemModel.h:27
berry::SameShellProvider::SameShellProvider
SameShellProvider(Shell::Pointer shell)
Definition:
berrySameShellProvider.cpp:24
berry::SmartPointer< Self >
berry::Object::Pointer
berry::SmartPointer< Self > Pointer
Definition:
berryObject.h:88
berry::SameShellProvider::GetShell
Shell::Pointer GetShell() const override
Definition:
berrySameShellProvider.cpp:36
berry::GuiWidgetsTweaklet::KEY
static Tweaklets::TweakKey< GuiWidgetsTweaklet > KEY
Definition:
berryGuiWidgetsTweaklet.h:35
berrySameShellProvider.h
berryGuiWidgetsTweaklet.h
git
MITK
Plugins
org.blueberry.ui.qt
src
berrySameShellProvider.cpp
Generated on Fri Feb 3 2017 20:51:44 for Medical Imaging Interaction Toolkit by
1.8.9.1