Commit graph

529 commits

Author SHA1 Message Date
Tasuku Suzuki
64b248cfa9 doc: remove duplicated backticks 2022-10-28 17:44:48 +02:00
ogoffart
2171773a3e Bump version number to 0.3.2 2022-10-28 09:30:14 +00:00
Olivier Goffart
4b3b96712a Revert "Prepare for release: add Cargo.lock and set the version number in the docs"
This reverts commit a8f93de554.

The release is done.
2022-10-28 11:13:07 +02:00
Olivier Goffart
a8f93de554 Prepare for release: add Cargo.lock and set the version number in the docs
We add the Cargo.lock for the release so that the tagged commit has it,
this will be usefull for the C++ users who build from source with a
tagged version of slint. Because we want to reduce the likelyhod that
they get compilation error in a dependent crate

This will be reverted after the release.
2022-10-28 09:42:20 +02:00
Olivier Goffart
17aa0d7203 Update version number in docs 2022-10-28 09:42:20 +02:00
Be
8953903b90 document ways around needing xcb and fontconfig at build time 2022-10-05 15:21:54 +02:00
Simon Hausmann
c07ae0bf12 doc: bump example MSVC version from 2019 to 2022
Since we also bumped the build tools example command line a few lines above.
2022-09-22 14:10:10 +02:00
Simon Hausmann
d3f34f3bdd janitor: Fix typo 2022-09-22 14:08:46 +02:00
Simon Hausmann
67994071b0 doc: Mention gcc 10 in the C++ prerequisites 2022-09-22 12:58:04 +02:00
Simon Hausmann
2b7343c4d4 Rework the Node.js section of the build guide
- Use Node.js as the name, as that's also what's on the website
- Link to the websites of the dependencies
- Move the Node.js API prerequisites below the C++ section, in order of priority
- Create a Node.js Tests section, similar to C++, just for running the tests
- Change the remaining Node.js API build section, similar to C++, to
  explain what's needed to build it from git and how to use it.
2022-09-22 12:56:18 +02:00
Simon Hausmann
e97e12d9d9 Minor doc polish
- "can do C++20" -> "supports C++20"
2022-09-22 12:56:18 +02:00
Simon Hausmann
3c664cdd82 Various fixes to the Slint Build Guide
- In order to -> To
- Use title case for section titles
- Elaborate in the indvidual sentences about testing and building what the
  prerequisites are, what the provided command lines accomplish and where
  the output can be found.
2022-09-22 12:56:18 +02:00
Simon Hausmann
ab338cc2af Bump MSVC from 2019 to 2022
The Skia binaries on Windows are built against the 2022 runtime, so
when linking the app we also need to provide that.
2022-09-22 12:56:18 +02:00
Joshua Goring
bf2e6a5ef7 Fix editor integrations link 2022-09-18 07:49:12 +02:00
ogoffart
261614b914 Bump version number to 0.3.1 2022-09-15 14:39:51 +02:00
Olivier Goffart
0186c717c3 Revert "Update docs url before release"
This reverts commit 2583acfc67.

