Compare commits

...

38 Commits

Author SHA1 Message Date
ExPikaPaka 1f31b7593f Merge branch 'feature/wx-illustrated-tooltips' into feature/device-tooltips 2026-11-18 08:34:03 +01:00
ExPikaPaka 78dfd585f4 Merge branch 'feature/gizmo-toolbar-tooltips' into feature/wx-illustrated-tooltips 2026-11-18 08:33:58 +01:00
ExPikaPaka f17fdabeec Merge remote-tracking branch 'origin/main' into feature/gizmo-toolbar-tooltips 2026-11-18 08:33:58 +01:00
ExPikaPaka bfe8dac758 Merge branch 'feature/wx-illustrated-tooltips' into feature/device-tooltips 2026-11-17 07:50:00 +01:00
ExPikaPaka 922f3d0a4a Merge branch 'feature/gizmo-toolbar-tooltips' into feature/wx-illustrated-tooltips 2026-11-17 07:49:56 +01:00
ExPikaPaka ed28dc5e8f Merge remote-tracking branch 'origin/main' into feature/gizmo-toolbar-tooltips
# Conflicts:
#	src/slic3r/GUI/Gizmos/GLGizmoCut.cpp
2026-11-17 07:49:56 +01:00
ExPikaPaka 5348c2f0d8 Merge branch 'feature/wx-illustrated-tooltips' into feature/device-tooltips 2026-11-17 07:07:41 +01:00
ExPikaPaka 145cfc8708 Open a Wayland tooltip at its own size, not the previous one's
wxPopupWindow::SetSize() on GTK only requests a size, which the GDK window gets
later, while the xdg_popup takes the size the window has when it maps. A tooltip
placed beside its dialog therefore opened at the size of the tooltip before it,
cut off or with empty space under it. Resize the GDK window before it maps.
2026-11-17 07:07:37 +01:00
ExPikaPaka f4b2568666 Merge branch 'feature/wx-illustrated-tooltips' into feature/device-tooltips 2026-11-17 06:55:57 +01:00
ExPikaPaka f9e02c916b Leave the wx tooltips without pictures when the preference says so
The popup does not ask a tooltip's TipMediaSource while show_tooltip_pictures is
off, so a setting's pictures are not looked up either.
2026-11-17 06:55:33 +01:00
ExPikaPaka 447b17b470 Merge branch 'feature/gizmo-toolbar-tooltips' into feature/wx-illustrated-tooltips
# Conflicts:
#	docs/HLSD/tooltip-illustrations.md
2026-11-17 06:55:33 +01:00
ExPikaPaka 2de51f343f Add a preference to show tooltips without their pictures
"Show pictures in tooltips" (show_tooltip_pictures, on by default) leaves every
illustrated tooltip as its text alone, in the same place and with the same delay.
Nothing is decoded while it is off.
2026-11-17 06:54:21 +01:00
ExPikaPaka b41f0bd84a Merge branch 'feature/wx-illustrated-tooltips' into feature/device-tooltips 2026-11-12 09:35:19 +01:00
ExPikaPaka cb97e6ce7e Include IllustratedTipPopup.hpp in AccessibilityMac.mm
The macOS accessibility bridge calls illustrated_tooltip_text() but did not include its header, so the macOS build failed with no member named illustrated_tooltip_text.
2026-11-12 09:35:19 +01:00
ExPikaPaka c631144575 Merge branch 'feature/wx-illustrated-tooltips' into feature/device-tooltips 2026-11-12 08:37:04 +01:00
ExPikaPaka 49d92a1fa0 Declare m_wayland_by_rect only on GTK
It is read and written only in GTK code, so clang-cl on Windows rejected it as an unused private field under -Werror.
2026-11-12 08:37:03 +01:00
ExPikaPaka 8cc9204aa3 Merge branch 'feature/wx-illustrated-tooltips' into feature/device-tooltips 2026-11-12 08:26:15 +01:00
ExPikaPaka eddace024e Put a dialog's tooltip beside the dialog on Wayland too
A tooltip is kept inside its window on Wayland, where the screen is
unknown, so in a small dialog (the calibration dialogs) it went under the
control, over the next rows. When a dialog has no room for it inside,
the popup now asks the compositor to place it to the right of the
dialog, or to the left when the right has no room.
2026-11-12 08:19:16 +01:00
ExPikaPaka a2493b1c9f Merge branch 'feature/wx-illustrated-tooltips' into feature/device-tooltips 2026-11-12 07:58:32 +01:00
ExPikaPaka 6574dde677 Include what the multi-device send page tooltips use 2026-11-12 07:58:31 +01:00
ExPikaPaka c0dc3f795c Merge branch 'feature/gizmo-toolbar-tooltips' into feature/wx-illustrated-tooltips 2026-11-12 07:58:21 +01:00
ExPikaPaka d35c690f10 Put a settings tooltip beside the page's controls in a window of its own
In the printer and filament settings windows the page spans the window,
so no column matched and the tooltip went over or under the control,
covering the rows around it. On Wayland it cannot go beside the window
either. It now goes to the right of the page's column of controls,
level with the control, when the window leaves room there.

