Commit graph

5155 commits

Author SHA1 Message Date
RustemB
192af08a77 Added tests for cut 2021-11-29 16:29:07 +01:00
RustemB
baa5e53fe9 Cut text using Ctrl+x 2021-11-29 16:29:07 +01:00
Olivier Goffart
abb22db425 Updated Changelog 2021-11-26 15:16:49 +01:00
Olivier Goffart
c15a59892a C++: use the const version of begin and end from SharedVector::clear 2021-11-26 15:12:21 +01:00
Olivier Goffart
d9637816bb Fix memory leak in the C++ SharedVector
detaching in the destructor is not a good idea, make sure to use the const version
2021-11-26 15:02:46 +01:00
Simon Hausmann
cba553b9f7 Small grammar fixes 2021-11-26 13:46:20 +01:00
Olivier Goffart
d1883b53f3
Update install_qt.md 2021-11-26 13:21:58 +01:00
Simon Hausmann
c1cb648972 Polish the Qt setup docs
Clarify the setup for macOS and Windows, and refer to `bin` in the generic section for qmake.
2021-11-26 13:09:12 +01:00
Simon Hausmann
55e4068707 Fix typo 2021-11-26 13:02:30 +01:00
Olivier Goffart
844c5cf7ec Gate the Path item behind the 'std' feature 2021-11-25 16:53:07 +01:00
Olivier Goffart
5b4d6e8ece Disable the default-features of a bunch of crates 2021-11-25 12:02:16 +01:00
Olivier Goffart
763065fd0e Disable the std feature from strum
also use its derive feature
2021-11-25 12:02:16 +01:00
Olivier Goffart
80c0602277 WIP: start making the corelib crate a no_std crate
Does not compile yet with no_std because of the lack of
alternative for thread_local
2021-11-25 12:02:16 +01:00
Olivier Goffart
41e180f184 Make vtable no_std 2021-11-25 12:02:16 +01:00
Olivier Goffart
06f37b40cf Update ChangeLog of helper crates 2021-11-24 16:21:04 +01:00
ogoffart
3278b39549 Bump version number to 0.1.6 2021-11-24 14:19:09 +00:00
Olivier Goffart
a3df480650 Revert "Adjust the URL in the documentation to the released version"
This reverts commit 2904b7ad6d.

The release was done
2021-11-24 15:18:23 +01:00
Olivier Goffart
2904b7ad6d Adjust the URL in the documentation to the released version 2021-11-24 14:13:30 +01:00
Olivier Goffart
abed31454c Update version number in docs in preparation for the release 2021-11-24 14:10:16 +01:00
Simon Hausmann
78753cd3aa Include the architecture in the file name for non-Windows
On windows that's already included, but on Linux it should also be
there.
2021-11-24 13:45:52 +01:00
Olivier Goffart
64ecdab936 qt_viewer example: set a proper title to the main window 2021-11-24 13:40:50 +01:00
Olivier Goffart
ce1cd095ac C++: fix compilation of example when the Qt feature is disabled 2021-11-24 13:32:39 +01:00
Simon Hausmann
42477db3e3 In the C++ prerequisites, link to the cmake website
It's easier that way :-)
2021-11-24 13:02:08 +01:00
Simon Hausmann
a244e16829 Add visiblity to the C++ binary packages
* Rename the package to `SixtyFPS-cpp-*` to make it easier to see that these are for C++
* Refer to the download and extraction process in the two C++ "READMEs"
* Set the home page url in the cmake project() command, from where cpack will pick it up for inclusion in the installer.

cc #631
2021-11-24 12:53:43 +01:00
Simon Hausmann
2f6e5dcce3 Mention where to get the lsp binary in the lsp README 2021-11-24 12:53:43 +01:00
Olivier Goffart
531dd96a9b Fix warning about not existing image when using the interpreter
Can be reproduced by running the todo example with the fluent style and the GL bakend

The default image should be None, not an empty path
2021-11-24 11:28:04 +01:00
Olivier Goffart
06d1293afe Fix another regression in layout due to non inlining
override_from_parent.60 was panicking when compiling rust
because some expression had NamedReference that were relative to another
sub component.

Added a test as well for the case of multiple indirection (SubComp4)
that was also broken
2021-11-24 10:21:00 +01:00
Olivier Goffart
84e394a006 Fix regression when overriding the with of a Component that specifies limits
We were comparing the priorities of different component, which does
not make sense

