Simon Hausmann
1888e58735
Add API to set the XDG app id
...
ChangeLog: Added function to set the XDG app id on Wayland/X11. This needs to be added with respective function names in the language sections.
Fixes #1332
2024-11-22 11:24:06 +01:00
FloVanGH
6ebce7e5f4
cpp: added to_lowercase and to_uppercase to SharedString ( #6869 )
...
* cpp: added to_lowercase and to_uppercase to SharedString
* Update api/cpp/include/slint_string.h
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update api/cpp/include/slint_string.h
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update api/cpp/include/slint_string.h
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update api/cpp/include/slint_string.h
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update internal/core/string.rs
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update internal/core/string.rs
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update internal/core/string.rs
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update internal/core/string.rs
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* code review feedback
* Update api/cpp/tests/datastructures.cpp
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* code review feedback
* Update api/cpp/include/slint_string.h
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
* Update api/cpp/include/slint_string.h
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
2024-11-21 18:53:02 +00:00
Olivier Goffart
5bd20def0e
Experimental support for MenuBar
...
Introduces `MenuBar{ ... }` that can be put in a Window
2024-11-20 09:25:37 +01:00
Olivier Goffart
d68b84a3f1
Change API to set the language with bundle translation
...
* Change API to set the language with bundle translation
Part of #6793
2024-11-17 11:40:02 +01:00
Simon Hausmann
a7a3b3f9ee
Changelog: C++: Add slint::Window::take_snapshot()
...
Corresponds to the Rust API.
2024-11-13 12:38:36 +01:00
Brandon Fowler
6da0f55b05
Associate PopupWindow
s with an ID for their active popup ( #6693 )
...
Popups are stored in a HashMap and are assigned an ID so popup.close(); closes the correct popup and so a single PopupWindow cannot be opened multiple times
2024-11-04 09:17:55 +01:00
Arnold Loubriat
97219c21bf
Add the accessible-size-of-set
property
2024-10-30 15:54:01 +08:00
Arnold Loubriat
67166fcc2d
Add the accessible-position-in-set
property
2024-10-30 15:54:01 +08:00
Olivier Goffart
95f5685789
Bundle translations ( #6661 )
...
This currently doesn't have public API to enable it yet.
TODO:
- Error handling in the compiler
- Public API in the compiler configuration
- Documentation
2024-10-29 15:07:15 +01:00
DataTriny
2de3b9d455
Add the accessible-enabled
property
2024-10-25 10:20:09 +02:00
FloVanGH
14c7910d49
PopupWindow: added close-policy property ( #6614 )
...
* Update api/cpp/include/slint_window.h
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update docs/reference/src/language/builtins/elements.md
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
* Update internal/core/window.rs
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update internal/interpreter/eval.rs
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
* Update internal/backends/qt/qt_window.rs
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update internal/interpreter/dynamic_item_tree.rs
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update internal/compiler/passes/materialize_fake_properties.rs
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
2024-10-24 09:27:39 +00:00
Arnold Loubriat
19f09950c2
Changelog: Add accessible-selectable
and accessible-selected
properties
2024-10-16 15:38:46 +02:00
U. Bruhin
40811193aa
C++: Add size() method to SharedString ( #6417 )
...
The length is an important property of a string and should be available
as a getter. The new size() method is consistent with std::string.
ChangeLog: [C++] Added `SharedString::size()`
2024-10-01 14:51:56 +02:00
Simon Hausmann
7db5024c52
Generate bindings of Image::to_rgb8/to_rgba8/to_rgba8_premultiplied f… ( #6405 )
...
ChangeLog: [C++] Add `Image::to_rgb8/to_rgba8/to_rgba8_premultiplied` pixel buffer accessors.
Fixes #6399
2024-10-01 10:55:11 +02:00
Olivier Goffart
d2bd5366f4
Timer::set_interval
...
Don't return an Option, just return 0 when the timer is not started.
As discussed in the API review, the rational is that the interval is
just like a field in a struct and when the struct is default
constructed, it is initialized to 0
2024-09-18 09:24:39 +02:00
Simon Hausmann
4d585279b0
STM32: Add support for rendering rotation
2024-08-30 08:49:26 +02:00
Simon Hausmann
d78354f01b
Initial import of STM32 Platform Integration ( #5892 )
...
This is a head-only library for now.
2024-08-22 15:55:01 +02:00
Olivier Goffart
a9f526491a
Timer Element
...
Closes #5724
2024-08-16 16:36:38 +02:00
Olivier Goffart
0f8246d598
C++: add assert_main_thread to public functions in the Window
...
Some have it some don't. Just add it everywhere.
See https://github.com/slint-ui/slint/discussions/5762
2024-08-06 22:52:45 +02:00
Simon Hausmann
8a7db55bb6
Route debug() calls in Slint consistently through Platform's debug_log() ( #5718 )
2024-07-29 16:31:09 +02:00
Simon Hausmann
bda89c25da
Document that availability of slint::testing is conditional to enabling the feature and experimental features.
2024-07-11 11:47:09 +02:00
Simon Hausmann
27dc6e53c0
API review: enable all features in the C++ docs ( #5592 )
...
And make sure that functions excluded when freestanding is enabled are included in the docs.
2024-07-11 08:29:51 +02:00
Olivier Goffart
e67e46ab47
LLR: merge the popup's x and y property access in one expression
2024-07-10 17:54:03 +02:00
Simon Hausmann
419042f476
Add support for using own properties in PopupWindow's x and y properties
...
This allows positioning popup windows in a way that takes their width/height into account.
2024-07-10 13:43:41 +02:00
Olivier Goffart
42d7661ec6
C++: make the PhysicalRegion::rectangles non-overlapping
2024-07-10 10:58:27 +02:00
Arnold Loubriat
ce2db77e88
Add the accessible-placeholder-text
property ( #5464 )
2024-06-26 12:59:22 +02:00
Olivier Goffart
d0cdebfee6
C++: move globals in a different struct
...
So that subcomponent don't depend on the root component name
which will hallow to have several root components
2024-06-14 16:26:53 +02:00
Olivier Goffart
4cc6337c42
Rust: Don't get the default font size through the root component
...
Planning for multi-component support
2024-06-13 13:53:07 +02:00
Simon Hausmann
5247b0afae
Add ElementHandle::accessible_role() to the C++ API ( #5388 )
2024-06-13 06:32:25 +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
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
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
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
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
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
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