Also add the includes clang-tidy found missing.
2026-11-12 07:58:21 +01:00
ExPikaPaka 5a62a830d7 Merge remote-tracking branch 'origin/main' into feature/gizmo-toolbar-tooltips 2026-11-12 07:58:20 +01:00
ExPikaPaka b74c292ba9 Show the slider's pictures on the Brim Ears value boxes too, and include what the tooltips use
The value box beside each Brim Ears slider repeated the slider's tooltip
without its pictures, so the same setting looked different depending on
which half of the row the pointer was on.

Also add the includes clang-tidy found missing in the files the tooltips
changed.
2026-11-12 07:58:20 +01:00
ExPikaPaka d80f817b04 Merge branch 'feature/wx-illustrated-tooltips' into feature/device-tooltips 2026-11-12 07:38:12 +01:00
ExPikaPaka 9cfe72a798 Merge branch 'feature/gizmo-toolbar-tooltips' into feature/wx-illustrated-tooltips 2026-11-12 07:38:11 +01:00
ExPikaPaka 890c2827b1 Animate the gizmo pictures that show an action
Straight-line painting strokes, the cut parts turning into their final
pose, flipping on assembly and picking the features of a measurement
are loops instead of stills.
2026-11-11 12:42:52 +01:00
ExPikaPaka 4030bf9e15 Put the settings tooltips beside the sidebar, in the dark palette
A tooltip under a field covered the next rows of the page. It now goes
beside the column the control is in (the sidebar, a side panel), over
the 3D view, or beside a dialog, the way the texture-displacement
panel's tooltips sit beside the panel; below the control remains for
toolbars and full-width pages and when there is no room beside. The
popup is drawn in the dark palette in both themes, the colours the 3D
view's tooltips now use, so all tooltips look the same.
2026-11-11 12:28:51 +01:00
ExPikaPaka cc451372c0 Draw every ImGui tooltip in the colours of the settings tooltips
The illustrated and plain ImGui tooltips took ImGui's default near-black
background, while the tooltips of the settings pages use the dark panel
colour of the input boxes. Both now use the same background, border,
text and caption colours, from one push_tooltip_style().
2026-11-11 12:27:21 +01:00
ExPikaPaka fab5e30d10 Keep the tooltip text where code still reads it
The illustrated popup removes a control's native tooltip, which left
icon-only buttons without a name for screen readers (Button's
accessible on Windows, the macOS accessibility bridge) and made the
Physical Printer host field dereference a null tooltip on every edit.
Add illustrated_tooltip_text() for the first and check for null in the
second.
2026-11-11 11:21:54 +01:00
ExPikaPaka ecd1ef2794 Move the remaining device tooltips to the illustrated popup
Media files, the file grid, AMS mapping and settings, the camera popup,
sending a print, part skipping, troubleshooting, AMS sync and the upload
dialogs of other printers. Adds pictures for part skipping and AMS sync
modes, and fixes the 3MF files tooltip set on the video button.
2026-11-11 11:09:21 +01:00
ExPikaPaka 816b2e9241 Write the tooltip pictures' stills as 256-colour PNGs
Indistinguishable at their size, and less than half the bytes.
2026-11-11 08:45:53 +01:00
ExPikaPaka 1cde56009b Explain the Device tab, the send-print dialogs and the AMS controls
- Send-print dialogs (single and multi-device): each print option row
  says what it does and why it is off, with animations of bed leveling
  and of the traditional vs smooth timelapse; printer, plate and
  storage controls.
