tmartsum
c34d479d5c
Avoid dock manager double delete (crashes) ( #587 )
...
If a dockwidget has been manually deleted, the dockmanager
would delete it again when deleting the area in its dtor.
The 'optimal' solution would likely have been changing
CDockWidget::~CDockWidget to add
if (d->DockArea) d->DockArea->removeDockWidget(this);
(before delete d).
However, it is not trivial (for me) to conclude that such
a change would be safe on program shutdown.
Co-authored-by: Thorbjørn Lund Martsum <thorbjorn@luxion.com>
2023-12-06 15:12:48 +01:00
Uwe Kindler
68f1084bf0
Added parentSplitter() fucntion to DockArea and removed dead code from DockContainerWidget
2023-11-27 21:48:14 +01:00
Uwe Kindler
fa94da00d4
Added optional Minimize button to AutoHide dock widget title bar
2023-11-06 11:06:12 +01:00
luzpaz
0d10c6e2d9
Fix various typos ( #547 )
...
Typos found via `codespell -q 3 -L te,ridiculus,varius`
2023-08-08 19:46:12 +02:00
Uwe Kindler
be727c5890
Added initial support for inserting dropped dock widgets at a certain sidebar position
2023-07-12 10:42:24 +02:00
Uwe Kindler
2760fb1fe9
AutoHide dock area now always shows pin button independently from DockAreaHasAutoHideButton flag
2023-07-11 08:25:34 +02:00
Uwe Kindler
0627b3183f
Added "Close" action to AutoHideTab context menu
2023-07-10 10:38:21 +02:00
Uwe Kindler
0a6c58fd66
Properly implemented drag and drop of auto hide tabs
2023-07-10 09:34:11 +02:00
Uwe Kindler
1c6d86e70f
Added support for make auto hide widget floating via double click or context menu
2023-07-07 11:21:54 +02:00
Eric Wong
ccbde05fb7
Update DockAreaWidget.cpp
...
memory leak
2023-06-14 09:42:47 +08:00
Uwe Kindler
e060d99d96
Merged master
2022-11-18 21:50:38 +01:00
Uwe Kindler
8d30fc9c3c
Fix various clazy warnings
2022-11-18 21:36:31 +01:00
Uwe Kindler
b82d23e59c
Guard against null pointer access
2022-11-18 21:15:06 +01:00
Uwe Kindler
3fded82f26
Merge branch 'master' into auto_hide_feature
2022-11-15 11:22:14 +01:00
Uwe Kindler
296c7edbd0
Added support for tab index when inserting dockwidgets into area
2022-11-14 14:49:58 +01:00
Uwe Kindler
bd0b2ad483
Improved title bar button tooltips and made naming consistend with context menu
2022-11-05 10:11:09 +01:00
Uwe Kindler
5e59a6dc3a
Removed debug output
2022-11-03 16:49:20 +01:00
Uwe Kindler
409d4489cc
Added support for auto hiding a dock area / widget to a specific border via context menu
2022-11-03 16:44:40 +01:00
Uwe Kindler
04ea1c68a7
Added option to auto hide a DockWidget or a DockArea to a specific sidebar location
2022-11-03 15:28:01 +01:00
Uwe Kindler
159579fb48
Fixed some auto hide specific bugs
2022-11-02 14:29:23 +01:00
Uwe Kindler
d2c08aca70
Improved context menu of DockAreaWidget
2022-11-02 13:06:42 +01:00
Uwe Kindler
b5a179555a
Added context menu actions for titleBar and dock widget tab auto hide
2022-11-02 12:45:45 +01:00
Uwe Kindler
9c14c62637
Added setAutoHide() and toggleAutoHide() function to CDockWidget
2022-11-02 08:27:23 +01:00
Uwe Kindler
7c1d04f7be
Move calculateSideTabBarArea() function from DockContainerWidget into DockAreaWidget because it is only required there and it depends on dock area position
2022-11-02 08:16:56 +01:00
Uwe Kindler
540961b8dd
Renamed toggleAutoHide to setAutoHide and added toggleAutoHide function
2022-11-01 21:31:27 +01:00
Uwe Kindler
fda5887d50
Removed AutoHideInsertOrder enum - new side tabs are always appended.
2022-11-01 20:42:52 +01:00
Uwe Kindler
28745fa2f8
Some small improvements and execute auto hide code only if config is enabled
2022-11-01 17:17:58 +01:00
Uwe Kindler
08714ddc3f
Properly evaluate pinnable flag
2022-11-01 16:11:45 +01:00
Uwe Kindler
94b80423d7
Made naming of auto hide config flags explicit
2022-11-01 14:36:09 +01:00
Uwe Kindler
782af9a1fc
Renamed SideTabBar and DockWidgetSideTab into AutoHideSideBar and AutoHideTab for consistent naming
2022-11-01 12:06:59 +01:00
Uwe Kindler
fba9c7ce5d
Create auto hide sidebars only if config flag is set
2022-11-01 11:22:15 +01:00
Uwe Kindler
44790307d8
Properly implemented restore functionality for auto hide container
2022-11-01 11:02:01 +01:00
Uwe Kindler
d1d801cf16
Moved dock area restore code into CDockAreaWidget
2022-10-30 19:44:33 +01:00
Uwe Kindler
af4a3ef2a8
Removed config flag CDockManager::AutoHideDockAreaHasTitle - this should not be configurable
2022-10-28 15:52:52 +02:00
Uwe Kindler
c80174e7e5
Removed superfluous code and simplified some things
2022-10-27 15:59:08 +02:00
Uwe Kindler
85d7b3047c
Changed AutoHide save and restore code
2022-10-27 13:25:40 +02:00
Uwe Kindler
c94155fb06
Moved SideBarLocation enum out of CDockWidgetSideTab into global ads namespace
2022-10-27 10:22:28 +02:00
Uwe Kindler
ebdd950b4e
Removed supefluous onAutoHideToggleRequested() function
2022-10-25 09:52:57 +02:00
Syarif Fakhri
7ed3f8b2d1
Remove all dock widget focusable constraint on auto hide button
2022-10-19 17:30:08 +08:00
Uwe Kindler
60e0201060
Added new auto hide config flag CDockManager::AutoHideButtonTogglesArea
2022-10-17 18:16:20 +02:00
Uwe Kindler
14312442db
Replaced tab bar areas LeftTop, LeftBottom, RightTop, RightBottom with Left and Right to reduce complexity
2022-10-17 11:34:59 +02:00
Uwe Kindler
bb630ca605
Changed toggleAutoHideArea)= logic - only the current dock widget is pinned and not all dock widgets of this area
2022-10-17 09:59:40 +02:00
Syarif Fakhri
8610a64b51
Rename overlayDockContainer -> AutoHideDockContainer
2022-10-13 14:26:54 +08:00
Uwe Kindler
62d3d73651
Made Auto Hide Feature independent from Focus Feature and renamed OverlayDockContainer to AutoHideDockContainer
2022-10-12 11:17:54 +02:00
Uwe Kindler
8fc333806a
Pulled latest changes from duer autohide branch
2022-10-12 10:58:47 +02:00
Syarif Fakhri
8ac8d63b96
Ensure that the closed state is consistent
2022-09-20 14:47:28 +08:00
Syarif Fakhri
06bcf2cd48
Add insert order for overlayed widget to the side tab bar
...
- Set the default insert order to append
2022-09-14 15:52:34 +08:00
Syarif Fakhri
f3305b95d2
Remove old crash fix
2022-09-14 13:10:06 +08:00
Syarif Fakhri
19192541f9
Fix central dock widget being pinnable
...
- Add config for dock widget being pinnable
2022-09-13 16:19:11 +08:00
Syarif Fakhri
8ddabc4cc8
Fix docking behavior when there is a central widget
2022-09-13 16:02:14 +08:00