Olivier Goffart
b23f8ad997
Parse: accept changed callback without brace
...
For consistency with the normal callbacks
2025-08-29 14:49:47 +02:00
Varin Thakur
3640cb8b97
Allow simplified callback handler without curly braces, ( #8764 )
...
Closes #8401
ChangeLog: Callbacks handler no longer need curly-braces. Extra semi-colon is no longer an error.
2025-06-26 15:33:56 +02:00
Tasuku Suzuki
83db461f63
Transition: Introduce in-out to allow writing symmetry animation ( #8509 )
2025-05-26 09:17:22 +02:00
Olivier Goffart
76332c5e16
Improve a bit the error when the base of an element is missing
2025-01-06 10:47:05 +01:00
Olivier Goffart
cfa115affa
LSP: changed callbacks auto-completion
...
ChangeLog: LSP: auto-completion of changed callbacks
2024-09-26 18:20:03 +02:00
Olivier Goffart
3a59950751
Experimental support for named callback parameters
...
And use that in the lsp/ui implementation instead of comments.
This is only a parser support for now, the name is otherwise unused.
Hence I rather keep that experimental.
2024-08-19 14:10:01 +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
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
Olivier Goffart
32bf6608e9
Parse changed callbacks
2024-05-02 22:25:53 +02:00
Aurindam Jana
0cfeec1a31
Update Slint Community License ( #4994 )
...
Updated the version from 1.1 to 1.2
Renamed the header to "Slint Royalty-free Desktop, Mobile, and Web Applications License"
Added definition of "Mobile Application" and grant of right
Moved "Limitations" to 3rd section and "License Conditions - Attributions" to 2nd section
Added flexibility to choose between showing "MadeWithSlint" as a dialog/splash screen or on a public webpage
Moved the para on copyright notices to section under "Limitations"
2024-04-15 15:18:55 +02:00
Olivier Goffart
8628624296
fmt: Fix formatting of function argument declaration
...
Fix #4892
2024-03-20 22:35:53 +01:00
Olivier Goffart
c3a2ad1c45
fmt: format two way bindings
2024-03-11 10:39:55 +01:00
Olivier Goffart
8f001ac490
Add support for protected functions
...
Protected function can only be called from the direct base
Issue #3636
2023-10-11 10:50:50 +02:00
Aurindam Jana
5a4a7fee63
Update royalty free license to 1.1 ( #2994 )
2023-07-10 10:12:11 +02:00
Olivier Goffart
11dea135f7
Domain: slint-ui.com -> slint.dev
2023-06-16 10:55:08 +02:00
Aurindam Jana
039e54a5de
Add royalty free license to files except examples and docs ( #2888 )
2023-06-15 11:20:50 +02:00
Olivier Goffart
1cbd61145e
WIP: pure qualifier for callback and functions
2022-12-22 00:26:27 -08:00
Olivier Goffart
aeed3b48fc
Parser: fix parsing of "public function" in release mode
...
`consume()` does not advance whitespace, while `peek()` does. And the
`peek()` in the debug_assert meant that the behavior was different in
release and debug mode.
Use `expect` instead of consume as it skip over white space
2022-12-15 12:52:21 +01:00
Olivier Goffart
ed07cd825d
Make functions private by default unless annotated with 'public'
2022-12-06 14:56:25 +01:00
Olivier Goffart
851a910e41
Parser: Parse functions
2022-12-06 14:56:25 +01:00
Olivier Goffart
51933b99bb
New syntax for transitions, within the state
2022-11-22 15:16:54 +01:00
Olivier Goffart
d2ade4fd98
Document and enable the in / out keywords with the old component syntax ( #1879 )
...
But it still defaults to `in-out`
2022-11-21 18:41:35 +01:00
Olivier Goffart
dd4c701307
Rename input and output property to in, out and in-out
2022-11-08 15:25:20 +01:00
Olivier Goffart
5613fc4416
Rename inout property to input output
...
`inout` and `input` are too similar, so use a longer form for `inout`
CC https://github.com/slint-ui/slint/issues/191#issuecomment-1296176978
2022-10-31 14:57:52 +01:00
Olivier Goffart
69b15043d4
Gate the new syntax with an environment variable
2022-10-20 08:02:26 +02:00
Olivier Goffart
c1f4f4e96b
Start working on input/output properties
2022-10-20 08:02:26 +02:00
Olivier Goffart
98a922bf42
syntax_updater: Experimental support for input/output properties
2022-10-20 08:02:26 +02:00
Tobias Hunger
4230ac2572
Update copyright information to reflect name change
...
Also run resue over the codebase and fix complaints from that tool.
2022-02-09 10:27:47 +01:00
Tobias Hunger
e6b24bceec
[reorg]: Set up and populate the internal directory
...
Move "internal" crates into the `internal` directory. This first batch
includes most of sixtyfps_runtime but leaves the rendering backends
alone for now.
pre-commit applied some cleanups to the moved files:
- Consistent newline at end of file policy
- trimming trailing whitespace
- Formatting Cargo.toml files.
2022-01-31 16:00:50 +01:00