Commit Graph

4538 Commits

Author SHA1 Message Date
Sergio Martins
7b20eedf6d Add tst_dropArea
Removed the requirement to have a parent, it's not really needed,
conceptually.
2022-07-27 10:34:13 +01:00
Sergio Martins
93b3f77969 flutter: instantiate DropArea_flutter 2022-07-27 10:32:10 +01:00
Sergio Martins
f7c3dea53f flutter: Add bindings for Layout 2022-07-26 17:28:01 +01:00
Sergio Martins
02e591fc52 flutter: Add View_flutter.dart 2022-07-26 15:19:57 +01:00
Sergio Martins
3ee9866d84 flutter: Add bindings for CreateViewOptions_wrapper 2022-07-26 15:10:30 +01:00
Sergio Martins
84ec64fade unnest CreateViewOptions so we can create dart bindings for it
Our binding generator doesn't support nested classes yet
2022-07-26 15:03:21 +01:00
Sergio Martins
f8f75cdabc flutter: Add bindings for View 2022-07-26 14:20:27 +01:00
Sergio Martins
feda194b01 flutter: Also create bindings for ViewFactory 2022-07-26 13:37:21 +01:00
Sergio Martins
249ee2ce67 flutter: Add bindings for ViewFactory_flutter.h 2022-07-26 13:30:35 +01:00
Sergio Martins
d97ccb9792 flutter: Add bindings for Config.h 2022-07-26 13:21:14 +01:00
Sergio Martins
90ba005bc6 flutter: Remove unneeded Platform.dart 2022-07-26 13:15:01 +01:00
Sergio Martins
1a762df812 flutter: Add Platform_dart and regenerate bindings 2022-07-26 13:09:26 +01:00
Sergio Martins
0dd41fc7e9 flutter: Rename Platform.dart to Platform_flutter.dart
Makes it consistent with the naming of all other frontends
2022-07-25 17:57:33 +01:00
Sergio Martins
ff7a30dcc3 flutter: Remove duplicate method from QByteArray.dart
Dart doens't support 2 methods with the same name
2022-07-25 17:56:40 +01:00
Sergio Martins
c40f38097a wip 2022-07-25 17:53:26 +01:00
Sergio Martins
7439040147 Don't compare raw Screen pointers directly
Instead compare the underlying QScreen.
2022-07-25 06:13:42 -07:00
Sergio Martins
2fa27e8f62 Add Screen::equals(), as comparing Screen raw pointers is meaningless 2022-07-25 13:49:45 +01:00
Sergio Martins
b5ad2f6870 dummy|flutter: Add missing Platform::primaryScreen() override 2022-07-25 13:30:12 +01:00
Waqar Ahmed
ac082ca846 Add Platform::primaryScreen 2022-07-25 17:24:27 +05:00
Sergio Martins
fb88f37b37 cmake: Build the flutter frontend only when using Qt5
As the bindings were generated against Qt5, not Qt6.
Won't matter much in the future, since it won't depend on Qt. But for
now there's still some dependencies.
2022-07-25 11:49:06 +01:00
Sergio Martins
0e29658664 Fix flutter and dummy frontend builds
Was missing implementation for the new screen methods
2022-07-25 11:46:49 +01:00
Waqar Ahmed
4d5a43ea1f Remove QScreen usage from non-frontend classes 2022-07-25 11:39:36 +05:00
Waqar Ahmed
396973b987 Add Screen::name 2022-07-25 11:37:52 +05:00
Waqar Ahmed
82d6648119 Avoid emitting thousands of timeout signals without any reason 2022-07-24 15:03:50 +05:00
Sergio Martins
b3dd4516ca flutter: Renamed KDDockWidgets package to KDDockWidgetsBindings
The former is needed for the KDDW flutter frontend, which will use
the latter to access the C++ API.

