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
Tobias Hunger
704cfff41f
lsp: Rename components
...
Only handle rename requests when on the component name in the component
definition.
Handle exports/imports in the entire project as needed.
2024-06-03 16:12:31 +02:00
Tobias Hunger
97cd00ffd8
lsp: Improve text edit helpers
2024-06-03 16:12:31 +02:00
Olivier Goffart
ce1b4f32e8
Janitor: fix formatting
2024-06-03 16:05:51 +02:00
Tobias Hunger
199a7286a8
tree-sitter: Relicense grammar.js to MIT
...
Code is generated from grammar.js, which gets built into a library. That
library gets loaded by a text editor. So someone might argue that the GPL might
infect that text editor.
We do not want that argument to come up, so let's use MIT for that code.
2024-06-03 11:11:35 +02:00
Simon Hausmann
538050f65a
Switch the esp-idf based s3 box examples to use the s3 box 3
...
The original box isn't produced anymore.
2024-06-03 01:39:13 -07:00
Arnold Loubriat
0b8a0a90dd
Also fix the Qt theme
2024-06-03 01:38:06 -07:00
Arnold Loubriat
2e5ebe2668
Address review comments
2024-06-03 01:38:06 -07:00
Arnold Loubriat
f97de46c6f
Set accessible min/max values on progress indicator widgets
2024-06-03 01:38:06 -07:00
Simon Hausmann
1a9d09be62
Fix failing CI for no_std builds
...
Patch in https://github.com/Peternator7/strum/pull/360 until it is
merged and released on crates.io.
2024-06-03 09:56:54 +02:00
Olivier Goffart
b80f4552bd
LSP auto-completion: suggests unimported globals in expressions
...
For example, propose to auto-complete Palette and add the import
statements from std-widgets
2024-06-01 10:08:17 +02:00
Aurindam Jana
a9d8209ab1
Update License related info in FAQ and README
2024-06-01 02:39:33 +02:00
Simon Hausmann
d183498c4e
Add support for step-size to SpinBox rendered by the Qt style
...
Fixes #5325
2024-05-31 09:45:29 -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
Olivier Goffart
f25a7c721a
Implement the Error trait for our errors
2024-05-31 13:13:12 +02:00
Florian Blasius
dc4e421f2c
Added step-size to SpinBox ( #5293 )
2024-05-31 09:45:37 +00: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
Olivier Goffart
8221e2e4b2
Fix stack overflow in purity check
...
Fix #5220
2024-05-29 06:42:37 +02:00
Olivier Goffart
bc8e18e148
Fix compiler panic when trying to set a function in a state
...
Fixes #5246
2024-05-28 17:25:15 +02:00
Olivier Goffart
3f32550859
Fix property access from inlined init code
...
The `fixup_init_expression` was not called for every instructions when it was inlined,
causing invalid code in further passes
Fixes #5260
2024-05-28 16:24:38 +02:00
Olivier Goffart
61233d8f6b
Only mark builtin StyleMetrics as deprectated.
...
User defined component or global named StyleMetrics shouldn't be deprecated
2024-05-28 13:45:56 +02:00
Olivier Goffart
1feb612633
Docs: Fix documentation of easing curve
...
Don't duplicate the list of easing. Refer to the list in the animation page.
The list in types.md was out of date
2024-05-28 12:04:05 +02:00
Simon Hausmann
fbc441c372
Fix invoke_accessible_increment/decrement_action docs
...
They invoke a callback, not change a property.
2024-05-27 18:52:16 +02:00
Olivier Goffart
1040946d7f
Fix rust warnings in generated code with changed callbacks
...
We sometimes generate dead code or unused variables for our expressions.
Most code is already covered with the `#[allow]`, so we need to also
allow it for callbaks
2024-05-27 17:51:02 +02:00
Tobias Hunger
d852e42431
compiler: Add ConditionalElement
as a possible child of Element
...
It's not critical, but nice to have this option documnted (and the code
to find all `ConditionalElement`s generated).
2024-05-27 16:53:22 +02:00
Wilston Oreo
23f7a7864d
Some Android and MCU doc ( #5286 )
...
MCU: Add missing info for software renderer
Android: Add some more details for dev env setup
2024-05-22 18:25:44 +02:00
Tobias Hunger
86b5686425
live-preview: Fox off-by-one in Text edit application
2024-05-22 17:10:07 +02:00