Olivier Goffart
78a3757b7f
Remormat all the toml file again to fix npm upload
...
Commit cd6f2e2
reformated the .toml, but the 80 char width column is
judged too small to be practical
Add a .taplo.toml file
Also do not split feature array
2025-04-09 15:06:00 +02:00
Tobias Hunger
cd6f2e2cf2
ci: Format toml files
...
... using taplo with default settings
I tried this with 4 spaces indentation, but the patch is almost as
big as this one, so I went with default settings instead as that
is just easier:-)
2025-04-02 11:03:41 +02:00
Olivier Goffart
2e4353d3c9
Implement closing of popup menus
2025-02-10 20:27:43 +01:00
Yuri Astrakhan
4ae2627ade
A few more format arg inlining
...
Used these commands and some manual searching
```
cargo clippy --fix --all-targets --workspace --exclude gstreamer-player --exclude i-slint-backend-linuxkms --exclude uefi-demo --exclude ffmpeg -- -A clippy::all -W clippy::uninlined_format_args
cargo clippy --all-targets -- -A clippy::all -W clippy::uninlined_format_args
cargo clippy --fix -- -A clippy::all -W clippy::uninlined_format_args
```
2025-02-07 06:43:19 +01: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
Tobias Hunger
45c24803f2
compiler: Remove version info from SourceFile
again
...
... and fix the fallout of that change.
2024-08-21 16:55:13 +02:00
Simon Hausmann
c25a03d6f7
C++: Make it possible to split up the C++ code generated for a .slint file
...
Add a COMPILATION_UNITS argument to slint_target_sources that defines into how many .cpp files to split up a .slint file. The new default is now one.
2024-08-20 15:53:24 +02:00
Olivier Goffart
5dfa8d56dc
API review of the slint interpreter Compiler api
...
Closes #5466
2024-07-05 17:20:08 +02: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
Tobias Hunger
d9224cd58f
janitor: Use more workspace dependencies
2024-06-04 14:58:29 +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
Olivier Goffart
8996948fd1
Widgets tests: Also test C++
2024-05-07 14:56:53 +02:00
Olivier Goffart
6c58f4f492
C++ testing: gate under the experimental feature
2024-05-03 10:49:25 +02:00
Olivier Goffart
c5f857ffc9
Change callback: gate behind experimental flag
2024-05-02 22:25:53 +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
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
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
Wilston Oreo
bef532b5fc
Optional C++ namespaces ( #4759 )
...
Co-authored-by: Michael Winkelmann <michael@winkelmann.site>
2024-03-06 19:43:11 +01:00
Tobias Hunger
06b04e71b5
compiler: Return the TypeLoader
from compile_syntax_node
2024-02-29 19:35:52 +01:00
Simon Hausmann
d4a6c5774e
Add support for writing tests that run with all styles
...
Tests under tests/cases/for_each_style are run with all styles at least
in the Rust driver.
Amends 6bb9905191
to include a test that
using edited works.
2024-02-23 16:12:45 +01:00
Olivier Goffart
2a56542527
Use BufWriter also in some tests
2023-12-27 10:11:48 +01:00
Tobias Hunger
d785f2d5df
compiler: Store an optional version number with the document
...
A None value means the file on disk is the golden version.
We have an editor, the LSP and the preview that all need to at least
notice when they have newer data then their peers. So IMHO it makes
sense to have an optional document version around.
The language server protocol makes use of a version number already. This
patch moves that code into the compiler so that it is stored with the
actual data getting versioned.
2023-12-18 14:21:50 +01:00
J-P Nurmi
c5248c005e
Allow specifying paths for @library
imports
2023-10-20 16:47:00 +02:00
J-P Nurmi
030a33796e
Tests: add support for //ignore: <driver(s)>
2023-09-28 09:16:50 +02:00
Tobias Hunger
85e1c6020b
janitor: Use workspace dependnecies for the slint crates
...
This moves most of the version information we need to update into one
place.
Note that the workplace dependency features are in *addition* to any
feature set when using the workspace dependency. So we have all
workspace dependencies defined with `no-default-features = true`.
2023-09-25 16:34:16 +02:00
Tobias Hunger
d6695c55cb
Janitor: Use cargo workspace package data more
2023-09-25 16:34:16 +02:00
tronical
b8b9db4e42
Bump version number to 1.3.0
2023-09-05 15:46:36 +02:00
Tobias Hunger
05e9ce078a
Add a simplistic ComponentContainer
element
...
It just registers the type, nothing more.
2023-07-27 12:04:16 +02:00
Tobias Hunger
ad2c98937f
Disable embed test in C++
2023-07-27 12:04:16 +02:00
ogoffart
aebaa7d6c9
Bump version number to 1.2.0
2023-07-25 10:44:53 +00:00
Aurindam Jana
5a4a7fee63
Update royalty free license to 1.1 ( #2994 )
2023-07-10 10:12:11 +02:00
Olivier Goffart
aa8ef4e302
C++: add a "std" feature to the slint-cpp crate
...
And make it no_std otherwise
This is a first step towards getting C++ on MCU (#2136 )
2023-07-05 21:48:01 +02:00
ogoffart
c8c9496722
Bump version number to 1.1.1
2023-06-26 12:50:02 +00:00
Olivier Goffart
11dea135f7
Domain: slint-ui.com -> slint.dev
2023-06-16 10:55:08 +02:00
Tobias Hunger
04d1229685
Fix licnese information using xtask
2023-06-16 09:14:20 +02:00
ogoffart
641cab0e75
Bump version number to 1.1.0
2023-06-15 16:01:28 +00:00
Aurindam Jana
039e54a5de
Add royalty free license to files except examples and docs ( #2888 )
2023-06-15 11:20:50 +02:00
ogoffart
dfd5fc38b3
Bump version number to 1.0.3
2023-04-26 14:04:08 +00:00
ogoffart
53cce5bf44
Bump version number to 1.0.2
2023-04-26 11:33:16 +02:00
ogoffart
bd63218412
Bump version number to 1.0.1
2023-04-18 14:56:40 +00:00
ogoffart
e7f48512ee
Bump version number to 1.0.0
2023-02-03 11:07:15 +01:00
Olivier Goffart
a0d057b8b8
Enable the new syntax by default
2023-01-07 14:18:10 +01:00
ogoffart
ce07d078ce
Bump version number to 0.3.4
2022-12-16 09:36:15 +00:00
Florian Blasius
501c6af746
Add swr render test and driver ( #1955 )
...
* add test-driver-screenshots
* add screenshot based software renderer testing
* create reference screenshots for testing with test-driver-screenshots
* add documentation to testing `README.md`
2022-12-12 11:23:27 +01:00
ogoffart
fb02b4118b
Bump version number to 0.3.3
2022-11-28 13:11:11 +00:00
Olivier Goffart
c1c52a2b86
Make the test pass without defining the SLINT_EXPERIMENTAL_SYNTAX env variable
2022-11-21 22:01:52 +01:00
ogoffart
2171773a3e
Bump version number to 0.3.2
2022-10-28 09:30:14 +00:00