This is a regression found with the crater run
2021-11-24 10:21:00 +01:00
Simon Hausmann
2c4cebd384 Prepare the changelog for the next release 2021-11-24 09:06:17 +01:00
Simon Hausmann
acea1da330 A bit of changelog polish 2021-11-24 08:57:57 +01:00
Simon Hausmann
f7f4797171 Include cargo-about info also in the non-windows packages
... by calling prepare_binary_package.sh on all platforms, but only
include the Qt license attribution where we bundle it.
2021-11-23 23:16:24 +01:00
Simon Hausmann
6547979b89 Remove unused parameters from packaging prep script 2021-11-23 23:16:24 +01:00
Olivier Goffart
47a4463abc Rename the sub component id to avoid error in the generated code with duplicated names 2021-11-23 12:03:03 +01:00
Olivier Goffart
7a88902d4e Fix once more the description of @image-url in the tutorial
PR #669 changed the wording, but the tutorial uses the sixtyfps! macro
for which that wording was fine.
Instead, be more explicit about chere the file is looked up in both situation
2021-11-23 11:18:02 +01:00
Olivier Goffart
865f574808 Fixup crater test 2021-11-23 11:18:02 +01:00
Simon Hausmann
fa14a80ea8 Fix text rendered blurry when using Qt
After commit becb4574c1 we'll
make sure not to set the plugin application attribute when initializing
the Qt backend. Unfortunately in the generated struct the NativeStyleMetrics field
is placed and initialized before the m_window. The Default::default() impl
calls `ensure_initialized()` with `from_qt_backend = false` because we don't
know what backend is being used. Since due to the ordering this is the first
call to `ensure_initialized()`, we'll end up setting the plugin application
attribute.

This patch fixes that by ensuring that the m_window field always comes first,
which is initialized with a call into the run-time library, which in turn
delegates to the backend. That'll be the Qt backend and we'll initialize
the application object correctly.
2021-11-23 11:05:02 +01:00
Simon Hausmann
3550362f0b Fix blurry test in the NSIS installer for the C++ package on Windows
Enable High-DPI as per https://gitlab.kitware.com/cmake/cmake/-/issues/17724
2021-11-23 10:18:50 +01:00
Olivier Goffart
4d6e7639f8
Update crater.yaml 2021-11-23 09:34:22 +01:00
Olivier Goffart
4757469558 Add a GitHub action workflow to test a bunch of dependent crates 2021-11-23 09:30:54 +01:00
Jared Moulton
799dbff366 Fix the description of where @image-url looks for files 2021-11-23 08:34:32 +01:00
Simon Hausmann
82c91f8df3 Switch CI to macos-11
macos-latest will soon advance to 11 anyway.
2021-11-22 21:00:04 +01:00
Simon Hausmann
8d86fca791 Work around bug in GH actions for the vs code extension build
Fold the vscode_extension.yaml file into nightly_snapshot.yaml to work around the fact
that the called workflow fails to spawn the jobs.
2021-11-22 19:52:54 +01:00
Olivier Goffart
7640540719 Another attempt to get CI action working
maybe GitHub is confused because publish is botrh an input and a step
2021-11-22 18:20:46 +01:00
Olivier Goffart
d2beb73404 CI: attempt to remove the vscode_extension_build from the nightly build
Looks like github action is having a bug
2021-11-22 18:11:53 +01:00
Olivier Goffart
80a3e856dd CI: fix warning: cargo-about is not in the tool cache 2021-11-22 18:03:44 +01:00
Olivier Goffart
3e3e98725f Fix build
apparently there was Some issue while rebasing
2021-11-22 17:57:08 +01:00
Olivier Goffart
20f41a681b MCU: Render line by line in a line buffer 2021-11-22 17:15:28 +01:00
Simon Hausmann
cd9db61545 Include the VS runtime dlls in the binary package
We bundle Qt and Qt needs the VC runtime DLLs. There are two options:
Find and locate vcredist.exe, include it in the NSIS installer and run
it. Alternatively, a cmake module exists to locates the DLLs and
install them.

This patch uses the latter option, for simplicity. When upstream ticket
https://gitlab.kitware.com/cmake/cmake/-/issues/17725 is implemented, we
could switch to the first option.

Note: This might include a few DLLs that Qt probably doesn't
need.
2021-11-22 16:04:09 +01:00
Simon Hausmann
2753186f3a Fix CI build
Comment out unused z field in the MCU renderer
2021-11-22 14:36:12 +01:00
Olivier Goffart
6a17ae3328 MCU: Dasic support for image drawing 2021-11-22 13:51:22 +01:00