#include <berryMenuUtil.h>
|
static QString | MenuUri (const QString &id) |
|
static QString | MenuAddition (const QString &id, const QString &location, const QString &refId) |
|
static QString | MenuAddition (const QString &id) |
|
static QString | ToolbarUri (const QString &id) |
|
static QString | ToolbarAddition (const QString &id, const QString &location, const QString &refId) |
|
static QString | ToolbarAddition (const QString &id) |
|
Provides utilities and constants for use with the new menus API.
- Note
- This class is not intended to be subclassed by clients.
-
This class is not intended to be instantiated by clients.
Definition at line 27 of file berryMenuUtil.h.
◆ MenuAddition() [1/2]
static QString berry::MenuUtil::MenuAddition |
( |
const QString & |
id | ) |
|
|
static |
Convenience method to create a standard menu addition The resulting string has the format: "menu:[id]?after=additions"
- Parameters
-
id | The id of the root element to contribute to |
- Returns
- The formatted string
◆ MenuAddition() [2/2]
static QString berry::MenuUtil::MenuAddition |
( |
const QString & |
id, |
|
|
const QString & |
location, |
|
|
const QString & |
refId |
|
) |
| |
|
static |
- Parameters
-
id | The id of the menu |
location | The relative location specifier |
refId | The id of the menu element to be relative to |
- Returns
- A location URI formatted with the given parameters
◆ MenuUri()
static QString berry::MenuUtil::MenuUri |
( |
const QString & |
id | ) |
|
|
static |
- Parameters
-
- Returns
- The locator URI for a menu with the given id
◆ ToolbarAddition() [1/2]
static QString berry::MenuUtil::ToolbarAddition |
( |
const QString & |
id | ) |
|
|
static |
Convenience method to create a standard toolbar addition The resulting string has the format: "toolbar:[id]?after=additions"
- Parameters
-
id | The id of the root element to contribute to |
- Returns
- The formatted string
◆ ToolbarAddition() [2/2]
static QString berry::MenuUtil::ToolbarAddition |
( |
const QString & |
id, |
|
|
const QString & |
location, |
|
|
const QString & |
refId |
|
) |
| |
|
static |
- Parameters
-
id | The id of the toolbar |
location | The relative location specifier |
refId | The id of the toolbar element to be relative to |
- Returns
- A location URI formatted with the given parameters
◆ ToolbarUri()
static QString berry::MenuUtil::ToolbarUri |
( |
const QString & |
id | ) |
|
|
static |
- Parameters
-
- Returns
- The location URI for a toolbar with the given id
◆ ANY_POPUP
QString berry::MenuUtil::ANY_POPUP |
|
static |
◆ MAIN_MENU
QString berry::MenuUtil::MAIN_MENU |
|
static |
◆ MAIN_TOOLBAR
QString berry::MenuUtil::MAIN_TOOLBAR |
|
static |
◆ QUERY_AFTER
QString berry::MenuUtil::QUERY_AFTER |
|
static |
Valid query attribute. Usage menu:menu.id?after=contribution.id.
Definition at line 54 of file berryMenuUtil.h.
◆ QUERY_BEFORE
QString berry::MenuUtil::QUERY_BEFORE |
|
static |
Valid query attribute. Usage menu:menu.id?before=contribution.id.
Definition at line 49 of file berryMenuUtil.h.
◆ QUERY_ENDOF
QString berry::MenuUtil::QUERY_ENDOF |
|
static |
Valid query attribute. Usage menu:menu.id?endof=contribution.id.
This menu contribution will be placed at the end of the group defined by contribution.id (usually right in front of the next group marker or separator). Further contribution processing can still place other contributions after this one.
Definition at line 65 of file berryMenuUtil.h.
◆ SHOW_IN_MENU_ID
QString berry::MenuUtil::SHOW_IN_MENU_ID |
|
static |
Contributions of targets to this location will be included with the show in menu.
Definition at line 71 of file berryMenuUtil.h.
◆ WORKBENCH_MENU
QString berry::MenuUtil::WORKBENCH_MENU |
|
static |
Workbench Menu. On supported platforms, this menu is shown when no workbench windows are active
Definition at line 37 of file berryMenuUtil.h.
The documentation for this class was generated from the following file: