Commit Graph

4587 Commits

Author SHA1 Message Date
Sergio Martins
647cb4c7f6 Remove Utils::isLeftMouseButtonPressed()
It's an unneeded indirection
2022-08-10 19:39:44 +01:00
Sergio Martins
0b2cc6e078 Make separator not depent on QGuiApplication 2022-08-10 19:36:11 +01:00
Sergio Martins
d9f1a04e8d flutter: Layout can now be resized 2022-08-10 19:33:11 +01:00
Sergio Martins
048d156998 flutter: Tell flutter a view was destroyed
So flutter can stop rendering and gc its widget
2022-08-10 19:31:06 +01:00
Sergio Martins
65f23f9c30 flutter: Implement View::parentView() 2022-08-10 19:30:43 +01:00
Sergio Martins
667b9bb28c flutter: Add ViewWrapper
so we can implement View::parentView(), which returns a shared ptr
2022-08-10 19:29:41 +01:00
Sergio Martins
fb6175c4b3 Move the old ViewWrapper to qtcommon
Since it's Qt specific
2022-08-10 19:28:56 +01:00
Sergio Martins
192533647d flutter: Deal in StatefulWidget instead of PositionedWidget
So we can wrap PositionedWidget in something else
2022-08-09 19:07:18 +01:00
Sergio Martins
2afe86e63b flutter: Support showing a basic layout
Next step is adding a MouseRegion for the separators
2022-08-09 18:45:11 +01:00
Sergio Martins
b52070dc0e flutter: Support flutter telling kddw the side of the layout
DropArea's size isn't driven by kddw, that gets resized whenever
the user resizes the window. Flutter now tells KDDW the new size
2022-08-09 01:37:37 +01:00
Sergio Martins
3cbd437ee6 flutter: Regenerate bindings 2022-08-09 01:26:58 +01:00
Sergio Martins
532dc04ec6 Make View::onResized(QSize) receive 2 integers instead
Avoids an allocation when called by dart.
2022-08-09 01:25:56 +01:00
Sergio Martins
8050ca6259 flutter: Remove unneeded callbacks 2022-08-08 23:33:19 +01:00
Sergio Martins
f493c44729 flutter: Use keys instead of callbacks to update state 2022-08-08 22:49:56 +01:00
Sergio Martins
11301e2f0f flutter: PositionedWidget now takes reference for the mixin
Which is the common denominator
2022-08-07 21:36:40 +01:00
Sergio Martins
151bc356fc flutter: Stack, TabBar and TitleBar now also implement View_mixin 2022-08-07 16:08:14 +01:00
Sergio Martins
f4f7e4508b flutter: Group views now implement View_mixin 2022-08-07 16:02:43 +01:00
Sergio Martins
9cf99ff45c flutter: Use a mixin for the View's data
Group_flutter.dart doesn't inherit from View_flutter.dart, it inherits
directly from C++, so wasn't getting the data.

Since Dart doesn't support multiple inheritance we'll use a mixin
2022-08-07 15:56:13 +01:00
Sergio Martins
882f25c7f7 flutter: regenerate bindings 2022-08-07 14:51:00 +01:00
Sergio Martins
69c7d3fd57 Remove View::maximumSize() as we already have View::maxSizeHint()
Having both was due to QWidgets having both. For QtQuick and other
frontends we only want the latter.
2022-08-07 14:49:32 +01:00
Sergio Martins
62d8426ec4 flutter: Name the view method arguments in the header
While usually unneeded, it makes the bindings generator use
proper names instead of generic "arg1" type names.
2022-08-05 16:54:10 +01:00
Sergio Martins
d8189e3e03 .clang-format: wrap at column 100 2022-08-05 16:49:00 +01:00
Sergio Martins
9a4daf8926 flutter: Don't say we have 1 tab, there's 0 still
as the implementation isn't done yet, should fix a crash
2022-08-03 23:42:08 +01:00
Sergio Martins
4c1e45eea9 flutter: Make the ViewFactory return the actual view instances 2022-08-03 23:41:50 +01:00
Sergio Martins
98a7a0e017 flutter: Add a way to dump a dart backtrace
gdb can now call Platform::instance()->dumpManagedBacktrace()
2022-08-03 23:39:22 +01:00
Sergio Martins
c461721456 flutter: Generate bindings for Platform.h too 2022-08-03 23:32:09 +01:00
Sergio Martins
f634a1e3f7 flutter: Add bindings for the views 2022-08-03 12:32:38 +01:00
Sergio Martins
7a8222a063 flutter: Add dummy views
to be implemented as needed
2022-08-03 12:17:00 +01:00
Sergio Martins
35042c2bef Add dummy views to the dummy frontend
Easier to copy-paste to new frontends now.
2022-08-03 11:43:16 +01:00
Sergio Martins
c9c3fdc1a2 Add assert that there's a stack view interface
Helps catch bugs in flutter frontend
2022-08-03 10:03:39 +01:00
Sergio Martins
69c2c0770f tests: Add another test to tst_dropArea 2022-08-03 09:48:30 +01:00
Sergio Martins
3f32bc3dce tests: Move tst_droparea.cpp into tests/controllers/ 2022-08-03 09:24:03 +01:00
Sergio Martins
8a76c63983 flutter: Add bindings for Stack, TitleBar and TabBar 2022-08-03 00:14:36 +01:00
Sergio Martins
7cc4bae1b7 flutter: Regenerate bindings with newest dartagnan bug fixes 2022-08-02 22:56:51 +01:00
Sergio Martins
bf922a2ecb flutter: Add bindings for Group 2022-08-01 00:22:19 +01:00
Sergio Martins
27b8480da6 Make InitialOption's ctor public
Just mark it as internal.
Someone might think it's useful even if bugs reported won't be prioritized.
2022-08-01 00:17:10 +01:00
Sergio Martins
f97a660584 Remove deprecated function 2022-07-31 23:27:07 +01:00
Sergio Martins
6d30643672 Rename "acceptingFrame" to "acceptingGroup"
Frame class has been renamed to group some time ago already
2022-07-31 23:04:50 +01:00
Sergio Martins
e4b2d37f96 Rename "addWidget" to "addTab" 2022-07-31 23:03:16 +01:00
Sergio Martins
45ad75fcd4 flutter: Add multisplitter to the include path 2022-07-31 13:31:03 +01:00
Sergio Martins
8e5225224d flutter: Regenerate bindings
This time without readability tags so we can reduce diff size
2022-07-31 13:30:27 +01:00
Sergio Martins
8a65d2cc0b flutter: Added bindings for Item 2022-07-31 13:07:59 +01:00
Sergio Martins
cfb5c5e2fe flutter: Add InitialOption_wrapper 2022-07-31 13:02:27 +01:00
Sergio Martins
2c58580d06 flutter: Remove unneeded main.dart
We now depend on flutter, not just dart. So need an embedder
to actually run things.
2022-07-31 12:42:50 +01:00
Sergio Martins
4901b977a0 flutter: PositionedWidget can now fill parent 2022-07-31 12:34:59 +01:00
Sergio Martins
120557b8a6 flutter: A view can now be positioned and sized 2022-07-31 12:12:23 +01:00
Sergio Martins
3c51d201d5 reuse: Ignore .yaml config files 2022-07-31 11:49:57 +01:00
Sergio Martins
b1fcae9bc2 flutter: generate more bindings 2022-07-31 11:46:48 +01:00
Sergio Martins
ecd05ffbc5 flutter: Creating a DropArea almost works 2022-07-27 11:44:04 +01:00
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