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
berryMenuUtil.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
18
#include "
berryMenuUtil.h
"
19
20
#include <QString>
21
22
namespace
berry
{
23
24
QString
MenuUtil::WORKBENCH_MENU
=
"menu:org.blueberry.ui.workbench.menu"
;
25
QString
MenuUtil::MAIN_MENU
=
"menu:org.blueberry.ui.main.menu"
;
26
QString
MenuUtil::MAIN_TOOLBAR
=
"toolbar:org.blueberry.ui.main.toolbar"
;
27
28
QString
MenuUtil::ANY_POPUP
=
"popup:org.blueberry.ui.popup.any"
;
29
30
QString
MenuUtil::QUERY_BEFORE
=
"before"
;
31
QString
MenuUtil::QUERY_AFTER
=
"after"
;
32
QString
MenuUtil::QUERY_ENDOF
=
"endof"
;
33
34
QString
MenuUtil::SHOW_IN_MENU_ID
=
"popup:org.blueberry.ui.menus.showInMenu"
;
35
36
QString
MenuUtil::MenuUri
(
const
QString&
id
)
37
{
38
return
QString(
"menu:"
) + id;
39
}
40
41
QString
MenuUtil::MenuAddition
(
const
QString&
id
,
const
QString& location,
42
const
QString& refId)
43
{
44
return
MenuUri
(
id
) +
'?'
+ location +
'='
+ refId;
45
}
46
47
QString
MenuUtil::MenuAddition
(
const
QString&
id
)
48
{
49
return
MenuAddition
(
id
,
"after"
,
"additions"
);
50
}
51
52
QString
MenuUtil::ToolbarUri
(
const
QString&
id
)
53
{
54
return
QString(
"toolbar:"
) + id;
55
}
56
57
QString
MenuUtil::ToolbarAddition
(
const
QString&
id
,
const
QString& location,
58
const
QString& refId)
59
{
60
return
ToolbarUri
(
id
) +
'?'
+ location +
'='
+ refId;
61
}
62
63
QString
MenuUtil::ToolbarAddition
(
const
QString&
id
)
64
{
65
return
ToolbarAddition
(
id
,
"after"
,
"additions"
);
66
}
67
68
}
berry
Definition:
QmitkPropertyItemModel.h:27
berry::MenuUtil::QUERY_BEFORE
static QString QUERY_BEFORE
Definition:
berryMenuUtil.h:53
berry::MenuUtil::SHOW_IN_MENU_ID
static QString SHOW_IN_MENU_ID
Definition:
berryMenuUtil.h:75
berry::MenuUtil::MAIN_MENU
static QString MAIN_MENU
Definition:
berryMenuUtil.h:43
berry::MenuUtil::QUERY_AFTER
static QString QUERY_AFTER
Definition:
berryMenuUtil.h:58
berry::MenuUtil::ANY_POPUP
static QString ANY_POPUP
Definition:
berryMenuUtil.h:48
berry::MenuUtil::ToolbarAddition
static QString ToolbarAddition(const QString &id, const QString &location, const QString &refId)
Definition:
berryMenuUtil.cpp:57
berry::MenuUtil::WORKBENCH_MENU
static QString WORKBENCH_MENU
Definition:
berryMenuUtil.h:41
berry::MenuUtil::MenuAddition
static QString MenuAddition(const QString &id, const QString &location, const QString &refId)
Definition:
berryMenuUtil.cpp:41
berry::MenuUtil::MenuUri
static QString MenuUri(const QString &id)
Definition:
berryMenuUtil.cpp:36
berry::MenuUtil::QUERY_ENDOF
static QString QUERY_ENDOF
Definition:
berryMenuUtil.h:69
berryMenuUtil.h
berry::MenuUtil::ToolbarUri
static QString ToolbarUri(const QString &id)
Definition:
berryMenuUtil.cpp:52
berry::MenuUtil::MAIN_TOOLBAR
static QString MAIN_TOOLBAR
Definition:
berryMenuUtil.h:45
git
MITK
Plugins
org.blueberry.ui.qt
src
berryMenuUtil.cpp
Generated on Fri Feb 3 2017 20:51:44 for Medical Imaging Interaction Toolkit by
1.8.9.1