- Device tab: print controls, camera bar, temperatures, speed, lamp,
  fans, axis jog, nozzle switch, filament change recovery.
- AMS: load and unload (and why they are disabled), auto refill, slots,
  external spool, RFID, humidity, AMS settings, material settings,
  drying.
- Print options dialog, multi-device pages, flow calibration dialog.

Tooltips that only repeated their icon's name (Pause, Stop, Storage,
Timelapse, ...) now say what the control does.
2026-11-11 08:06:07 +01:00
ExPikaPaka 8dd7b06995 Show wx tooltips with pictures, and connect the settings pages
A tooltip for wx controls with the behaviour of the 3D view's
illustrated tooltips: it waits for the pointer to rest, sits beside the
control instead of under the mouse, never takes focus, hides on any
click, key or wheel, and plays its GIFs from the first frame each time
it opens.

- One shared wxPopupWindow, owned by the control's top-level window,
  shown without activation on MSW and as a grab-less popup on Wayland.
- Hover is followed on the control and the windows inside it, so the
  composite TextInput, ComboBox and SpinInput work; native tooltips on
  them are kept off.
- Every settings field, option label and undo icon goes through it,
  with the text it had. A setting's pictures come from SettingTips;
  for a setting with a list of values, the chosen value's picture, and
  in the open drop-down list each value's picture beside the list.
- A filament override of a printer setting shows that setting's
  pictures.
- The GIF decoder is shared with the 3D view's AnimatedTexture, and
  IllustratedTooltip::Media is the same TipMedia struct.
2026-11-11 07:46:26 +01:00
ExPikaPaka 913e6814a3 Add the API for wx tooltips with pictures
set_illustrated_tooltip() and hover_illustrated_tooltip() give wx
controls the tooltips the 3D view has: they wait for the pointer to
rest, sit beside the control and can carry pictures. SettingTips holds
the pictures for print, filament and printer settings, one file per
group so the three can be filled independently.

The popup itself follows; until then the calls fall back to a plain
wxToolTip.
2026-11-11 07:46:26 +01:00
ExPikaPaka 4360248d03 Wait again for a tooltip when the pointer comes back to the same control
IllustratedTooltip only restarted its wait when the pointer moved to
another control, so leaving one and returning showed its tooltip at
once. A frame on which nothing asked now counts as leaving. The
tooltip's text and captions also keep their own colours whatever the
call site pushed, which the 3D view's light menu needs.
2026-11-11 07:41:27 +01:00
ExPikaPaka 45a65d18db Illustrated tooltips for the main toolbar tools
Add, Add plate, Orient, Arrange, the instance and split tools, Variable
layer height and Assembly view get the same tooltip as the gizmo tools
beside them: under the toolbar, after the pointer rests, with what the
tool does and an animation of it. The title is the tool's existing
tooltip, so its shortcuts and translations stay.
2026-11-11 07:27:04 +01:00
ExPikaPaka b7ed121b93 Illustrated tooltips for the gizmo toolbar and gizmo panels
Tools on the gizmo toolbar and the controls in every gizmo panel get
tooltips that wait for the pointer to rest, sit beside the toolbar or
panel instead of under the mouse, and can carry a still or a short
animation of what the control does.

- IllustratedTooltip: the timing and picture playback shared by the
  texture displacement panel, the gizmo toolbar and the gizmo panels.
- GLGizmoBase::panel_tooltip() and slider_with_tooltip() for panels.
- Pictures are drawn by scripts/gen_gizmo_tips.py, a small SDF ray
  marcher, so they can be regenerated and extended.
