Commit Graph

40 Commits

Author SHA1 Message Date
Allen Winter
b4f49895c2 clarify: licensing is GPL2 or GPL3 or commercial licensed
follow the REUSE specs
2020-07-24 18:16:13 -04:00
Renato Araujo Oliveira Filho
e6a335a3f7 Use enum explicitly constructor as default values
This will avoid problems generating python bindings, shiboken does not
handle well '{}' initialization.
2020-06-10 12:37:46 -03:00
Allen Winter
df692686e7 various - update copyright year 2020-01-07 11:36:56 -05:00
Sergio Martins
945dbc1f27 Fix build with namespaced Qt
Fixes #18
2019-11-27 16:17:48 +00:00
Sergio Martins
787f7802be Move the private code into a private/ folder
It's nice to have a similar include hierarchy at build time and install
time.

It also makes things more explicit
2019-10-20 19:24:54 +01:00
Sergio Martins
fb837b7713 Move DockWidget.cpp into widgets/
As it's specific to QtWidgets. It's mostly empty now
and inheriting from DockWidgetBase, but we'll move a few stuff.
2019-08-05 23:35:44 +01:00
Sergio Martins
ae7934dd47 Abstract FloatingWindow too, introducing FloatingWindowWidget 2019-08-05 02:41:34 +01:00
Sergio Martins
1e3782b73b Add DockWidget::tabWidget() getter 2019-08-04 19:15:37 +01:00
Sergio Martins
369703a0bd tests: Remove a bunch of qobject_casts<FloatingWindow*>
By adding DockWidget::floatingWindow()
2019-08-03 11:22:06 +01:00
Sergio Martins
26dc975e11 fix build 2019-08-02 08:39:43 +01:00
Sergio Martins
089f9361c1 Remove DockWidget::titleBar, as it's not needed
DockWidget's are either floating or not. If floating they have the
title bar from FloatingWindow, otherwise from Frame
2019-08-01 23:44:25 +01:00
Sergio Martins
316e3c8fd7 Simplify. DockWidget doesn't need to be a draggable
Floating dock widgets are FloatingWindow, and when docked
the draggable is the TitleBar, so this is dead code by now
2019-07-30 09:50:26 +01:00
Sergio Martins
c12a691433 Update Frame's icon and title when the dock widget's title/icon changes 2019-07-26 18:38:05 +01:00
Sergio Martins
a238b61ebf Emit signal when icon changes 2019-07-26 18:22:42 +01:00
Sergio Martins
a5ee3cec27 Before closing really close all the dock widgets
The user app was able to ignore the QCloseEvent and the widget
wouldn't close, which would then mean it was deleted by it's parent
Frame during restore
2019-07-24 23:10:55 +01:00
Sergio Martins
8a6297c5a5 Fix non-developer build 2019-07-24 18:23:16 +01:00
Sergio Martins
e5e590e498 Fix non-developer build 2019-07-24 10:29:50 +01:00
Sergio Martins
9cad96b8ef Add needed friend declaration 2019-07-22 11:10:17 +01:00
Sergio Martins
35bb63946a Add serializers for Item, Frame and DockWidget 2019-07-21 23:15:19 +01:00
Sergio Martins
bb1a933137 Transform floating dock widgets into FloatingWindow
instead of waiting for the user to drag a window over it.
This makes it have better z-order, as the FloatingWindow is parented.
2019-07-20 22:15:24 +01:00
Laurent Montel
9bf52e5ded Add icon on DockWidget 2019-07-15 12:10:23 +02:00
Sergio Martins
5af0482a7e WIP: Allow to add a dock widget directly hidden
So it's not shown
2019-07-09 19:35:01 +01:00
Sergio Martins
d0598ab3c9 Fix non-developer-mode build 2019-07-03 11:54:27 +01:00
Sergio Martins
d4fba8e0f8 Fix cases where docked dock widgets wouldn't have the right placeholder
Previously dock widgets only cared about placeholders to mainwindow and
ignored FloatingWindow placeholders, but a placeholders can be transfered
from FloatingWindow to mainwindow, becoming interesting, and shouldn't
be ignored anymore
2019-07-02 14:31:44 +01:00
Sergio Martins
3bba8acddb Introduce DockWidget::setCurrentTab() and isCurrentTab() 2019-06-28 14:23:03 +01:00
Sergio Martins
7a6e9df2ed Add support for placeholders
So dock widgets remember their previous position so can be restored.
TODO: Support playing with dock widget visibility
2019-06-25 19:38:50 +01:00
Sergio Martins
a77d86b6ad readability++ 2019-06-19 15:41:19 +01:00
Sergio Martins
17ddc03b3f Fix DockWidget::isTabbed() when it's in the central frame
The central frame always shows tabs
2019-06-19 11:24:13 +01:00
Sergio Martins
0410963a3c Fix calling DockWidget::setFloating(true)
The used titlebar wasn't the right one.
2019-06-18 22:02:59 +01:00
Sergio Martins
d60baf9325 docs: random docs 2019-06-18 21:25:46 +01:00
Sergio Martins
aa7ae24b8b DockWidget: Rework setFloating/isFloating a bit
- setFloating() now works if the widget was tabbed.
- isFloating() changes the definition of floating a bit:
  If a widget is tabbed into another one then it's docked, not tabbed.
  To be floating it has to have it's own window and that window not have
  any other dock widgets, which excludes side-by-side and tabbed stuff, even if it's
  in a floating group (FloatingWindow)
2019-06-18 21:23:51 +01:00
Sergio Martins
0e5409dae7 Introduce DockWidget::isTabbed() 2019-06-18 18:16:12 +01:00
Sergio Martins
7c302dc2d1 docs++ 2019-06-18 18:05:15 +01:00
Sergio Martins
525d72b1c9 docs++
Just @file for now
2019-06-18 14:44:33 +01:00
Laurent Montel
b06a9c8d60 Fix forward declaration. Remove not necessary includes
Change-Id: If2dc2c52fa8dbabd9aeca03ba96e01c1c6bce37d
Reviewed-on: https://codereview.kdab.com/68186
Reviewed-by: Sérgio Martins <sergio@kdab.com>
2019-05-15 16:36:42 +02:00
Sergio Martins
49bb40e6b2 Silence some clazy warnings 2019-04-24 18:06:17 +01:00
Allen Winter
7241bf6794 various - move Author to its own line 2019-04-24 13:02:32 -04:00
Allen Winter
1574986a1b various - update copyright year
also run dos2unix on a few files with CRLFs
2019-04-24 11:13:38 -04:00
Sergio Martins
87f2325c71 Fix copyrights 2019-04-24 15:27:04 +01:00
Sergio Martins
e43b673858 Initial commit 2019-04-24 14:49:01 +01:00