Simon Hausmann
4591ad8d57
Add plumbing for system testing
2024-06-13 04:03:17 -07:00
Simon Hausmann
5247b0afae
Add ElementHandle::accessible_role() to the C++ API ( #5388 )
2024-06-13 06:32:25 +02:00
Simon Hausmann
76e265c13c
slint-esp: Remove rotation parameter from older slint_esp_init overload
...
Commit 88e1a366a3
stabilized the rotation support and commit 1378d6e3bc
adds new API to select rotation in the esp-idf integration.
The previous rotation parameter was behind the experimental flag. Now that we have a "cleaner" API, we might as well remove the old experiment in favor of the newer API.
2024-06-11 04:05:28 -07:00
Simon Hausmann
1378d6e3bc
Make it possible to use slint-esp with displays that expect little endian ordered RGB565 pixels ( #5344 )
...
We can't automatically determine what the display supports, so we need to make this an opt-in - just like it is with LVGL.
2024-06-11 11:30:42 +02:00
Olivier Goffart
58826ddd94
Testing C++ API: add a visitor over the ElementHandle
2024-06-10 15:52:40 +02:00
Simon Hausmann
88e1a366a3
Make rendering rotation a public feature of the software renderer
...
Fixes #5372
2024-06-10 05:24:48 -07:00
Simon Hausmann
650f19a33c
Re-run clang-format with version 18
2024-06-10 02:25:40 -07:00
Olivier Goffart
a780dd4905
Testing: Fix duplicated accessibility element
...
This fix the C++ todo test that wasn't run because of a typo
When an element is optimized in another one, only the first one should
report the accessible properties. (because element with accessible
properties cannot be optimized so they are always the first)
2024-06-07 13:18:12 +02:00
Olivier Goffart
445802c46d
date_time: simplification and cleanups
2024-06-06 09:03:50 +02:00
Olivier Goffart
3da0ee5bb9
DatePicker: Logic in C++
...
Had to simplify a bit the rust logic to make it work
2024-06-06 09:03:50 +02:00
Florian Blasius
973ecac989
DatePicker: finished features
2024-06-06 09:03:50 +02: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
Florian Blasius
3ccee816be
Added TimePicker widget ( #5251 )
2024-06-05 15:23:06 +02: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
a752851d0f
Expose element type names and ids in Rust and C++
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
ogoffart
3a6e34ba45
Bump version number to 1.7.0
2024-06-04 20:34:29 +00: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
Aurindam Jana
a9d8209ab1
Update License related info in FAQ and README
2024-06-01 02:39:33 +02:00
Aurindam Jana
3523e86359
Simplify commercial license ( #3063 )
...
Base the commercial license on the Royalty-free license adding clauses pertaining to the fees.
2024-05-31 14:06:17 +02:00
Aurindam Jana
9a3aa265d5
Update Royalty-free license ( #5257 )
...
Add clarification that Application may not expose Slint APIs.
2024-05-31 10:53:19 +02:00
Montel Laurent
f63523f708
Add increase/decrease support test ( #5224 )
2024-05-14 10:40:12 +02:00
Montel Laurent
c37c9d4f26
Testing: Add minimum/maximum support ( #5192 )
2024-05-10 16:18:02 +02:00
Simon Hausmann
eb85b7d359
Fix reset() on MappedModel
...
Use the right target template mapped type.
2024-05-09 10:50:49 +02:00
Olivier Goffart
5c3732c74e
C++: fix string to float so that it doesn't depends on the current locale
2024-05-07 14:58:07 +02:00
Montel Laurent
f8f3316dc1
Allow to check checkable support ( #5186 )
2024-05-07 13:44:14 +02:00
Olivier Goffart
6c58f4f492
C++ testing: gate under the experimental feature
2024-05-03 10:49:25 +02:00
Olivier Goffart
80f37a3acf
C++ ChangeTracker implementation
2024-05-02 22:25:53 +02:00
Olivier Goffart
6a15a1d69a
Janitor: upgrade corrosion
2024-05-02 18:43:47 +02:00
Olivier Goffart
12d904a71c
Fix compiler panic with init in a component inlined into a repeater
...
The problem was that the code from #4322 inlined the init code in the
parent Component as at that point, the per-repeater component don't
exist yet.
Fix it by removing the workaround from #4322 , but changing the order of
the passes so that the init code are already proccessed before any
inlining. This required to change the order of a bunch of passes.
Fixes #5146
As a drive-by, also add the missing C++ implementation of set_animated_value
for Brush that was discovered by the test. (Code wouldn't compile)
2024-04-29 15:34:12 +02:00
Olivier Goffart
15f09c9224
Testing: expose the description and the checked accessible property
...
also rename default_action to accessible_default_action
2024-04-26 15:09:37 +02:00
Olivier Goffart
5955d19706
Expose the individual rectangle in the dirty region
2024-04-26 14:45:23 +02:00
Simon Hausmann
31767eb6ab
Add a clear-focus()
function on all elements that have a focus()
function
...
This is the counter-part, which removes focus from the element if it's currently focused. The window - if focused - may still be focused towards the windowing system.
2024-04-26 11:09:11 +02:00
Simon Hausmann
7683f805a5
janitor: Remove dead code
...
Co-authored-by: Olivier Goffart <olivier.goffart@slint.dev>
2024-04-24 10:39:03 +02:00
Simon Hausmann
d8c1096149
Testing: Change ElementReference to be weak
...
We don't want testing variables to affect the life-cycle of elements in the UI.
2024-04-24 10:39:03 +02:00
Olivier Goffart
7c3f8683b7
C++: Move internal testing function to the internal namespace
...
Remove send_keyboard_char as it doesn't appear to be used
(while send_keyboard_string_sequence is used in a single test)
2024-04-23 11:19:14 +02:00
Olivier Goffart
4856f387ee
C++ Todo example: add test
2024-04-22 13:54:28 +02:00
Olivier Goffart
5a4713aa17
C++: add #pragma once
to generated file
2024-04-22 13:06:05 +02:00
Olivier Goffart
475ced0a62
C++ testing API: Intreoduce the ElementHandle
2024-04-22 11:28:12 +02:00
Olivier Goffart
13fe59cc2e
C++: Move the internal test helper in the private_api namespace
...
in a different file
2024-04-22 11:28:12 +02:00
Olivier Goffart
808b1ef946
Add a function to mark translated strings as dirty
2024-04-18 19:23:57 +02:00
Olivier Goffart
d4741efac0
testing: rename the init function
2024-04-18 18:45:31 +02:00
Olivier Goffart
8030732f46
Refactor the testing backend
...
Move code around and gate the internal functions used in our own tests
so we can make the testing backend public
2024-04-18 18:45:31 +02:00
Simon Hausmann
98a34e5d9b
Fix Windows C++ binary package file name (attempt 4)
...
CPACK_SYSTEM_NAME is not defined until including CPack.cmake, which
has to happen last. So do it by hand.
2024-04-17 07:16:44 +02:00
Simon Hausmann
35605af303
Fix Windows C++ binary package file name (attempt 3)
...
CPACK_SYSTEM_NAME is what we used before, and that has the win64 suffix
that the prepare_release job in nightly_snapshot.yaml expects. Also
fixed the docs to add the missing MSVC suffix that's new.
2024-04-16 17:50:59 +02:00
Simon Hausmann
20431b41bb
C++: Fix build with nightly Rust
...
Cargo disallows dashes in library target names (lib.name in Cargo.toml), but when not set it uses
the package name. That meant that dashes snuck in and https://github.com/rust-lang/cargo/pull/12783 fixes that.
The targets Corrosion creates correspond to the library name, so after that change it's slint_cpp.
To make this work with stable cargo, explicitly switch lib.name to slint_cpp.
2024-04-16 15:59:43 +02:00
Olivier Goffart
13127dc71c
Accessibility: Add support for accessibility-action-* callback ( #5073 )
...
Merge branch 'feature/accessibility'
Conflicts:
internal/compiler/widgets/cosmic-base/button.slint
internal/compiler/widgets/cupertino-base/button.slint
internal/compiler/widgets/fluent-base/button.slint
internal/compiler/widgets/material-base/button.slint
Also updated license header in actions.slint
2024-04-16 15:02:25 +02:00