Commit Graph

44 Commits

Author SHA1 Message Date
Uwe Kindler
b61f50982a Moved title bar dragging code from DockAreaTabBar into DockAreaTitleBar 2020-02-07 12:16:26 +01:00
Uwe Kindler
ae72f5e47d Changed sizeHints(), sizePolicy() and used updateGeometry() to properly size the tabBar 2020-02-07 11:49:45 +01:00
mvidelgauz
474dd13855
Disable tabs menu button when only single tab exists in a Dock area (#111) 2020-02-06 15:21:19 +01:00
Uwe Kindler
094fa37135 Implemented supprt for customdock area title bar buttons 2020-02-06 00:31:57 +01:00
Krzysztof Machura
d4c179c48e
Fix tabs not being active when restoring state (#101)
Regression introduced by 29ebc83b35
2020-01-31 14:26:02 +01:00
Uwe Kindler
a5e8011222 Implemented custom close handling 2020-01-06 11:42:36 +01:00
Uwe Kindler
2af4b1f75c Blocked display of context menu when dragging floating widget 2019-12-16 13:56:20 +01:00
Uwe Kindler
e085a29484 Renamed FloatingOverlay into FloatingDragPreview to match naming of global DockManager flags (like DragPreviewHasWindowFrame..) 2019-12-16 11:18:22 +01:00
Uwe Kindler
ffd35cbce3 Added support for canceling non opaque docking with escape key, fixed state of non opaque docking when switching applications (if application becomes inactive) 2019-12-16 11:10:59 +01:00
Uwe Kindler
8c1f065f3f CHanged DockAreaTabBar to handle the dragging state via DragState member variable instead of testing for FloatingWidget nullptr 2019-12-16 08:41:15 +01:00
Uwe Kindler
02143eac71 Added finishDragging() function to IFloatingWidget to prevent installing event filters 2019-12-13 11:52:50 +01:00
Uwe Kindler
a45a035bb3 Fixed problem with CDockAreaTabBar::onCloseOtherTabsRequested() if DockWidgets support the DockwidgetDeleteOnClose flag, enhanced demo to enabled creation of dynamic tables 2019-12-11 15:50:13 +01:00
Uwe Kindler
45af8867b2 Fixed debug output, moved all calls to FloatingWidget->deleteLater() to a centra place in CDockContainerWidget::dropFloatingWidget 2019-12-10 12:47:55 +01:00
Uwe Kindler
e15af4101a Added initial support for transparent undocking 2019-11-26 14:40:56 +01:00
githubuser0xFFFF
ae997d3d75
Merge pull request #80 from simulton/master
Hide tab before emitting event
2019-11-18 20:16:42 +01:00
Tibo Clausen
2a51359159 Hide tab before emitting event 2019-11-14 14:07:19 +00:00
Uwe Kindler
b776fc24a6 Fixed sizeHints and sizePolicies to properly support different font sizes i.e. set via QApplication::setFont 2019-09-13 10:25:33 +02:00
Jak Erdy - SBI
10fbb6f302 Make debug messages conditional.
You can swich it on/off via defining ADS_DEBUG_PRINT
By default massages wouldn't be printed.
2019-07-21 14:53:24 +07:00
Uwe Kindler
35c1b04c58 Merge branch 'refs/heads/master' into linux_experimental 2019-07-11 15:50:24 +02:00
Uwe Kindler
0de1a9ccae Properly implemented support for DockWidgetFloatable feature - now detaching a DockWidget or a DockAre that is not floatable is not possible (support for DockWidgetMovable feature is not implemented yet) 2019-07-11 15:12:39 +02:00
Uwe Kindler
e98fd5bcb3 Improved icons for all button, adjusted size of dock marker 2019-05-14 15:32:50 +02:00
Uwe Kindler
48382ccd82 Merged the two draging state enumerations into a single one and reused it in FloatingDockContainer 2018-12-20 16:25:30 +01:00
Uwe Kindler
e37e4fdf57 Added context menu for dock area title bar to enable closing of area and other areas via context menu and to enable detaching of dock area via context menu 2018-12-20 15:29:38 +01:00
Uwe Kindler
f69af82a49 Implemented context menu for dock widget tab to close or detach tab or to close all other tabs 2018-11-09 10:07:56 +01:00
Uwe Kindler
b3a272110a Some changes for dockwidget tab close button, some refactorings to make insertion of widgets into dock widget easier, added createDefaultToolBar function for creation of toolbar and removed layout flags from CDockWidget 2018-11-08 10:04:29 +01:00
Uwe Kindler
a4838a41ac Added ElidingLabel to support text eliding for dock area tabs, removed debug output 2018-11-05 12:00:56 +01:00
Uwe Kindler
74b9d35c7b Fixed start drag distance to be based on QApplication::startDragDistance, fixed dragging of dock widget title bar to support dragging in x and y direction 2018-11-05 09:58:46 +01:00
Uwe Kindler
188624440b Fixed proper selection and deselection of current tab in tabbar 2018-11-03 21:48:35 +01:00
Uwe Kindler
72ec61a043 Added access functions for the titlebar buttons 2018-11-03 20:51:02 +01:00
Uwe Kindler
6617cf6f19 Implemented proper updating of floating widget title 2018-10-30 23:45:59 +01:00
Uwe Kindler
927be9a7d9 Improved detection of dock widget dragging - uses a distance now (half the height of dock area title bar) 2018-10-15 15:09:59 +02:00
Uwe Kindler
11e5f9c95a Properly implemented DockAreaTitle bar to encapsulate title bar functionality 2018-10-12 14:51:57 +02:00
Uwe Kindler
9bfb3fbea1 Created new DockAreaTitleBar class to encapsulate all title bar functionality 2018-10-12 13:37:37 +02:00
Uwe Kindler
9c95e34df5 Fixed some bugs in tabbar handling 2018-10-12 11:51:35 +02:00
Uwe Kindler
ceebda7431 Properly implemented tab removal in new DockAreaTabBar class 2018-10-12 10:41:19 +02:00
Uwe Kindler
75288af88c Properly implemented tab moving 2018-10-12 09:17:14 +02:00
Uwe Kindler
7c67d71f68 Fixed DockAreaTabBar.cpp to properly count the contained tabs (ignore stretch item) 2018-10-11 15:23:19 +02:00
Uwe Kindler
c3a5e3ef21 Fixed dropping of floating widgets with multiple dock widgets 2018-10-11 10:55:36 +02:00
Uwe Kindler
0e85431405 Changed stylesheet to highlight the active tab to improve debugging 2018-10-11 09:21:01 +02:00
Uwe Kindler
b3b6d20d96 Added dockWidgets() function to DockContainerWidget.h because invisible dock widgets are no children of a dock area and therefore FindChildrenRecursively() does not work 2018-10-11 08:54:32 +02:00
Uwe Kindler
272bbe275e Started implementing DockAreaTabBar to improve code, encapsulation and performance 2018-10-10 15:15:59 +02:00
Uwe Kindler
b9b72df9d4 Fixed some bugs that caused problems when calling toggleView() with the same state, some refactorings to improve code 2018-09-26 09:57:36 +02:00
Uwe Kindler
67199a81f4 Fixed docking into empty main dock container, fixed tab handling to properly show the right dock widget tab when removing a dock widget, fixed tab menu to only show visible tabs, tab menu is now dynamically created just befor menu is shown 2018-09-07 11:10:14 +02:00
Uwe Kindler
6b93ae9c39 Some refactoring to improve code clarity, renamed DockWidgetTitleBar into DockWidgetTab because in the GUI it is a tab, created new class CDockAreaTabBar for the tabbar of a dock area 2018-08-24 13:41:58 +02:00