Florian Blasius
973ecac989
DatePicker: finished features
2024-06-06 09:03:50 +02:00
Florian Blasius
f75cedb893
DatePicker: calendar
2024-06-06 09:03:50 +02:00
Florian Blasius
fe6dba9779
DatePicker: base setup
2024-06-06 09:03:50 +02:00
Arnold Loubriat
8ece16321b
Add DefaultActionVerb
to AccessKit nodes
2024-06-06 00:01:29 -07:00
Update Translations Bot
cad11c821f
Update Translations: extract strings
2024-06-06 03:04:27 +00:00
Simon Hausmann
41094b242f
Remove unused import
2024-06-05 14:06:10 -07:00
Simon Hausmann
8aaa388328
Node.js: Use new public interpreter API
2024-06-05 14:06:10 -07:00
Simon Hausmann
b98035526b
Python: Add the ability to invoke functions declared in Slint from Python
2024-06-05 14:06:10 -07:00
Simon Hausmann
37b63e4bd4
Add public API in the interpreter (Rust/C++) to obtain the list of functions
2024-06-05 14:06:10 -07:00
Simon Hausmann
6f2a6c3f09
CMake: Add support for LIBRARY_PATHS to slint_target_sources
...
This makes it possible to use component libraries with C++.
2024-06-05 11:07:12 -07:00
Simon Hausmann
b9052ecf8a
Bump Python alpha tag
2024-06-05 11:00:25 -07:00
Simon Hausmann
b162e9df45
Make it possible to toggle the state of checkboxes via accessibility
2024-06-05 09:51:41 -07:00
Simon Hausmann
28cff6628d
Add a test for looking up elements by id that are conditional
2024-06-05 09:51:13 -07:00
Simon Hausmann
10b923962f
Try upgrading llvm on the windows github VMs as latest skia wants >= 17
2024-06-05 08:12:01 -07:00
Florian Blasius
3ccee816be
Added TimePicker widget ( #5251 )
2024-06-05 15:23:06 +02:00
Simon Hausmann
ef11ccfd2d
Fix @tr context docs example
...
The example that shows the default context should not have a specified context :)
2024-06-05 14:26:03 +02:00
Olivier Goffart
731f5bf1ed
Revert "Fix failing CI for no_std builds"
...
This reverts commit 1a9d09be62
.
A new version of strum_macros was released
2024-06-05 12:52:24 +02:00
Olivier Goffart
7f014050ac
Qt StandardTableView: properly elide the cell in the text
...
Contrary to the ListView that needs a minimum size and can be scrolled,
the TableView needs the cell to be ellided and don't have a minimum size
Fixes #5285
2024-06-05 12:29:43 +02:00
Simon Hausmann
15b517a554
Emit a warning to stderr (debug_log) when using the ElementHandle API but there's no debug info present
2024-06-05 01:29:58 -07:00
Simon Hausmann
622991a627
Fix ElementHandle::find_by_element_id docs
...
Describe what an id is and provide an example.
2024-06-05 01:29:58 -07:00
Simon Hausmann
7af0e7ae7c
Add C++ API for find_by_element_type_name
2024-06-05 01:29:58 -07:00
Simon Hausmann
1a8ce3c659
Add support for optimized rectangles in ElementHandle
...
Keep merging elements, but remember the boundaries in the debug info, separated by a slash.
Also fixed tests that rely on accessible-label being set only once. For example
```
Button { text: "foo"; }
```
will certainly have "foo" as accessible-label on `Button`, but its internal `Text` element has
an implicit "accessible-label" set to the same
value.
So don't rely on that for now but search by id instead.
2024-06-05 01:29:58 -07:00
Simon Hausmann
c27cbb94a6
Simplify spinbox test
...
Replace dummy accessible-label use with the new element id lookup mechanism for testing.
2024-06-05 01:29:58 -07:00
Simon Hausmann
a752851d0f
Expose element type names and ids in Rust and C++
2024-06-05 01:29:58 -07:00
Simon Hausmann
4eef2d4936
WIP: Add find_by_element_type_name
2024-06-05 01:29:58 -07:00
Simon Hausmann
a52fe6bbfc
Make element debug information configurable
...
The `SLINT_EMIT_DEBUG_INFO` environment variable needs to be set for Rust and C++ builds. For the interpreter it's always enabled, since ... we have it.
2024-06-05 01:29:58 -07:00
Olivier Goffart
43a336b534
C++ part of element_ids
...
Simplify a bit the llr generation so that there is less code duplication
between Rust and C++
2024-06-05 01:29:58 -07:00
Olivier Goffart
8add2e4ebd
element_ids: Can't return a SharedString by value from the vtable
...
also compile the LSP
2024-06-05 01:29:58 -07:00
Simon Hausmann
73b5136f98
WIP: Search by qualified element id
2024-06-05 01:29:58 -07:00
Simon Hausmann
5bfa6044b5
Don't optimized away rectangles that have dedicated accessibility roles
2024-06-05 01:29:58 -07:00
Simon Hausmann
e0c0e8d09c
Python: reset alpha version suffix
2024-06-04 13:59:49 -07:00
ogoffart
3a6e34ba45
Bump version number to 1.7.0
2024-06-04 20:34:29 +00:00
Olivier Goffart
9978cb1c0f
node: expose functions
2024-06-04 17:55:14 +02:00
Simon Hausmann
9e2db465da
Remove non-existent quickstarts from the nightly doc publishing stop
...
The quickstarts are now in the Slint reference.
2024-06-04 16:56:24 +02:00
Chris Chinchilla
ab9d7f342b
Consolidate language tutorials ( #5037 )
...
All the language tutorials are merged into the Slint reference as "quick starts".
2024-06-04 16:54:36 +02:00
Olivier Goffart
5389367895
Interpreter: accessing model index should track model length if the index is out of bounds
...
The Rust and C++ code already used row_data_tracked, which do the right thing.
Fixes #5291
2024-06-04 15:52:37 +02:00
Olivier Goffart
94af4d2832
Don't optimize array
...
They are model and if the model is copied, the changes in model need to
apply to all copies.
Fixes #5249
2024-06-04 15:24:36 +02:00
Aurindam Jana
48b628c3fa
Update nightly_snapshot.yaml
...
Adjust redirections on releases.slint.dev
2024-06-04 15:17:34 +02:00
Tobias Hunger
d9224cd58f
janitor: Use more workspace dependencies
2024-06-04 14:58:29 +02:00
Simon Hausmann
623bae7732
Internalize hack for dynamic translations change so that it also works for Rust apps
2024-06-04 04:33:10 -07:00
Olivier Goffart
66652cdc1d
Add a warning if a PopupWindow is in a layout
...
This is not intuitive since the position of the PopupWindow will not be
handled by the Layout
2024-06-04 13:31:36 +02:00
Olivier Goffart
78f265f811
Don't remove the Row item if it has a PopupMenu
...
Otherwise the access to the PopupMenu parent will fail to compute the
x,y position of the popup as the popup's reference the Row as its
parent.
Fixes #5259
2024-06-04 13:31:36 +02:00
Aurindam Jana
03556c6362
Update README.md
...
Update broken links to tutorials
2024-06-04 11:23:31 +02:00
Tobias Hunger
2d849d3df1
live-preview: Fix moving of elements
...
Fixes : #5296
2024-06-03 19:24:46 +02:00
Simon Hausmann
439b11edf3
Remove workaround for Skia bug on macOS
...
While https://github.com/google/skia/pull/162 has not been merged yet,
it's included in skia-safe:
https://github.com/rust-skia/rust-skia/pull/986
2024-06-03 08:35:26 -07:00
Simon Hausmann
ef8299a394
Bump Skia Rust bindings to 0.75
...
This updates Skia to milestone 126 and (among other things) fixes
SKIA_DEBUG=1 builds.
See https://github.com/rust-skia/rust-skia/releases/tag/0.75.0 for more
details.
2024-06-03 08:35:26 -07:00
Tobias Hunger
b4c89bb29a
janitor: Fix warning about using for
to iterate over an &Option
2024-06-03 16:59:54 +02:00
Olivier Goffart
dea51f2055
Android: fix content positioning
...
The getWindowVisibleDisplayFrame seems to return a rectangle in the screen coordinate and cut the room for the camera.
The problem is that the Window is somehow already displaced.
The insets seems to be a better way to get that value.
Fixes #5242
2024-06-03 16:53:29 +02:00
Olivier Goffart
b3181b05a2
Android: clear the native focus when the keyboard hides
...
Otherwise the keyboard will popup again when the app is switched to the
background and back.
Fixes #5235
2024-06-03 16:27:47 +02:00
Olivier Goffart
a1e7f85892
Android: Always hide cursor/selection handle when the keyboard hides
...
Fixes #5233
2024-06-03 16:21:47 +02:00