diff --git a/BlueBerry/Bundles/org.blueberry.ui.qt/files.cmake b/BlueBerry/Bundles/org.blueberry.ui.qt/files.cmake
index 77c88fca81..98d70da05e 100644
--- a/BlueBerry/Bundles/org.blueberry.ui.qt/files.cmake
+++ b/BlueBerry/Bundles/org.blueberry.ui.qt/files.cmake
@@ -1,470 +1,462 @@
set(SRC_CPP_FILES
berryAbstractSourceProvider.cpp
berryAbstractUICTKPlugin.cpp
berryConstants.cpp
berryDisplay.cpp
berryEditorPart.cpp
berryFileEditorInput.cpp
berryGeometry.cpp
berryIActionBars.h
berryIContextService.cpp
berryIContributionRoot.h
berryIDropTargetListener.cpp
berryIEditorDescriptor.cpp
berryIEditorInput.cpp
berryIEditorMatchingStrategy.cpp
berryIEditorPart.cpp
berryIEditorReference.cpp
berryIEditorRegistry.cpp
berryIEditorSite.cpp
berryIFileEditorMapping.cpp
berryIFolderLayout.cpp
berryImageDescriptor.cpp
berryIMemento.cpp
berryINullSelectionListener.cpp
berryIPageLayout.cpp
berryIPartListener.cpp
berryIPageService.cpp
berryIPartService.cpp
berryIPathEditorInput.cpp
berryIPerspectiveDescriptor.cpp
berryIPerspectiveFactory.cpp
berryIPerspectiveListener.cpp
berryIPerspectiveRegistry.cpp
berryIPlaceholderFolderLayout.cpp
berryIPluginContribution.h
berryIPostSelectionProvider.cpp
berryIPreferencePage.cpp
berryIPropertyChangeListener.cpp
berryIQtPreferencePage.cpp
berryIQtStyleManager.cpp
berryIReusableEditor.cpp
berryISaveablePart.cpp
berryISaveablesLifecycleListener.cpp
berryISaveablesSource.cpp
berryISelection.cpp
berryISelectionChangedListener.cpp
berryISelectionListener.cpp
berryISelectionProvider.cpp
berryISelectionService.cpp
berryIShellListener.cpp
berryIShellProvider.cpp
berryIShowInSource.h
berryIShowInTarget.h
berryISizeProvider.cpp
berryISourceProvider.cpp
berryISourceProviderListener.cpp
berryISources.cpp
berryIStickyViewDescriptor.cpp
berryIStructuredSelection.cpp
berryIViewCategory.cpp
berryIViewDescriptor.cpp
berryIViewLayout.cpp
berryIViewPart.cpp
berryIViewReference.cpp
berryIViewRegistry.cpp
berryIViewSite.cpp
berryIWorkbenchCommandConstants.cpp
berryIWindowListener.cpp
berryIWorkbench.cpp
berryIWorkbenchListener.cpp
berryIWorkbenchPage.cpp
berryIWorkbenchPart.cpp
berryIWorkbenchPartConstants.cpp
berryIWorkbenchPartDescriptor.cpp
berryIWorkbenchPartReference.cpp
berryIWorkbenchPartSite.cpp
berryIWorkbenchSite.cpp
berryIWorkbenchWindow.cpp
berryMenuUtil.cpp
berryPlatformUI.cpp
berryPoint.cpp
berryPropertyChangeEvent.cpp
berryQModelIndexObject.cpp
berryQtEditorPart.cpp
berryQtItemSelection.cpp
berryQtIntroPart.cpp
berryQtPreferences.cpp
berryQtSelectionProvider.cpp
berryQtViewPart.cpp
berryRectangle.cpp
berrySameShellProvider.cpp
berrySaveable.cpp
berrySaveablesLifecycleEvent.cpp
berrySelectionChangedEvent.cpp
berryShell.cpp
berryShellEvent.cpp
berryShowInContext.cpp
berryUIException.cpp
berryViewPart.cpp
berryWindow.cpp
berryWorkbenchActionConstants.cpp
berryWorkbenchPart.cpp
berryWorkbenchPreferenceConstants.cpp
berryXMLMemento.cpp
#actions
actions/berryAbstractContributionFactory.cpp
actions/berryAbstractGroupMarker.cpp
#actions/berryAction.cpp
#actions/berryActionContributionItem.cpp
actions/berryCommandContributionItem.h
actions/berryCommandContributionItem.cpp
actions/berryContributionItem.cpp
actions/berryContributionItemFactory.cpp
actions/berryContributionManager.cpp
actions/berryIContributionItem.h
actions/berryIContributionManager.h
actions/berryIContributionManagerOverrides.cpp
actions/berryIMenuManager.h
#actions/berryMenuBarManager.cpp
actions/berryMenuManager.cpp
actions/berrySeparator.cpp
actions/berrySubContributionItem.cpp
#application
application/berryActionBarAdvisor.cpp
application/berryIActionBarConfigurer.cpp
application/berryIWorkbenchConfigurer.cpp
application/berryIWorkbenchWindowConfigurer.cpp
application/berryWorkbenchAdvisor.cpp
application/berryWorkbenchWindowAdvisor.cpp
#commands
commands/berryICommandImageService.cpp
commands/berryICommandService.cpp
commands/berryIElementReference.h
commands/berryIElementUpdater.h
commands/berryIMenuService.h
commands/berryUIElement.cpp
- #dialogs
- dialogs/berryIDialog.cpp
- dialogs/berryIShowViewDialog.cpp
- dialogs/berryMessageDialog.cpp
-
#guitk
guitk/berryGuiTkControlEvent.cpp
guitk/berryGuiTkEvent.cpp
guitk/berryGuiTkIControlListener.cpp
guitk/berryGuiTkIMenuListener.cpp
guitk/berryGuiTkISelectionListener.cpp
guitk/berryGuiTkSelectionEvent.cpp
#handlers
handlers/berryHandlerUtil.cpp
handlers/berryIHandlerActivation.cpp
handlers/berryIHandlerService.cpp
handlers/berryRadioState.cpp
handlers/berryRegistryToggleState.cpp
handlers/berryShowViewHandler.cpp
handlers/berryToggleState.cpp
#intro
intro/berryIIntroManager.cpp
intro/berryIIntroPart.cpp
intro/berryIIntroSite.cpp
intro/berryIntroPart.cpp
#tweaklets
tweaklets/berryDnDTweaklet.cpp
tweaklets/berryGuiWidgetsTweaklet.cpp
tweaklets/berryImageTweaklet.cpp
- tweaklets/berryMessageDialogTweaklet.cpp
tweaklets/berryITracker.cpp
tweaklets/berryWorkbenchPageTweaklet.cpp
tweaklets/berryWorkbenchTweaklet.cpp
#presentations
presentations/berryIPresentablePart.cpp
presentations/berryIPresentationFactory.cpp
presentations/berryIPresentationSerializer.cpp
presentations/berryIStackPresentationSite.cpp
presentations/berryStackDropResult.cpp
presentations/berryStackPresentation.cpp
#services
services/berryIDisposable.cpp
services/berryIEvaluationReference.h
services/berryIEvaluationService.cpp
services/berryINestable.cpp
services/berryIServiceFactory.cpp
services/berryIServiceLocator.cpp
services/berryIServiceScopes.cpp
services/berryIServiceWithSources.cpp
services/berryISourceProviderService.cpp
#testing
testing/berryTestableObject.cpp
#util
util/berryISafeRunnableRunner.cpp
util/berrySafeRunnable.cpp
# application
application/berryQtWorkbenchAdvisor.cpp
)
set(INTERNAL_CPP_FILES
defaultpresentation/berryEmptyTabFolder.cpp
defaultpresentation/berryEmptyTabItem.cpp
defaultpresentation/berryNativeTabFolder.cpp
defaultpresentation/berryNativeTabItem.cpp
defaultpresentation/berryQCTabBar.cpp
defaultpresentation/berryQtWorkbenchPresentationFactory.cpp
util/berryAbstractTabFolder.cpp
util/berryAbstractTabItem.cpp
util/berryIPresentablePartList.cpp
util/berryLeftToRightTabOrder.cpp
util/berryPartInfo.cpp
util/berryPresentablePartFolder.cpp
util/berryReplaceDragHandler.cpp
util/berryTabbedStackPresentation.cpp
util/berryTabDragHandler.cpp
util/berryTabFolderEvent.cpp
util/berryTabOrder.cpp
#intro
intro/berryEditorIntroAdapterPart.cpp
intro/berryIIntroDescriptor.cpp
intro/berryIIntroRegistry.cpp
intro/berryIntroConstants.cpp
intro/berryIntroDescriptor.cpp
intro/berryIntroPartAdapterSite.cpp
intro/berryIntroRegistry.cpp
intro/berryViewIntroAdapterPart.cpp
intro/berryWorkbenchIntroManager.cpp
berryAbstractMenuAdditionCacheEntry.cpp
berryAbstractPartSelectionTracker.cpp
berryAbstractSelectionService.cpp
berryActivePartExpression.cpp
berryAlwaysEnabledExpression.cpp
berryAndExpression.cpp
berryBundleUtility.cpp
berryCommandContributionItemParameter.cpp
berryCommandParameter.cpp
berryCommandPersistence.cpp
berryCommandService.cpp
berryCommandServiceFactory.cpp
berryCommandStateProxy.cpp
berryCompositeExpression.cpp
berryContainerPlaceholder.cpp
berryContributionRoot.cpp
berryDetachedPlaceHolder.cpp
berryDefaultSaveable.cpp
berryDefaultStackPresentationSite.cpp
berryDetachedWindow.cpp
berryDragUtil.cpp
berryEditorAreaHelper.cpp
berryEditorDescriptor.cpp
berryEditorManager.cpp
berryEditorReference.cpp
berryEditorRegistry.cpp
berryEditorRegistryReader.cpp
berryEditorSashContainer.cpp
berryEditorSite.cpp
berryElementReference.cpp
berryErrorViewPart.cpp
berryEvaluationAuthority.cpp
berryEvaluationReference.cpp
berryEvaluationResultCache.cpp
berryEvaluationService.cpp
berryExpressionAuthority.cpp
berryFileEditorMapping.cpp
berryFolderLayout.cpp
berryHandlerActivation.cpp
berryHandlerAuthority.cpp
berryHandlerPersistence.cpp
berryHandlerProxy.cpp
berryHandlerService.cpp
berryHandlerServiceFactory.cpp
berryIDragOverListener.cpp
berryIDropTarget.cpp
berryIEvaluationResultCache.cpp
berryILayoutContainer.cpp
berryInternalMenuService.h
berryIServiceLocatorCreator.cpp
berryIStickyViewManager.cpp
berryIWorkbenchLocationService.cpp
berryLayoutHelper.cpp
berryLayoutPart.cpp
berryLayoutPartSash.cpp
berryLayoutTree.cpp
berryLayoutTreeNode.cpp
berryMenuServiceFactory.cpp
berryMMMenuListener.cpp
berryNestableHandlerService.cpp
berryNullEditorInput.cpp
berryPageLayout.cpp
berryPagePartSelectionTracker.cpp
berryPageSelectionService.cpp
berryParameterValueConverterProxy.cpp
berryPartList.cpp
berryPartPane.cpp
berryPartPlaceholder.cpp
berryPartSashContainer.cpp
berryPartService.cpp
berryPartSite.cpp
berryPartStack.cpp
berryPartTester.cpp
berryPersistentState.cpp
berryPerspective.cpp
berryPerspectiveDescriptor.cpp
berryPerspectiveExtensionReader.cpp
berryPerspectiveHelper.cpp
berryPerspectiveRegistry.cpp
berryPerspectiveRegistryReader.cpp
berryPlaceholderFolderLayout.cpp
berryPreferenceConstants.cpp
berryPresentablePart.cpp
berryPresentationFactoryUtil.cpp
berryPresentationSerializer.cpp
berryQtControlWidget.cpp
berryQtDnDControlWidget.cpp
berryQtDisplay.cpp
berryQtDnDTweaklet.cpp
berryQtFileImageDescriptor.cpp
berryQtGlobalEventFilter.cpp
berryQtIconImageDescriptor.cpp
berryQtImageTweaklet.cpp
berryQtMainWindowControl.cpp
- berryQtMessageDialogTweaklet.cpp
berryQtMissingImageDescriptor.cpp
berryQtOpenPerspectiveAction.cpp
berryQtPerspectiveSwitcher.cpp
berryQtSafeApplication.cpp
berryQtSash.cpp
berryQtShell.cpp
berryQtShowViewAction.cpp
berryQtShowViewDialog.cpp
berryQtStyleManager.cpp
berryQtStylePreferencePage.cpp
berryQtTracker.cpp
berryQtWidgetController.cpp
berryQtWidgetsTweaklet.cpp
berryQtWidgetsTweakletImpl.cpp
berryQtWorkbenchPageTweaklet.cpp
berryQtWorkbenchTweaklet.cpp
berryRegistryPersistence.cpp
berryRegistryReader.cpp
berrySaveablesList.cpp
berryShowViewMenu.cpp
berryServiceLocator.cpp
berryServiceLocatorCreator.cpp
berryShellPool.cpp
berrySlaveCommandService.cpp
berrySlaveHandlerService.cpp
berrySlaveMenuService.cpp
berrySourceProviderService.cpp
berrySourcePriorityNameMapping.cpp
berryStatusUtil.cpp
berryStickyViewDescriptor.cpp
berryStickyViewManager.cpp
berryTweaklets.cpp
berryUtil.cpp
berryViewDescriptor.cpp
berryViewFactory.cpp
berryViewLayout.cpp
berryViewReference.cpp
berryViewRegistry.cpp
berryViewRegistryReader.cpp
berryViewSashContainer.cpp
berryViewSite.cpp
berryWorkbenchPage.cpp
berryWindowManager.cpp
berryWindowPartSelectionTracker.cpp
berryWindowSelectionService.cpp
berryWorkbench.cpp
berryWorkbenchConfigurer.cpp
berryWorkbenchConstants.cpp
berryWorkbenchLocationService.cpp
berryWorkbenchMenuService.cpp
berryWorkbenchPagePartList.cpp
berryWorkbenchPartReference.cpp
berryWorkbenchPlugin.cpp
berryWorkbenchRegistryConstants.cpp
berryWorkbenchServiceRegistry.cpp
berryWorkbenchSourceProvider.cpp
berryWorkbenchTestable.cpp
berryWorkbenchWindow.cpp
berryWorkbenchWindowConfigurer.cpp
berryWorkbenchWindowExpression.cpp
berryWWinActionBars.cpp
berryWWinPartService.cpp
)
set(MOC_H_FILES
src/berryAbstractUICTKPlugin.h
src/berryEditorPart.h
src/berryQtSelectionProvider.h
src/berryViewPart.h
src/berryWorkbenchPart.h
src/actions/berryCommandContributionItem.h
src/intro/berryIntroPart.h
src/handlers/berryShowViewHandler.h
src/internal/berryCommandServiceFactory.h
src/internal/berryHandlerServiceFactory.h
src/internal/berryMenuServiceFactory.h
src/internal/berryMMMenuListener.h
src/internal/berryQtDisplay.h
src/internal/berryQtDnDTweaklet.h
src/internal/berryQtGlobalEventFilter.h
src/internal/berryQtImageTweaklet.h
src/internal/berryQtMainWindowControl.h
- src/internal/berryQtMessageDialogTweaklet.h
src/internal/berryQtOpenPerspectiveAction.h
src/internal/berryQtPerspectiveSwitcher.h
src/internal/berryQtSash.h
src/internal/berryQtShowViewAction.h
src/internal/berryQtStyleManager.h
src/internal/berryQtStylePreferencePage.h
src/internal/berryQtTracker.h
src/internal/berryQtWidgetsTweaklet.h
src/internal/berryQtWidgetsTweakletImpl.h
src/internal/berryQtWorkbenchTweaklet.h
src/internal/berryQtWorkbenchPageTweaklet.h
src/internal/berryWorkbenchPlugin.h
src/internal/berryWorkbenchSourceProvider.h
src/internal/defaultpresentation/berryNativeTabFolder.h
src/internal/defaultpresentation/berryNativeTabItem.h
src/internal/defaultpresentation/berryQCTabBar.h
src/internal/defaultpresentation/berryQtWorkbenchPresentationFactory.h
src/internal/intro/berryEditorIntroAdapterPart.h
)
set(UI_FILES
src/internal/berryQtShowViewDialog.ui
src/internal/berryQtStylePreferencePage.ui
src/internal/berryQtStatusPart.ui
)
set(QRC_FILES
resources/org_blueberry_ui_qt.qrc
)
set(CACHED_RESOURCE_FILES
plugin.xml
)
set(CPP_FILES )
foreach(file ${SRC_CPP_FILES})
set(CPP_FILES ${CPP_FILES} src/${file})
endforeach(file ${SRC_CPP_FILES})
foreach(file ${INTERNAL_CPP_FILES})
set(CPP_FILES ${CPP_FILES} src/internal/${file})
endforeach(file ${INTERNAL_CPP_FILES})
diff --git a/BlueBerry/Bundles/org.blueberry.ui.qt/src/berryIWorkbench.h b/BlueBerry/Bundles/org.blueberry.ui.qt/src/berryIWorkbench.h
index 08257c56ef..0919f8449c 100644
--- a/BlueBerry/Bundles/org.blueberry.ui.qt/src/berryIWorkbench.h
+++ b/BlueBerry/Bundles/org.blueberry.ui.qt/src/berryIWorkbench.h
@@ -1,400 +1,399 @@
/*===================================================================
BlueBerry Platform
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty of MERCHANTABILITY or FITNESS FOR
A PARTICULAR PURPOSE.
See LICENSE.txt or http://www.mitk.org for details.
===================================================================*/
#ifndef BERRYIWORKBENCH_H_
#define BERRYIWORKBENCH_H_
#include
* A workbench has one or more main windows which present to the end
* user information based on some underlying model, typically on resources in an
* underlying workspace. A workbench usually starts with a single open window,
* and automatically closes when its last window closes.
*
* Each workbench window has a collection of pages; the active
* page is the one that is being presented to the end user; at most one page is
* active in a window at a time.
*
* Each workbench page has a collection of workbench parts, of which
* there are two kinds: views and editors. A page's parts are arranged (tiled or
* stacked) for presentation on the screen. The arrangement is not fixed; the
* user can arrange the parts as they see fit. A perspective is a
* template for a page, capturing a collection of parts and their arrangement.
*
* The platform creates a workbench when the workbench plug-in is activated;
* since this happens at most once during the life of the running platform,
* there is only one workbench instance. Due to its singular nature, it is
* commonly referred to as
* The workbench supports a few {@link IServiceLocator services} by default. If
* these services are used to allocate resources, it is important to remember to
* clean up those resources after you are done with them. Otherwise, the
* resources will exist until the workbench shuts down. The supported services
* are:
*
* This interface is not intended to be implemented by clients.
*
* Code should always ask the workbench for the display rather than rely on
* {@link Display#getDefault Display.getDefault()}.
*
* If the workbench has an open editor with unsaved content, the user will
* be given the opportunity to save it.
*
* Note: The caller is responsible to ensure the action using this
* method will explicitly inform the user a new window will be opened.
* Otherwise, callers are strongly recommended to use the
*
* In most cases where this method is used the caller is tightly coupled to
* a particular perspective. They define it in the registry and contribute
* some user interface action to open or activate it. In situations like
* this a static variable is often used to identify the perspective ID.
*
* Note: The caller is responsible to ensure the action using this
* method will explicitly inform the user a new window will be opened.
* Otherwise, callers are strongly recommended to use the
*
* The perspective may be shown in the specified window, in another existing
* window, or in a new window depending on user preferences. The exact
* policy is controlled by the workbench to ensure consistency to the user.
* The policy is subject to change. The current policy is as follows:
*
*
* true
if the workbench was successfully closed, and
* false
if it is still open
*/
virtual bool Close() = 0;
/**
* Returns the currently active window for this workbench (if any). Returns
* null
if there is no active workbench window. Returns
* null
if called from a non-UI thread.
*
* @return the active workbench window, or null
if there is
* no active workbench window or if called from a non-UI thread
*/
virtual IWorkbenchWindow::Pointer GetActiveWorkbenchWindow() const = 0;
/**
* Returns the perspective registry for the workbench.
*
* @return the workbench perspective registry
*/
virtual IPerspectiveRegistry* GetPerspectiveRegistry() = 0;
/**
* Returns the view registry for the workbench.
*
* @return the workbench view registry
* @since 3.1
*/
virtual IViewRegistry* GetViewRegistry() = 0;
/**
* Returns the editor registry for the workbench.
*
* @return the workbench editor registry
*/
virtual IEditorRegistry* GetEditorRegistry() = 0;
/**
* Returns the number of open main windows associated with this workbench.
* Note that wizards and dialogs are not included in this list since they
* are not considered main windows.
*
* @return the number of open windows
* @since 3.0
*/
virtual std::size_t GetWorkbenchWindowCount() = 0;
/**
* Returns a list of the open main windows associated with this workbench.
* Note that wizards and dialogs are not included in this list since they
* are not considered main windows.
*
* @return a list of open windows
*/
virtual QListopenPerspective
APIs to programmatically show a
* perspective to avoid confusing the user.
* null
for no initial page
* @param input
* the page input, or null
if there is no current
* input. This is used to seed the input for the new page's
* views.
* @return the new workbench window
* @exception WorkbenchException
* if a new window and page could not be opened
*
* @see IWorkbench#showPerspective(String, IWorkbenchWindow, IAdaptable)
*/
virtual IWorkbenchWindow::Pointer OpenWorkbenchWindow(const QString& perspectiveId,
IAdaptable* input) = 0;
/**
* Creates and opens a new workbench window with one page. The perspective
* of the new page is defined by the default perspective ID. The new window
* and new page become active.
* openPerspective
APIs to programmatically show a
* perspective to avoid confusing the user.
* null
if there is no current
* input. This is used to seed the input for the new page's
* views.
* @return the new workbench window
* @exception WorkbenchException
* if a new window and page could not be opened
*
* @see IWorkbench#showPerspective(String, IWorkbenchWindow, IAdaptable)
*/
virtual IWorkbenchWindow::Pointer OpenWorkbenchWindow(IAdaptable* input) = 0;
/**
* Shows the specified perspective to the user. The caller should use this
* method when the perspective to be shown is not dependent on the page's
* input. That is, the perspective can open in any page depending on user
* preferences.
*
*
*
* The workbench also defines a number of menu items to activate or open
* each registered perspective. A complete list of these perspectives is
* available from the perspective registry found on IWorkbench
.
*
* The perspective may be shown in the specified window, in another existing * window, or in a new window depending on user preferences. The exact * policy is controlled by the workbench to ensure consistency to the user. * The policy is subject to change. The current policy is as follows: *
* The workbench also defines a number of menu items to activate or open
* each registered perspective. A complete list of these perspectives is
* available from the perspective registry found on IWorkbench
.
*
null
if there is no current
* input. This is used to seed the input for the page's views
* @return the workbench page that the perspective was shown
* @exception WorkbenchException
* if the perspective could not be shown
*
* @since 2.0
*/
virtual SmartPointerconfirm
is true. Return true if successful. Return
* false if the user has canceled the command.
*
* @param confirm true
to ask the user before saving unsaved
* changes (recommended), and false
to save
* unsaved changes without asking
* @return true
if the command succeeded, and
* false
if the operation was canceled by the user or
* an error occurred while saving
*/
virtual bool SaveAllEditors(bool confirm) = 0;
/**
* Return the intro manager for this workbench.
*
* @return the intro manager for this workbench. Guaranteed not to be
* null
.
*/
virtual IIntroManager* GetIntroManager() = 0;
/**
* Returns a boolean indicating whether the workbench is in the process of
* closing.
*
* @return true
if the workbench is in the process of
* closing, false
otherwise
* @since 3.1
*/
virtual bool IsClosing() = 0;
/**
* Applies changes of the current theme to the user interface.
*/
virtual void UpdateTheme() = 0;
};
}
#endif /*BERRYIWORKBENCH_H_*/
diff --git a/BlueBerry/Bundles/org.blueberry.ui.qt/src/dialogs/berryIDialog.cpp b/BlueBerry/Bundles/org.blueberry.ui.qt/src/dialogs/berryIDialog.cpp
deleted file mode 100755
index 38008936dd..0000000000
--- a/BlueBerry/Bundles/org.blueberry.ui.qt/src/dialogs/berryIDialog.cpp
+++ /dev/null
@@ -1,32 +0,0 @@
-/*===================================================================
-
-BlueBerry Platform
-
-Copyright (c) German Cancer Research Center,
-Division of Medical and Biological Informatics.
-All rights reserved.
-
-This software is distributed WITHOUT ANY WARRANTY; without
-even the implied warranty of MERCHANTABILITY or FITNESS FOR
-A PARTICULAR PURPOSE.
-
-See LICENSE.txt or http://www.mitk.org for details.
-
-===================================================================*/
-
-#include "berryIDialog.h"
-
-namespace berry {
-
-const int IDialog::NONE = 0;
-const int IDialog::ERR = 1;
-const int IDialog::INFORMATION = 2;
-const int IDialog::QUESTION = 3;
-const int IDialog::WARNING = 4;
-
-IDialog::~IDialog()
-{
-
-}
-
-}
diff --git a/BlueBerry/Bundles/org.blueberry.ui.qt/src/dialogs/berryIDialog.h b/BlueBerry/Bundles/org.blueberry.ui.qt/src/dialogs/berryIDialog.h
deleted file mode 100644
index 19d9e856d2..0000000000
--- a/BlueBerry/Bundles/org.blueberry.ui.qt/src/dialogs/berryIDialog.h
+++ /dev/null
@@ -1,70 +0,0 @@
-/*===================================================================
-
-BlueBerry Platform
-
-Copyright (c) German Cancer Research Center,
-Division of Medical and Biological Informatics.
-All rights reserved.
-
-This software is distributed WITHOUT ANY WARRANTY; without
-even the implied warranty of MERCHANTABILITY or FITNESS FOR
-A PARTICULAR PURPOSE.
-
-See LICENSE.txt or http://www.mitk.org for details.
-
-===================================================================*/
-
-#ifndef BERRYIDIALOG_H_
-#define BERRYIDIALOG_H_
-
-#include null
if none
- * @param title
- * the dialog's title, or null
if none
- * @param message
- * the message
- * @return true
if the user presses the OK button,
- * false
otherwise
- */
- static bool OpenConfirm(Shell::Pointer parent, const QString& title, const QString& message);
-
- /**
- * Convenience method to open a standard error dialog.
- *
- * @param parent
- * the parent shell of the dialog, or null
if none
- * @param title
- * the dialog's title, or null
if none
- * @param message
- * the message
- */
- static void OpenError(Shell::Pointer parent, const QString& title, const QString& message);
-
- /**
- * Convenience method to open a standard information dialog.
- *
- * @param parent
- * the parent shell of the dialog, or null
if none
- * @param title
- * the dialog's title, or null
if none
- * @param message
- * the message
- */
- static void OpenInformation(Shell::Pointer parent, const QString& title,
- const QString& message);
-
- /**
- * Convenience method to open a simple Yes/No question dialog.
- *
- * @param parent
- * the parent shell of the dialog, or null
if none
- * @param title
- * the dialog's title, or null
if none
- * @param message
- * the message
- * @return true
if the user presses the OK button,
- * false
otherwise
- */
- static bool OpenQuestion(Shell::Pointer parent, const QString& title,
- const QString& message);
-
- /**
- * Convenience method to open a standard warning dialog.
- *
- * @param parent
- * the parent shell of the dialog, or null
if none
- * @param title
- * the dialog's title, or null
if none
- * @param message
- * the message
- */
- static void OpenWarning(Shell::Pointer parent, const QString& title, const QString& message);
-
- /**
- * Create a message dialog. Note that the dialog will have no visual
- * representation (no widgets) until it is told to open.
- *
- * The labels of the buttons to appear in the button bar are supplied in
- * this constructor as an array. The open
method will return
- * the index of the label in this array corresponding to the button that was
- * pressed to close the dialog. If the dialog was dismissed without pressing
- * a button (ESC, etc.) then -1 is returned. Note that the open
- * method blocks.
- *
null
if none
- * @param dialogTitleImage
- * the dialog title image, or null
if none
- * @param dialogMessage
- * the dialog message
- * @param dialogImageType
- * one of the following values:
- * IDialog::NONE
for a dialog with no
- * imageIDialog::ERR
for a dialog with an
- * error imageIDialog::INFORMATION
for a dialog
- * with an information imageIDialog::QUESTION
for a dialog with a
- * question imageIDialog::WARNING
for a dialog with a
- * warning imagenull
+ * @param secondaryId
+ * An optional secondary id; may be null
* @throws PartInitException
* If the part could not be initialized.
*/
- void OpenView(const QString& viewId, IWorkbenchWindow::ConstPointer activeWorkbenchWindow);
+ void OpenView(const QString& viewId, const QString& secondaryId, IWorkbenchWindow::ConstPointer activeWorkbenchWindow);
};
}
#endif /*BERRYSHOWVIEWHANDLER_H_*/
diff --git a/BlueBerry/Bundles/org.blueberry.ui.qt/src/internal/berryPerspective.cpp b/BlueBerry/Bundles/org.blueberry.ui.qt/src/internal/berryPerspective.cpp
index 7ec7694dd2..99b5125b50 100644
--- a/BlueBerry/Bundles/org.blueberry.ui.qt/src/internal/berryPerspective.cpp
+++ b/BlueBerry/Bundles/org.blueberry.ui.qt/src/internal/berryPerspective.cpp
@@ -1,1811 +1,1812 @@
/*===================================================================
BlueBerry Platform
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty of MERCHANTABILITY or FITNESS FOR
A PARTICULAR PURPOSE.
See LICENSE.txt or http://www.mitk.org for details.
===================================================================*/
#include "tweaklets/berryGuiWidgetsTweaklet.h"
#include "berryPerspective.h"
#include "berryPerspectiveHelper.h"
#include "berryWorkbenchPlugin.h"
#include "berryWorkbenchConstants.h"
#include "berryPerspectiveExtensionReader.h"
#include "berryEditorSashContainer.h"
#include "berryPartSite.h"
#include "berryViewSite.h"
#include "berryEditorAreaHelper.h"
#include "intro/berryIntroConstants.h"
-#include "dialogs/berryMessageDialog.h"
#include "berryWorkbenchWindow.h"
#include "berryStatusUtil.h"
#include "presentations/berryIStackPresentationSite.h"
+#include