Sergio Martins
74dcbd994a
Added MainWindow::internalLayout()
...
Allows the application to add more widgets next to the drop area.
2022-06-08 16:31:35 +01:00
Sergio Martins
7db9938b85
Fix MainWindow not propagating close events to docked widgets
...
Nested FloatingWindows already supported it, so make it consistent.
Personal take: In a non-docking world, users can override their
main window close event and prevent a close, to save a document
or such. However, in a docking world, the main window developer
won't know which widgets are docked, so forwarding needs to happen,
as some might have documents to save.
2022-03-09 15:47:02 +00:00
Mauro Persano
f13f0129d4
Add API to set center widget margins on MainWindow
...
We can't change the margins by subclassing MainWindow and overriding
centerWidgetMargins, since the margins are initialized in MainWindow's
constructor. This adds public API to MainWindow to allow us to change
the margins later on.
2022-01-20 22:37:36 +00:00
Allen Winter
93e60a743e
update copyright year
2022-01-20 08:05:26 -05:00
Allen Winter
7001aa58ce
clang-format on code base
2021-07-12 17:05:37 -04:00
Allen Winter
a2f4c972a6
update copyright year
2021-01-02 09:27:50 -05:00
Sergio Martins
2b234f313c
quick: Remove some QWidget specific code from MainWindowBase
2020-10-03 18:10:23 +01:00
Sergio Martins
b303af738c
Improve position for north/south overlays
2020-09-20 16:56:57 +01:00
Sergio Martins
af5e11a265
Update the overlay's geometry when we resize the main window
2020-09-20 16:38:03 +01:00
Sergio Martins
76e2ec6429
Add East, West and North sidebars too
...
Instead of just south.
Only south is used for now though.
2020-09-19 11:00:42 +01:00
Sergio Martins
e1085fb770
Add experimental support for minimization to side-bar
...
Auto-hide not working yet. Just minimization.
Internal for now. Will be public once finished.
2020-09-18 18:35:41 +01:00
Sergio Martins
a1c473fb0e
Override QMainWindow::setCentralWindow() to make it private
...
The central widget is used internally by KDDW to make all of this
possible. It shouldn't be used by users
2020-08-22 17:03:55 +01:00
Sergio Martins
1cfceb4d07
MainWindow: Move the drop area to the base class
...
QtQuick impl will also use it
2020-08-03 19:39:01 +01:00
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
58e90bd7c4
Make MainWindow_None the default, instead of MainWindow_HasCentralFrame
...
Central Frame is the old Qt way. With KDDockWidgets everwhere
is fair game to dock and undock.
2019-10-07 14:02:30 +01:00
Sergio Martins
b5fad9a601
docs++
2019-10-05 12:54:25 +01:00
Sergio Martins
eb96288534
docs: Improved @file docs
2019-10-04 17:33:42 +01:00
Sergio Martins
abbc79f0e0
Progress with the QtQuick port
2019-09-07 16:20:22 +01:00
Sergio Martins
cad7486907
Introduce MainWindowBase
...
MainWindow is widgets only. MainWindowBase will be used by QtQuick too.
2019-09-04 15:31:55 +01:00
Sergio Martins
990e487fed
rename name() to uniqueName() for readability
2019-08-08 22:30:29 +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
ddb772d54f
Fix clazy build
2019-07-22 09:34:15 +01:00
Sergio Martins
dfc53795b7
Start implementing global save/restore
...
The difference is that now ach class will encapsulate serialization/deserialization
of its own properties, and we'll get rid of the *State classes
2019-07-21 19:08:35 +01:00
Sergio Martins
5c97e9168a
Fix build without developer build
...
LayoutSaver is also using those methods, it's not just the tests
2019-07-19 13:48:42 +01:00
Sergio Martins
98e47856f3
tests: Simply getting the drop area
...
No need for casts
2019-07-17 21:32:45 +01: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
525d72b1c9
docs++
...
Just @file for now
2019-06-18 14:44:33 +01:00
Allen Winter
7241bf6794
various - move Author to its own line
2019-04-24 13:02:32 -04:00
Allen Winter
6ef9f83b3f
various - cleaning up include guards
2019-04-24 12:51:22 -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