Using two packages instead of one, since one is generated by
dartagnan.
2022-07-23 20:31:50 +01:00
Sergio Martins
7956ec3b73 flutter: Fix Platform::name_calledFromC()
The return type needs to be ffi.Pointer<Utf8>, not String.
This has been fixed in dartagnan
2022-07-23 18:44:20 +01:00
Sergio Martins
9b7eaebd40 flutter: Fix kddockwidgets library name
So dart can load the correct one
2022-07-23 17:21:00 +01:00
Sergio Martins
307161a8f1 flutter: Tell dartagnan to not generate CMakeLists.txt
We have our own already.
2022-07-23 17:13:26 +01:00
Sergio Martins
ee5bd0094b flutter: Add bindings to View, ViewFactory and Platform 2022-07-23 17:03:45 +01:00
Sergio Martins
71f4246ac1 cmake: Add flutter to the dev6 preset 2022-07-23 12:38:01 +01:00
Sergio Martins
d4b515b7a3 Fix Qt6 build 2022-07-23 12:33:09 +01:00
Sergio Martins
162b6b914c flutter: export bindings too 2022-07-23 10:07:41 +01:00
Sergio Martins
a824bba23f codespell: Accept "sharable" as it comes from Qt 2022-07-23 10:06:14 +01:00
Sergio Martins
42ceb96cc2 flutter: Dart bindings are now built within kddockwidgets.dll too
No need to have a separate library with them.

This is just an initial commit to get the cmake right. We'll be adding
more bindings as we go.

Also, at some point, the Qt bindings will be removed and we'll have just
C++ KDDW bindings without any Qt.
2022-07-23 10:01:51 +01:00
Sergio Martins
1e926005c7 Add missing break, fixes fallthrough 2022-07-23 09:46:28 +01:00
Sergio Martins
1252ba40b3 Update .gitignore 2022-07-23 09:46:16 +01:00
Sergio Martins
5419b27a12 Fix linking due to Screen.cpp missing 2022-07-23 09:45:32 +01:00
Sergio Martins
28324e7a6a flutter: Use QT_NO_CAST_FROM_ASCII for bindings
Otherwise kddw won't compile as the QString ascii ctor is private
2022-07-23 09:38:56 +01:00
Sergio Martins
13b94d151b flutter: Add copyright headers to generated bindings
It's done automatically now when refreshing the bindings.
2022-07-23 09:38:56 +01:00
Waqar Ahmed
6e602970fb Add a platform agnostic Screen class 2022-07-22 22:20:18 +05:00
Sergio Martins
4b36717630 flutter: Add binding generation support through dartagnan
For now, only generating a few classes. We'll build up slowly.
2022-07-22 16:20:21 +01:00
Sergio Martins
53e6f6dc0e flutter: Initial boiler-plate commit
Does not have any implementation.
But we can start generating dart bindings for it.
2022-07-22 14:52:50 +01:00
Sergio Martins
0afb9ae113 Actually remove View::parentChanged() signal
Should have gone in the last commit
2022-07-22 10:22:13 +01:00
Sergio Martins
b907c67ee3 Remove View::parentChanged
It was driving too much logic.
The controllers deal with this now. Makes it easier to make
non-Qt frontends
2022-07-22 10:10:17 +01:00
Sergio Martins
fb701e8307 Move DockWidget::parentViewChanged() signal to base class
So it matches the setter, which was already in the base class
2022-07-22 09:54:18 +01:00
Sergio Martins
1097908882 Override DockWidget::setParentView() instead of relying on QEvent
So it works with non-Qt frontends too.
2022-07-22 09:36:20 +01:00
Sergio Martins
5c26aaa9cd Port some raw QObject::setParent() calls 2022-07-21 22:59:27 +01:00
Sergio Martins
d0f1f2ce77 tests: Test DockWidget::isOpen() too 2022-07-21 17:54:39 +01:00
Sergio Martins
a9d2be775b tests: Test that dock widgets are floating after being closed
Not that it means much, since they're hidden. But be consistent.
2022-07-21 17:27:37 +01:00
Sergio Martins
b7665abf68 vscode: Add a launch for tst_docks 2022-07-21 14:42:40 +01:00