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
b43770de37
Added properties to auto hide widgets to improve CSS styling options
2022-10-26 09:51:37 +02:00
Uwe Kindler
7774aaa75a
Fixed calculateSideTabBarArea function to work properly with every dock container
2022-10-25 09:58:15 +02:00
Uwe Kindler
f549a92c01
Added resize support for new QFrame based AutoHideDockContainer
2022-10-24 16:21:26 +02:00
Uwe Kindler
63fed89f26
Removed individual config flags for each sidebar with the global AutoHideFeatureEnabled flag
2022-10-18 17:00:42 +02:00
Uwe Kindler
ffe6eccb05
Improved logic for finding the auto hide side location
2022-10-17 14:22:12 +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
Syarif Fakhri
f9b62234b0
Add top area
2022-10-14 21:13:32 +08:00
Syarif Fakhri
ad0c2103bf
fix crash when using widgets that delete on close
2022-10-14 16:09:13 +08: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
40dccdb5ae
Remove testing code
2022-09-19 14:30:18 +08:00
Syarif Fakhri
6e143de09d
Fix side tab widgets being the wrong size when being added to a layout
2022-09-19 14:19:31 +08:00
Syarif Fakhri
87324846cd
Fix side tab widget resizing strangely on first add
2022-09-15 16:02:55 +08:00
Syarif Fakhri
060313c11f
clear dock widget focus on repin
2022-09-15 13:04:49 +08:00
Syarif Fakhri
59108ed245
Add right bottom and left bottom
2022-09-15 12:51:59 +08:00
Syarif Fakhri
68a3bcde08
Add assert
2022-09-15 12:15:33 +08:00
Syarif Fakhri
4d3328e468
Fix side tab widget ordering
...
Now is fixed based on the side tab widget
2022-09-14 17:39:57 +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
6b85b2b505
Revert "Fix crash when restoring state"
...
This reverts commit ee97b03e53 .
2022-09-14 12:32:32 +08:00
Syarif Fakhri
ee97b03e53
Fix crash when restoring state
...
- when restoring state, the old dock widgets would remove themselves
from their old dock areas and add themselves to the new dock areas. The
old dock areas that are empty would then delete themselves.
- That is a problem when the old overlay dock container would still try to
access the old dock areas, not knowing their deleted, causing a crash.
2022-09-14 12:16:36 +08:00
Syarif Fakhri
8ddabc4cc8
Fix docking behavior when there is a central widget
2022-09-13 16:02:14 +08:00
Syarif Fakhri
9a69955124
Simplify logic when restoring state
2022-09-13 13:10:29 +08:00
Syarif Fakhri
dfc2714d3b
Fix invalid state on restore
...
- Overlayed dock areas should not be added to the d->DockArea list
- As they are not treated like normal dock areas
2022-09-13 12:44:48 +08:00
Syarif Fakhri
214c415fa2
Add Bottom side bar
2022-09-13 10:42:58 +08:00
Syarif Fakhri
621e5e7789
fix tooltips for auto hide button and close button
2022-09-09 14:43:59 +08:00
Syarif Fakhri
84c6afa428
Reworked toggle view
...
Previous:
- It would just hide the overlay dock widget and leave the side tabs
still visible
- Close button, toggle view action would simply collapse the dock widget
intsead of completely hiding it
Current:
- Now toggle view and collapse functionality are separated.
- Toggle view will now hide the side tab bars completely
- Close button and toggle view action will completely hide it
- Collapse view will simply hide the overlay dock container without
hiding the side tabs
- Handled logic for floating widgets and toggling view
2022-09-09 12:18:41 +08:00
Syarif Fakhri
c1df05b55d
Fix bug where undock button would be show incorrectly in floating dock
...
widgets when toggling overlay
Also centralized and simplified the logic for the title bar button
visibility
2022-09-08 16:08:20 +08:00
Syarif Fakhri
9bfd77a206
Remove None and Bottom from the SideTabBarArea enum
2022-09-08 14:13:45 +08:00
Syarif Fakhri
37edf47c4b
Fix the side tab widget not updating style when its restored from XML
2022-09-08 14:04:18 +08:00
Syarif Fakhri
0087a1b360
Add left right styling to the dock widget side tab
2022-09-08 11:30:56 +08:00
Uwe Kindler
068797dbb0
Fixed build issues of original pull request
2022-09-07 10:56:17 +02:00
Syarif Fakhri
052d3cecb9
Fix check state of the auto hide button
...
when dragging the container into a floating window
2022-09-06 17:59:56 +08:00
Syarif Fakhri
fde133c25e
Fix a bug where overlay widgets from another container widget
...
would not be correctly transferred into the container widget that it's
dragged into.
2022-09-06 17:42:26 +08:00
Syarif Fakhri
6e35a9e7a7
- Add an example folder for auto hide functionality
...
Note: this does not include the py file, To be added in a different
commit
- Added a better API to programatically add the overlay areas in the
CDockManager
2022-09-06 15:35:18 +08:00
Syarif Fakhri
3e9dc7f4d6
Add initial functionality for Auto hide
...
- Add left and right side tab widgets
- Add overlay dock and overlay dock widget behavior
2022-09-06 13:30:26 +08:00
Uwe Kindler
78a4166e42
Updated CFloatingDockContainer::closeEvent() function to delete all dock widgets with DockWidgetDeleteOnClose flag set
2022-03-25 13:31:40 +01:00
SleepProgger
6fb45c055c
Removed ContentMargin in DockContainer ( #387 )
2021-12-20 07:46:26 +01:00
Uwe Kindler
2afe62ec77
Fixed issue #378 - Don't show empty floating containers on startup
2021-12-06 09:42:12 +01:00
Ben Hetherington
0df1a41a1d
Fix potential crash when restoring container state ( #381 )
...
This fixes a crash which could occur when restoring the state of a floating container to a non-floating container.
This was because `ads::CDockContainerWidget::RestoreState()` will unconditionally assume this is floating if the XML has the `Floating` boolean set, and will dereference `floatingWidget()`. If this isn't floating, `floatingWidget()` will return `nullptr`, leading to a crash when it's subsequently used.
Fixes #379 .
2021-12-03 17:01:16 +01:00
Lucas
0b82ff30fe
Fix issue #351 : https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System/issues/351 ( #357 )
2021-10-01 15:30:33 +02:00
Walter Bormans
13853573ea
Additional Qt keyword conversion. ( #299 )
...
This comit is an addtion to pull request #295 . Not all Qt keywords were included.
Co-authored-by: Walter Bormans <walter.bormans@paradoxcat.com >
2021-01-22 06:18:34 +01:00
Uwe Kindler
018ce2001e
Fixed all Qt6 build issues
2021-01-02 18:06:45 +01:00
Uwe Kindler
0a096869fe
Fixed adding of dock widgets to floating widget
2020-11-21 15:08:30 +01:00
Uwe Kindler
1c261515db
Improved debug output in DockContainerWidget
2020-09-21 09:39:42 +02:00
Uwe Kindler
835a532e75
Corrected constness of some functions, changed signatur of setCentralWidget function
2020-08-24 10:22:12 +02:00
hulswit
14c29f695c
Central widget update
...
Updated the setting of central widget with option to set where the possible old central widget will be placed. Fixed option of "unsetting" central widget by setting it to nullptr.
2020-08-21 13:30:59 +02:00
hulswit
1a11e5ddcd
Central Widget concept added
...
Adde option to set a dock widget as central widget. It influences resizing behavior of the splitters. The central widget will be stretched with the main window and remaing dock widgets and threir respective areas will be resized only vertically if docked left or right and horizontaly if docked top or bottom
2020-08-20 16:36:02 +02:00