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
MitkCoreApp.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,
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 <
mitkBaseApplication.h
>
18
19
#include <QStringList>
20
#include <QVariant>
21
22
int
main
(
int
argc,
char
**argv)
23
{
24
mitk::BaseApplication
app(argc, argv);
25
26
app.
setApplicationName
(
"MitkCoreApp"
);
27
app.
setOrganizationName
(
"DKFZ"
);
28
29
// Preload the org.mitk.gui.qt.common plug-in (and hence also Qmitk) to speed
30
// up a clean-cache start. This also works around bugs in older gcc and glibc implementations,
31
// which have difficulties with multiple dynamic opening and closing of shared libraries with
32
// many global static initializers. It also helps if dependent libraries have weird static
33
// initialization methods and/or missing de-initialization code.
34
QStringList preloadLibs;
35
preloadLibs <<
"liborg_mitk_gui_qt_common"
;
36
app.
setPreloadLibraries
(preloadLibs);
37
38
app.
setProperty
(
mitk::BaseApplication::PROP_APPLICATION
,
"org.mitk.qt.coreapplication"
);
39
40
// Run the workbench
41
return
app.
run
();
42
}
mitk::BaseApplication::setPreloadLibraries
void setPreloadLibraries(const QStringList &libraryBaseNames)
Definition:
mitkBaseApplication.cpp:429
main
int main(int argc, char **argv)
Definition:
MitkCoreApp.cpp:22
mitk::BaseApplication::setProperty
void setProperty(const QString &property, const QVariant &value)
Definition:
mitkBaseApplication.cpp:826
mitk::BaseApplication::run
int run() override
Definition:
mitkBaseApplication.cpp:820
mitk::BaseApplication::setOrganizationName
void setOrganizationName(const QString &name)
Definition:
mitkBaseApplication.cpp:370
mitkBaseApplication.h
mitk::BaseApplication::setApplicationName
void setApplicationName(const QString &name)
Definition:
mitkBaseApplication.cpp:352
mitk::BaseApplication::PROP_APPLICATION
static QString PROP_APPLICATION
Definition:
mitkBaseApplication.h:121
mitk::BaseApplication
Definition:
mitkBaseApplication.h:82
git
MITK
Applications
CoreApp
MitkCoreApp.cpp
Generated on Fri Feb 3 2017 20:51:55 for Medical Imaging Interaction Toolkit by
1.8.9.1