Commit graph

609 commits

Author SHA1 Message Date
Tobias Hunger
78892cdf1f docs: Fix broken links in our docs. 2023-02-22 17:08:30 +01:00
Tobias Hunger
e34cbd5446
docs: Polish the langref concepts (#2241)
Lots of back and forth on formulations.

Co-authored-by: Simon Hausmann <hausmann@gmail.com>
Co-authored-by: Olivier Goffart <olivier@woboq.com>
2023-02-22 10:22:18 +01:00
Florian Blasius
1b04601750
std-list-view: bring selected into view (#2246)
* std-list-view: bring selected into view

* Update internal/compiler/widgets/fluent-base/std-widgets-base.slint

Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>

* code review

---------

Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
2023-02-17 13:50:09 +01:00
Tobias Hunger
ef28eb80c4
docs: Split up concepts.md in the langref concepts section 2023-02-16 11:25:06 +01:00
Tobias Hunger
582b07e61c
docs: Move langref concepts into a separate folder 2023-02-16 11:25:02 +01:00
Olivier Goffart
fd6c80a590 Set MSRV to 1.66 2023-02-16 09:03:22 +01:00
Tobias Hunger
1a31c9a50b
docs: Polish the C++ docs (#2229) 2023-02-15 15:47:45 +01:00
Tobias Hunger
e1e4be2497
Use sphinx to generate the Slint language reference (#2218)
* docs: Move the langref to sphinx

* docs: Use sphinx to build nighly doc snapshot of langref
2023-02-10 11:51:36 +01:00
Olivier Goffart
6889dfa5f5 Rust: Make new(), run() and show() report errors from the backend
Fixes #2198
2023-02-10 05:00:03 +01:00
Tobias Hunger
e8ee468cc6 xtask: Sort enums when generating enum docs
It's much easier for humans to find entries that way!
2023-02-09 18:31:34 +01:00
Tobias Hunger
e64e15e277 docs: Modernize the tutorials for 1.0 2023-02-09 16:59:25 +01:00
Simon Hausmann
f59428f029
Fix distro name 2023-02-08 18:40:39 +01:00
Simon Hausmann
f45c4d09b1 Add some basic readme about running the Torizon demos 2023-02-08 17:50:07 +01:00
Tobias Hunger
6e6d8f2d48 docs: Update highlight definition
Add new 1.0 keywords into highlight definition, sort keywords and remove
duplicates.
2023-02-08 14:20:18 +01:00
Tobias Hunger
cd43270293
docs: Polish Slint language reference (#2193)
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
Co-authored-by: Olivier Goffart <olivier.goffart@slint-ui.com>
2023-02-08 11:34:42 +01:00
Tobias Hunger
1370bd771f docs: Add tutorials to docs summary page 2023-02-07 12:10:07 +01:00
Tobias Hunger
d93445bd0b docs: Remove inline langref documentation and link the mdbook
For node and cpp, I use relative links to point to the slint language
reference documentation.

For the slint crate documentation I create a link to
https://slint-ui.com/releases/VERSION/... instead: This needs to work from
docs.rs as well as from our own docs area on slint-ui.com! That is
pretty ugly: I can not even define constants for this as the crate docs
need to come before anything else.
2023-02-07 12:10:07 +01:00
Tobias Hunger
5891f7e478 docs: Add index.html into the docs area
Add a simple index.html to the docs area and link to the supported
languages from there.
2023-02-07 12:10:07 +01:00
Simon Hausmann
9381f00e04 doc: Fix button recipe talking about := syntax for component declaration 2023-02-06 08:53:58 +01:00
ogoffart
e7f48512ee Bump version number to 1.0.0 2023-02-03 11:07:15 +01:00
Miłosz Kosobucki
9cc3b9c1fa Fix link to brushes section 2023-02-02 10:47:27 +01:00
Tobias Hunger
d50643e1b8 docs: Move widgets and builtin docs into langref 2023-01-31 15:08:52 +01:00
Tobias Hunger
81d18a6b84 docs: Turn langref.md into an mdbook
This is just the straight conversion, keeping the document structure,
layout, spelling, etc.

The langref.md is still in place as that is still referenced by the
rust/c++ docs.
2023-01-31 15:08:52 +01:00
Simon Hausmann
448b216bd8 Second stage of cleaning up the export handling of the slint root component
Commit 24dcef5fed added a warning for the
implicit export of last component. For 1.0, this commit makes it so that
the root component is determined by the last export in the file.
2023-01-26 15:52:40 +01:00
Olivier Goffart
ae20ec59c8 Rename PointerEventButton::None to PointerEventButton::Other
And mark the enum non_exhaustive

closes #1903
2023-01-26 13:36:54 +01:00
Olivier Goffart
a7239bb236 Revert "Prepare for release"
This reverts commit 515f069317.
2023-01-25 15:22:48 +01:00
Simon Hausmann
cfe43e84e3 doc: Polish line break for text edit preview
Do the manual break after the comma, not before, so that the comma doesn't show up as
first character on the next line (that's weird).
2023-01-25 13:51:01 +01:00
Simon Hausmann
f970f2fc90 Fix combobox positioning in widget preview
Move it up so that all items are visible
2023-01-25 13:48:20 +01:00
Simon Hausmann
d0624e374b Fix preview of the standard table view in C++ docs
Shrink the table view so that it is actually visible.
2023-01-25 13:48:20 +01:00
Olivier Goffart
515f069317 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.
2023-01-25 13:04:59 +01:00
Olivier Goffart
907fd72725 Fix duplicate transition in the recipes 2023-01-25 12:28:52 +01:00
Olivier Goffart
aad03d2d43 Update the version number in the readme and docs 2023-01-25 11:25:51 +01:00
Olivier Goffart
7c55b9f925 Only apply the constraint to the parent with the new syntax
Also attempt to document it
2023-01-24 19:18:59 +01:00
Igor Loskutov
8a56d7a272 Fix tutorial "running in browser" example html tag typo 2023-01-24 07:58:33 +01:00
Olivier Goffart
a0fdf94fb1 StandardTableView: Remove the editable feature for now
This commit can be reverted when we want to introduce it again.
There is a few bugs with the editable property:
 - The text is not in sync with the model if the model changes after an
   edit. (can be seen by making an edit and then sort)
 - The highlight of the current row doesn't work properly
 - We should probably only edit on double click or some shortcut instead
   of just clicking
 - The editable field exist but does nothing for the StandardListView
2023-01-24 07:31:29 +01:00
Olivier Goffart
48ce61f740 TableViewColumn: document that the widths are in logical pixel 2023-01-23 16:26:49 +01:00
Simon Hausmann
6cd9108fda Fix warnings on cargo test -p doctests 2023-01-23 15:22:10 +01:00
Simon Hausmann
629c7ed80e Remove undocumented and dysfunctional PathLayout
This type is poorly implemented and not documented. Let's remove it for now.
It shall remain available in the git history in the event of a resurrection.
2023-01-21 13:10:19 +01:00
Simon Hausmann
131b6d1ac3 Make the states example interactive 2023-01-20 13:21:06 +01:00
Florian Blasius
f2aab576f4
Add StandardTableView widget (#2032)
* Text only StandardTableView with column and rows
* Text editing of cells
* Sort by column ascending and descending
* Variants of the TableView for native, fluent and material
2023-01-12 19:41:12 +01:00
Simon Hausmann
3c65c6177d Fix C++ memory game tutorial not starting out of the box on Windows
After commit 3e5aa212d5 the Slint DLLs
aren't placed in the `bin/` directory by default anymore. Since the
tutorial builds Slint as an external sub-project, it is entirely
isolated and the CMAKE_*_OUTPUT_DIRECTORY variables do not propagate. On
macOS and Linux, the program still runs due to rpath. On Windows, the
instructions said to put `bin` into `%PATH%`, but that doesn't work
anymore, the dll is now in `_deps/slint-build`.

Instead of adjusting `%PATH%`, this change adjusts the documentation to
recommend the use of a custom command on Windows using
$<TARGET_RUNTIME_DLLS:tgt> to copy the DLL across. This is guarded with
WIN32 due to https://gitlab.kitware.com/cmake/cmake/-/issues/23543 ,
where the proposed solution requires CMake 3.26 (not released yet).
2023-01-09 13:30:13 +01:00
Olivier Goffart
d7e903214c Adust docs to the new syntax 2023-01-07 14:18:10 +01:00
Olivier Goffart
ff53420a72 Run the syntax_updater on the .md files in docs 2023-01-07 14:18:10 +01:00
Olivier Goffart
1b0217fe98 C++ tutorial: fix "Rust"->"C++" typos
We are in the C++ tutorial so it's only C++ code
2023-01-05 17:22:30 +01:00
Simon Hausmann
5a4dae4029 Document the defaults for source-clip-* properties 2022-12-22 09:51:06 +01:00
Olivier Goffart
694f5963c4 Document purity 2022-12-22 00:26:27 -08:00
Olivier Goffart
1cbd61145e WIP: pure qualifier for callback and functions 2022-12-22 00:26:27 -08:00
Florian Blasius
56ade50512
add recipe for responsive sidebar (#2002) 2022-12-20 08:17:34 +01:00
ogoffart
ce07d078ce Bump version number to 0.3.4 2022-12-16 09:36:15 +00:00
Olivier Goffart
5bf97c09dd Revert "Prepare for release: add Cargo.lock and set the version number in the docs"
Release done

This reverts commit 29b17fd109.
2022-12-16 10:35:29 +01:00