Release was released
2022-09-14 16:34:57 +02:00
Simon Hausmann
8556ad0864 Refer to the release/0.3 branch instead of release/0.2 for the CMake docs 2022-09-14 15:45:16 +02:00
Olivier Goffart
2583acfc67 Update docs url before release 2022-09-14 14:50:29 +02:00
Olivier Goffart
2ada879b05 Update version number in the documentation 2022-09-14 14:47:44 +02:00
Simon Hausmann
dcb442b013 Fix warning in suggested cargo doc command line
Also enable the log feature.
2022-09-09 10:09:07 +02:00
Simon Hausmann
5352df1c61 Enable the document-features feature for the recommended cargo doc command line 2022-09-09 10:06:00 +02:00
Simon Hausmann
8ee88a53c1
MCU Doc fixes (#1615)
Various edits to the introduction of how to use Slint on MCUs.
2022-09-09 08:35:01 +02:00
Olivier Goffart
8850959a2c Rename the backend feature flags 2022-09-07 17:11:57 +02:00
Olivier Goffart
15fa69ef55 Rename the compat-0-2-0 feature to compat-0.3.0
But keep a compat-0-2-0 fome compatibility anyway
2022-09-07 14:09:07 +02:00
Tobias Hunger
8b66194aca Fix doc for renderer-software feature
Also fix casing in `mcu.md` headline
2022-09-07 10:11:11 +02:00
Tobias Hunger
d1d188f3e3 docs: Spellcheck 2022-09-07 10:11:11 +02:00
Tobias Hunger
639dcaf702 api: Rename module swrenderer to software_renderer
Also rename the `swrenderer` feature to `software-renderer`.
2022-09-07 10:11:11 +02:00
ogoffart
05a49da906 Bump version number to 0.3.0 2022-09-06 13:00:22 +02:00
Olivier Goffart
0085145d10 MCU documentation 2022-09-04 18:31:26 +02:00
Olivier Goffart
6d12b276a9
Polish of the rotation feature
- Add a check that this only Applies to Image element without children
 - Default the origin to the center of the Image
 - Add docs and test

cc: #1481
2022-08-30 12:10:42 +02:00
Simon Hausmann
f8d66cac2e Fix C++ testing instructions
There's no `test-driver-cpp` binary, but there's a package.
2022-08-18 17:00:13 +02:00
Miłosz Kosobucki
e85f8593a4 Fix typo and add backticks 2022-08-10 11:55:42 +02:00
Miłosz Kosobucki
445563d64d Remove unnecessary character in tutorial 2022-08-09 16:59:44 +02:00
Simon Hausmann
fe3d4b7177 Bump MSRV to 1.60 2022-07-26 09:20:52 +02:00
Olivier Goffart
3639ba2644 Don't expose the KeyEventType to .slint
This enum is not used in any builtin things anyway, so it shouldn't be
used at all in .slint code.
2022-07-22 12:23:52 +02:00
Olivier Goffart
ac4f3e97ad Change slint enum values to be PascalCase in rust
... while still being kebab-case in .slint

Some enums might become public API and we want to have them as
PascalCase to respect the rust conventions
2022-07-22 12:23:52 +02:00
Olivier Goffart
9bcd8ca236 Docs: Add example for aimation-tick 2022-07-11 17:49:28 +02:00
Olivier Goffart
92b4f52556 Make mod() a macro that can take generic types instead of just integer 2022-07-11 17:49:28 +02:00
Olivier Goffart
d48c590346 Add animation-tick() builtin function
Low level primitive allowing to build always running animations
2022-07-11 17:49:28 +02:00
Tobias Hunger
20c1c45253
Button: Implement support to make the Button a toggle (#1384)
Add flags that enable the Button to be used as a Toggle, e.g. for use in toolbars or similar places.

Co-authored-by: Simon Hausmann <hausmann@gmail.com>
2022-07-08 16:17:06 +02:00
aydwi
dafbcc8418 Update recipes.md
Fix a small namespace bug in C++ sample code for "Global Callbacks"
2022-07-06 21:53:54 +02:00
ogoffart
6b15d2e479 Bump version number to 0.2.6 2022-07-06 09:58:14 +00:00
Olivier Goffart
4a6de71c59 Revert "Change doc URL for the release"
This reverts commit 0ddca89f3b.

The release is done, go back to master
2022-07-06 11:54:09 +02:00
Olivier Goffart
8dfec21b30 docs: Actually fix md links containing anchors 2022-07-06 10:10:20 +02:00
Olivier Goffart
ffeb5c50c0 Docs: consistently put the property type in italic 2022-07-06 09:53:06 +02:00
Olivier Goffart
9f78674124 Fix links to enums in the docs
The JS was fixing links to `*.md` files, but not `*.md#foo`
2022-07-06 09:39:54 +02:00
Olivier Goffart
0ddca89f3b Change doc URL for the release 2022-07-06 09:32:32 +02:00
Olivier Goffart
6334bc433b Update version in docs 2022-07-06 09:31:30 +02:00
Tobias Hunger
07ad20a09c
Basic Slint accessibility support (#1294)
Implement basic accessibility (a11y) support, using the Qt backend.

_This should get us started, but accessibility support is an additional way to interact with UIs that is very different from the "graphical way" most users will interact with the UI. No single PR will "make a toolkit accessibility", this needs to be an ongoing effort!_

Parts of this PR:

* Add functions to access a11y-related properties to Component
* Add helper functions to Item struct 
* Handle accessible- properties in the compiler
* Add documentation, add description, enforce some basic rules
* Make the Text element accessible by default
* Don't optimize away accessibility property in the LLR
* Ensure that accessibility property are marked as used
* Add some accessibility properties to the native style widgets
* Support for bool and integer `accessible` properties
* Implement basic support for accessibility
* Make basic widgets accessible by default
* Make slider focus-able and interactable with keyboard
* Tell a11y layer about value changes
* Generate QAccessible constants using bindgen
* Don't expose the `accessible` properties when using the MCU backend: There is no backend to make use of them
* Handle focus change based on keyboard focus of the window
* Report accessible widgets at correct positions
* Allow for (virtual) focus delegation at the a11y level
* Calculate value step size dynamically
* Make sure to not send notifications to a11y backend about dead objects
2022-06-08 20:42:10 +02:00
pubg-hacks
aed71311ca Add a read-only propery to TextInput, LineEdit and TextEdit 2022-06-08 09:23:01 +02:00