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
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
mitkWorkbenchUtil.h
Go to the documentation of this file.
1
/*===================================================================
2
3
The Medical Imaging Interaction Toolkit (MITK)
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
18
#ifndef MITKWORKBENCHUTIL_H
19
#define MITKWORKBENCHUTIL_H
20
21
#include <
org_mitk_gui_common_Export.h
>
22
23
#include "
mitkDataStorageEditorInput.h
"
24
25
#include <
berryIWorkbenchPage.h
>
26
#include <
berryIEditorDescriptor.h
>
27
28
class
ctkPluginContext;
29
30
namespace
mitk
{
31
40
struct
MITK_GUI_COMMON_PLUGIN
WorkbenchUtil
41
{
42
58
static
void
LoadFiles(
const
QStringList& fileNames,
berry::IWorkbenchWindow::Pointer
wnd,
bool
openEditor =
true
);
59
82
static
berry::IEditorPart::Pointer
OpenEditor(
berry::IWorkbenchPage::Pointer
page,
83
berry::IEditorInput::Pointer
input,
84
const
QString& editorId,
bool
activate =
false
);
85
111
static
berry::IEditorPart::Pointer
OpenEditor(
berry::IWorkbenchPage::Pointer
page,
112
mitk::DataStorageEditorInput::Pointer
input,
113
bool
activate =
false
,
114
bool
determineContentType =
false
);
115
148
static
berry::IEditorDescriptor::Pointer
GetEditorDescriptor(
149
const
QString& name,
bool
inferContentType =
true
);
150
171
static
berry::IEditorDescriptor::Pointer
GetDefaultEditor(
const
QString& file,
172
bool
determineContentType);
183
static
bool
SetDepartmentLogoPreference(
const
QString& logoResource, ctkPluginContext* context);
184
185
};
186
187
}
188
189
#endif // MITKWORKBENCHUTIL_H
org_mitk_gui_common_Export.h
berryIWorkbenchPage.h
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition:
GeometryOverview.dox:1
berry::SmartPointer< Self >
berryIEditorDescriptor.h
mitk::WorkbenchUtil
Utility class for loading data, opening editors and other tasks in a MITK Workbench.
Definition:
mitkWorkbenchUtil.h:40
mitkDataStorageEditorInput.h
MITK_GUI_COMMON_PLUGIN
#define MITK_GUI_COMMON_PLUGIN
Definition:
org_mitk_gui_common_Export.h:23
git
MITK
Plugins
org.mitk.gui.common
src
mitkWorkbenchUtil.h
Generated on Fri Feb 3 2017 20:52:11 for Medical Imaging Interaction Toolkit by
1.8.9.1