Tobias Hunger
9b929b287d
Janitor: slice.iter().cloned().collect::<Vec<T>>() == slice.to_vec()
2021-07-05 09:48:29 +02:00
Tobias Hunger
8b3eda8a49
Janitor: Remove some useless 'static that clippy does not like
2021-07-05 09:48:29 +02:00
Tobias Hunger
96c792d7fc
Janitor: self: &Self is not canonical. Use &self instead
2021-07-05 09:48:29 +02:00
Jocelyn Turcotte
f12abe1bec
LSP: Enable comment toggling in Sublime Text
...
It needs a .tmPreferences file to be able to know how to
generate comments.
https://sublime-text-unofficial-documentation.readthedocs.io/en/latest/reference/comments.html
2021-07-05 09:47:41 +02:00
Jocelyn Turcotte
7610d6302f
LSP: Update Sublime Text instructions for version 4
...
The showPreview workaround was only necessary in Sublime Text 3,
so remove it.
Version 3 is still used by some people but most future users will be
using Sublime Text 4.
2021-07-05 09:47:41 +02:00
Tobias Hunger
c56e20233b
Janitor: Fix clippy error about a loop that never loops
...
This code abuses a loop for flow control. Split this out into a separate
function instead, using a custom enum to transfer the information back.
This is necessary since we need to transfer ownership of the
mouse_input_state back to the caller.
This change should not cause a behavior change.
2021-07-05 09:44:41 +02:00
Tobias Hunger
ec5646566a
Janitor: Use insert over insert_str to insert a single character
2021-07-03 22:34:53 +02:00
Tobias Hunger
af7e53566b
Janitor: clippy says to prefer writeln! over write! ending in \n
2021-07-03 22:34:53 +02:00
Tobias Hunger
65c2a1075e
Janitor: find(X).is_some() == any(X)
2021-07-03 22:34:53 +02:00
Tobias Hunger
0aea249f1a
Janitor: Fix spelling in docs and rename local variables
2021-07-03 18:22:01 +02:00
Tobias Hunger
88f7d24402
Janitor: Improve on regexp for RGB color encoding matches
...
Make it handle things like `from_argb(...)` and `RgbColor()`, too.
Require at least 3 [argb]s in a row to trigger.
2021-07-03 18:22:01 +02:00
Tobias Hunger
a5b61aa52b
Janitor: Fix spelling in error messages
2021-07-03 18:22:01 +02:00
Tobias Hunger
39984b27db
Janitor: Fix spelling in comments
2021-07-03 15:49:43 +02:00
Simon Hausmann
3e55b0e8f8
Prospective cspell warning fix
2021-07-03 10:10:10 +02:00
Tobias Hunger
040c7735ec
Dropping a reference does nothing
...
Is this what was actually intended here?
2021-07-03 09:43:07 +02:00
Tobias Hunger
dfb21b23ca
Update cspell.json files with more words and better regexps
...
* Add some more words to the word lists
* Ignore anything that looks like a crate path in rust
* Ignore everything that looks like a color encoding (AARRGGBB and
similar strings)
* Change regexp about `#[cfg...]` and `#[repr...]` in rust: Require
a word boundary (space/opening parens/whatever) after the string.
* Ignore `Qt_...` in rust.
2021-07-03 08:13:04 +02:00
Tobias Hunger
cf85c40a1b
Sort words in cspell.json
...
No other changes.
2021-07-03 08:13:04 +02:00
Tobias Hunger
f762f6dab2
Sub_Assign should probably subtract, not add
2021-07-02 23:18:14 +02:00
Tobias Hunger
8b688c52d0
clone of && clones the ref, not the value
...
This is probably not what you intended to do.
2021-07-02 23:18:14 +02:00
Simon Hausmann
5a7ac1735d
C++ docs: minor cleanup in generated code sample
...
Encode the return type only once, not twice
2021-07-02 22:13:52 +02:00
Simon Hausmann
4c3da0ebc2
Prospective fix for cspell in the CI
...
Mark *.rst files as restructured text by extension, as the CI doesn't use
vscode
2021-07-02 16:26:55 +02:00
Simon Hausmann
c74af8cb1a
C++ docs: Remove the horizontal scrollbar from the cmake example
2021-07-02 16:22:21 +02:00
Simon Hausmann
8f9a723e75
C++ docs: Add a getting started section
...
This combines the tutorial sub-section from the intro (a bit weird as sub-section there)
and the usage part of the cmake section into a getting started that
has a complete little C++ example.
2021-07-02 16:22:21 +02:00
Olivier Goffart
13bd828b96
Update license date
2021-07-02 15:55:54 +02:00
Simon Hausmann
570ccc20e9
C++ docs: remove the vtable namespace from the list of namespaces in the API
2021-07-02 15:40:43 +02:00
Simon Hausmann
3323ec8b1b
C++ docs: Bump the copyright year
2021-07-02 15:39:33 +02:00
Simon Hausmann
adeb192f6e
C++ API: Make LinearGradientBrush and GradientStop private API
2021-07-02 15:34:16 +02:00
Simon Hausmann
9819f7f6b7
C++ docs: Fix one more sphinx warning about unused input .md file
2021-07-02 14:20:29 +02:00
Simon Hausmann
e61c62d340
C++ docs: cut down on sphinx warnings
...
Excludes files we are not using in the toctree
2021-07-02 14:20:29 +02:00
Olivier Goffart
c5312fd642
Ugly style: use a layout for the ComboBox
...
Then it is properly layed out and we can use the auto-wrap in the gallery example
2021-07-02 14:17:15 +02:00
Olivier Goffart
9bf0c0d963
Fixup last commit
2021-07-02 12:52:56 +02:00
Olivier Goffart
7601c7e2eb
Updator: allow to update from 0.1.0
...
Even if there is nothing to do yet
2021-07-02 12:44:02 +02:00
Simon Hausmann
a77fbcc310
C++ docs: fix warning about misplaced ::note::
...
We don't really need it and in fact don't even want the light bulb style,
even if it worked :)
2021-07-02 12:32:28 +02:00
Simon Hausmann
f8abd57c3b
C++ docs: For the model bits, link to the for-in and ListView docs
...
Using an rst epiloge we can define global references that are even formatted
(using rst substitutions)
2021-07-02 12:32:28 +02:00
Olivier Goffart
decd151b84
Add Changelog entry for the grid layout changes
...
also closes #42
2021-07-02 12:30:07 +02:00
Olivier Goffart
6f6f5fc1ee
printerdemo: Use a GridLayout
...
Now that the rowspan and colspan are no longer buggy
2021-07-02 12:30:07 +02:00
Olivier Goffart
9faf16ebe1
GridLayout: fix layout with rowspan and colspan
...
One should not simply distribute the maximum and minimum sizes amongst
the spans, one should make sure that each coinstraints is respected
2021-07-02 12:30:07 +02:00
Olivier Goffart
8ab3473723
Test the updator with version 0.1.0
2021-07-02 12:30:07 +02:00
Simon Hausmann
7a81e8deee
C++ docs: Fix link to tutorial
...
my_st ended up trying to interpret the md link, so go to raw html ;)
2021-07-02 10:39:24 +02:00
Simon Hausmann
45f62f5f11
C++ docs: Provide a short intro paragraph to the reference section
2021-07-02 10:15:48 +02:00
Simon Hausmann
69bbef529c
C++ docs: Link to the section of the generated code from the namespace intro
2021-07-02 09:56:52 +02:00
Simon Hausmann
4705415642
C++ docs: First draft of a sixtyfps namespace intro
2021-07-02 09:46:48 +02:00
Simon Hausmann
e12ef7be6d
Fix missing license header
2021-07-01 19:05:41 +02:00
Simon Hausmann
8cd3c30e1b
C++ Docs: Organize all .60 language related topics as sub-topics
2021-07-01 18:38:16 +02:00
Simon Hausmann
b61e298984
C++ docs: Allow expanding the tree in the navigation bar from anywhere
2021-07-01 18:19:29 +02:00
Olivier Goffart
7c1dbb949b
Fix C++ test
2021-07-01 14:23:57 +02:00
Olivier Goffart
63cf84d21f
More MSVC warnings fixes
2021-07-01 14:16:41 +02:00
Olivier Goffart
c25d41526a
More spelling whitelists
2021-07-01 14:10:22 +02:00
Simon Hausmann
8284470630
Ignore all of conf.py
...
Maybe not worth it in this file :-)
2021-07-01 14:04:40 +02:00
Simon Hausmann
8da64e93a6
Some cspell tweaks to silence conf.py
2021-07-01 14:04:40 +02:00