mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-26 14:46:11 +00:00
Updated Wiki content
@@ -116,44 +116,44 @@ There are 3 main ways to set up these links:
|
|||||||
|
|
||||||
1. Using `append_single_option_line` with a second string argument for the wiki page.
|
1. Using `append_single_option_line` with a second string argument for the wiki page.
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
optgroup->append_single_option_line("[OPTION_NAME]"); // Option without wiki page/redirection
|
optgroup->append_single_option_line("[OPTION_NAME]"); // Option without wiki page/redirection
|
||||||
optgroup->append_single_option_line("[OPTION_NAME]", "[WIKI_LINK]"); // Option with wiki page and redirection
|
optgroup->append_single_option_line("[OPTION_NAME]", "[WIKI_LINK]"); // Option with wiki page and redirection
|
||||||
```
|
```
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
optgroup->append_single_option_line("seam_gap","quality_settings_seam"); // Wiki page and redirection
|
optgroup->append_single_option_line("seam_gap","quality_settings_seam"); // Wiki page and redirection
|
||||||
optgroup->append_single_option_line("seam_slope_type", "quality_settings_seam#scarf-joint-seam"); // Wiki page and redirection to `Scarf Joint Seam` section
|
optgroup->append_single_option_line("seam_slope_type", "quality_settings_seam#scarf-joint-seam"); // Wiki page and redirection to `Scarf Joint Seam` section
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Using `append_option_line` with a third string argument for the wiki page.
|
2. Using `append_option_line` with a third string argument for the wiki page.
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
append_option_line([optgroup], [opt_key], "[WIKI_LINK]");
|
append_option_line([optgroup], [opt_key], "[WIKI_LINK]");
|
||||||
```
|
```
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
append_option_line(optgroup, "machine_max_acceleration_x", "printer_motion_ability#acceleration-limitation");
|
append_option_line(optgroup, "machine_max_acceleration_x", "printer_motion_ability#acceleration-limitation");
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Using grouped rows with `append_line` and setting the wiki target via `line.label_path`.
|
3. Using grouped rows with `append_line` and setting the wiki target via `line.label_path`.
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
line.label_path = "[WIKI_LINK]";
|
line.label_path = "[WIKI_LINK]";
|
||||||
```
|
```
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
Line line = { L("Overhang speed"), L("...") };
|
Line line = { L("Overhang speed"), L("...") };
|
||||||
line.label_path = "speed_settings_overhang_speed#slow-down-for-overhang";
|
line.label_path = "speed_settings_overhang_speed#slow-down-for-overhang";
|
||||||
line.append_option(optgroup->get_option("overhang_1_4_speed"));
|
line.append_option(optgroup->get_option("overhang_1_4_speed"));
|
||||||
optgroup->append_line(line);
|
optgroup->append_line(line);
|
||||||
```
|
```
|
||||||
|
|
||||||
## Formatting and Style
|
## Formatting and Style
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user