- docs/HLSD/tooltip-illustrations.md describes the design.
2026-11-11 07:16:00 +01:00
223 changed files with 7493 additions and 761 deletions
+208 -6
View File
@@ -1,12 +1,32 @@
# Tooltip illustrations
The texture-displacement panel's tooltips can carry a picture under their text: a still image, or a
short animation that loops while the tooltip is open. Several settings in that panel describe a shape
rather than a number - what Rotation turns, what Tile repeats, what Invert turns inside out - and a
sentence about a shape is read twice and understood once.
Three sets of tooltips carry a picture under their text: a still image, or a short animation that
loops while the tooltip is open.
- The texture-displacement panel's settings. Several of them describe a shape rather than a number -
what Rotation turns, what Tile repeats, what Invert turns inside out - and a sentence about a shape
is read twice and understood once.
- The tools of the toolbar over the 3D view: the gizmos, and the main and assemble view tools before
them (Add, Add plate, Orient, Arrange, the instance and split tools, Variable layer height, Assembly
view). A tool's name says little about what it does until it has been used once, and an icon even
less; a few seconds of the tool at work says it outright.
- The controls in every other gizmo's panel: Move, Rotate and Scale, Cut, Mesh Boolean, the painting
tools, Text and SVG, Measure and Assemble, Simplify and Brim Ears. Pictures go only to the controls
that are a shape, a placement or a behaviour; a number or a plain on/off gets text alone.
Both go through `slic3r/GUI/IllustratedTooltip.hpp`, which keeps the part that has to stay the same
everywhere: when a tooltip appears, and how its pictures are decoded and played. Where it goes and how
wide it is are left to the owner.
The wx windows - the settings tabs, the sidebar, dialogs - have tooltips of the same kind, drawn by
`slic3r/GUI/IllustratedTipPopup.hpp` instead of ImGui; see [The wx tooltips](#the-wx-tooltips). The two
share the picture struct (`IllustratedTooltip::Media` is `TipMedia`), the decoder and the timing, so a
picture looks and plays the same in both.
## Where a tooltip is drawn
### The texture-displacement panel
`GLGizmoTextureDisplacement::panel_tooltip()` replaces `ImGuiWrapper::tooltip()` throughout the panel.
It differs in two ways.
@@ -25,9 +45,49 @@ tooltip near the bottom edge on screen.
It also gives the tooltip a fixed width rather than one derived from its text, because a picture has
to be laid out against something, and a column of tooltips that are all one width is steadier to read.
### The gizmo toolbar
`GLGizmosManager::render_toolbar_tooltip()` draws the tooltip of the toolbar icon under the pointer,
in place of the one-line name `GLCanvas3D`'s own tooltip used to show for it. It goes under the icon,
centred on it and kept inside the canvas, so reading along the toolbar never covers the next icons.
It shows the tool's name and shortcut in bold, a sentence on what the tool is for, and one picture -
three, captioned, for Mesh Boolean's three operations. When the tool cannot be opened yet, the reason
`get_name()` gives for that follows the name, dimmed.
The text and pictures for each tool are a table in `GLGizmosManager.cpp` (`toolbar_tip()`), keyed by
the gizmo type, next to the list of gizmos it describes.
The tools before the gizmos belong to `GLCanvas3D`'s main and assemble view toolbars, and
`GLCanvas3D::_render_toolbar_tooltip()` gives them the same tooltip, from a table keyed by the tool's
name (`toolbar_item_tip()`). The title is the tool's existing tooltip, shortcuts included, so its
wording and translations stay as they were. A tool whose menu is open under it (Arrange, Variable layer
height) keeps the plain tooltip, which would otherwise land on its own menu. From the moment the pointer
reaches a tool with a picture, the plain tooltip that follows the mouse is held back, also during the
wait, so the two never take turns.
### The gizmo panels
`GLGizmoBase::panel_tooltip()` is called right after the control it explains, on every frame, and
checks the hover itself, so a panel needs no `if (IsItemHovered())` around it. It goes through
`IllustratedTooltip::item_tooltip()`, which places the tooltip beside the panel's root window - to the
right, or to the left when there is no room - level with the control. `GizmoObjectManipulation`, which
draws the Move, Rotate and Scale panels but is not a gizmo, calls `item_tooltip()` directly.
`slider_with_tooltip()` covers ImGuiWrapper's sliders, whose last item is the edit button beside the
slider rather than the slider itself.
The hover test allows disabled items, since a control that cannot be used is the one whose tooltip
has to say why. For the same reason the tooltip resets the style alpha that `disabled_begin()` halves,
and it pushes the tooltip colours itself (`ImGuiWrapper::push_tooltip_style()`), because a call from
inside a combo or popup would otherwise inherit that popup's light background under the tooltip's text.
The painting tools share one table of text and pictures, `GLGizmoPainterBase::painter_tooltip()`, so a
tool that appears in several of the four panels reads the same in all of them.
## Where the pictures live
`resources/images/texture_displacement/`, as PNG, JPG, BMP or GIF. A tooltip names them by file:
`resources/images/texture_displacement/`, `resources/images/gizmo_toolbar/` and
`resources/images/gizmos/<panel>/`, as PNG, JPG, BMP or GIF; the folder is given when the
`IllustratedTooltip` is made, and the panels name their files with the subfolder (`"cut/connector_plug.png"`). A tooltip names them by file:
```cpp
hover_tip(_u8L("Repeats the texture across the painted area. ..."),
@@ -70,7 +130,12 @@ same frame again.
## Decoding and playback
`slic3r/GUI/AnimatedTexture.hpp` decodes a file once and uploads one GL texture per frame. Stills go
`slic3r/GUI/AnimatedTexture.hpp` decodes a file once (`decode_illustration()`, which the wx tooltips
use too) and uploads one GL texture per frame. The wx tooltips scale the decoded frames to the size they
are drawn at, in physical pixels, and play them on their own timer, rather than through
`wxAnimationCtrl`, which draws at the file's size, plays a native animation on GTK that does not
reliably restart from its first frame, and composites frames differently per platform; the last couple
of dozen decoded pictures are kept. Stills go
through `wxImage`; GIFs go through `wxGIFDecoder`, whose raw palette indices are composited here frame
by frame, replaying the disposal method each frame asks for. That replay is what makes an animation
look continuous: a GIF frame is a sub-rectangle drawn over what came before it, so an animation that
@@ -88,8 +153,145 @@ Which frame is drawn is measured on a real clock, not `ImGui::GetTime()`. Nothin
than seconds. On a canvas that renders only when asked, that is not a clock at all: an animation driven
by it crawls while the canvas is idle and races while a moving mouse is rendering it flat out.
## The wx tooltips
`set_illustrated_tooltip(window, text, media)` replaces `SetToolTip()` for a wx control, and
`hover_illustrated_tooltip(window, item, text, media)` serves a window that draws several controls
itself and reports the one under the pointer on each mouse move: the option labels and undo icons of
`OG_CustomCtrl`, the cells of the object list, the items of a drop-down list. A tooltip without pictures
is drawn the same way, so the controls of a page all look alike. The `_deferred` variants take a
`TipMediaSource` instead of the pictures, which is asked when the tooltip opens; the settings use it,
since their pictures depend on the value chosen at that moment and looking them up is not free.
They follow the 3D view's rules: the same waits, nothing while a mouse button is down or an editable
text field in the control has the keyboard, and animations from their first frame each time. A click,
a key or the wheel hides the tooltip; it comes back, after the full wait, once the pointer moves again,
as the 3D view's does after a control has been let go. It also goes when the pointer leaves the control,
when the application is deactivated, and when the control is hidden, moved or destroyed. Text wraps at
the width of the 3D view's tooltips (300 DIP, its 20 em) and pictures are at most 150 DIP tall, laid out
side by side at equal widths with their captions under them. Colours are the dark mode palette of the
drop-down lists, in both themes, and the 3D view's tooltips use the same ones
(`ImGuiWrapper::push_tooltip_style()`): every tooltip in the application looks the same, and the
pictures, drawn on dark, sit the same way in all of them.
### Where it goes
Beside the control, never under the mouse and never on the control, and off the controls around it
where there is room, the way the texture-displacement panel's tooltips sit beside the panel:
- For a control inside a popup - an item of a drop-down list - beside the popup, level with the item:
below the item it would cover the next items, which are what the user is choosing between.
- For a control in a column of controls - the sidebar with the settings pages, a side panel - beside
the column, level with the control, so it covers the 3D view rather than the next rows of the page.
The column is found by walking up from the control: the outermost window below the top-level one that
is at least as tall as it is wide and at most three fifths of the top-level window's width.
- In a dialog, beside the dialog. Not on Wayland, where a tooltip is kept inside its window.
- On a page that spans its window - a settings page in its own window, on Wayland or when the window
fills the screen - to the right of the page's column of controls, level with the control. The page is
the first window above the control that is at least three fifths of the top-level window's width; the
column ends at the right edge of the narrower windows in it, so a G-code editor that spans the page
does not push the tooltip off the window. Never to the left of the column, which is over its labels.
- On Wayland, in a dialog with no room for it inside: beside the dialog after all. The screen is unknown
there, so the popup leaves its position to the compositor with `gdk_window_move_to_rect()`: to the
right of the dialog, level with the control, flipped to the left when the right has no room.
- Otherwise - a toolbar, a page as wide as the window - or when there is no room on either side: below
the control, level with its left edge, and above it when there is no room below.
It is kept inside the work area of the control's display; on Wayland, where screen coordinates are
relative to the window and the displays are unknown, inside the window the control is in.
There is one popup window for all of them, a plain `wxPopupWindow` that draws everything itself and has
no children. Not a `wxPopupTransientWindow` (Orca's `PopupWindow`): that kind grabs the pointer on GTK,
captures it on macOS and dismisses itself on its own terms, and a tooltip must do none of that. It never
takes the focus or the activation. macOS orders it in without activating it; on GTK it is a popup
window, override-redirect on X11 and an `xdg_popup` without a grab of its own on Wayland. On Windows its
`Show()` uses `SW_SHOWNOACTIVATE` and the window has `WS_EX_NOACTIVATE`, because `wxPopupWindow::Show()`
would activate it, taking the activation from an open drop-down list, which closes when it loses it.
Its parent is the top-level window of the control, and it is recreated when the pointer moves to a
control in another window: that makes it the owned window on Windows and a popup of the right surface on
Wayland, where it is placed relative to that surface.
On Wayland a tooltip over an open drop-down list is a popup of the list, and GDK gives it the list's
grab, so the compositor hands it the keyboard while it is up and the main window reports a
deactivation. `DropDown::ShouldDismissOnTopWindowDeactivate()` ignores that deactivation while the
tooltip is shown, as `PopupWindow` already does for GTK's own tooltips, and the drop-down list hides the
tooltip before it hides itself, since GDK refuses to unmap the parent of a mapped popup.
### Following the pointer
The pointer is followed by binding the enter, motion and leave events of the window and of every window
inside it, not by a timer asking `wxFindWindowAtPoint()`, which needs the global pointer position that
Wayland does not give. The windows inside matter because Orca's composite widgets (`TextInput`,
`::ComboBox`, `SpinInput`) are a frame with a native text field in it, and the pointer is over the
field. Moving between the frame and the field produces a leave and an enter; a leave whose position is
still inside the control is ignored, and any other waits 40 ms for the pointer to come back. The
handlers are free functions that look the window up when an event arrives, and each window is bound
once however often its tooltip is set, so a window that dies while its tooltip waits or shows leaves
nothing dangling. A click, a key, the wheel and the application's deactivation are caught by an event
filter, which sees them before any control does.
A window with an illustrated tooltip shows no native one besides it. Some widgets set one of their own
later: `::ComboBox` and `PresetComboBox` show the selected value, and `TextInput` forwards its tooltip to
its text field. Some code adds to a setting's tooltip the plain way: the settings tabs and the object
table prepend why an option is disabled. So native tooltips are removed from the window and the windows
inside it whenever the pointer moves over it, and a native tooltip on the window itself that still
contains the text it was given is taken as the new text, while any other is dropped.
### Settings
The text of a print, filament or printer setting's tooltip is its definition in `PrintConfig.cpp`, as
`Field::get_tooltip_text()` formats it: the wiki link, the default value, the restrictions. The pictures
are kept apart, in `slic3r/GUI/SettingTips*.cpp`, one file per group of settings so the groups are
edited independently, and `setting_tip(key)` builds the table and looks a setting up in it. A setting
can have pictures shown whatever its value (`media`), and an enum one picture per value (`values`,
keyed by the value's name as stored). A filament's override of a printer setting (`filament_z_hop_types`
overrides `z_hop_types`, as listed by `is_filament_extruder_override_key()`) shows the pictures of the
setting it overrides unless it has its own, so the two tabs show the same ones. The table holds
translated captions, so it is rebuilt on each lookup; it is looked up when a tooltip opens, never on a
paint or a mouse move.
Every field of a settings page goes through `Field::set_tooltip()`, and the label beside it shows the
same pictures with the label's own text, whether the label is a `wxStaticText` or drawn by
`OG_CustomCtrl`. For an enum the tooltip shows the setting's pictures and then the picture of the value
chosen at that moment, captioned with the value's label unless it has a caption of its own, and it is
redrawn if the value changes while it is up.
### Values in the drop-down list
While a setting's drop-down list is open, the item under the pointer shows its value's picture beside
the list, once the pointer has rested on it. `DropDown` reports the item under the pointer to a handler
the field sets (`DropDown::SetItemHoverHandler()`), which passes it on as a `hover_illustrated_tooltip`
with the item's row; a value without a picture shows nothing. An item is matched to its value by its
text, not its index, since some lists leave values out or are filled elsewhere.
## Turning the pictures off
The "Show pictures in tooltips" preference (`show_tooltip_pictures`, on by default) leaves every
tooltip as its text alone. Nothing else about it changes: it waits the same, opens in the same place
and is as wide as its text needs. Nothing is decoded while it is off, and the wx tooltips do not ask their `TipMediaSource`, so the
settings' pictures are not looked up either.
## Making one
### The toolbar
`scripts/gen_gizmo_tips.py` draws the toolbar's set (`scripts/gizmo_tips/toolbar.py`, the main toolbar's
tools included) and the gizmo
panels' sets (one module each in `scripts/gizmo_tips/`, except that `gizmos_anim.py` draws the loops of
several panels and names each by its panel's folder). Each picture is a scene - a model on the
print bed with the tool's handles, the pointer and the brush drawn over it - rendered by a small ray
marcher from signed distance functions, which makes a cut, a boolean operation or an embossed letter a
line of arithmetic each. The view is the plater's default, from the front right and above, so the
pictures look like the view the user is in. The model is grey; the one accent colour marks what the
tool made or acts on: a painted area, a cut face, a selected face, the second part.
The animations either loop with no step (Move, Rotate, Scale, Simplify and the embossing ones swing
from one end of the change to the other and back) or show an action once and hold its result before
starting over (the painting tools, Cut, Lay on Face, Assemble, Brim Ears). Frames that repeat are merged
into one longer frame by the GIF encoder.
### The texture-displacement panel
`scripts/gen_texture_displacement_tips.py` draws the lot, in four languages, picked by what the
setting actually is:
+3
View File
@@ -189,6 +189,9 @@ src/slic3r/GUI/SceneBenchmark.cpp
src/slic3r/GUI/Search.cpp
src/slic3r/GUI/SettingsIndex.cpp
src/slic3r/GUI/SpeedDialDialog.cpp
src/slic3r/GUI/SettingTipsFilament.cpp
src/slic3r/GUI/SettingTipsPrinter.cpp
src/slic3r/GUI/SettingTipsProcess.cpp
src/slic3r/GUI/Selection.cpp
src/slic3r/GUI/SelectMachine.cpp
src/slic3r/GUI/PrePrintChecker.cpp
Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 147 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Some files were not shown because too many files have changed in this diff Show More