Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
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 
22 
24 
25 #include <berryIWorkbenchPage.h>
26 #include <berryIEditorDescriptor.h>
27 
28 class ctkPluginContext;
29 
30 namespace mitk {
31 
41 {
42 
58  static void LoadFiles(const QStringList& fileNames, berry::IWorkbenchWindow::Pointer wnd, bool openEditor = true);
59 
84  const QString& editorId, bool activate = false);
85 
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
DataCollection - Class to facilitate loading/accessing structured data.
Utility class for loading data, opening editors and other tasks in a MITK Workbench.
#define MITK_GUI_COMMON_PLUGIN