From 7b0b0deb84478c63ccbb08acae9a835123cf3e8a Mon Sep 17 00:00:00 2001 From: Henning Gruendl Date: Wed, 10 Jul 2024 10:58:16 +0200 Subject: QmlDesigner: Hide ADS for lite designer * Adapt top toolbar by removing lock button and workspace combo box both in toolbar and flyout * Add lite mode bool to dockamanager in order to lock workspace by default and skip config parameter * Add new flag to ADS to block context menu on DockWidgetTab * Hide workspace menu in view menu * Deactivate middle mouse button and close button on DockWidgetTab Task-number: QDS-13169 Change-Id: I3158c9d7eaef1a58520dc466e85a859e074d1c9e Reviewed-by: Thomas Hartmann --- src/libs/advanceddockingsystem/dockmanager.h | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'src/libs/advanceddockingsystem/dockmanager.h') diff --git a/src/libs/advanceddockingsystem/dockmanager.h b/src/libs/advanceddockingsystem/dockmanager.h index 23aa21a5781..7cff32085a4 100644 --- a/src/libs/advanceddockingsystem/dockmanager.h +++ b/src/libs/advanceddockingsystem/dockmanager.h @@ -126,7 +126,7 @@ public: = 0x2000, ///< If this option is enabled, the tab of a dock widget is always displayed - even if it is the only visible dock widget in a floating widget. DockAreaHasUndockButton = 0x4000, //!< If the flag is set each dock area has an undock button DockAreaHasTabsMenuButton - = 0x8000, //!< If the flag is set each dock area has a tabs menu button + = 0x8000, //!< If the flag is set each dock area has a tabs menu button DockAreaHideDisabledButtons = 0x10000, //!< If the flag is set disabled dock area buttons will not appear on the toolbar at all (enabling them will bring them back) DockAreaDynamicTabsMenuButtonVisibility @@ -144,6 +144,8 @@ public: EqualSplitOnInsertion = 0x400000, ///!< if enabled, the space is equally distributed to all widgets in a splitter + HideContextMenuDockWidgetTab = 0x800000, + MiddleMouseButtonClosesTab = 0x2000000, //! If the flag is set, the user can use the mouse middle button to close the tab under the mouse @@ -182,15 +184,15 @@ public: AutoHideButtonCheckable = 0x08, //!< If the flag is set, the auto hide button will be checked and unchecked depending on the auto hide state. Mainly for styling purposes. AutoHideSideBarsIconOnly - = 0x10, ///< show only icons in auto hide side tab - if a tab has no icon, then the text will be shown + = 0x10, //!< show only icons in auto hide side tab - if a tab has no icon, then the text will be shown AutoHideShowOnMouseOver - = 0x20, ///< show the auto hide window on mouse over tab and hide it if mouse leaves auto hide container + = 0x20, //!< show the auto hide window on mouse over tab and hide it if mouse leaves auto hide container AutoHideCloseButtonCollapsesDock - = 0x40, ///< Close button of an auto hide container collapses the dock instead of hiding it completely + = 0x40, //!< Close button of an auto hide container collapses the dock instead of hiding it completely AutoHideHasCloseButton - = 0x80, //< If the flag is set an auto hide title bar has a close button + = 0x80, //!< If the flag is set an auto hide title bar has a close button AutoHideHasMinimizeButton - = 0x100, ///< if this flag is set, the auto hide title bar has a minimize button to collapse the dock widget + = 0x100, //!< if this flag is set, the auto hide title bar has a minimize button to collapse the dock widget DefaultAutoHideConfig = AutoHideFeatureEnabled | DockAreaHasAutoHideButton | AutoHideCloseButtonCollapsesDock | AutoHideHasCloseButton @@ -774,6 +776,9 @@ public: void setMcusProject(bool value); bool mcusProject() const; + void setLiteMode(bool value); + bool isLiteModeEnabled() const; + signals: void aboutToUnloadWorkspace(QString fileName); void aboutToLoadWorkspace(QString fileName); @@ -795,8 +800,6 @@ private: void saveStartupWorkspace(); void saveLockWorkspace(); - - bool m_mcusProject = false; }; // class DockManager } // namespace ADS -- cgit v1.2.3