From aab2a7b728ea45dce23399472a58e6dc65792793 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Wed, 16 Mar 2011 09:24:16 +0000 Subject: [PATCH] Defaults section for view modes git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@11139 383ad7c9-94d9-4d36-a494-682f7c89f535 --- BasePlugin/ViewModeInterface.hh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/BasePlugin/ViewModeInterface.hh b/BasePlugin/ViewModeInterface.hh index 6a019c5e..66cf1c80 100644 --- a/BasePlugin/ViewModeInterface.hh +++ b/BasePlugin/ViewModeInterface.hh @@ -169,6 +169,11 @@ When the user selects "My Custom View Mode" out of the view modes menu, all toolboxes except for Data Control and Selection will disappear. This works analogously for toolbar elements via the signal ViewModeInterface::defineViewModeToolbars(QString, QStringList). +\section Defaults +The Main Toolbar and the Viewer Toolbar will always be included in the list of toolbars and will be the default when +you define a View Mode with only toolboxes and context menus. +If you do not define context menus for your View Mode, they will default to all. + \section Icons Additionally, if we wanted the "My Custom View Mode" entry in the view modes menu to appear with a fancy icon, we just have to call ViewModeInterface::defineViewModeIcon(QString, QString): -- GitLab