* The view registry provides facilities to map from an extension * to a IViewDescriptor. *
** This interface is not intended to be implemented by clients. *
* * @see org.blueberry.ui.IViewRegistry */ struct BERRY_UI_QT IViewDescriptor : public IWorkbenchPartDescriptor, public IAdaptable { berryObjectMacro(berry::IViewDescriptor); ~IViewDescriptor() override; /** * Creates an instance of the view defined in the descriptor. * * @return the view part * @throws CoreException thrown if there is a problem creating the part */ virtual IViewPart::Pointer CreateView() = 0; /** * Returns a list of ids belonging to keyword reference extensions. * * The keywords listed in each referenced id can be used to filter * this view. * * @return A list of ids for keyword reference extensions. */ virtual QStringList GetKeywordReferences() const = 0; /** * Returns an array of strings that represent * view's category path. This array will be used * for hierarchical presentation of the * view in places like submenus. * @return array of category tokens or null if not specified. */ virtual QStringList GetCategoryPath() const = 0; /** * Returns the description of this view. * * @return the description */ virtual QString GetDescription() const = 0; /** * Returns the descriptor for the icon to show for this view. */ QIcon GetImageDescriptor() const override = 0; /** * Returns whether this view allows multiple instances. * * @return whether this view allows multiple instances */ virtual bool GetAllowMultiple() const = 0; /** * Returns whether this view can be restored upon workbench restart. * * @return whether this view can be restored upon workbench restart */ virtual bool IsRestorable() const = 0; /** - * Return whether this view should be considered in enumerations in the UI. + * Return whether this view should be considered internal, e.g., + * excluded from view enumerations in the UI. * - * @return whether this view should be enumerated + * @return whether this view is internal */ - virtual bool Enumerate() const = 0; + virtual bool IsInternal() const = 0; bool operator==(const Object*) const override = 0; }; } #endif /*BERRYIVIEWDESCRIPTOR_H_*/ diff --git a/Plugins/org.blueberry.ui.qt/src/internal/berryViewDescriptor.cpp b/Plugins/org.blueberry.ui.qt/src/internal/berryViewDescriptor.cpp index ae00928af7..7471ff3b3b 100644 --- a/Plugins/org.blueberry.ui.qt/src/internal/berryViewDescriptor.cpp +++ b/Plugins/org.blueberry.ui.qt/src/internal/berryViewDescriptor.cpp @@ -1,211 +1,211 @@ /*============================================================================ The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center (DKFZ) All rights reserved. Use of this source code is governed by a 3-clause BSD license that can be found in the LICENSE file. ============================================================================*/ #include "berryViewDescriptor.h" #include "berryIConfigurationElement.h" #include "berryCoreException.h" #include "berryIExtension.h" #include "berryIContributor.h" #include "berryStatus.h" #include "berryRegistryReader.h" #include "berryWorkbenchRegistryConstants.h" #include "berryAbstractUICTKPlugin.h" #include "handlers/berryIHandlerActivation.h" namespace berry { ViewDescriptor::ViewDescriptor(const IConfigurationElement::Pointer& e) : configElement(e) { this->LoadFromExtension(); } IViewPart::Pointer ViewDescriptor::CreateView() { IViewPart::Pointer part(configElement->CreateExecutableExtensionViewDescriptor
for an extension.
*
* @param e the configuration element
* @throws CoreException thrown if there are errors in the configuration
*/
ViewDescriptor(const SmartPointeraccelerator
.
*/
static const QString ATT_ACCELERATOR; // "accelerator";
/**
* Adaptable attribute. Value adaptable
.
*/
static const QString ATT_ADAPTABLE; // "adaptable";
/**
* Advisor id attribute. Value triggerPointAdvisorId
.
*/
static const QString ATT_ADVISORID; // "triggerPointAdvisorId";
/**
* Allow label update attribute. Value allowLabelUpdate
.
*/
static const QString ATT_ALLOW_LABEL_UPDATE; // "allowLabelUpdate";
/**
* View multiple attribute. Value allowMultiple
.
*/
static const QString ATT_ALLOW_MULTIPLE; // "allowMultiple";
/**
* Attribute that specifies whether a view gets restored upon workbench restart. Value restorable
.
*/
static const QString ATT_RESTORABLE; // = "restorable";
/**
* Attribute that specifies whether a wizard is immediately capable of
* finishing. Value canFinishEarly
.
*/
static const QString ATT_CAN_FINISH_EARLY; // "canFinishEarly";
/**
* The name of the category attribute, which appears on a command
* definition.
*/
static const QString ATT_CATEGORY; // "category";
/**
* Category id attribute. Value categoryId
.
*/
static const QString ATT_CATEGORY_ID; // "categoryId";
/**
* Class attribute. Value class
.
*/
static const QString ATT_CLASS; // "class";
/**
* Sticky view closable attribute. Value closable
.
*/
static const QString ATT_CLOSEABLE; // "closeable";
/**
* Color factory attribute. Value colorFactory
.
*/
static const QString ATT_COLORFACTORY; // "colorFactory";
/**
* Editor command attribute. Value command
.
*/
static const QString ATT_COMMAND; // "command";
/**
* The name of the attribute storing the command id.
*/
static const QString ATT_COMMAND_ID; // "commandId";
/**
* The name of the configuration attribute storing the scheme id for a
* binding.
*/
static const QString ATT_CONFIGURATION; // "configuration";
/**
* Intro content detector class attribute (optional). Value contentDetector
.
*/
static const QString ATT_CONTENT_DETECTOR; // "contentDetector";
/**
* Editor content type id binding attribute. Value
* contentTypeId
.
*/
static const QString ATT_CONTENT_TYPE_ID; // "contentTypeId";
/**
* The name of the attribute storing the context id for a binding.
*/
static const QString ATT_CONTEXT_ID; // "contextId";
/**
* Editor contributor class attribute. Value contributorClass
.
*/
static const QString ATT_CONTRIBUTOR_CLASS; // "contributorClass";
/**
* The name of the attribute storing the IParameterValueConverter for
* a commandParameterType.
*/
static const QString ATT_CONVERTER; // "converter";
/**
* Perspective default attribute. Value default
.
*/
static const QString ATT_DEFAULT; // "default";
/**
* The name of the default handler attribute, which appears on a command
* definition.
*/
static const QString ATT_DEFAULT_HANDLER; // "defaultHandler";
/**
* Defaults-to attribute. Value defaultsTo
.
*/
static const QString ATT_DEFAULTS_TO; // "defaultsTo";
/**
* Action definition id attribute. Value definitionId
.
*/
static const QString ATT_DEFINITION_ID; // "definitionId";
/**
* The name of the description attribute, which appears on named handle
* objects.
*/
static const QString ATT_DESCRIPTION; // "description";
/**
* Description image attribute. Value descriptionImage
.
*/
static const QString ATT_DESCRIPTION_IMAGE; // "descriptionImage";
/**
* Disabled icon attribute. Value disabledIcon
.
*/
static const QString ATT_DISABLEDICON; // "disabledIcon";
/**
* Enables-for attribute. Value enablesFor
.
*/
static const QString ATT_ENABLES_FOR; // "enablesFor";
- /**
- * Enumerate attribute. Value enumerate
.
- */
- static const QString ATT_ENUMERATE; // "enumerate";
-
/**
* Editor extensions attribute. Value extensions
.
*/
static const QString ATT_EXTENSIONS; // "extensions";
/**
* View ratio attribute. Value fastViewWidthRatio
.
*/
static const QString ATT_FAST_VIEW_WIDTH_RATIO; // "fastViewWidthRatio";
/**
* Editor filenames attribute. Value filenames
.
*/
static const QString ATT_FILENAMES; // "filenames";
/**
* Trim fill major attribute. Value fillMajor
.
*/
static const QString ATT_FILL_MAJOR; // "fillMajor";
/**
* Trim fill minor attribute. Value fillMinor
.
*/
static const QString ATT_FILL_MINOR; // "fillMinor";
/**
* Perspective fixed attribute. Value fixed
.
*/
static const QString ATT_FIXED; // "fixed";
/**
* Attribute that specifies whether a wizard has any pages. Value
* hasPages
.
*/
static const QString ATT_HAS_PAGES; // "hasPages";
/**
* Help context id attribute. Value helpContextId
.
*/
static const QString ATT_HELP_CONTEXT_ID; // "helpContextId";
/**
* Help url attribute. Value helpHref
.
*/
static const QString ATT_HELP_HREF; // "helpHref";
/**
* Hover icon attribute. Value hoverIcon
.
*/
static const QString ATT_HOVERICON; // "hoverIcon";
/**
* Icon attribute. Value icon
.
*/
static const QString ATT_ICON; // "icon";
/**
* Id attribute. Value id
.
*/
static const QString ATT_ID; // "id";
/**
* The name of the image style attribute, which is used on location elements
* in the menus extension point.
*/
static const QString ATT_IMAGE_STYLE; // "imageStyle";
+ /**
+ * Internal attribute. Value internal
.
+ */
+ static const QString ATT_INTERNAL; // "internal";
+
/**
* Is-editable attribute. Value isEditable
.
*/
static const QString ATT_IS_EDITABLE; // "isEditable";
/**
* Keys attribute. Value keys
.
*/
static const QString ATT_KEY; // "key";
/**
* The name of the attribute storing the identifier for the active key
* configuration identifier. This provides legacy support for the
* activeKeyConfiguration
element in the commands extension
* point.
*/
static const QString ATT_KEY_CONFIGURATION_ID; // "keyConfigurationId";
/**
* The name of the attribute storing the trigger sequence for a binding.
* This is called a 'keySequence' for legacy reasons.
*/
static const QString ATT_KEY_SEQUENCE; // "keySequence";
/**
* Label attribute. Value label
.
*/
static const QString ATT_LABEL; // "label";
/**
* Editor launcher attribute. Value launcher
.
*/
static const QString ATT_LAUNCHER; // "launcher";
/**
* Lightweight decorator tag. Value lightweight
.
*/
static const QString ATT_LIGHTWEIGHT; // "lightweight";
/**
* The name of the attribute storing the locale for a binding.
*/
static const QString ATT_LOCALE; // "locale";
/**
* Sticky view location attribute. Value location
.
*/
static const QString ATT_LOCATION; // "location";
/**
* Editor management strategy attribute. Value matchingStrategy
.
*/
static const QString ATT_MATCHING_STRATEGY; // "matchingStrategy";
/**
* The name of the menu identifier attribute, which appears on items.
*/
static const QString ATT_MENU_ID; // "menuId";
/**
* Menubar path attribute. Value menubarPath
.
*/
static const QString ATT_MENUBAR_PATH; // "menubarPath";
/**
* The name of the mnemonic attribute, which appears on locations.
*/
static const QString ATT_MNEMONIC; // "mnemonic";
/**
* The name of the minimized attribute, which appears
* when adding a view in a perspectiveExtension.
*/
static const QString ATT_MINIMIZED; // "minimized";
/**
* Sticky view moveable attribute. Value moveable
.
*/
static const QString ATT_MOVEABLE; // "moveable";
/**
* Name attribute. Value name
.
*/
static const QString ATT_NAME; // "name";
/**
* Name filter attribute. Value nameFilter
.
*/
static const QString ATT_NAME_FILTER; // "nameFilter";
/**
* Node attribute. Value node
.
*/
static const QString ATT_NODE; // "node";
/**
* Object class attribute. Value objectClass
.
*/
static const QString ATT_OBJECTCLASS; // "objectClass";
/**
* The name of the optional attribute, which appears on parameter
* definitions.
*/
static const QString ATT_OPTIONAL; // "optional";
/**
* Operating system attribute. Value os
.
*/
static const QString ATT_OS; // "os";
/**
* The name of the deprecated parent attribute, which appears on scheme
* definitions.
*/
static const QString ATT_PARENT; // "parent";
/**
* View parent category attribute. Value parentCategory
.
*/
static const QString ATT_PARENT_CATEGORY; // "parentCategory";
/**
* Parent id attribute. Value parentId
.
*/
static const QString ATT_PARENT_ID; // "parentId";
/**
* The name of the deprecated parent scope attribute, which appears on
* contexts definitions.
*/
static const QString ATT_PARENT_SCOPE; // "parentScope";
/**
* Path attribute. Value path
.
*/
static const QString ATT_PATH; // "path";
/**
* The name of the attribute storing the platform for a binding.
*/
static const QString ATT_PLATFORM; // "platform";
/**
* The name of the position attribute, which appears on order elements.
*/
static const QString ATT_POSITION; // "position";
/**
* Presentation id attribute. Value presentationId
.
*/
static const QString ATT_PRESENTATIONID; // "presentationId";
/**
* Product id attribute. Value productId
.
*/
static const QString ATT_PRODUCTID; // "productId";
/**
* Project attribute. Value project
.
*/
// @issue project-specific attribute and behavior
static const QString ATT_PROJECT; // "project"; /**
/**
* The name of the pulldown attribute, which indicates whether the class is
* a pulldown delegate.
*/
static const QString ATT_PULLDOWN; // "pulldown";
/**
* View ratio attribute. Value ratio
.
*/
static const QString ATT_RATIO; // "ratio";
/**
* Relationship attribute. Value relationship
.
*/
static const QString ATT_RELATIONSHIP; // "relationship";
/**
* Relative attribute. Value relative
.
*/
static const QString ATT_RELATIVE; // "relative";
/**
* The name of the relativeTo attribute, which appears on order elements.
*/
static const QString ATT_RELATIVE_TO; // "relativeTo";
/**
* Retarget attribute. Value retarget
.
*/
static const QString ATT_RETARGET; // "retarget";
/**
* The name of the returnTypeId attribute, which appears on command
* elements.
*/
static const QString ATT_RETURN_TYPE_ID; // "returnTypeId";
/**
* Role attribute. Value role
.
*/
static const QString ATT_ROLE; // "role";
/**
* The name of the attribute storing the identifier for the active scheme.
* This is called a 'keyConfigurationId' for legacy reasons.
*/
static const QString ATT_SCHEME_ID; // "schemeId";
/**
* Scope attribute. Value scope
.
*/
static const QString ATT_SCOPE; // "scope";
/**
* The name of the separatorsVisible attribute, which appears on group
* elements.
*/
static const QString ATT_SEPARATORS_VISIBLE; // "separatorsVisible";
/**
* The name of the sequence attribute for a key binding.
*/
static const QString ATT_SEQUENCE; // "sequence";
/**
* Show title attribute. Value showTitle
.
*/
static const QString ATT_SHOW_TITLE; // "showTitle";
/**
* Perspective singleton attribute. Value singleton
.
*/
static const QString ATT_SINGLETON; // "singleton";
/**
* Splash id attribute. Value splashId
.
*
* @since 3.3
*/
static const QString ATT_SPLASH_ID; // "splashId";
/**
* Standalone attribute. Value standalone
.
*/
static const QString ATT_STANDALONE; // "standalone";
/**
* Action state attribute. Value state
.
*/
static const QString ATT_STATE; // "state";
/**
* The name of the string attribute (key sequence) for a binding in the
* commands extension point.
*/
static const QString ATT_STRING; // "string";
/**
* Action style attribute. Value style
.
*/
static const QString ATT_STYLE; // "style";
/**
* Target attribute. Value targetID
.
*/
static const QString ATT_TARGET_ID; // "targetID";
/**
* Toolbar path attribute. Value toolbarPath
.
*/
static const QString ATT_TOOLBAR_PATH; // "toolbarPath";
/**
* Tooltip attribute. Value tooltip
.
*/
static const QString ATT_TOOLTIP; // "tooltip";
/**
* The name of the type attribute, which appears on bar elements and
* commandParameterType elements.
*/
static const QString ATT_TYPE; // "type";
/**
* The name of the typeId attribute, which appears on commandParameter
* elements.
*/
static const QString ATT_TYPE_ID; // "typeId";
/**
* Value attribute. Value value
.
*/
static const QString ATT_VALUE; // "value";
/**
* Visible attribute. Value visible
.
*/
// ATT_VISIBLE added by dan_rubel@instantiations.com
static const QString ATT_VISIBLE; // "visible";
/**
* Windowing system attribute. Value ws
.
*/
static const QString ATT_WS; // "ws";
/**
* The prefix that all auto-generated identifiers start with. This makes the
* identifier recognizable as auto-generated, and further helps ensure that
* it does not conflict with existing identifiers.
*/
static const QString AUTOGENERATED_PREFIX; // "AUTOGEN:::";
/**
* The legacy extension point (2.1.x and earlier) for specifying a key
* binding scheme.
*
* @since 3.1.1
*/
static const QString PL_ACCELERATOR_CONFIGURATIONS; // "acceleratorConfigurations";
/**
* The legacy extension point (2.1.x and earlier) for specifying a context.
*
* @since 3.1.1
*/
static const QString PL_ACCELERATOR_SCOPES; // "acceleratorScopes";
/**
* The legacy extension point (2.1.x and earlier) for specifying a command.
*
* @since 3.1.1
*/
static const QString PL_ACTION_DEFINITIONS; // "actionDefinitions";
static const QString PL_ACTION_SET_PART_ASSOCIATIONS; // "actionSetPartAssociations";
static const QString PL_ACTION_SETS; // "actionSets";
static const QString PL_ACTIVITIES; // "activities";
static const QString PL_ACTIVITYSUPPORT; // "activitySupport";
/**
* The extension point (3.1 and later) for specifying bindings, such as
* keyboard shortcuts.
*
* @since 3.1.1
*/
static const QString PL_BINDINGS; // "bindings";
static const QString PL_BROWSER_SUPPORT; // "browserSupport";
static const QString PL_COLOR_DEFINITIONS; // "colorDefinitions";
/**
* The extension point (3.2 and later) for associating images with commands.
*
* @since 3.2
*/
static const QString PL_COMMAND_IMAGES; // "commandImages";
/**
* The extension point (2.1.x and later) for specifying a command. A lot of
* other things have appeared first in this extension point and then been
* moved to their own extension point.
*
* @since 3.1.1
*/
static const QString PL_COMMANDS; // "commands";
/**
* The extension point (3.0 and later) for specifying a context.
*
* @since 3.1.1
*/
static const QString PL_CONTEXTS; // "contexts";
static const QString PL_DECORATORS; // "decorators";
static const QString PL_DROP_ACTIONS; // "dropActions";
static const QString PL_EDITOR; // "editors";
static const QString PL_EDITOR_ACTIONS; // "editorActions";
static const QString PL_ELEMENT_FACTORY; // "elementFactories";
/**
* The extension point for encoding definitions.
*/
static const QString PL_ENCODINGS; // "encodings";
static const QString PL_EXPORT; // "exportWizards";
static const QString PL_FONT_DEFINITIONS; // "fontDefinitions";
/**
* The extension point (3.1 and later) for specifying handlers.
*
* @since 3.1.1
*/
static const QString PL_HANDLERS; // "handlers";
static const QString PL_HELPSUPPORT; // "helpSupport";
static const QString PL_IMPORT; // "importWizards";
static const QString PL_INTRO; // "intro";
/**
* The extension point for keyword definitions.
*
* @since 3.1
*/
static const QString PL_KEYWORDS; // "keywords";
/**
* The extension point (3.2 and later) for specifying menu contributions.
*
* @since 3.2
*/
static const QString PL_MENUS; // "menus";
/**
* The extension point (3.3 and later) for specifying menu contributions.
*
* @since 3.3
*/
static const QString PL_MENU_CONTRIBUTION; // "menuContribution";
static const QString PL_NEW; // "newWizards";
static const QString PL_PERSPECTIVE_EXTENSIONS; // "perspectiveExtensions";
static const QString PL_PERSPECTIVES; // "perspectives";
static const QString PL_POPUP_MENU; // "popupMenus";
static const QString PL_PREFERENCE_TRANSFER; // "preferenceTransfer";
static const QString PL_PREFERENCES; // "preferencePages";
static const QString PL_PRESENTATION_FACTORIES; // "presentationFactories";
static const QString PL_PROPERTY_PAGES; // "propertyPages";
static const QString PL_STARTUP; // "startup";
/**
* @since 3.3
*/
static const QString PL_SPLASH_HANDLERS; // "splashHandlers";
static const QString PL_SYSTEM_SUMMARY_SECTIONS; // "systemSummarySections";
static const QString PL_THEMES; // "themes";
static const QString PL_VIEW_ACTIONS; // "viewActions";
static const QString PL_VIEWS; // "views";
static const QString PL_WORKINGSETS; // "workingSets";
/**
* The name of the deprecated accelerator configurations extension point.
*/
static const QString EXTENSION_ACCELERATOR_CONFIGURATIONS;
/**
* The name of the accelerator scopes extension point.
*/
static const QString EXTENSION_ACCELERATOR_SCOPES;
/**
* The name of the action definitions extension point.
*/
static const QString EXTENSION_ACTION_DEFINITIONS;
/**
* The name of the org.blueberry.ui.actionSets
extension point.
*/
static const QString EXTENSION_ACTION_SETS;
/**
* The name of the bindings extension point.
*/
static const QString EXTENSION_BINDINGS;
/**
* The name of the commands extension point.
*/
static const QString EXTENSION_COMMAND_IMAGES;
/**
* The name of the commands extension point, and the name of the key for the
* commands preferences.
*/
static const QString EXTENSION_COMMANDS;
/**
* The name of the contexts extension point.
*/
static const QString EXTENSION_CONTEXTS;
/**
* The name of the org.blueberry.ui.editorActions
extension
* point.
*/
static const QString EXTENSION_EDITOR_ACTIONS;
/**
* The name of the commands extension point.
*/
static const QString EXTENSION_HANDLERS;
/**
* The name of the org.blueberry.ui.menus
extension point.
*/
static const QString EXTENSION_MENUS;
/**
* The name of the org.blueberry.ui.menus2
extension point.
*/
static const QString COMMON_MENU_ADDITIONS;
/**
* The name of the org.blueberry.ui.popupMenus
extension point.
*/
static const QString EXTENSION_POPUP_MENUS;
/**
* The name of the org.blueberry.ui.viewActions
extension
* point.
*/
static const QString EXTENSION_VIEW_ACTIONS;
/**
* The constant for the position attribute corresponding to
* {@link SOrder#POSITION_AFTER}.
*/
static const QString POSITION_AFTER; // "after";
/**
* The constant for the position attribute corresponding to
* {@link SOrder#POSITION_BEFORE}.
*/
static const QString POSITION_BEFORE; // "before";
/**
* The constant for the position attribute corresponding to
* {@link SOrder#POSITION_END}.
*/
static const QString POSITION_END; // "end";
/**
* The constant for the position attribute corresponding to
* {@link SOrder#POSITION_START}.
*/
static const QString POSITION_START; // "start";
/**
* The action style for drop-down menus.
*/
static const QString STYLE_PULLDOWN; // "pulldown";
/**
* The action style for radio buttons.
*/
static const QString STYLE_RADIO; // "radio";
/**
* The action style for check boxes.
*/
static const QString STYLE_TOGGLE; // "toggle";
/**
* The name of the deprecated accelerator configuration element. This
* element was used in 2.1.x and earlier to define groups of what are now
* called schemes.
*/
static const QString TAG_ACCELERATOR_CONFIGURATION; // "acceleratorConfiguration";
/**
* The name of the element storing a deprecated accelerator scope.
*/
static const QString TAG_ACCELERATOR_SCOPE; // "acceleratorScope";
/**
* Action tag. Value action
.
*/
static const QString TAG_ACTION; // "action";
/**
* The name of the element storing an action definition. This element only
* existed in
*/
static const QString TAG_ACTION_DEFINITION; // "actionDefinition";
/**
* Action set tag. Value actionSet
.
*/
static const QString TAG_ACTION_SET; // "actionSet";
/**
* Part association tag. Value actionSetPartAssociation
.
*/
static const QString TAG_ACTION_SET_PART_ASSOCIATION; // "actionSetPartAssociation";
/**
* The name of the element storing the active key configuration from the
* commands extension point.
*/
static const QString TAG_ACTIVE_KEY_CONFIGURATION; // "activeKeyConfiguration";
/**
* The name of the active when element, which appears on a handler
* definition.
*/
static const QString TAG_ACTIVE_WHEN; // "activeWhen";
/**
* Activity image binding tag. Value activityImageBindingw
.
*/
static const QString TAG_ACTIVITY_IMAGE_BINDING; // "activityImageBinding";
/**
* Advisor to product binding element. Value
* triggerPointAdvisorProductBinding
.
*/
static const QString TAG_ADVISORPRODUCTBINDING; // "triggerPointAdvisorProductBinding";
/**
* The name of the bar element, which appears in a location definition.
*/
static const QString TAG_BAR; // "bar";
/**
* Category tag. Value category
.
*/
static const QString TAG_CATEGORY; // "category";
/**
* Category image binding tag. Value categoryImageBinding
.
*/
static const QString TAG_CATEGORY_IMAGE_BINDING; // "categoryImageBinding";
/**
* Element category tag. Value themeElementCategory
.
*/
static const QString TAG_CATEGORYDEFINITION; // "themeElementCategory";
/**
* Category presentation tag. Value categoryPresentationBinding
.
*/
static const QString TAG_CATEGORYPRESENTATIONBINDING; // "categoryPresentationBinding";
/**
* The name of the class element, which appears on an executable extension.
*/
static const QString TAG_CLASS; // ATT_CLASS;
/**
* Color definition tag. Value colorDefinition
.
*/
static const QString TAG_COLORDEFINITION; // "colorDefinition";
/**
* Color override tag. Value colorOverride
.
*/
static const QString TAG_COLOROVERRIDE; // "colorOverride";
/**
* Color value tag. Value colorValue
.
*/
static const QString TAG_COLORVALUE; // "colorValue";
/**
* The name of the element storing a command.
*/
static const QString TAG_COMMAND; // "command";
/**
* The name of the element storing a parameter.
*/
static const QString TAG_COMMAND_PARAMETER; // "commandParameter";
/**
* The name of the element storing a parameter type.
*/
static const QString TAG_COMMAND_PARAMETER_TYPE; // "commandParameterType";
/**
* Editor content type binding tag. Value contentTypeBinding
.
*/
static const QString TAG_CONTENT_TYPE_BINDING; // "contentTypeBinding";
/**
* The name of the element storing a context.
*/
static const QString TAG_CONTEXT; // "context";
/**
* Data tag. Value data
.
*/
static const QString TAG_DATA; // "data";
/**
* The name of the default handler element, which appears on a command
* definition.
*/
static const QString TAG_DEFAULT_HANDLER; // ATT_DEFAULT_HANDLER;
/**
* Description element. Value description
.
*/
static const QString TAG_DESCRIPTION; // "description";
/**
* The name of the dynamic menu element, which appears in a group or menu
* definition.
*/
static const QString TAG_DYNAMIC; // "dynamic";
/**
* Editor tag. Value editor
.
*/
static const QString TAG_EDITOR; // "editor";
/**
* The name of the deprecated editorContribution element. This is used for
* contributing actions to the top-level menus and tool bars when particular
* editors are visible.
*/
static const QString TAG_EDITOR_CONTRIBUTION; // "editorContribution";
/**
* The name of the enabled when element, which appears on a handler
* definition.
*/
static const QString TAG_ENABLED_WHEN; // "enabledWhen";
/**
* Enablement tag. Value enablement
.
*/
static const QString TAG_ENABLEMENT; // "enablement";
/**
* Entry tag. Value entry
.
*/
static const QString TAG_ENTRY; // "entry";
/**
* Filter tag. Value filter
.
*/
static const QString TAG_FILTER; // "filter";
/***************************************************************************
* Font definition tag. Value fontDefinition
.
*/
static const QString TAG_FONTDEFINITION; // "fontDefinition";
/**
* Font override tag. Value fontOverride
.
*/
static const QString TAG_FONTOVERRIDE; // "fontOverride";
/**
* Font value tag. Value fontValue
.
*/
static const QString TAG_FONTVALUE; // "fontValue";
/**
* The name of the element storing a group.
*/
static const QString TAG_GROUP; // "group";
/**
* Group marker tag. Value groupMarker
.
*/
static const QString TAG_GROUP_MARKER; // "groupMarker";
/**
* The name of the element storing a handler.
*/
static const QString TAG_HANDLER; // "handler";
/**
* The name of the element storing a handler submission.
*/
static const QString TAG_HANDLER_SUBMISSION; // "handlerSubmission";
/**
* Trigger point hint tag. Value hint
.
*/
static const QString TAG_HINT; // "hint";
/**
* The name of the element storing an image.
*/
static const QString TAG_IMAGE; // "image";
/**
* The name of the element storing a key binding.
*/
static const QString TAG_KEY; // "key";
/**
* The name of the key binding element in the commands extension point.
*/
static const QString TAG_KEY_BINDING; // "keyBinding";
/**
* The name of the deprecated key configuration element in the commands
* extension point. This element has been replaced with the scheme element
* in the bindings extension point.
*/
static const QString TAG_KEY_CONFIGURATION; // "keyConfiguration";
/**
* The name of the element storing a location.
*/
static const QString TAG_LOCATION; // "location";
/**
* The name of the element defining the insertion point for menu
* additions.
*
* @since 3.3
*/
static const QString TAG_LOCATION_URI; // "locationURI";
/**
* The name of the element storing trim layout info for a widget.
*/
static const QString TAG_LAYOUT; // "layout";
/**
* Mapping tag. Value mapping
.
*/
static const QString TAG_MAPPING; // "mapping";
/**
* Menu tag. Value menu
.
*/
static const QString TAG_MENU; // "menu";
/**
* Wizard shortcut tag. Value newWizardShortcut
.
*/
static const QString TAG_NEW_WIZARD_SHORTCUT; // "newWizardShortcut";
/**
* Object contribution tag. Value objectContribution
.
*/
static const QString TAG_OBJECT_CONTRIBUTION; // "objectContribution";
/**
* The name of the element storing the ordering information.
*/
static const QString TAG_ORDER; // "order";
/**
* The name of the element storing a parameter.
*/
static const QString TAG_PARAMETER; // "parameter";
/**
* Part tag. Value part
.
*/
static const QString TAG_PART; // "part";
/**
* Perspective shortcut tag. Value perspectiveShortcut
.
*/
static const QString TAG_PERSP_SHORTCUT; // "perspectiveShortcut";
/**
* Perspective tag. Value perspective
.
*/
static const QString TAG_PERSPECTIVE; // "perspective";
/**
* Perspective extension tag. Value perspectiveExtension
.
*/
static const QString TAG_PERSPECTIVE_EXTENSION; // "perspectiveExtension";
/**
* Primary wizard tag. Value primaryWizard
.
*/
static const QString TAG_PRIMARYWIZARD; // "primaryWizard";
/**
* The name of the element storing the a menu element reference.
*/
static const QString TAG_REFERENCE; // "reference";
/**
* The name of the scheme element in the bindings extension point.
*/
static const QString TAG_SCHEME; // "scheme";
/**
* The name of the element storing a deprecated scope.
*/
static const QString TAG_SCOPE; // "scope";
/**
* Selectiont tag. Value selection
.
*/
static const QString TAG_SELECTION; // "selection";
/**
* Separator tag. Value separator
.
*/
static const QString TAG_SEPARATOR; // "separator";
/**
* Tag for the settings transfer entry.
*/
static const QString TAG_SETTINGS_TRANSFER; // "settingsTransfer";
/**
* Show in part tag. Value showInPart
.
*/
static const QString TAG_SHOW_IN_PART; // "showInPart";
/**
* The name of the element storing some state.
*/
static const QString TAG_STATE; // "state";
/**
* The name of the element describing splash handlers. Value
* splashHandler
.
* @since 3.3
*/
static const QString TAG_SPLASH_HANDLER; // "splashHandler";
/**
* The name of the element describing splash handler product bindings. Value
* splashHandlerProductBinding
.
* @since 3.3
*/
static const QString TAG_SPLASH_HANDLER_PRODUCT_BINDING; // "splashHandlerProductBinding";
/**
* Sticky view tag. Value stickyView
.
*/
static const QString TAG_STICKYVIEW; // "stickyView";
/**
* Browser support tag. Value support
.
*/
static const QString TAG_SUPPORT; // "support";
/**
* Theme tag. Value theme
.
*/
static const QString TAG_THEME; // "theme";
/**
* Transfer tag. Value transfer
.
*/
static const QString TAG_TRANSFER; // "transfer";
/**
* Trigger point tag. Value triggerPoint
.
*/
static const QString TAG_TRIGGERPOINT; // "triggerPoint";
/**
* Advisor tag. Value triggerPointAdvisor
.
*/
static const QString TAG_TRIGGERPOINTADVISOR; // "triggerPointAdvisor";
/**
* View tag. Value view
.
*/
static const QString TAG_VIEW; // "view";
/**
* View shortcut tag. Value viewShortcut
.
*/
static const QString TAG_VIEW_SHORTCUT; // "viewShortcut";
/**
* The name of the element storing a view contribution.
*/
static const QString TAG_VIEW_CONTRIBUTION; // "viewContribution";
/**
* Viewer contribution tag. Value viewerContribution
.
*/
static const QString TAG_VIEWER_CONTRIBUTION; // "viewerContribution";
/**
* Visibility tag. Value visibility
.
*/
static const QString TAG_VISIBILITY; // "visibility";
/**
* The name of the element storing the visible when condition.
*/
static const QString TAG_VISIBLE_WHEN; // "visibleWhen";
/**
* The name of the element storing a widget.
*/
static const QString TAG_WIDGET; // "widget";
/**
* The name of the element storing a control hosted in a ToolBar.
*/
static const QString TAG_CONTROL; // "control";
/**
* Wizard tag. Value wizard
.
*/
static const QString TAG_WIZARD; // "wizard";
/**
* Working set tag. Value workingSet
.
*/
static const QString TAG_WORKING_SET; // "workingSet";
/**
* The type of reference which refers to a group.
*/
static const QString TYPE_GROUP; // "group";
/**
* The type of reference which refers to an item.
*/
static const QString TYPE_ITEM; // "item";
/**
* The type of reference which refers to an menu.
*/
static const QString TYPE_MENU; // "menu";
/**
* The type of reference which refers to the widget.
*/
static const QString TYPE_WIDGET; // "widget";
static const QString TAG_TOOLBAR; // "toolbar";
static const QString TAG_SERVICE_FACTORY; // "serviceFactory";
static const QString TAG_SERVICE; // "service";
static const QString ATTR_FACTORY_CLASS; // "factoryClass";
static const QString ATTR_SERVICE_CLASS; // "serviceClass";
static const QString TAG_SOURCE_PROVIDER; // "sourceProvider";
static const QString ATTR_PROVIDER; // "provider";
static const QString TAG_VARIABLE; // "variable";
static const QString ATT_PRIORITY_LEVEL; // "priorityLevel";
static const QString ATT_MODE; // "mode";
};
} // namespace berry
#endif // __BERRY_WORKBENCH_REGISTRY_CONSTANTS__
diff --git a/Plugins/org.mitk.gui.qt.application/src/internal/QmitkToolBarsPreferencePage.cpp b/Plugins/org.mitk.gui.qt.application/src/internal/QmitkToolBarsPreferencePage.cpp
index 2b0b033b84..2116763459 100644
--- a/Plugins/org.mitk.gui.qt.application/src/internal/QmitkToolBarsPreferencePage.cpp
+++ b/Plugins/org.mitk.gui.qt.application/src/internal/QmitkToolBarsPreferencePage.cpp
@@ -1,190 +1,190 @@
/*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
============================================================================*/
#include "QmitkToolBarsPreferencePage.h"
#include