forked from upstream-mirrors/OrcaSlicer
Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1f31b7593f | |||
| bfe8dac758 | |||
| 5348c2f0d8 | |||
| f4b2568666 | |||
| b41f0bd84a | |||
| c631144575 | |||
| 8cc9204aa3 | |||
| a2493b1c9f | |||
| 6574dde677 | |||
| d80f817b04 | |||
| ecd1ef2794 | |||
| 1cde56009b |
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 |
@@ -0,0 +1,117 @@
|
||||
"""The send-print dialog's tooltips: what bed leveling and the two timelapse modes do on the printer
|
||||
(see PrintOption::set_about() in SelectMachine.cpp and the printing options of SendMultiMachinePage)."""
|
||||
|
||||
import numpy as np
|
||||
|
||||
from .render import * # noqa: F401,F403 - the scenes are written against the renderer's whole vocabulary
|
||||
from .render import Camera, Overlay, render
|
||||
|
||||
OUT = "device" # resources/images/<OUT>
|
||||
|
||||
# Toolhead colour: the darker grey, so the head stays apart from the grey model it prints.
|
||||
M_HEAD = M_PART2
|
||||
|
||||
|
||||
def _head(p, tip):
|
||||
"""The toolhead with its nozzle tip at `tip`: a block, a heater, a short nozzle."""
|
||||
tip = np.asarray(tip, float)
|
||||
nozzle = sd_cylinder(p, tip[:2], 0.04, tip[2], tip[2] + 0.16, 0.01)
|
||||
heater = sd_cylinder(p, tip[:2], 0.09, tip[2] + 0.13, tip[2] + 0.24, 0.02)
|
||||
block = sd_box(p, tip + (0.0, 0.0, 0.42), (0.2, 0.17, 0.18), 0.03)
|
||||
return np.minimum(np.minimum(nozzle, heater), block)
|
||||
|
||||
|
||||
# --- bed leveling --------------------------------------------------------------------------------
|
||||
#
|
||||
# The nozzle touches the bed at a grid of points, each one marked as it is measured. Two frames a
|
||||
# point (above it, touching it), then a hold on the finished grid with the head parked.
|
||||
|
||||
_PROBES = [(x, y) for j, y in enumerate((-0.7, 0.0, 0.7)) for x in ((-0.7, 0.0, 0.7) if j % 2 == 0 else (0.7, 0.0, -0.7))]
|
||||
_PROBE_FRAMES = 2 * len(_PROBES)
|
||||
|
||||
|
||||
def bed_leveling(k, n):
|
||||
if k < _PROBE_FRAMES:
|
||||
i, down = divmod(k, 2)
|
||||
x, y = _PROBES[i]
|
||||
tip = (x, y, 0.0 if down else 0.3)
|
||||
probed = i + (1 if down else 0)
|
||||
else:
|
||||
tip = (0.0, 1.15, 0.5)
|
||||
probed = len(_PROBES)
|
||||
marks = np.array(_PROBES)
|
||||
|
||||
def scene(p):
|
||||
d_bed, _ = bed(p)
|
||||
dist = np.hypot(p[:, None, 0] - marks[None, :, 0], p[:, None, 1] - marks[None, :, 1])
|
||||
near = dist.argmin(axis=1)
|
||||
on_mark = dist.min(axis=1) < 0.11
|
||||
mat = np.where(on_mark, np.where(near < probed, M_ACCENT, M_PART2), M_BED)
|
||||
return union((d_bed, mat), (_head(p, tip), M_HEAD))
|
||||
|
||||
cam = Camera(GIF_SIZE, target=(0.0, 0.1, 0.35), extent=2.9)
|
||||
return Overlay(render(scene, cam), cam).finish(GIF_SIZE)
|
||||
|
||||
|
||||
# --- timelapse -----------------------------------------------------------------------------------
|
||||
#
|
||||
# A part grows layer by layer, and a frame of the video is taken at the end of each layer, shown by the
|
||||
# camera's corner marks lighting up. In the traditional mode the head is wherever the layer ended, so
|
||||
# the video shows it all over the part; in the smooth mode it moves aside to the prime tower first, so
|
||||
# every frame shows the part alone.
|
||||
|
||||
_LAYERS = 5
|
||||
_PER_LAYER = 4
|
||||
_LAYER_H = 0.16
|
||||
_PART = (np.array([-0.2, -0.1]), np.array([0.5, 0.4])) # centre and half size in x, y
|
||||
_TOWER = np.array([0.95, 0.75])
|
||||
|
||||
|
||||
def _corners(o, size, colour):
|
||||
"""The camera's frame marks at the corners of the picture."""
|
||||
m, L, w = 14 * SS, 26 * SS, max(1, int(round(3.0 * SS)))
|
||||
s = size * SS
|
||||
for cx, cy, dx, dy in ((m, m, 1, 1), (s - m, m, -1, 1), (m, s - m, 1, -1), (s - m, s - m, -1, -1)):
|
||||
o.draw.line([(cx, cy + dy * L), (cx, cy), (cx + dx * L, cy)], fill=colour, width=w, joint="curve")
|
||||
|
||||
|
||||
def _timelapse(k, smooth_mode):
|
||||
layer, step = divmod(k, _PER_LAYER)
|
||||
top = _LAYER_H * (layer + 1)
|
||||
centre, half = _PART
|
||||
# The head runs along the layer for the first frames of it.
|
||||
xs = (-0.55, 0.05, 0.3)
|
||||
if step < 2 or not smooth_mode:
|
||||
x = xs[min(step, 2) if not smooth_mode else step]
|
||||
y = centre[1] + (0.25 if layer % 2 else -0.25)
|
||||
tip = (x, y, top)
|
||||
else:
|
||||
tip = (_TOWER[0], _TOWER[1], top)
|
||||
snapshot = step == _PER_LAYER - 1
|
||||
|
||||
def scene(p):
|
||||
items = [bed(p), (sd_box(p, (centre[0], centre[1], 0.5 * top), (half[0], half[1], 0.5 * top), 0.02), M_PART),
|
||||
(_head(p, tip), M_HEAD)]
|
||||
if smooth_mode:
|
||||
items.append((sd_box(p, (_TOWER[0], _TOWER[1], 0.5 * top), (0.16, 0.16, 0.5 * top), 0.01), M_PART))
|
||||
return union(*items)
|
||||
|
||||
cam = Camera(GIF_SIZE, target=(0.25, 0.25, 0.45), extent=3.0)
|
||||
o = Overlay(render(scene, cam), cam)
|
||||
_corners(o, GIF_SIZE, (60, 200, 180) if snapshot else (110, 116, 118))
|
||||
return o.finish(GIF_SIZE)
|
||||
|
||||
|
||||
def timelapse_traditional(k, n):
|
||||
return _timelapse(k, False)
|
||||
|
||||
|
||||
def timelapse_smooth(k, n):
|
||||
return _timelapse(k, True)
|
||||
|
||||
|
||||
FRAMES = {
|
||||
"bed_leveling": _PROBE_FRAMES + 3,
|
||||
"timelapse_traditional": _LAYERS * _PER_LAYER,
|
||||
"timelapse_smooth": _LAYERS * _PER_LAYER,
|
||||
}
|
||||
@@ -0,0 +1,140 @@
|
||||
"""More of the Device tab's tooltips: skipping objects during a print (PartSkipDialog.cpp) and the two
|
||||
ways of synchronizing the project's filaments from the AMS (SyncAmsInfoDialog.cpp)."""
|
||||
|
||||
import numpy as np
|
||||
from PIL import Image, ImageDraw
|
||||
|
||||
from .render import * # noqa: F401,F403 - the scenes are written against the renderer's whole vocabulary
|
||||
from .render import Camera, Overlay, render
|
||||
|
||||
OUT = "device" # resources/images/<OUT>
|
||||
|
||||
|
||||
# --- skipping objects ----------------------------------------------------------------------------
|
||||
#
|
||||
# Four objects grow layer by layer. One of them is picked and turns the accent colour, and from then on
|
||||
# it stays at the height it had while the other three are printed to the end.
|
||||
|
||||
_OBJECTS = [ # (kind, centre x, centre y)
|
||||
("box", -0.55, -0.45),
|
||||
("cyl", 0.55, -0.45),
|
||||
("cyl", -0.55, 0.55),
|
||||
("box", 0.55, 0.55),
|
||||
]
|
||||
_SKIPPED = 1
|
||||
_GROW, _PICK, _FINISH, _HOLD = 6, 3, 8, 4
|
||||
_LOW, _FULL = 0.32, 0.85
|
||||
|
||||
|
||||
def _object(p, kind, x, y, h):
|
||||
if kind == "box":
|
||||
return sd_box(p, (x, y, 0.5 * h), (0.3, 0.3, 0.5 * h), 0.02)
|
||||
return sd_cylinder(p, (x, y), 0.3, 0.0, h, 0.02)
|
||||
|
||||
|
||||
def skip_objects(k, n):
|
||||
if k < _GROW:
|
||||
rest = skipped = _LOW * (k + 1) / _GROW
|
||||
picked = False
|
||||
elif k < _GROW + _PICK:
|
||||
rest = skipped = _LOW
|
||||
picked = k > _GROW
|
||||
else:
|
||||
t = min(1.0, (k - _GROW - _PICK + 1) / _FINISH)
|
||||
rest, skipped, picked = _LOW + (_FULL - _LOW) * t, _LOW, True
|
||||
|
||||
def scene(p):
|
||||
items = [bed(p)]
|
||||
for i, (kind, x, y) in enumerate(_OBJECTS):
|
||||
mine = i == _SKIPPED
|
||||
items.append((_object(p, kind, x, y, skipped if mine else rest), M_ACCENT if mine and picked else M_PART))
|
||||
return union(*items)
|
||||
|
||||
cam = Camera(GIF_SIZE, target=(0.0, 0.05, 0.35), extent=2.9)
|
||||
o = Overlay(render(scene, cam), cam)
|
||||
if _GROW <= k < _GROW + _PICK:
|
||||
_, x, y = _OBJECTS[_SKIPPED]
|
||||
o.pointer((x - 0.05, y - 0.1, _LOW))
|
||||
return o.finish(GIF_SIZE)
|
||||
|
||||
|
||||
# --- synchronizing the filaments from the AMS ----------------------------------------------------
|
||||
#
|
||||
# Seen as a diagram: the project's filament list along the top, the AMS with its four slots along the
|
||||
# bottom. Mapping joins each project filament to the slot it is mapped to, in any order, and the
|
||||
# filament takes that slot's colour; the list keeps its length. Overwriting joins them in order, slot
|
||||
# to filament, and the slot with no filament above it adds one to the end of the list.
|
||||
|
||||
_BG = tuple(int(round(c * 0.75 * 255)) for c in BED)
|
||||
_FRAME = (110, 116, 118)
|
||||
_LINK = tuple(int(c * 255) for c in ACCENT)
|
||||
# Muted filament colours, so that they read as colours without drawing the eye from the links.
|
||||
_PROJECT = [(196, 92, 84), (222, 196, 104), (226, 228, 228)]
|
||||
_SLOTS = [(84, 128, 200), (120, 170, 96), (150, 112, 182), (232, 152, 72)]
|
||||
_MAP = [2, 0, 3] # project filament -> slot, for Mapping
|
||||
|
||||
_S = 2 # drawn at twice the size and shrunk, for smooth edges
|
||||
|
||||
|
||||
def _layout(size):
|
||||
"""The centres of the four positions of a row, and the y of the two rows."""
|
||||
w = size * _S
|
||||
xs = [w * (0.2 + 0.2 * i) for i in range(4)]
|
||||
return xs, 0.27 * w, 0.73 * w
|
||||
|
||||
|
||||
def _swatch(d, x, y, half, colour, outline=(30, 32, 34)):
|
||||
d.rounded_rectangle([x - half, y - half, x + half, y + half], radius=half * 0.3, fill=colour, outline=outline,
|
||||
width=_S * 2)
|
||||
|
||||
|
||||
def _sync(k, overwrite):
|
||||
size = GIF_SIZE
|
||||
img = Image.new("RGB", (size * _S, size * _S), _BG)
|
||||
d = ImageDraw.Draw(img)
|
||||
xs, y_top, y_slot = _layout(size)
|
||||
half = 0.085 * size * _S
|
||||
|
||||
# The AMS: a frame round its four slots.
|
||||
d.rounded_rectangle([xs[0] - 1.7 * half, y_slot - 1.9 * half, xs[3] + 1.7 * half, y_slot + 1.9 * half],
|
||||
radius=half * 0.5, outline=_FRAME, width=_S * 2)
|
||||
for x, c in zip(xs, _SLOTS):
|
||||
d.rounded_rectangle([x - 0.8 * half, y_slot - 1.4 * half, x + 0.8 * half, y_slot + 1.4 * half],
|
||||
radius=half * 0.3, fill=c, outline=(30, 32, 34), width=_S * 2)
|
||||
|
||||
# Hold, then one link a step, then the colours change, then hold the result.
|
||||
links = 4 if overwrite else 3
|
||||
shown = max(0, min(links, (k - 3) // 2 + 1)) if k >= 3 else 0
|
||||
changed = k >= 3 + 2 * links + 1
|
||||
pairs = [(i, i) for i in range(4)] if overwrite else list(enumerate(_MAP))
|
||||
|
||||
for i, s in pairs[:shown]:
|
||||
d.line([(xs[i], y_top + half), (xs[s], y_slot - 1.4 * half)], fill=_LINK, width=_S * 3)
|
||||
|
||||
count = 4 if overwrite and changed else 3
|
||||
for i in range(count):
|
||||
if changed:
|
||||
colour = _SLOTS[i] if overwrite else _SLOTS[_MAP[i]]
|
||||
else:
|
||||
colour = _PROJECT[i]
|
||||
_swatch(d, xs[i], y_top, half, colour)
|
||||
if overwrite and not changed:
|
||||
# Where the list will grow: an empty place at its end.
|
||||
d.rounded_rectangle([xs[3] - half, y_top - half, xs[3] + half, y_top + half], radius=half * 0.3,
|
||||
outline=_FRAME, width=_S)
|
||||
return np.asarray(img.resize((size, size), Image.LANCZOS))
|
||||
|
||||
|
||||
def sync_mapping(k, n):
|
||||
return _sync(k, False)
|
||||
|
||||
|
||||
def sync_overwrite(k, n):
|
||||
return _sync(k, True)
|
||||
|
||||
|
||||
FRAMES = {
|
||||
"skip_objects": _GROW + _PICK + _FINISH + _HOLD,
|
||||
"sync_mapping": 3 + 2 * 3 + 1 + 6,
|
||||
"sync_overwrite": 3 + 2 * 4 + 1 + 6,
|
||||
}
|
||||
@@ -3,6 +3,7 @@
|
||||
#include "GUI_App.hpp"
|
||||
#include "slic3r/Utils/NetworkAgent.hpp"
|
||||
#include "I18N.hpp"
|
||||
#include "IllustratedTipPopup.hpp"
|
||||
|
||||
#include "slic3r/GUI/DeviceCore/DevExtruderSystem.h"
|
||||
|
||||
@@ -463,12 +464,16 @@ wxBoxSizer* AMSDryCtrWin::create_normal_state_panel(wxPanel* parent)
|
||||
normal_state_sizer->Add(combo_sizer, 0, wxEXPAND | wxALL, FromDIP(5));
|
||||
|
||||
m_trays_combo->Bind(wxEVT_COMBOBOX, &AMSDryCtrWin::OnFilamentSelectionChanged, this);
|
||||
set_illustrated_tooltip(m_trays_combo,
|
||||
_L("Filament to dry. Choosing one fills in its recommended drying temperature and time, lower ones while the AMS is printing."));
|
||||
|
||||
// part 3 time and temperature
|
||||
// Temperature part
|
||||
wxBoxSizer* temp_sizer = new wxBoxSizer(wxHORIZONTAL);
|
||||
m_temperature_input = new wxTextCtrl(parent, wxID_ANY, "", wxDefaultPosition, wxSize(FromDIP(80), -1));
|
||||
m_temperature_input->SetMaxLength(3); // Limit to 3 digits
|
||||
set_illustrated_tooltip(m_temperature_input,
|
||||
_L("Drying temperature inside the AMS. Too hot softens filament left in the feeder, which can block the AMS."));
|
||||
|
||||
m_temperature_input->Bind(wxEVT_CHAR, [](wxKeyEvent& event) {
|
||||
int keycode = event.GetKeyCode();
|
||||
@@ -496,6 +501,7 @@ wxBoxSizer* AMSDryCtrWin::create_normal_state_panel(wxPanel* parent)
|
||||
wxBoxSizer* time_sizer = new wxBoxSizer(wxHORIZONTAL);
|
||||
m_time_input = new wxTextCtrl(parent, wxID_ANY, "", wxDefaultPosition, wxSize(FromDIP(100), -1));
|
||||
m_time_input->SetMaxLength(3); // Limit to 3 digits
|
||||
set_illustrated_tooltip(m_time_input, _L("How long the AMS dries the filament, from 1 to 24 hours."));
|
||||
|
||||
m_time_input->Bind(wxEVT_CHAR, [](wxKeyEvent& event) {
|
||||
int keycode = event.GetKeyCode();
|
||||
@@ -542,6 +548,7 @@ wxBoxSizer* AMSDryCtrWin::create_normal_state_panel(wxPanel* parent)
|
||||
m_next_button->Bind(wxEVT_COMMAND_BUTTON_CLICKED, [this](wxCommandEvent& event) {
|
||||
m_main_simplebook->SetSelection(1);
|
||||
});
|
||||
set_illustrated_tooltip(m_next_button, _L("Shows which spools to take out of the feeder before drying, then starts drying from there."));
|
||||
|
||||
normal_state_sizer->Add(m_next_button, 0, wxALL, FromDIP(5));
|
||||
m_next_button->Disable();
|
||||
@@ -576,6 +583,7 @@ wxBoxSizer* AMSDryCtrWin::create_normal_state_panel(wxPanel* parent)
|
||||
}
|
||||
});
|
||||
|
||||
set_illustrated_tooltip(m_stop_button, _L("Stops drying before the set time is up."));
|
||||
m_stop_button->Show(false);
|
||||
normal_state_sizer->Add(m_stop_button, 0, wxALL, FromDIP(5));
|
||||
|
||||
@@ -629,6 +637,7 @@ wxBoxSizer* AMSDryCtrWin::create_cannot_dry_panel(wxPanel* parent)
|
||||
m_unload_button_restore_deadline = std::chrono::steady_clock::now() + std::chrono::seconds(5);
|
||||
});
|
||||
|
||||
set_illustrated_tooltip(m_unload_button, _L("Unloads the filament from the AMS outlet, so that drying can start."));
|
||||
m_unload_button->Show(false);
|
||||
abnormal_sizer->Add(m_unload_button, 0, wxALL, FromDIP(5));
|
||||
|
||||
@@ -730,6 +739,8 @@ wxBoxSizer* AMSDryCtrWin::create_guide_info_section(wxPanel* parent)
|
||||
|
||||
m_rotate_spool_toggle = new wxCheckBox(parent, wxID_ANY, "");
|
||||
m_rotate_spool_toggle->SetValue(false);
|
||||
set_illustrated_tooltip(m_rotate_spool_toggle,
|
||||
_L("The AMS turns the spools that are stored as shown while it dries them, so they dry more evenly."));
|
||||
|
||||
m_rotate_spool_toggle->Bind(wxEVT_CHECKBOX, [](wxCommandEvent& event) {
|
||||
bool is_checked = event.IsChecked();
|
||||
@@ -789,6 +800,8 @@ wxBoxSizer* AMSDryCtrWin::create_guide_right_section(wxPanel* parent)
|
||||
wxColour("#FFFFFE") // Text color - white
|
||||
);
|
||||
|
||||
set_illustrated_tooltip(m_start_button,
|
||||
_L("Starts drying at the set temperature for the set time. The AMS heats up and keeps the temperature until the time is up."));
|
||||
m_start_button->Bind(wxEVT_COMMAND_BUTTON_CLICKED, [this](wxCommandEvent& event) {
|
||||
m_main_simplebook->SetSelection(2);
|
||||
m_progress_gauge->SetValue(0);
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#include "slic3r/Utils/NetworkAgent.hpp"
|
||||
#include "libslic3r/Preset.hpp"
|
||||
#include "I18N.hpp"
|
||||
#include "IllustratedTipPopup.hpp"
|
||||
#include <algorithm>
|
||||
#include <boost/log/trivial.hpp>
|
||||
#include <string>
|
||||
@@ -226,7 +227,7 @@ void AMSMaterialsSetting::create()
|
||||
// Orca: link to the Orca Slicer pressure-advance wiki (region-agnostic).
|
||||
m_wiki_ctrl = new Button(this, "", "toolbar_wiki", 0, 15);
|
||||
auto wiki_url = "https://www.orcaslicer.com/wiki/pressure_advance_calib";
|
||||
m_wiki_ctrl->SetToolTip(_L("Wiki Guide") + "\n" + wiki_url);
|
||||
set_illustrated_tooltip(m_wiki_ctrl, _L("Wiki Guide") + "\n" + wiki_url);
|
||||
m_wiki_ctrl->SetStyle(ButtonStyle::Confirm, ButtonType::Circle);
|
||||
m_wiki_ctrl->SetCanFocus(false);
|
||||
m_wiki_ctrl->Bind(wxEVT_LEFT_DOWN, ([wiki_url](auto& e) {wxLaunchDefaultBrowser(wiki_url);}));
|
||||
@@ -238,6 +239,7 @@ void AMSMaterialsSetting::create()
|
||||
m_button_reset = new Button(this, _L("Reset"));
|
||||
m_button_reset->SetStyle(ButtonStyle::Regular, ButtonType::Choice);
|
||||
m_button_reset->Bind(wxEVT_BUTTON, &AMSMaterialsSetting::on_select_reset, this);
|
||||
set_illustrated_tooltip(m_button_reset, _L("Clears the filament information of this slot on the printer, so the slot shows as unset."));
|
||||
|
||||
m_button_close = new Button(this, _L("Close"));
|
||||
m_button_close->SetStyle(ButtonStyle::Regular, ButtonType::Choice);
|
||||
@@ -335,6 +337,9 @@ void AMSMaterialsSetting::create_panel_normal(wxWindow* parent)
|
||||
m_star_empty = ScalableBitmap(this, "score_star_outline", 16);
|
||||
|
||||
m_sizer_filament->Add(m_comboBox_filament, 1, wxALIGN_CENTER, 0);
|
||||
set_illustrated_tooltip(m_comboBox_filament,
|
||||
_L("Filament preset for this slot. On Confirm its type and temperature range are sent to the printer, and the slot is "
|
||||
"matched to the filaments of a print by it. Click a star in the list to keep a filament among the favorites at the top."));
|
||||
|
||||
// make the style the same with disable m_input_k_val, FIXME
|
||||
m_readonly_filament = new TextInput(parent, wxEmptyString, "", "", wxDefaultPosition, AMS_MATERIALS_SETTING_COMBOX_WIDTH, wxTE_CENTRE | wxTE_PROCESS_ENTER);
|
||||
@@ -364,6 +369,9 @@ void AMSMaterialsSetting::create_panel_normal(wxWindow* parent)
|
||||
|
||||
|
||||
m_clr_picker->Bind(wxEVT_LEFT_DOWN, &AMSMaterialsSetting::on_clr_picker, this);
|
||||
set_illustrated_tooltip(m_clr_picker,
|
||||
_L("Color of the filament in this slot, used to match the slot to the colors of a print. Click to change it; a spool read "
|
||||
"from its RFID tag keeps the color of the tag."));
|
||||
m_sizer_colour->Add(m_clr_picker, 0, 0, 0);
|
||||
m_clr_name = new Label(parent, wxEmptyString);
|
||||
m_clr_name->SetForegroundColour(*wxBLACK);
|
||||
@@ -376,6 +384,10 @@ void AMSMaterialsSetting::create_panel_normal(wxWindow* parent)
|
||||
m_title_temperature->SetFont(::Label::Body_13);
|
||||
m_title_temperature->SetForegroundColour(AMS_MATERIALS_SETTING_GREY800);
|
||||
m_title_temperature->Wrap(-1);
|
||||
// The temperature fields are always disabled and get no mouse events, so the label explains them.
|
||||
set_illustrated_tooltip(m_title_temperature,
|
||||
_L("Nozzle temperature range of the selected filament, sent to the printer with the slot information. It comes from the "
|
||||
"filament preset and cannot be edited here."));
|
||||
m_sizer_temperature->Add(m_title_temperature, 0, wxALIGN_CENTER, 0);
|
||||
|
||||
m_sizer_temperature->Add(0, 0, 0, wxEXPAND, 0);
|
||||
@@ -501,6 +513,9 @@ void AMSMaterialsSetting::create_panel_kn(wxWindow* parent)
|
||||
|
||||
m_comboBox_cali_result = new ::ComboBox(parent, wxID_ANY, wxEmptyString, wxDefaultPosition, AMS_MATERIALS_SETTING_COMBOX_WIDTH, 0, nullptr, wxCB_READONLY);
|
||||
m_sizer_cali_resutl->Add(m_comboBox_cali_result, 1, wxALIGN_CENTER, 0);
|
||||
set_illustrated_tooltip(m_comboBox_cali_result,
|
||||
_L("Flow dynamics calibration used for this slot. Default uses no saved calibration; the other entries are "
|
||||
"calibrations saved on the printer for this filament and nozzle."));
|
||||
|
||||
auto kn_val_sizer = new wxFlexGridSizer(0, 2, 0, 0);
|
||||
kn_val_sizer->SetFlexibleDirection(wxBOTH);
|
||||
@@ -521,6 +536,12 @@ void AMSMaterialsSetting::create_panel_kn(wxWindow* parent)
|
||||
m_input_k_val->SetMaxSize(wxSize(FromDIP(245), -1));
|
||||
m_input_k_val->GetTextCtrl()->SetValidator(wxTextValidator(wxFILTER_NUMERIC));
|
||||
kn_val_sizer->Add(m_input_k_val, 0, wxALL | wxEXPAND | wxALIGN_CENTER_VERTICAL, FromDIP(0));
|
||||
// On the label too: the field is disabled when the value comes from a PA profile.
|
||||
const wxString k_tip = _L("Pressure advance (flow dynamics) value: how much the printer makes up for the pressure in the nozzle "
|
||||
"when the speed changes, for even lines and sharp corners. It comes from the PA profile when one is "
|
||||
"listed; otherwise enter the value from your own calibration.");
|
||||
set_illustrated_tooltip(m_k_param, k_tip);
|
||||
set_illustrated_tooltip(m_input_k_val, k_tip);
|
||||
|
||||
// n params input
|
||||
wxBoxSizer* n_sizer = new wxBoxSizer(wxHORIZONTAL);
|
||||
@@ -2271,7 +2292,7 @@ void ColorPickerPopup::set_preset_colours(const std::vector<ColorItem>& preset_c
|
||||
cp->set_selected(false);
|
||||
cp->SetBackgroundColour(StateColor::darkModeColorFor(wxColour(238,238,238)));
|
||||
if (!item.name.empty()) {
|
||||
cp->SetToolTip(item.name);
|
||||
set_illustrated_tooltip(cp, item.name);
|
||||
}
|
||||
|
||||
m_color_pickers.push_back(cp);
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "AMSSetting.hpp"
|
||||
#include "GUI_App.hpp"
|
||||
#include "I18N.hpp"
|
||||
#include "IllustratedTipPopup.hpp"
|
||||
|
||||
#include "libslic3r_version.h"
|
||||
#include "slic3r/GUI/DeviceCore/DevExtruderSystem.h"
|
||||
@@ -65,6 +66,9 @@ void AMSSetting::create()
|
||||
wxBoxSizer *m_sizer_Insert_material = new wxBoxSizer(wxHORIZONTAL);
|
||||
m_checkbox_Insert_material_auto_read = new ::CheckBox(m_panel_Insert_material);
|
||||
m_checkbox_Insert_material_auto_read->Bind(wxEVT_TOGGLEBUTTON, &AMSSetting::on_insert_material_read, this);
|
||||
set_illustrated_tooltip(m_checkbox_Insert_material_auto_read,
|
||||
_L("On: a Bambu Lab spool put into a slot has its RFID tag read automatically, which takes about 20 seconds. "
|
||||
"Off: a new spool's slot stays blank until you set its filament."));
|
||||
m_sizer_Insert_material->Add(m_checkbox_Insert_material_auto_read, 0, wxALIGN_CENTER_VERTICAL);
|
||||
|
||||
m_sizer_Insert_material->Add(0, 0, 0, wxLEFT, 12);
|
||||
@@ -124,6 +128,9 @@ void AMSSetting::create()
|
||||
wxBoxSizer *m_sizer_starting = new wxBoxSizer(wxHORIZONTAL);
|
||||
m_checkbox_starting_auto_read = new ::CheckBox(m_panel_body);
|
||||
m_checkbox_starting_auto_read->Bind(wxEVT_TOGGLEBUTTON, &AMSSetting::on_starting_read, this);
|
||||
set_illustrated_tooltip(m_checkbox_starting_auto_read,
|
||||
_L("On: each time the printer starts, the AMS reads the spools in it again, which takes about a minute and turns the spools. "
|
||||
"Off: it keeps the filament information recorded before the last shutdown, so spools swapped while it was off are not noticed."));
|
||||
m_sizer_starting->Add(m_checkbox_starting_auto_read, 0, wxALIGN_CENTER_VERTICAL);
|
||||
m_sizer_starting->Add(0, 0, 0, wxLEFT, 12);
|
||||
m_title_starting_auto_read = new wxStaticText(m_panel_body, wxID_ANY, _L("Update on startup"), wxDefaultPosition,wxDefaultSize, 0);
|
||||
@@ -161,6 +168,8 @@ void AMSSetting::create()
|
||||
wxBoxSizer* m_sizer_remain = new wxBoxSizer(wxHORIZONTAL);
|
||||
m_checkbox_remain = new ::CheckBox(m_panel_body);
|
||||
m_checkbox_remain->Bind(wxEVT_TOGGLEBUTTON, &AMSSetting::on_remain, this);
|
||||
set_illustrated_tooltip(m_checkbox_remain,
|
||||
_L("The AMS estimates how much filament is left on each Bambu Lab spool. Spools without an RFID tag get no estimate."));
|
||||
m_sizer_remain->Add(m_checkbox_remain, 0, wxALIGN_CENTER_VERTICAL);
|
||||
m_sizer_remain->Add(0, 0, 0, wxLEFT, 12);
|
||||
m_title_remain = new wxStaticText(m_panel_body, wxID_ANY, _L("Update remaining capacity"), wxDefaultPosition, wxDefaultSize, 0);
|
||||
@@ -189,6 +198,9 @@ void AMSSetting::create()
|
||||
wxBoxSizer* m_sizer_switch_filament = new wxBoxSizer(wxHORIZONTAL);
|
||||
m_checkbox_switch_filament = new ::CheckBox(m_panel_body);
|
||||
m_checkbox_switch_filament->Bind(wxEVT_TOGGLEBUTTON, &AMSSetting::on_switch_filament, this);
|
||||
set_illustrated_tooltip(m_checkbox_switch_filament,
|
||||
_L("When the spool in use runs out, the print continues from another slot with the same filament instead of stopping. "
|
||||
"Auto Refill on the Device tab shows which slots back each other up."));
|
||||
m_sizer_switch_filament->Add(m_checkbox_switch_filament, 0, wxALIGN_CENTER_VERTICAL);
|
||||
m_sizer_switch_filament->Add(0, 0, 0, wxLEFT, 12);
|
||||
m_title_switch_filament = new wxStaticText(m_panel_body, wxID_ANY, _L("AMS filament backup"), wxDefaultPosition, wxDefaultSize, 0);
|
||||
@@ -221,6 +233,9 @@ void AMSSetting::create()
|
||||
wxBoxSizer* m_sizer_air_print = new wxBoxSizer(wxHORIZONTAL);
|
||||
m_checkbox_air_print = new ::CheckBox(m_panel_body);
|
||||
m_checkbox_air_print->Bind(wxEVT_TOGGLEBUTTON, &AMSSetting::on_air_print_detect, this);
|
||||
set_illustrated_tooltip(m_checkbox_air_print,
|
||||
_L("The printer watches whether filament still comes out of the nozzle. On a clog or ground filament it halts the print at once "
|
||||
"instead of printing on with nothing coming out."));
|
||||
m_sizer_air_print->Add(m_checkbox_air_print, 0, wxTOP, 1);
|
||||
m_sizer_air_print->Add(0, 0, 0, wxLEFT, 12);
|
||||
m_title_air_print = new wxStaticText(m_panel_body, wxID_ANY, _L("Air Printing Detection"), wxDefaultPosition, wxDefaultSize, 0);
|
||||
@@ -619,6 +634,9 @@ void AMSSettingTypePanel::CreateGui()
|
||||
m_type_combobox = new ComboBox(this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(240, -1), 0, nullptr, wxCB_READONLY);
|
||||
m_type_combobox->SetMinSize(wxSize(240, -1));
|
||||
m_type_combobox->Bind(wxEVT_COMBOBOX, &AMSSettingTypePanel::OnAmsTypeChanged, this);
|
||||
set_illustrated_tooltip(m_type_combobox,
|
||||
_L("The AMS model the printer works with. Switching installs other AMS firmware, which takes about 30 seconds and needs the "
|
||||
"printer idle with all filament unloaded."));
|
||||
|
||||
m_switching_tips = new Label(this, ::Label::Body_14);
|
||||
m_switching_tips->SetBackgroundColour(*wxWHITE);
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include "AmsMappingPopup.hpp"
|
||||
#include "IllustratedTipPopup.hpp"
|
||||
#include "I18N.hpp"
|
||||
|
||||
#include "libslic3r/Utils.hpp"
|
||||
@@ -628,13 +629,13 @@ void MaterialSyncItem::render(wxDC &dc)
|
||||
if (mapping_txt == "-") {
|
||||
m_match = false;
|
||||
mapping_txt = _L("Unmapped");
|
||||
SetToolTip(_L("Upper half area: Original\nLower half area: The filament from original project will be used when unmapped.\nAnd you can click it to modify"));
|
||||
set_illustrated_tooltip(this, _L("Upper half area: Original\nLower half area: The filament from original project will be used when unmapped.\nAnd you can click it to modify"));
|
||||
} else {
|
||||
m_match = true;
|
||||
if (m_dropdown_allow_painted) {
|
||||
SetToolTip(_L("Upper half area: Original\nLower half area: Filament in AMS\nAnd you can click it to modify"));
|
||||
set_illustrated_tooltip(this, _L("Upper half area: Original\nLower half area: Filament in AMS\nAnd you can click it to modify"));
|
||||
} else {
|
||||
SetToolTip(_L("Upper half area: Original\nLower half area: Filament in AMS\nAnd you cannot click it to modify"));
|
||||
set_illustrated_tooltip(this, _L("Upper half area: Original\nLower half area: Filament in AMS\nAnd you cannot click it to modify"));
|
||||
}
|
||||
}
|
||||
dc.SetFont(::Label::Body_12);
|
||||
@@ -937,7 +938,7 @@ AmsMapingPopup::AmsMapingPopup(wxWindow *parent, bool use_in_sync_dialog) :
|
||||
m_reset_btn->SetName(wxGetApp().dark_mode() ? "erase_dark" : "erase");
|
||||
m_reset_btn->Bind(wxEVT_BUTTON, [this](wxCommandEvent &e) { reset_ams_info(); });
|
||||
m_reset_btn->SetBackgroundColour(*wxWHITE);
|
||||
m_reset_btn->SetToolTip(_L("Reset current filament mapping"));
|
||||
set_illustrated_tooltip(m_reset_btn, _L("Reset current filament mapping"));
|
||||
|
||||
m_sizer_ams_right_horizonal->AddStretchSpacer();
|
||||
m_sizer_ams_right_horizonal->AddSpacer(FromDIP(5));
|
||||
@@ -2138,6 +2139,8 @@ void AmsReplaceMaterialDialog::create()
|
||||
m_nozzle_btn_panel = new SwitchBoard(this, _L_CONTEXT("Left", "Nozzle position"), _L_CONTEXT("Right", "Nozzle position"), wxSize(FromDIP(126), FromDIP(26)));
|
||||
m_nozzle_btn_panel->Hide();
|
||||
m_nozzle_btn_panel->Connect(wxCUSTOMEVT_SWITCH_POS, wxCommandEventHandler(AmsReplaceMaterialDialog::on_nozzle_selected), NULL, this);
|
||||
set_illustrated_tooltip(m_nozzle_btn_panel, _L("Shows the backup groups of the left or the right nozzle. Each nozzle switches only "
|
||||
"between the filaments fed to it."));
|
||||
|
||||
label_txt = new Label(this, _L("When the current material run out, the printer will continue to print in the following order."));
|
||||
label_txt->SetFont(Label::Body_13);
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "CameraPopup.hpp"
|
||||
|
||||
#include "I18N.hpp"
|
||||
#include "IllustratedTipPopup.hpp"
|
||||
#include "Widgets/Label.hpp"
|
||||
#include "libslic3r/Utils.hpp"
|
||||
#include <wx/object.h>
|
||||
@@ -83,6 +84,7 @@ CameraPopup::CameraPopup(wxWindow *parent)
|
||||
m_text_recording->SetFont(Label::Head_14);
|
||||
m_text_recording->SetForegroundColour(TEXT_COL);
|
||||
m_switch_recording = new SwitchButton(m_panel);
|
||||
set_illustrated_tooltip(m_switch_recording, _L("The printer records a video of each print to its storage. Needs storage in the printer."));
|
||||
|
||||
//vcamera
|
||||
m_text_vcamera = new wxStaticText(m_panel, wxID_ANY, _L("Go Live"));
|
||||
@@ -90,6 +92,8 @@ CameraPopup::CameraPopup(wxWindow *parent)
|
||||
m_text_vcamera->SetFont(Label::Head_14);
|
||||
m_text_vcamera->SetForegroundColour(TEXT_COL);
|
||||
m_switch_vcamera = new SwitchButton(m_panel);
|
||||
set_illustrated_tooltip(m_switch_vcamera, _L("Shares the printer's camera stream as a virtual camera on this computer, so that other apps (streaming, video calls) can show it. "
|
||||
"Needs the Virtual Camera Tools, which Orca offers to download when they are missing."));
|
||||
|
||||
top_sizer->Add(m_text_recording, 0, wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT | wxALL, FromDIP(5));
|
||||
top_sizer->Add(m_switch_recording, 0, wxALIGN_CENTER_VERTICAL | wxALIGN_RIGHT | wxALL, FromDIP(5));
|
||||
@@ -123,7 +127,8 @@ CameraPopup::CameraPopup(wxWindow *parent)
|
||||
top_sizer->Add(0, 0, wxALL, 0);
|
||||
for (int i = 0; i < (int)RESOLUTION_OPTIONS_NUM; ++i)
|
||||
{
|
||||
m_resolution_options[i] = create_item_radiobox(to_resolution_label_string(CameraResolution(i)), m_panel, wxEmptyString, FromDIP(10));
|
||||
m_resolution_options[i] = create_item_radiobox(to_resolution_label_string(CameraResolution(i)), m_panel,
|
||||
_L("Resolution of the printer camera's video. A higher one shows more detail but needs more network bandwidth."), FromDIP(10));
|
||||
top_sizer->Add(m_resolution_options[i], 0, wxALIGN_CENTER_VERTICAL | wxALIGN_LEFT | wxALL, FromDIP(5));
|
||||
top_sizer->Add(0, 0, wxALL, 0);
|
||||
}
|
||||
@@ -136,13 +141,14 @@ CameraPopup::CameraPopup(wxWindow *parent)
|
||||
m_custom_camera_input = new TextInput(m_panel, wxEmptyString, wxEmptyString, wxEmptyString, wxDefaultPosition, wxDefaultSize);
|
||||
m_custom_camera_input->GetTextCtrl()->SetHint(_L("Camera stream URL"));
|
||||
m_custom_camera_input->GetTextCtrl()->SetFont(Label::Body_14);
|
||||
m_custom_camera_input->SetToolTip(_L("URL of an MJPEG stream or of a web page that shows the camera, for example http://192.168.1.10:8080/?action=stream"));
|
||||
set_illustrated_tooltip(m_custom_camera_input, _L("URL of an MJPEG stream or of a web page that shows the camera, for example http://192.168.1.10:8080/?action=stream"));
|
||||
m_custom_camera_input_confirm = new Button(m_panel, _L("Enable"));
|
||||
m_custom_camera_input_confirm->SetTextColor(wxColour(0xFFFFFE));
|
||||
m_custom_camera_input_confirm->SetFont(Label::Body_14);
|
||||
m_custom_camera_input_confirm->SetMinSize(wxSize(FromDIP(90), FromDIP(30)));
|
||||
m_custom_camera_input_confirm->SetCornerRadius(FromDIP(12));
|
||||
m_custom_camera_input_confirm->Bind(wxEVT_BUTTON, &CameraPopup::on_camera_source_changed, this);
|
||||
set_illustrated_tooltip(m_custom_camera_input_confirm, _L("Enable shows the camera at the URL above in the Device tab instead of the printer's own camera. Disable goes back to the printer's camera."));
|
||||
|
||||
const std::string custom_source = wxGetApp().app_config->get("camera", "custom_source");
|
||||
m_custom_camera_input->GetTextCtrl()->SetValue(wxString::FromUTF8(custom_source));
|
||||
@@ -314,8 +320,7 @@ wxWindow* CameraPopup::create_item_radiobox(wxString title, wxWindow* parent, wx
|
||||
}
|
||||
});
|
||||
|
||||
radiobox->SetToolTip(tooltip);
|
||||
text->SetToolTip(tooltip);
|
||||
set_illustrated_tooltip(item, tooltip);
|
||||
return item;
|
||||
}
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
|
||||
#include "slic3r/GUI/I18N.hpp"
|
||||
#include "slic3r/GUI/GUI_App.hpp"
|
||||
#include "slic3r/GUI/IllustratedTipPopup.hpp"
|
||||
#include "slic3r/GUI/DeviceTab/wgtMsgBox.h"
|
||||
#include "slic3r/GUI/Widgets/Label.hpp" // Orca: explicit Label include
|
||||
#include <wx/colour.h>
|
||||
@@ -125,13 +126,7 @@ static void s_update_nozzle_info(wgtDeviceNozzleRackNozzleItem* item,
|
||||
const DevNozzle& nozzle_info)
|
||||
{
|
||||
item->UpdateInfo(rack, nozzle_info.IsOnRack());
|
||||
if (nozzle_info.IsUnknown()) {
|
||||
if (item->GetToolTipText() != _L("Nozzle information needs to be read")) {
|
||||
item->SetToolTip(_L("Nozzle information needs to be read"));
|
||||
}
|
||||
} else {
|
||||
item->SetToolTip(wxEmptyString);
|
||||
}
|
||||
set_illustrated_tooltip(item, nozzle_info.IsUnknown() ? _L("Nozzle information needs to be read") : wxString());
|
||||
}
|
||||
|
||||
void wgtDeviceNozzleRackSelect::UpdateNozzleInfos(std::shared_ptr<DevNozzleRack> rack)
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#include "libslic3r/Preset.hpp"
|
||||
#include <algorithm>
|
||||
#include "I18N.hpp"
|
||||
#include "IllustratedTipPopup.hpp"
|
||||
#include <boost/log/trivial.hpp>
|
||||
#include <wx/anybutton.h>
|
||||
#include <wx/checklst.h>
|
||||
@@ -96,6 +97,7 @@ void ExtrusionCalibration::create()
|
||||
m_comboBox_nozzle_dia->AppendString(wxString::Format("%1.1f", 0.4));
|
||||
m_comboBox_nozzle_dia->AppendString(wxString::Format("%1.1f", 0.6));
|
||||
m_comboBox_nozzle_dia->AppendString(wxString::Format("%1.1f", 0.8));
|
||||
set_illustrated_tooltip(m_comboBox_nozzle_dia, _L("The diameter of the nozzle installed on the printer. Only filament presets for this printer and nozzle are listed below."));
|
||||
|
||||
select_sizer->Add(m_comboBox_nozzle_dia, 0, wxEXPAND);
|
||||
select_sizer->Add(0, EXTRUSION_CALIBRATION_WIDGET_GAP, 0, 0);
|
||||
@@ -108,6 +110,7 @@ void ExtrusionCalibration::create()
|
||||
#else
|
||||
m_comboBox_filament = new ComboBox(m_step_1_panel, wxID_ANY, wxEmptyString, wxDefaultPosition, EXTRUSION_CALIBRATION_BED_COMBOX, 0, nullptr, wxCB_READONLY);
|
||||
#endif
|
||||
set_illustrated_tooltip(m_comboBox_filament, _L("The filament preset that matches the filament in this slot. Its temperatures and max volumetric speed, shown below, are used for the calibration."));
|
||||
select_sizer->Add(m_comboBox_filament, 0, wxEXPAND);
|
||||
select_sizer->Add(0, EXTRUSION_CALIBRATION_WIDGET_GAP, 0, 0);
|
||||
|
||||
@@ -120,6 +123,7 @@ void ExtrusionCalibration::create()
|
||||
#else
|
||||
m_comboBox_bed_type = new ComboBox(m_step_1_panel, wxID_ANY, wxEmptyString, wxDefaultPosition, EXTRUSION_CALIBRATION_BED_COMBOX, 0, nullptr, wxCB_READONLY);
|
||||
#endif
|
||||
set_illustrated_tooltip(m_comboBox_bed_type, _L("The plate on the printer. It sets the bed temperature, taken from the filament preset for this plate."));
|
||||
select_sizer->Add(m_comboBox_bed_type, 0, wxEXPAND);
|
||||
|
||||
// get bed type
|
||||
@@ -153,6 +157,7 @@ void ExtrusionCalibration::create()
|
||||
wxWindow::GetTextExtent(_L("Max volumetric speed")).x),
|
||||
EXTRUSION_CALIBRATION_INPUT_SIZE.x);
|
||||
m_nozzle_temp = new TextInput(m_step_1_panel, wxEmptyString, _L("\u2103" /* °C */), "", wxDefaultPosition, { max_input_width, EXTRUSION_CALIBRATION_INPUT_SIZE.y }, wxTE_READONLY);
|
||||
set_illustrated_tooltip(m_nozzle_temp, _L("The nozzle temperature of the selected filament preset, used for the calibration. To change it, edit the filament preset."));
|
||||
nozzle_temp_sizer->Add(nozzle_temp_text, 0, wxALIGN_LEFT);
|
||||
nozzle_temp_sizer->AddSpacer(FromDIP(4));
|
||||
nozzle_temp_sizer->Add(m_nozzle_temp, 0, wxEXPAND);
|
||||
@@ -160,6 +165,7 @@ void ExtrusionCalibration::create()
|
||||
auto bed_temp_sizer = new wxBoxSizer(wxVERTICAL);
|
||||
auto bed_temp_text = new wxStaticText(m_step_1_panel, wxID_ANY, _L("Bed temperature"));
|
||||
m_bed_temp = new TextInput(m_step_1_panel, wxEmptyString, _L("\u2103" /* °C */), "", wxDefaultPosition, { max_input_width, EXTRUSION_CALIBRATION_INPUT_SIZE.y }, wxTE_READONLY);
|
||||
set_illustrated_tooltip(m_bed_temp, _L("The bed temperature the filament preset sets for the selected plate type. 0 means the filament is not meant for this plate, and the calibration cannot start."));
|
||||
bed_temp_sizer->Add(bed_temp_text, 0, wxALIGN_LEFT);
|
||||
bed_temp_sizer->AddSpacer(FromDIP(4));
|
||||
bed_temp_sizer->Add(m_bed_temp, 0, wxEXPAND);
|
||||
@@ -167,6 +173,7 @@ void ExtrusionCalibration::create()
|
||||
auto max_flow_sizer = new wxBoxSizer(wxVERTICAL);
|
||||
auto max_flow_text = new wxStaticText(m_step_1_panel, wxID_ANY, _L("Max volumetric speed"));
|
||||
m_max_flow_ratio = new TextInput(m_step_1_panel, wxEmptyString, _L("mm³"), "", wxDefaultPosition, { max_input_width, EXTRUSION_CALIBRATION_INPUT_SIZE.y }, wxTE_READONLY);
|
||||
set_illustrated_tooltip(m_max_flow_ratio, _L("The max volumetric speed of the selected filament preset, in cubic millimeters per second. The calibration prints at flows up to this value, so it should match the one you print with."));
|
||||
max_flow_sizer->Add(max_flow_text, 0, wxALIGN_LEFT);
|
||||
max_flow_sizer->AddSpacer(FromDIP(4));
|
||||
max_flow_sizer->Add(m_max_flow_ratio, 0, wxEXPAND);
|
||||
@@ -198,11 +205,13 @@ void ExtrusionCalibration::create()
|
||||
m_button_cali = new Button(m_step_1_panel, _L("Start"));
|
||||
m_button_cali->SetStyle(ButtonStyle::Confirm, ButtonType::Choice);
|
||||
m_button_cali->Bind(wxEVT_BUTTON, &ExtrusionCalibration::on_click_cali, this);
|
||||
set_illustrated_tooltip(m_button_cali, _L("The printer heats up and prints a row of test lines on the plate with the filament in this slot. Clear the plate first; it takes a few minutes and a little filament."));
|
||||
|
||||
m_cali_cancel = new Button(m_step_1_panel, _L("Cancel"));
|
||||
m_cali_cancel->SetStyle(ButtonStyle::Regular, ButtonType::Choice);
|
||||
m_cali_cancel->Hide();
|
||||
m_cali_cancel->Bind(wxEVT_BUTTON, &ExtrusionCalibration::on_click_cancel, this);
|
||||
set_illustrated_tooltip(m_cali_cancel, _L("Stops the calibration print on the printer."));
|
||||
|
||||
m_button_next_step = new Button(m_step_1_panel, _L("Next"));
|
||||
m_button_next_step->SetStyle(ButtonStyle::Regular, ButtonType::Choice);
|
||||
@@ -249,6 +258,7 @@ void ExtrusionCalibration::create()
|
||||
m_k_val = new TextInput(m_step_2_panel, wxEmptyString, "", "", wxDefaultPosition, wxDefaultSize);
|
||||
auto n_val_text = new wxStaticText(m_step_2_panel, wxID_ANY, _L("Factor N"), wxDefaultPosition, wxDefaultSize, 0);
|
||||
m_n_val = new TextInput(m_step_2_panel, wxEmptyString, "", "", wxDefaultPosition, wxDefaultSize);
|
||||
set_illustrated_tooltip(m_k_val, _L("The pressure advance factor printed beside the most even line of the test. A K value too low leaves corners bulging, too high leaves gaps where lines start and end."));
|
||||
|
||||
// hide n
|
||||
n_val_text->Hide();
|
||||
@@ -263,6 +273,7 @@ void ExtrusionCalibration::create()
|
||||
m_button_save_result = new Button(m_step_2_panel, _L("Save"));
|
||||
m_button_save_result->SetStyle(ButtonStyle::Confirm, ButtonType::Choice);
|
||||
m_button_save_result->Bind(wxEVT_BUTTON, &ExtrusionCalibration::on_click_save, this);
|
||||
set_illustrated_tooltip(m_button_save_result, _L("Stores the K value on the printer for the filament in this slot, so later prints with it use the value. Closes this dialog."));
|
||||
|
||||
m_button_last_step = new Button(m_step_2_panel, _L_CONTEXT("Back", "Navigation")); // Back for english
|
||||
m_button_last_step->SetStyle(ButtonStyle::Regular, ButtonType::Choice);
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include "ImageGrid.h"
|
||||
#include "IllustratedTipPopup.hpp"
|
||||
#include "Printer/PrinterFileSystem.h"
|
||||
#include "wxExtensions.hpp"
|
||||
#include "Widgets/Label.hpp"
|
||||
@@ -310,20 +311,22 @@ void ImageGrid::mouseMoved(wxMouseEvent& event)
|
||||
if (!m_hovered || m_pressed)
|
||||
return;
|
||||
auto hit = HitTest(event.GetPosition());
|
||||
// The file's name over its card, beside the card. The grid draws the cards itself, so the card under
|
||||
// the pointer is reported on every move.
|
||||
if (hit.first == HIT_ITEM) {
|
||||
auto & file = m_file_sys->GetFile(hit.second);
|
||||
wxString tip = from_u8(file.name);
|
||||
if (auto title = file.Title(); !title.empty())
|
||||
tip = wxString::Format(_L("File: %s\nTitle: %s\n"), from_u8(file.name), from_u8(title));
|
||||
wxPoint off;
|
||||
size_t rel = hit.second - firstItem(GetClientSize(), off);
|
||||
wxRect card(off + wxPoint(int(rel % m_col_count) * m_cell_size.x, int(rel / m_col_count) * m_cell_size.y), m_border_size);
|
||||
hover_illustrated_tooltip(this, card, tip);
|
||||
} else
|
||||
hover_illustrated_tooltip(this, wxRect(), wxEmptyString);
|
||||
if (hit != std::make_pair(m_hit_type, m_hit_item)) {
|
||||
m_hit_type = hit.first;
|
||||
m_hit_item = hit.second;
|
||||
if (hit.first == HIT_ITEM) {
|
||||
SetToolTip({});
|
||||
auto & file = m_file_sys->GetFile(hit.second);
|
||||
if (auto title = file.Title(); !title.empty()) {
|
||||
auto tip = wxString::Format(_L("File: %s\nTitle: %s\n"), from_u8(file.name), from_u8(title));
|
||||
SetToolTip(tip);
|
||||
} else {
|
||||
SetToolTip(from_u8(file.name));
|
||||
}
|
||||
} else
|
||||
SetToolTip({});
|
||||
Refresh();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#include "MediaFilePanel.h"
|
||||
#include "ImageGrid.h"
|
||||
#include "IllustratedTipPopup.hpp"
|
||||
#include "I18N.hpp"
|
||||
#include "GUI_App.hpp"
|
||||
#include "GUI.hpp"
|
||||
@@ -74,9 +75,9 @@ MediaFilePanel::MediaFilePanel(wxWindow * parent)
|
||||
m_button_year = new ::Button(m_time_panel, _L("Year"), "", wxBORDER_NONE);
|
||||
m_button_month = new ::Button(m_time_panel, _L("Month"), "", wxBORDER_NONE);
|
||||
m_button_all = new ::Button(m_time_panel, _L("All Files"), "", wxBORDER_NONE);
|
||||
m_button_year->SetToolTip(_L("Group files by year, recent first."));
|
||||
m_button_month->SetToolTip(_L("Group files by month, recent first."));
|
||||
m_button_all->SetToolTip(_L("Show all files, recent first."));
|
||||
set_illustrated_tooltip(m_button_year, _L("Group files by year, recent first."));
|
||||
set_illustrated_tooltip(m_button_month, _L("Group files by month, recent first."));
|
||||
set_illustrated_tooltip(m_button_all, _L("Show all files, recent first."));
|
||||
m_button_all->SetFont(Label::Head_14); // sync with m_last_mode
|
||||
for (auto b : {m_button_year, m_button_month, m_button_all}) {
|
||||
b->SetBackgroundColor(StateColor());
|
||||
@@ -107,11 +108,11 @@ MediaFilePanel::MediaFilePanel(wxWindow * parent)
|
||||
m_type_panel->SetCornerRadius(FromDIP(5));
|
||||
m_type_panel->SetMinSize({-1, 48 * em_unit(this) / 10});
|
||||
m_button_timelapse = new ::Button(m_type_panel, _L("Timelapse"), "", wxBORDER_NONE);
|
||||
m_button_timelapse->SetToolTip(_L("Switch to timelapse files."));
|
||||
set_illustrated_tooltip(m_button_timelapse, _L("Switch to timelapse files."));
|
||||
m_button_video = new ::Button(m_type_panel, _L("Video"), "", wxBORDER_NONE);
|
||||
m_button_video->SetToolTip(_L("Switch to video files."));
|
||||
set_illustrated_tooltip(m_button_video, _L("Switch to video files."));
|
||||
m_button_model = new ::Button(m_type_panel, _L("Model"), "", wxBORDER_NONE);
|
||||
m_button_video->SetToolTip(_L("Switch to 3MF model files."));
|
||||
set_illustrated_tooltip(m_button_model, _L("Switch to 3MF model files."));
|
||||
for (auto b : {m_button_timelapse, m_button_video, m_button_model}) {
|
||||
b->SetBackgroundColor(background);
|
||||
b->SetCanFocus(false);
|
||||
@@ -129,15 +130,15 @@ MediaFilePanel::MediaFilePanel(wxWindow * parent)
|
||||
m_manage_panel = new ::StaticBox(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_NONE);
|
||||
m_manage_panel->SetBackgroundColor(StateColor());
|
||||
m_button_delete = new ::Button(m_manage_panel, _L("Delete"));
|
||||
m_button_delete->SetToolTip(_L("Delete selected files from printer."));
|
||||
set_illustrated_tooltip(m_button_delete, _L("Delete selected files from printer."));
|
||||
m_button_download = new ::Button(m_manage_panel, _L("Download"));
|
||||
m_button_download->SetToolTip(_L("Download selected files from printer."));
|
||||
set_illustrated_tooltip(m_button_download, _L("Download selected files from printer."));
|
||||
m_button_select_all = new ::Button(m_manage_panel, _L("Select All"));
|
||||
m_button_select_all->SetToolTip(_L("Select all files in the list for batch management."));
|
||||
set_illustrated_tooltip(m_button_select_all, _L("Select all files in the list for batch management."));
|
||||
m_button_management = new ::Button(m_manage_panel, _L("Select"));
|
||||
m_button_management->SetToolTip(_L("Batch manage files."));
|
||||
set_illustrated_tooltip(m_button_management, _L("Batch manage files."));
|
||||
m_button_refresh = new ::Button(m_manage_panel, _L("Refresh"));
|
||||
m_button_refresh->SetToolTip(_L("Reload file list from printer."));
|
||||
set_illustrated_tooltip(m_button_refresh, _L("Reload file list from printer."));
|
||||
for (auto b : {m_button_delete, m_button_download, m_button_refresh, m_button_management, m_button_select_all}) {
|
||||
b->SetFont(Label::Body_12);
|
||||
b->SetCornerRadius(12);
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include "MediaPlayCtrl.h"
|
||||
#include "IllustratedTipPopup.hpp"
|
||||
#include "PrinterNetworkTypes.hpp"
|
||||
#include "WebMediaController.hpp"
|
||||
#include "IPrinterAgent.hpp"
|
||||
@@ -97,6 +98,7 @@ MediaPlayCtrl::MediaPlayCtrl(wxWindow *parent, wxMediaCtrl3 *media_ctrl, const w
|
||||
|
||||
m_button_play = new Button(this, "", "media_play", wxBORDER_NONE);
|
||||
m_button_play->SetCanFocus(false);
|
||||
set_illustrated_tooltip(m_button_play, _L("Starts or stops the live view of the printer's camera."));
|
||||
|
||||
m_label_status = new Label(this, "");
|
||||
m_label_status->SetForegroundColour(wxColour("#323A3C"));
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#include "ModelMall.hpp"
|
||||
#include "GUI_App.hpp"
|
||||
#include "IllustratedTipPopup.hpp"
|
||||
|
||||
#include "slic3r/GUI/GUI_Utils.hpp"
|
||||
#include <wx/intl.h>
|
||||
@@ -80,15 +81,15 @@ namespace GUI {
|
||||
|
||||
#ifdef __APPLE__
|
||||
// FIXME: maybe should be using GUI::shortkey_ctrl_prefix() or equivalent?
|
||||
m_control_back->SetToolTip(_L("Click to return") + "(" + u8"\u2318+" /* u8"⌘+" */ + _L("Left Arrow") + ")");
|
||||
m_control_forward->SetToolTip(_L("Click to continue") + "(" + u8"\u2318+" /* u8"⌘+" */ + _L("Right Arrow") + ")");
|
||||
set_illustrated_tooltip(m_control_back, _L("Click to return") + "(" + u8"\u2318+" /* u8"⌘+" */ + _L("Left Arrow") + ")");
|
||||
set_illustrated_tooltip(m_control_forward, _L("Click to continue") + "(" + u8"\u2318+" /* u8"⌘+" */ + _L("Right Arrow") + ")");
|
||||
#else
|
||||
// FIXME: maybe should be using GUI::shortkey_alt_prefix() or equivalent?
|
||||
m_control_back->SetToolTip(_L("Click to return") + "(" + _L("Alt+") + _L("Left Arrow") + ")");
|
||||
m_control_forward->SetToolTip(_L("Click to continue") + "(" + _L("Alt+") + _L("Right Arrow") + ")");
|
||||
set_illustrated_tooltip(m_control_back, _L("Click to return") + "(" + _L("Alt+") + _L("Left Arrow") + ")");
|
||||
set_illustrated_tooltip(m_control_forward, _L("Click to continue") + "(" + _L("Alt+") + _L("Right Arrow") + ")");
|
||||
#endif
|
||||
|
||||
m_control_refresh->SetToolTip(_L("Refresh"));
|
||||
set_illustrated_tooltip(m_control_refresh, _L("Refresh"));
|
||||
/* auto m_textCtrl1 = new wxTextCtrl(m_web_control_panel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(600, 30), 0);
|
||||
auto m_button1 = new wxButton(m_web_control_panel, wxID_ANY, wxT("GO"), wxDefaultPosition, wxDefaultSize, 0);
|
||||
m_button1->Bind(wxEVT_BUTTON, [this,m_textCtrl1](auto& e) {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "MultiMachineManagerPage.hpp"
|
||||
#include "GUI_App.hpp"
|
||||
#include "I18N.hpp"
|
||||
#include "IllustratedTipPopup.hpp"
|
||||
#include "MainFrame.hpp"
|
||||
|
||||
#include "DeviceCore/DevManager.h"
|
||||
@@ -107,6 +108,11 @@ void MultiMachineItem::OnMove(wxMouseEvent& evt)
|
||||
else {
|
||||
SetCursor(wxCURSOR_ARROW);
|
||||
}
|
||||
|
||||
// The View button is painted in doRender(), so its tooltip follows the pointer here.
|
||||
const wxRect view_rect(left, (GetSize().y - FromDIP(38)) / 2, FromDIP(90), FromDIP(38));
|
||||
hover_illustrated_tooltip(this, view_rect.Contains(evt.GetPosition()) ? view_rect : wxRect(),
|
||||
_L("Opens this printer on the Device page and starts its camera view."));
|
||||
}
|
||||
|
||||
void MultiMachineItem::paintEvent(wxPaintEvent& evt)
|
||||
@@ -325,6 +331,8 @@ MultiMachineManagerPage::MultiMachineManagerPage(wxWindow* parent)
|
||||
evt.Skip();
|
||||
});
|
||||
|
||||
set_illustrated_tooltip(m_button_edit, _L("Choose which of your printers are listed on this page."));
|
||||
|
||||
sizer_button_printer->Add( 0, 0, 1, wxEXPAND, 5 );
|
||||
sizer_button_printer->Add(m_button_edit, 0, wxALIGN_CENTER, 0);
|
||||
|
||||
@@ -347,6 +355,7 @@ MultiMachineManagerPage::MultiMachineManagerPage(wxWindow* parent)
|
||||
m_printer_name->Bind(wxEVT_LEAVE_WINDOW, [&](wxMouseEvent& evt) {
|
||||
SetCursor(wxCURSOR_ARROW);
|
||||
});
|
||||
set_illustrated_tooltip(m_printer_name, _L("Sorts the printers by name. Click again to reverse the order."));
|
||||
m_printer_name->Bind(wxEVT_LEFT_DOWN, [this](wxMouseEvent& evt) {
|
||||
device_dev_name_big = !device_dev_name_big;
|
||||
auto sortcb = [this](ObjState s1, ObjState s2) {
|
||||
@@ -380,6 +389,7 @@ MultiMachineManagerPage::MultiMachineManagerPage(wxWindow* parent)
|
||||
m_status->Bind(wxEVT_LEAVE_WINDOW, [&](wxMouseEvent& evt) {
|
||||
SetCursor(wxCURSOR_ARROW);
|
||||
});
|
||||
set_illustrated_tooltip(m_status, _L("Sorts the printers by their state, such as idle, printing or finished. Click again to reverse the order."));
|
||||
m_status->Bind(wxEVT_LEFT_DOWN, [this](wxMouseEvent& evt) {
|
||||
device_state_big = !device_state_big;
|
||||
auto sortcb = [this](ObjState s1, ObjState s2) {
|
||||
@@ -418,6 +428,7 @@ MultiMachineManagerPage::MultiMachineManagerPage(wxWindow* parent)
|
||||
|
||||
m_button_add = new Button(m_main_panel, _L("Add"));
|
||||
m_button_add->SetStyle(ButtonStyle::Confirm, ButtonType::Window);
|
||||
set_illustrated_tooltip(m_button_add, _L("Choose which of your printers are listed on this page."));
|
||||
|
||||
m_button_add->Bind(wxEVT_BUTTON, [this](wxCommandEvent& evt) {
|
||||
MultiMachinePickPage dlg;
|
||||
@@ -453,6 +464,7 @@ MultiMachineManagerPage::MultiMachineManagerPage(wxWindow* parent)
|
||||
btn_last_page->SetMinSize(wxSize(FromDIP(20), FromDIP(20)));
|
||||
btn_last_page->SetMaxSize(wxSize(FromDIP(20), FromDIP(20)));
|
||||
btn_last_page->SetBackgroundColor(head_bg);
|
||||
set_illustrated_tooltip(btn_last_page, _L("Previous page"));
|
||||
btn_last_page->Bind(wxEVT_LEFT_DOWN, [&](wxMouseEvent& evt) {
|
||||
evt.Skip();
|
||||
if (m_current_page == 0)
|
||||
@@ -471,6 +483,7 @@ MultiMachineManagerPage::MultiMachineManagerPage(wxWindow* parent)
|
||||
btn_next_page->SetMinSize(wxSize(FromDIP(20), FromDIP(20)));
|
||||
btn_next_page->SetMaxSize(wxSize(FromDIP(20), FromDIP(20)));
|
||||
btn_next_page->SetBackgroundColor(head_bg);
|
||||
set_illustrated_tooltip(btn_next_page, _L("Next page"));
|
||||
btn_next_page->Bind(wxEVT_LEFT_DOWN, [&](wxMouseEvent& evt) {
|
||||
evt.Skip();
|
||||
if (m_current_page == m_total_page - 1)
|
||||
@@ -489,6 +502,7 @@ MultiMachineManagerPage::MultiMachineManagerPage(wxWindow* parent)
|
||||
StateColor input_bg(std::pair<wxColour, int>(wxColour("#F0F0F1"), StateColor::Disabled), std::pair<wxColour, int>(*wxWHITE, StateColor::Enabled));
|
||||
m_page_num_input->SetBackgroundColor(input_bg);
|
||||
m_page_num_input->GetTextCtrl()->SetValue("1");
|
||||
set_illustrated_tooltip(m_page_num_input, _L("Type a page number and press Enter or click Go to jump to that page."));
|
||||
wxTextValidator validator(wxFILTER_DIGITS);
|
||||
m_page_num_input->GetTextCtrl()->SetValidator(validator);
|
||||
m_page_num_input->GetTextCtrl()->Bind(wxEVT_TEXT_ENTER, [&](wxCommandEvent& e) {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#include "MultiTaskManagerPage.hpp"
|
||||
#include "I18N.hpp"
|
||||
#include "IllustratedTipPopup.hpp"
|
||||
|
||||
#include "GUI_App.hpp"
|
||||
#include "MainFrame.hpp"
|
||||
@@ -85,6 +86,7 @@ MultiTaskItem::MultiTaskItem(wxWindow* parent, MachineObject* obj, int type)
|
||||
m_button_resume->SetTextColor(StateColor::darkModeColorFor("#FFFFFE"));
|
||||
m_button_resume->SetMinSize(wxSize(FromDIP(70), FromDIP(35)));
|
||||
m_button_resume->SetCornerRadius(6);
|
||||
set_illustrated_tooltip(m_button_resume, _L("Resumes this paused print on its printer."));
|
||||
|
||||
|
||||
StateColor clean_bg(std::pair<wxColour, int>(wxColour(255, 255, 255), StateColor::Disabled), std::pair<wxColour, int>(wxColour(206, 206, 206), StateColor::Pressed),
|
||||
@@ -100,6 +102,7 @@ MultiTaskItem::MultiTaskItem(wxWindow* parent, MachineObject* obj, int type)
|
||||
m_button_cancel->SetFont(Label::Body_12);
|
||||
m_button_cancel->SetCornerRadius(6);
|
||||
m_button_cancel->SetMinSize(wxSize(FromDIP(70), FromDIP(35)));
|
||||
set_illustrated_tooltip(m_button_cancel, _L("Stops sending this task. The printer does not start it."));
|
||||
|
||||
m_button_pause = new Button(this, _L_CONTEXT("Pause", "Verb"));
|
||||
m_button_pause->SetBackgroundColor(clean_bg);
|
||||
@@ -108,6 +111,7 @@ MultiTaskItem::MultiTaskItem(wxWindow* parent, MachineObject* obj, int type)
|
||||
m_button_pause->SetFont(Label::Body_12);
|
||||
m_button_pause->SetCornerRadius(6);
|
||||
m_button_pause->SetMinSize(wxSize(FromDIP(70), FromDIP(35)));
|
||||
set_illustrated_tooltip(m_button_pause, _L("Pauses this print on its printer. Resume it later from here or on the printer."));
|
||||
|
||||
m_button_stop = new Button(this, _L("Stop"));
|
||||
m_button_stop->SetBackgroundColor(clean_bg);
|
||||
@@ -116,6 +120,7 @@ MultiTaskItem::MultiTaskItem(wxWindow* parent, MachineObject* obj, int type)
|
||||
m_button_stop->SetFont(Label::Body_12);
|
||||
m_button_stop->SetCornerRadius(6);
|
||||
m_button_stop->SetMinSize(wxSize(FromDIP(70), FromDIP(35)));
|
||||
set_illustrated_tooltip(m_button_stop, _L("Stops this print at once, without asking. A stopped print cannot be resumed."));
|
||||
|
||||
|
||||
item_sizer->Add(0, 0, 1, wxEXPAND, 0);
|
||||
@@ -319,6 +324,12 @@ void MultiTaskItem::OnMove(wxMouseEvent& evt)
|
||||
else {
|
||||
SetCursor(wxCURSOR_ARROW);
|
||||
}
|
||||
|
||||
// The check box is painted in doRender(), so its tooltip follows the pointer here.
|
||||
const wxRect check_rect(left, 0, m_bitmap_check_disable.GetBmpWidth(), GetSize().y);
|
||||
hover_illustrated_tooltip(this, check_rect.Contains(evt.GetPosition()) ? check_rect : wxRect(),
|
||||
m_task_type == 0 ? _L("Selects this task for the Stop button under the list.") :
|
||||
_L("Selects this print for the Pause, Resume and Stop buttons under the list."));
|
||||
}
|
||||
|
||||
void MultiTaskItem::paintEvent(wxPaintEvent& evt)
|
||||
@@ -593,6 +604,7 @@ LocalTaskManagerPage::LocalTaskManagerPage(wxWindow* parent)
|
||||
m_select_checkbox->SetMinSize(wxSize(FromDIP(TASK_LEFT_PRINTABLE), FromDIP(DEVICE_ITEM_MAX_HEIGHT)));
|
||||
m_select_checkbox->SetMaxSize(wxSize(FromDIP(TASK_LEFT_PRINTABLE), FromDIP(DEVICE_ITEM_MAX_HEIGHT)));
|
||||
m_table_head_sizer->Add(m_select_checkbox, 0, wxALIGN_CENTER_VERTICAL, 0);
|
||||
set_illustrated_tooltip(m_select_checkbox, _L("Selects every task that is still waiting or being sent, for the Stop button under the list."));
|
||||
|
||||
m_select_checkbox->Bind(wxEVT_TOGGLEBUTTON, [this](wxCommandEvent& e) {
|
||||
if (m_select_checkbox->GetValue()) {
|
||||
@@ -635,6 +647,7 @@ LocalTaskManagerPage::LocalTaskManagerPage(wxWindow* parent)
|
||||
m_printer_name->Bind(wxEVT_LEAVE_WINDOW, [&](wxMouseEvent& evt) {
|
||||
SetCursor(wxCURSOR_ARROW);
|
||||
});
|
||||
set_illustrated_tooltip(m_printer_name, _L("Sorts the tasks by printer name. Click again to reverse the order."));
|
||||
m_printer_name->Bind(wxEVT_LEFT_DOWN, [this](wxMouseEvent& evt) {
|
||||
device_name_big = !device_name_big;
|
||||
this->m_sort.set_role(SortItem::SortRule::SR_DEV_NAME, device_name_big);
|
||||
@@ -655,6 +668,7 @@ LocalTaskManagerPage::LocalTaskManagerPage(wxWindow* parent)
|
||||
m_status->Bind(wxEVT_LEAVE_WINDOW, [&](wxMouseEvent& evt) {
|
||||
SetCursor(wxCURSOR_ARROW);
|
||||
});
|
||||
set_illustrated_tooltip(m_status, _L("Sorts the tasks by their state. Click again to reverse the order."));
|
||||
m_status->Bind(wxEVT_LEFT_DOWN, [this](wxMouseEvent& evt) {
|
||||
device_state_big = !device_state_big;
|
||||
this->m_sort.set_role(SortItem::SortRule::SR_LOCAL_TASK_STATE, device_state_big);
|
||||
@@ -684,6 +698,7 @@ LocalTaskManagerPage::LocalTaskManagerPage(wxWindow* parent)
|
||||
m_send_time->Bind(wxEVT_LEAVE_WINDOW, [&](wxMouseEvent& evt) {
|
||||
SetCursor(wxCURSOR_ARROW);
|
||||
});
|
||||
set_illustrated_tooltip(m_send_time, _L("Sorts the tasks by the time they were sent. Click again to reverse the order."));
|
||||
m_send_time->Bind(wxEVT_LEFT_DOWN, [this](wxMouseEvent& evt) {
|
||||
device_send_time = !device_send_time;
|
||||
this->m_sort.set_role(SortItem::SortRule::SR_SEND_TIME, device_send_time);
|
||||
@@ -740,6 +755,7 @@ LocalTaskManagerPage::LocalTaskManagerPage(wxWindow* parent)
|
||||
btn_stop_all = new Button(m_ctrl_btn_panel, _L("Stop"));
|
||||
btn_stop_all->SetBackgroundColor(ctrl_bg);
|
||||
btn_stop_all->SetCornerRadius(FromDIP(5));
|
||||
set_illustrated_tooltip(btn_stop_all, _L("Stops sending the selected tasks that are still waiting or being sent."));
|
||||
m_sel_text = new wxStaticText(m_ctrl_btn_panel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize);
|
||||
|
||||
m_btn_sizer->Add(m_sel_text, 0, wxLEFT, FromDIP(15));;
|
||||
@@ -964,6 +980,7 @@ CloudTaskManagerPage::CloudTaskManagerPage(wxWindow* parent)
|
||||
m_select_checkbox->SetMaxSize(wxSize(FromDIP(TASK_LEFT_PRINTABLE), FromDIP(DEVICE_ITEM_MAX_HEIGHT)));
|
||||
//m_table_head_sizer->AddSpacer(FromDIP(TASK_LEFT_PADDING_LEFT));
|
||||
m_table_head_sizer->Add(m_select_checkbox, 0, wxALIGN_CENTER_VERTICAL, 0);
|
||||
set_illustrated_tooltip(m_select_checkbox, _L("Selects every print that is still running, for the Pause, Resume and Stop buttons under the list."));
|
||||
|
||||
m_select_checkbox->Bind(wxEVT_TOGGLEBUTTON, [this](wxCommandEvent& e) {
|
||||
if (m_select_checkbox->GetValue()) {
|
||||
@@ -1007,6 +1024,7 @@ CloudTaskManagerPage::CloudTaskManagerPage(wxWindow* parent)
|
||||
m_printer_name->Bind(wxEVT_LEAVE_WINDOW, [&](wxMouseEvent& evt) {
|
||||
SetCursor(wxCURSOR_ARROW);
|
||||
});
|
||||
set_illustrated_tooltip(m_printer_name, _L("Sorts the tasks by printer name. Click again to reverse the order."));
|
||||
m_printer_name->Bind(wxEVT_LEFT_DOWN, [this](wxMouseEvent& evt) {
|
||||
device_name_big = !device_name_big;
|
||||
this->m_sort.set_role(SortItem::SortRule::SR_DEV_NAME, device_name_big);
|
||||
@@ -1027,6 +1045,7 @@ CloudTaskManagerPage::CloudTaskManagerPage(wxWindow* parent)
|
||||
m_status->Bind(wxEVT_LEAVE_WINDOW, [&](wxMouseEvent& evt) {
|
||||
SetCursor(wxCURSOR_ARROW);
|
||||
});
|
||||
set_illustrated_tooltip(m_status, _L("Sorts the tasks by their state. Click again to reverse the order."));
|
||||
m_status->Bind(wxEVT_LEFT_DOWN, [this](wxMouseEvent& evt) {
|
||||
device_state_big = !device_state_big;
|
||||
this->m_sort.set_role(SortItem::SortRule::SR_CLOUD_TASK_STATE, device_state_big);
|
||||
@@ -1056,6 +1075,7 @@ CloudTaskManagerPage::CloudTaskManagerPage(wxWindow* parent)
|
||||
m_send_time->Bind(wxEVT_LEAVE_WINDOW, [&](wxMouseEvent& evt) {
|
||||
SetCursor(wxCURSOR_ARROW);
|
||||
});
|
||||
set_illustrated_tooltip(m_send_time, _L("Sorts the tasks by the time they were sent. Click again to reverse the order."));
|
||||
m_send_time->Bind(wxEVT_LEFT_DOWN, [this](wxMouseEvent& evt) {
|
||||
device_send_time = !device_send_time;
|
||||
this->m_sort.set_role(SortItem::SortRule::SR_SEND_TIME, device_send_time);
|
||||
@@ -1121,6 +1141,7 @@ CloudTaskManagerPage::CloudTaskManagerPage(wxWindow* parent)
|
||||
btn_last_page->SetMinSize(wxSize(FromDIP(20), FromDIP(20)));
|
||||
btn_last_page->SetMaxSize(wxSize(FromDIP(20), FromDIP(20)));
|
||||
btn_last_page->SetBackgroundColor(head_bg);
|
||||
set_illustrated_tooltip(btn_last_page, _L("Previous page"));
|
||||
btn_last_page->Bind(wxEVT_COMMAND_BUTTON_CLICKED, [&](auto& evt) {
|
||||
evt.Skip();
|
||||
if (m_current_page == 0)
|
||||
@@ -1141,6 +1162,7 @@ CloudTaskManagerPage::CloudTaskManagerPage(wxWindow* parent)
|
||||
btn_next_page->SetMinSize(wxSize(FromDIP(20), FromDIP(20)));
|
||||
btn_next_page->SetMaxSize(wxSize(FromDIP(20), FromDIP(20)));
|
||||
btn_next_page->SetBackgroundColor(head_bg);
|
||||
set_illustrated_tooltip(btn_next_page, _L("Next page"));
|
||||
btn_next_page->Bind(wxEVT_COMMAND_BUTTON_CLICKED, [&](auto& evt) {
|
||||
evt.Skip();
|
||||
if (m_current_page == m_total_page - 1)
|
||||
@@ -1161,6 +1183,7 @@ CloudTaskManagerPage::CloudTaskManagerPage(wxWindow* parent)
|
||||
StateColor input_bg(std::pair<wxColour, int>(wxColour("#F0F0F1"), StateColor::Disabled), std::pair<wxColour, int>(*wxWHITE, StateColor::Enabled));
|
||||
m_page_num_input->SetBackgroundColor(input_bg);
|
||||
m_page_num_input->GetTextCtrl()->SetValue("1");
|
||||
set_illustrated_tooltip(m_page_num_input, _L("Type a page number and press Enter or click Go to jump to that page."));
|
||||
wxTextValidator validator(wxFILTER_DIGITS);
|
||||
m_page_num_input->GetTextCtrl()->SetValidator(validator);
|
||||
m_page_num_input->GetTextCtrl()->Bind(wxEVT_TEXT_ENTER, [&](wxCommandEvent& e) {
|
||||
@@ -1196,12 +1219,15 @@ CloudTaskManagerPage::CloudTaskManagerPage(wxWindow* parent)
|
||||
btn_pause_all = new Button(m_ctrl_btn_panel, _L_CONTEXT("Pause", "Verb"));
|
||||
btn_pause_all->SetBackgroundColor(ctrl_bg);
|
||||
btn_pause_all->SetCornerRadius(FromDIP(5));
|
||||
set_illustrated_tooltip(btn_pause_all, _L("Pauses the selected prints on their printers."));
|
||||
btn_continue_all = new Button(m_ctrl_btn_panel, _L("Resume"));
|
||||
btn_continue_all->SetBackgroundColor(ctrl_bg);
|
||||
btn_continue_all->SetCornerRadius(FromDIP(5));
|
||||
set_illustrated_tooltip(btn_continue_all, _L("Resumes the selected paused prints."));
|
||||
btn_stop_all = new Button(m_ctrl_btn_panel, _L("Stop"));
|
||||
btn_stop_all->SetBackgroundColor(ctrl_bg);
|
||||
btn_stop_all->SetCornerRadius(FromDIP(5));
|
||||
set_illustrated_tooltip(btn_stop_all, _L("Stops the selected prints at once, without asking. Stopped prints cannot be resumed."));
|
||||
m_sel_text = new wxStaticText(m_ctrl_btn_panel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize);
|
||||
|
||||
btn_pause_all->Bind(wxEVT_BUTTON, &CloudTaskManagerPage::pause_all, this);
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#include "GUI_Utils.hpp"
|
||||
#include "GUI_App.hpp"
|
||||
#include "IllustratedTipPopup.hpp"
|
||||
#include "libslic3r_version.h"
|
||||
#include "slic3r/Utils/NetworkAgent.hpp"
|
||||
#include <vector>
|
||||
@@ -122,7 +123,7 @@ PartSkipDialog::PartSkipDialog(wxWindow *parent) : DPIDialog(parent, wxID_ANY, _
|
||||
|
||||
m_zoom_out_btn = new Button(m_book_third_panel, wxEmptyString);
|
||||
m_zoom_out_btn->SetIcon("canvas_zoom_out");
|
||||
m_zoom_out_btn->SetToolTip(_L("Zoom Out"));
|
||||
set_illustrated_tooltip(m_zoom_out_btn, _L("Zoom Out"));
|
||||
m_zoom_out_btn->SetBackgroundColor(zoom_bg);
|
||||
m_zoom_out_btn->SetBorderColor(wxColour(238, 238, 238));
|
||||
m_zoom_out_btn->SetCornerRadius(0);
|
||||
@@ -136,7 +137,7 @@ PartSkipDialog::PartSkipDialog(wxWindow *parent) : DPIDialog(parent, wxID_ANY, _
|
||||
|
||||
m_zoom_in_btn = new Button(m_book_third_panel, wxEmptyString);
|
||||
m_zoom_in_btn->SetIcon("canvas_zoom_in");
|
||||
m_zoom_in_btn->SetToolTip(_L("Zoom In"));
|
||||
set_illustrated_tooltip(m_zoom_in_btn, _L("Zoom In"));
|
||||
m_zoom_in_btn->SetBackgroundColor(zoom_bg);
|
||||
m_zoom_in_btn->SetBorderColor(wxColour(238, 238, 238));
|
||||
m_zoom_in_btn->SetMinSize(wxSize(FromDIP(56), FromDIP(28)));
|
||||
@@ -144,7 +145,8 @@ PartSkipDialog::PartSkipDialog(wxWindow *parent) : DPIDialog(parent, wxID_ANY, _
|
||||
|
||||
m_switch_drag_btn = new Button(m_book_third_panel, wxEmptyString);
|
||||
m_switch_drag_btn->SetIcon("canvas_drag");
|
||||
m_switch_drag_btn->SetToolTip(_L("Drag"));
|
||||
set_illustrated_tooltip(m_switch_drag_btn, _L("Drag mode: dragging on the plate moves the view instead of selecting objects. "
|
||||
"Click again to go back to selecting."));
|
||||
m_switch_drag_btn->SetBackgroundColor(*wxWHITE);
|
||||
m_switch_drag_btn->SetBorderColor(wxColour(238, 238, 238));
|
||||
m_switch_drag_btn->SetMinSize(wxSize(FromDIP(56), FromDIP(28)));
|
||||
@@ -206,7 +208,7 @@ PartSkipDialog::PartSkipDialog(wxWindow *parent) : DPIDialog(parent, wxID_ANY, _
|
||||
|
||||
m_apply_btn = new Button(m_book_third_panel, _L("Skip"));
|
||||
m_apply_btn->SetStyle(ButtonStyle::Regular, ButtonType::Choice);
|
||||
m_apply_btn->SetToolTip(wxEmptyString);
|
||||
set_illustrated_tooltip(m_apply_btn, wxEmptyString);
|
||||
|
||||
m_canvas_sizer->Add(m_canvas, 0, wxLEFT | wxTOP | wxEXPAND, FromDIP(17));
|
||||
m_canvas_sizer->Add(m_canvas_btn_sizer, 0, wxTOP, FromDIP(8));
|
||||
@@ -885,19 +887,21 @@ void PartSkipDialog::UpdateApplyButtonStatus()
|
||||
{
|
||||
if (IsAllCanceled()) {
|
||||
m_apply_btn->SetStyle(ButtonStyle::Regular, ButtonType::Choice);
|
||||
m_apply_btn->SetToolTip(_L("Nothing selected"));
|
||||
set_illustrated_tooltip(m_apply_btn, _L("Nothing selected"));
|
||||
m_enable_apply_btn = false;
|
||||
} else if (m_parts_state.size() > 64) {
|
||||
m_apply_btn->SetStyle(ButtonStyle::Regular, ButtonType::Choice);
|
||||
m_apply_btn->SetToolTip(_L("Over 64 objects in single plate"));
|
||||
set_illustrated_tooltip(m_apply_btn, _L("Over 64 objects in single plate"));
|
||||
m_enable_apply_btn = false;
|
||||
} else if (!is_model_support_partskip) {
|
||||
m_apply_btn->SetStyle(ButtonStyle::Regular, ButtonType::Choice);
|
||||
m_apply_btn->SetToolTip(_L("The current print job cannot be skipped"));
|
||||
set_illustrated_tooltip(m_apply_btn, _L("The current print job cannot be skipped"));
|
||||
m_enable_apply_btn = false;
|
||||
} else {
|
||||
m_apply_btn->SetStyle(ButtonStyle::Confirm, ButtonType::Choice);
|
||||
m_apply_btn->SetToolTip(wxEmptyString);
|
||||
set_illustrated_tooltip(m_apply_btn, _L("The printer stops printing the selected objects and finishes the others. "
|
||||
"This cannot be undone."),
|
||||
{{"device/skip_objects.gif", {}}});
|
||||
m_enable_apply_btn = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include "PrintHostDialogs.hpp"
|
||||
#include "IllustratedTipPopup.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
#include <atomic>
|
||||
@@ -472,6 +473,10 @@ static FlashforgeMaterialMapWidget* as_ff_map_widget(wxWindow* window)
|
||||
|
||||
} // namespace
|
||||
|
||||
// Two options several printers' upload dialogs share, worded as in the send-print dialog of the Device tab.
|
||||
static wxString bed_leveling_tip() { return _L("This checks the flatness of heatbed. Leveling makes extruded height uniform."); }
|
||||
static wxString timelapse_tip() { return _L("Records a video of the print with the printer's camera."); }
|
||||
|
||||
static const char *CONFIG_KEY_PATH = "printhost_path";
|
||||
static const char *CONFIG_KEY_GROUP = "printhost_group";
|
||||
static const char* CONFIG_KEY_STORAGE = "printhost_storage";
|
||||
@@ -775,7 +780,8 @@ void FlashforgePrintHostSendDialog::init()
|
||||
|
||||
m_flashforge_options_sizer = new wxBoxSizer(wxVERTICAL);
|
||||
|
||||
auto add_option_checkbox = [this](wxBoxSizer* parent, const wxString& label, bool value, std::function<void(bool)> setter, ::CheckBox** out = nullptr) {
|
||||
auto add_option_checkbox = [this](wxBoxSizer* parent, const wxString& label, bool value, std::function<void(bool)> setter, ::CheckBox** out,
|
||||
const wxString& tip, const std::vector<TipMedia>& media) {
|
||||
auto row = new wxBoxSizer(wxHORIZONTAL);
|
||||
auto checkbox = new ::CheckBox(this);
|
||||
checkbox->SetValue(value);
|
||||
@@ -794,15 +800,19 @@ void FlashforgePrintHostSendDialog::init()
|
||||
row->Add(text, 0, wxALL | wxALIGN_CENTER, FromDIP(2));
|
||||
parent->Add(row);
|
||||
parent->AddSpacer(FromDIP(6));
|
||||
set_illustrated_tooltip(checkbox, tip, media);
|
||||
set_illustrated_tooltip(text, tip, media);
|
||||
|
||||
if (out != nullptr)
|
||||
*out = checkbox;
|
||||
};
|
||||
|
||||
add_option_checkbox(m_flashforge_options_sizer, _L("Leveling before print"), m_leveling_before_print,
|
||||
[this](bool checked) { m_leveling_before_print = checked; }, &m_checkbox_leveling);
|
||||
[this](bool checked) { m_leveling_before_print = checked; }, &m_checkbox_leveling,
|
||||
bed_leveling_tip(), {{"device/bed_leveling.gif", {}}});
|
||||
add_option_checkbox(m_flashforge_options_sizer, _L("Time-lapse"), m_time_lapse_video,
|
||||
[this](bool checked) { m_time_lapse_video = checked; }, &m_checkbox_timelapse);
|
||||
[this](bool checked) { m_time_lapse_video = checked; }, &m_checkbox_timelapse,
|
||||
timelapse_tip(), {{"device/timelapse_traditional.gif", {}}});
|
||||
add_option_checkbox(m_flashforge_options_sizer, _L("Enable IFS"), m_use_material_station,
|
||||
[this](bool checked) {
|
||||
m_use_material_station = checked;
|
||||
@@ -811,7 +821,10 @@ void FlashforgePrintHostSendDialog::init()
|
||||
rebuild_mapping_rows();
|
||||
}
|
||||
sync_mapping_section_visibility();
|
||||
}, &m_checkbox_ifs);
|
||||
}, &m_checkbox_ifs,
|
||||
_L("Prints with the filaments loaded in the printer's IFS filament station, matched below to the "
|
||||
"filaments of the project. Off, the printer uses the filament loaded in it."),
|
||||
{});
|
||||
|
||||
if (m_checkbox_ifs != nullptr && !m_supports_material_station)
|
||||
m_checkbox_ifs->Enable(false);
|
||||
@@ -1738,6 +1751,8 @@ void ElegooPrintHostSendDialog::init() {
|
||||
|
||||
auto checkbox_text = new wxStaticText(this, wxID_ANY, _L("Time-lapse"), wxDefaultPosition, wxDefaultSize, 0);
|
||||
checkbox_sizer->Add(checkbox_text, 0, wxALL | wxALIGN_CENTER, FromDIP(2));
|
||||
for (wxWindow* w : {static_cast<wxWindow*>(checkbox), static_cast<wxWindow*>(checkbox_text)})
|
||||
set_illustrated_tooltip(w, timelapse_tip(), {{"device/timelapse_traditional.gif", {}}});
|
||||
checkbox_text->SetFont(::Label::Body_13);
|
||||
checkbox_text->SetForegroundColour(StateColor::darkModeColorFor(wxColour("#323A3D")));
|
||||
uploadandprint_sizer->Add(checkbox_sizer);
|
||||
@@ -1757,6 +1772,8 @@ void ElegooPrintHostSendDialog::init() {
|
||||
|
||||
auto checkbox_text = new wxStaticText(this, wxID_ANY, _L("Heated Bed Leveling"), wxDefaultPosition, wxDefaultSize, 0);
|
||||
checkbox_sizer->Add(checkbox_text, 0, wxALL | wxALIGN_CENTER, FromDIP(2));
|
||||
for (wxWindow* w : {static_cast<wxWindow*>(checkbox), static_cast<wxWindow*>(checkbox_text)})
|
||||
set_illustrated_tooltip(w, bed_leveling_tip(), {{"device/bed_leveling.gif", {}}});
|
||||
checkbox_text->SetFont(::Label::Body_13);
|
||||
checkbox_text->SetForegroundColour(StateColor::darkModeColorFor(wxColour("#323A3D")));
|
||||
uploadandprint_sizer->Add(checkbox_sizer);
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
#include "libslic3r/Utils.hpp"
|
||||
#include "Widgets/SwitchButton.hpp"
|
||||
#include "MsgDialog.hpp"
|
||||
#include "IllustratedTipPopup.hpp"
|
||||
|
||||
#include "DeviceCore/DevConfig.h"
|
||||
#include "DeviceCore/DevExtruderSystem.h"
|
||||
@@ -818,6 +819,10 @@ wxBoxSizer* PrintOptionsDialog::create_settings_group(wxWindow* parent)
|
||||
{
|
||||
wxBoxSizer* sizer = new wxBoxSizer(wxVERTICAL);
|
||||
wxBoxSizer* line_sizer = new wxBoxSizer(wxHORIZONTAL);
|
||||
// Shared by the "Pausing Sensitivity" lists of every AI detection below.
|
||||
const wxString sensitivity_tip = _L("How readily the printer pauses the print when it detects this problem. "
|
||||
"High pauses at the first signs, so it stops more failures early but also pauses more prints by mistake. "
|
||||
"Low pauses only on clear failures.");
|
||||
|
||||
/* auto m_line = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxSize(-1, 1), wxTAB_TRAVERSAL);
|
||||
m_line->SetBackgroundColour(wxColour(166, 169, 170));
|
||||
@@ -855,6 +860,10 @@ wxBoxSizer* PrintOptionsDialog::create_settings_group(wxWindow* parent)
|
||||
m_cb_ai_monitoring = new CheckBox(parent);
|
||||
text_ai_monitoring = new Label(parent, _L("Enable AI monitoring of printing"));
|
||||
text_ai_monitoring->SetFont(Label::Body_14);
|
||||
const wxString ai_monitoring_tip = _L("The printer's camera watches the print for failures and sends you a message, or pauses the print, when it sees one. "
|
||||
"Unusual models can cause false alarms; the sensitivity below sets how readily it pauses.");
|
||||
set_illustrated_tooltip(m_cb_ai_monitoring, ai_monitoring_tip);
|
||||
set_illustrated_tooltip(text_ai_monitoring, ai_monitoring_tip);
|
||||
line_sizer->Add(FromDIP(5), 0, 0, 0);
|
||||
line_sizer->Add(m_cb_ai_monitoring, 0, wxALL | wxALIGN_CENTER_VERTICAL, FromDIP(5));
|
||||
line_sizer->Add(text_ai_monitoring, 1, wxALL | wxALIGN_CENTER_VERTICAL, FromDIP(5));
|
||||
@@ -865,6 +874,7 @@ wxBoxSizer* PrintOptionsDialog::create_settings_group(wxWindow* parent)
|
||||
text_ai_monitoring_caption->SetFont(Label::Body_12);
|
||||
text_ai_monitoring_caption->SetForegroundColour(STATIC_TEXT_CAPTION_COL);
|
||||
text_ai_monitoring_caption->Wrap(-1);
|
||||
set_illustrated_tooltip(text_ai_monitoring_caption, sensitivity_tip); // the list is disabled while its detection is off
|
||||
|
||||
ai_monitoring_level_list = new ComboBox(parent, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(FromDIP(100), -1), 0, NULL, wxCB_READONLY);
|
||||
for (auto i = AiMonitorSensitivityLevel::LOW; i < LEVELS_NUM; i = (AiMonitorSensitivityLevel) (i + 1)) {
|
||||
@@ -873,6 +883,7 @@ wxBoxSizer* PrintOptionsDialog::create_settings_group(wxWindow* parent)
|
||||
}
|
||||
|
||||
if (ai_monitoring_level_list->GetCount() > 0) { ai_monitoring_level_list->SetSelection(0); }
|
||||
set_illustrated_tooltip(ai_monitoring_level_list, sensitivity_tip);
|
||||
|
||||
line_sizer->Add(FromDIP(30), 0, 0, 0);
|
||||
line_sizer->Add(text_ai_monitoring_caption, 0, wxALL | wxALIGN_CENTER_VERTICAL, FromDIP(5));
|
||||
@@ -885,6 +896,10 @@ wxBoxSizer* PrintOptionsDialog::create_settings_group(wxWindow* parent)
|
||||
m_cb_spaghetti_detection = new CheckBox(ai_refine_panel);
|
||||
text_spaghetti_detection = new Label(ai_refine_panel, _L("Spaghetti Detection"));
|
||||
text_spaghetti_detection->SetFont(Label::Body_14);
|
||||
const wxString spaghetti_tip = _L("The camera looks for loose strands of filament that show the print has come off the plate or collapsed. "
|
||||
"Stopping such a print early saves filament and keeps the strands from wrapping around the nozzle.");
|
||||
set_illustrated_tooltip(m_cb_spaghetti_detection, spaghetti_tip);
|
||||
set_illustrated_tooltip(text_spaghetti_detection, spaghetti_tip);
|
||||
line_sizer->Add(FromDIP(5), 0, 0, 0);
|
||||
line_sizer->Add(m_cb_spaghetti_detection, 0, wxALL | wxALIGN_CENTER_VERTICAL, FromDIP(2));
|
||||
line_sizer->Add(text_spaghetti_detection, 1, wxALL | wxALIGN_CENTER_VERTICAL, FromDIP(2));
|
||||
@@ -904,6 +919,7 @@ wxBoxSizer* PrintOptionsDialog::create_settings_group(wxWindow* parent)
|
||||
text_spaghetti_detection_caption1->SetFont(Label::Body_12);
|
||||
text_spaghetti_detection_caption1->SetForegroundColour(STATIC_TEXT_CAPTION_COL);
|
||||
text_spaghetti_detection_caption1->Wrap(-1);
|
||||
set_illustrated_tooltip(text_spaghetti_detection_caption1, sensitivity_tip); // the list is disabled while its detection is off
|
||||
|
||||
spaghetti_detection_level_list = new ComboBox(ai_refine_panel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(FromDIP(100), -1), 0, NULL, wxCB_READONLY);
|
||||
for (auto i = AiMonitorSensitivityLevel::LOW; i < LEVELS_NUM; i = (AiMonitorSensitivityLevel) (i + 1)) {
|
||||
@@ -913,6 +929,7 @@ wxBoxSizer* PrintOptionsDialog::create_settings_group(wxWindow* parent)
|
||||
if (spaghetti_detection_level_list->GetCount() > 0) {
|
||||
spaghetti_detection_level_list->SetSelection(0);
|
||||
}
|
||||
set_illustrated_tooltip(spaghetti_detection_level_list, sensitivity_tip);
|
||||
|
||||
line_sizer->Add(FromDIP(30), 0, 0, 0);
|
||||
line_sizer->Add(text_spaghetti_detection_caption1, 0, wxALL | wxALIGN_CENTER_VERTICAL, FromDIP(5));
|
||||
@@ -929,6 +946,10 @@ wxBoxSizer* PrintOptionsDialog::create_settings_group(wxWindow* parent)
|
||||
m_cb_purgechutepileup_detection = new CheckBox(ai_refine_panel);
|
||||
text_purgechutepileup_detection = new Label(ai_refine_panel, _L("Purge Chute Pile-Up Detection"));
|
||||
text_purgechutepileup_detection->SetFont(Label::Body_14);
|
||||
const wxString purgechute_tip = _L("The camera watches the chute where purged filament leaves the printer. "
|
||||
"If the waste piles up there, the printer warns you or pauses before the pile reaches the toolhead.");
|
||||
set_illustrated_tooltip(m_cb_purgechutepileup_detection, purgechute_tip);
|
||||
set_illustrated_tooltip(text_purgechutepileup_detection, purgechute_tip);
|
||||
line_sizer->Add(FromDIP(5), 0, 0, 0);
|
||||
line_sizer->Add(m_cb_purgechutepileup_detection, 0, wxALL | wxALIGN_CENTER_VERTICAL, FromDIP(2));
|
||||
line_sizer->Add(text_purgechutepileup_detection, 1, wxALL | wxALIGN_CENTER_VERTICAL, FromDIP(2));
|
||||
@@ -948,6 +969,7 @@ wxBoxSizer* PrintOptionsDialog::create_settings_group(wxWindow* parent)
|
||||
text_purgechutepileup_detection_caption1->SetFont(Label::Body_12);
|
||||
text_purgechutepileup_detection_caption1->SetForegroundColour(STATIC_TEXT_CAPTION_COL);
|
||||
text_purgechutepileup_detection_caption1->Wrap(-1);
|
||||
set_illustrated_tooltip(text_purgechutepileup_detection_caption1, sensitivity_tip); // the list is disabled while its detection is off
|
||||
|
||||
purgechutepileup_detection_level_list = new ComboBox(ai_refine_panel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(FromDIP(100), -1), 0, NULL, wxCB_READONLY);
|
||||
for (auto i = AiMonitorSensitivityLevel::LOW; i < LEVELS_NUM; i = (AiMonitorSensitivityLevel) (i + 1)) {
|
||||
@@ -955,6 +977,7 @@ wxBoxSizer* PrintOptionsDialog::create_settings_group(wxWindow* parent)
|
||||
purgechutepileup_detection_level_list->Append(level_option);
|
||||
}
|
||||
if (purgechutepileup_detection_level_list->GetCount() > 0) { purgechutepileup_detection_level_list->SetSelection(0); }
|
||||
set_illustrated_tooltip(purgechutepileup_detection_level_list, sensitivity_tip);
|
||||
|
||||
line_sizer->Add(FromDIP(30), 0, 0, 0);
|
||||
line_sizer->Add(text_purgechutepileup_detection_caption1, 0, wxALL | wxALIGN_CENTER_VERTICAL, FromDIP(5));
|
||||
@@ -968,6 +991,10 @@ wxBoxSizer* PrintOptionsDialog::create_settings_group(wxWindow* parent)
|
||||
m_cb_nozzleclumping_detection = new CheckBox(ai_refine_panel);
|
||||
text_nozzleclumping_detection = new Label(ai_refine_panel, _L("Nozzle Clumping Detection"));
|
||||
text_nozzleclumping_detection->SetFont(Label::Body_14);
|
||||
const wxString nozzleclumping_tip = _L("The camera checks the nozzle for a lump of filament or debris stuck to it. "
|
||||
"Such a lump can knock the print loose or damage the hotend, so the printer warns you or pauses.");
|
||||
set_illustrated_tooltip(m_cb_nozzleclumping_detection, nozzleclumping_tip);
|
||||
set_illustrated_tooltip(text_nozzleclumping_detection, nozzleclumping_tip);
|
||||
line_sizer->Add(FromDIP(5), 0, 0, 0);
|
||||
line_sizer->Add(m_cb_nozzleclumping_detection, 0, wxALL | wxALIGN_CENTER_VERTICAL, FromDIP(2));
|
||||
line_sizer->Add(text_nozzleclumping_detection, 1, wxALL | wxALIGN_CENTER_VERTICAL, FromDIP(2));
|
||||
@@ -989,6 +1016,7 @@ wxBoxSizer* PrintOptionsDialog::create_settings_group(wxWindow* parent)
|
||||
text_nozzleclumping_detection_caption1->SetFont(Label::Body_12);
|
||||
text_nozzleclumping_detection_caption1->SetForegroundColour(STATIC_TEXT_CAPTION_COL);
|
||||
text_nozzleclumping_detection_caption1->Wrap(-1);
|
||||
set_illustrated_tooltip(text_nozzleclumping_detection_caption1, sensitivity_tip); // the list is disabled while its detection is off
|
||||
|
||||
nozzleclumping_detection_level_list = new ComboBox(ai_refine_panel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(FromDIP(100), -1), 0, NULL, wxCB_READONLY);
|
||||
for (auto i = AiMonitorSensitivityLevel::LOW; i < LEVELS_NUM; i = (AiMonitorSensitivityLevel) (i + 1)) {
|
||||
@@ -996,6 +1024,7 @@ wxBoxSizer* PrintOptionsDialog::create_settings_group(wxWindow* parent)
|
||||
nozzleclumping_detection_level_list->Append(level_option);
|
||||
}
|
||||
if (nozzleclumping_detection_level_list->GetCount() > 0) { nozzleclumping_detection_level_list->SetSelection(0); }
|
||||
set_illustrated_tooltip(nozzleclumping_detection_level_list, sensitivity_tip);
|
||||
|
||||
line_sizer->Add(FromDIP(30), 0, 0, 0);
|
||||
line_sizer->Add(text_nozzleclumping_detection_caption1, 0, wxALL | wxALIGN_CENTER_VERTICAL, FromDIP(5));
|
||||
@@ -1009,6 +1038,10 @@ wxBoxSizer* PrintOptionsDialog::create_settings_group(wxWindow* parent)
|
||||
m_cb_airprinting_detection = new CheckBox(ai_refine_panel);
|
||||
text_airprinting_detection = new Label(ai_refine_panel, _L("Air Printing Detection"));
|
||||
text_airprinting_detection->SetFont(Label::Body_14);
|
||||
const wxString airprinting_tip = _L("The printer notices when the nozzle keeps moving but no filament comes out, for example after a clog or ground filament. "
|
||||
"It warns you or pauses instead of printing in the air until the job ends.");
|
||||
set_illustrated_tooltip(m_cb_airprinting_detection, airprinting_tip);
|
||||
set_illustrated_tooltip(text_airprinting_detection, airprinting_tip);
|
||||
line_sizer->Add(FromDIP(5), 0, 0, 0);
|
||||
line_sizer->Add(m_cb_airprinting_detection, 0, wxALL | wxALIGN_CENTER_VERTICAL, FromDIP(2));
|
||||
line_sizer->Add(text_airprinting_detection, 1, wxALL | wxALIGN_CENTER_VERTICAL, FromDIP(2));
|
||||
@@ -1029,6 +1062,7 @@ wxBoxSizer* PrintOptionsDialog::create_settings_group(wxWindow* parent)
|
||||
text_airprinting_detection_caption1->SetFont(Label::Body_12);
|
||||
text_airprinting_detection_caption1->SetForegroundColour(STATIC_TEXT_CAPTION_COL);
|
||||
text_airprinting_detection_caption1->Wrap(-1);
|
||||
set_illustrated_tooltip(text_airprinting_detection_caption1, sensitivity_tip); // the list is disabled while its detection is off
|
||||
|
||||
airprinting_detection_level_list = new ComboBox(ai_refine_panel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(FromDIP(100), -1), 0, NULL, wxCB_READONLY);
|
||||
for (auto i = AiMonitorSensitivityLevel::LOW; i < LEVELS_NUM; i = (AiMonitorSensitivityLevel) (i + 1)) {
|
||||
@@ -1036,6 +1070,7 @@ wxBoxSizer* PrintOptionsDialog::create_settings_group(wxWindow* parent)
|
||||
airprinting_detection_level_list->Append(level_option);
|
||||
}
|
||||
if (airprinting_detection_level_list->GetCount() > 0) { airprinting_detection_level_list->SetSelection(0); }
|
||||
set_illustrated_tooltip(airprinting_detection_level_list, sensitivity_tip);
|
||||
|
||||
line_sizer->Add(FromDIP(30), 0, 0, 0);
|
||||
line_sizer->Add(text_airprinting_detection_caption1, 0, wxALL | wxALIGN_CENTER_VERTICAL, FromDIP(5));
|
||||
@@ -1057,6 +1092,11 @@ wxBoxSizer* PrintOptionsDialog::create_settings_group(wxWindow* parent)
|
||||
m_cb_plate_mark = new CheckBox(parent);
|
||||
text_plate_mark = new Label(parent, _L("Enable detection of build plate position"));
|
||||
text_plate_mark->SetFont(Label::Body_14);
|
||||
// The label switches between the position check and the type and position check (update_options), the tooltip covers both.
|
||||
const wxString plate_mark_tip = _L("Before printing, the camera reads the marker on the build plate to check that the plate sits in place (and, on some printers, that it is the plate type the job was sliced for). "
|
||||
"On a mismatch the print pauses. Plates without the marker cannot pass the check.");
|
||||
set_illustrated_tooltip(m_cb_plate_mark, plate_mark_tip);
|
||||
set_illustrated_tooltip(text_plate_mark, plate_mark_tip);
|
||||
line_sizer->Add(FromDIP(5), 0, 0, 0);
|
||||
line_sizer->Add(m_cb_plate_mark, 0, wxALL | wxALIGN_CENTER_VERTICAL, FromDIP(5));
|
||||
line_sizer->Add(text_plate_mark, 1, wxALL | wxALIGN_CENTER_VERTICAL, FromDIP(5));
|
||||
@@ -1090,6 +1130,10 @@ wxBoxSizer* PrintOptionsDialog::create_settings_group(wxWindow* parent)
|
||||
m_cb_first_layer = new CheckBox(parent);
|
||||
text_first_layer = new Label(parent, _L("First Layer Inspection"));
|
||||
text_first_layer->SetFont(Label::Body_14);
|
||||
const wxString first_layer_tip = _L("After printing the first layer, the printer inspects it for defects and alerts you if it finds any. "
|
||||
"The inspection adds a short wait after the first layer.");
|
||||
set_illustrated_tooltip(m_cb_first_layer, first_layer_tip);
|
||||
set_illustrated_tooltip(text_first_layer, first_layer_tip);
|
||||
line_sizer->Add(FromDIP(5), 0, 0, 0);
|
||||
line_sizer->Add(m_cb_first_layer, 0, wxALL | wxALIGN_CENTER_VERTICAL, FromDIP(5));
|
||||
line_sizer->Add(text_first_layer, 1, wxALL | wxALIGN_CENTER_VERTICAL, FromDIP(5));
|
||||
@@ -1107,6 +1151,10 @@ wxBoxSizer* PrintOptionsDialog::create_settings_group(wxWindow* parent)
|
||||
m_cb_auto_recovery = new CheckBox(parent);
|
||||
text_auto_recovery = new Label(parent, _L("Auto-recover from step loss"));
|
||||
text_auto_recovery->SetFont(Label::Body_14);
|
||||
const wxString auto_recovery_tip = _L("When a motor loses steps, for example after the nozzle hits a curled edge, the printer homes its axes again and continues the print in place. "
|
||||
"Without it the rest of the print is printed shifted.");
|
||||
set_illustrated_tooltip(m_cb_auto_recovery, auto_recovery_tip);
|
||||
set_illustrated_tooltip(text_auto_recovery, auto_recovery_tip);
|
||||
line_sizer->Add(FromDIP(5), 0, 0, 0);
|
||||
line_sizer->Add(m_cb_auto_recovery, 0, wxALL | wxALIGN_CENTER_VERTICAL, FromDIP(5));
|
||||
line_sizer->Add(text_auto_recovery, 1, wxALL | wxALIGN_CENTER_VERTICAL, FromDIP(5));
|
||||
@@ -1124,6 +1172,10 @@ wxBoxSizer* PrintOptionsDialog::create_settings_group(wxWindow* parent)
|
||||
m_cb_save_remote_print_file_to_storage = new CheckBox(parent);
|
||||
text_save_remote_print_file_to_storage = new Label(parent, _L("Store Sent Files on External Storage"));
|
||||
text_save_remote_print_file_to_storage->SetFont(Label::Body_14);
|
||||
const wxString save_remote_tip = _L("The printer keeps a copy of every file sent to it on its storage card or USB drive, so you can print it again from the printer. "
|
||||
"The copies take up space on that storage until you delete them.");
|
||||
set_illustrated_tooltip(m_cb_save_remote_print_file_to_storage, save_remote_tip);
|
||||
set_illustrated_tooltip(text_save_remote_print_file_to_storage, save_remote_tip);
|
||||
line_sizer->Add(FromDIP(5), 0, 0, 0);
|
||||
line_sizer->Add(m_cb_save_remote_print_file_to_storage, 0, wxALL | wxALIGN_CENTER_VERTICAL, FromDIP(5));
|
||||
line_sizer->Add(text_save_remote_print_file_to_storage, 1, wxALL | wxALIGN_CENTER_VERTICAL, FromDIP(5));
|
||||
@@ -1141,6 +1193,10 @@ wxBoxSizer* PrintOptionsDialog::create_settings_group(wxWindow* parent)
|
||||
m_cb_sup_sound = new CheckBox(parent);
|
||||
text_sup_sound = new Label(parent, _L("Allow Prompt Sound"));
|
||||
text_sup_sound->SetFont(Label::Body_14);
|
||||
const wxString sup_sound_tip = _L("The printer beeps when it needs you, for example when a print pauses or an error occurs. "
|
||||
"Turned off, the printer only shows the message.");
|
||||
set_illustrated_tooltip(m_cb_sup_sound, sup_sound_tip);
|
||||
set_illustrated_tooltip(text_sup_sound, sup_sound_tip);
|
||||
line_sizer->Add(FromDIP(5), 0, 0, 0);
|
||||
line_sizer->Add(m_cb_sup_sound, 0, wxALL | wxALIGN_CENTER_VERTICAL, FromDIP(5));
|
||||
line_sizer->Add(text_sup_sound, 1, wxALL | wxALIGN_CENTER_VERTICAL, FromDIP(5));
|
||||
@@ -1159,6 +1215,10 @@ wxBoxSizer* PrintOptionsDialog::create_settings_group(wxWindow* parent)
|
||||
m_cb_filament_tangle = new CheckBox(parent);
|
||||
text_filament_tangle = new Label(parent, _L("Filament Tangle Detection"));
|
||||
text_filament_tangle->SetFont(Label::Body_14);
|
||||
const wxString filament_tangle_tip = _L("The printer notices when filament cannot be pulled off the spool, for example because it is tangled or snagged, and pauses the print. "
|
||||
"Spools that unwind stiffly can trigger it by mistake.");
|
||||
set_illustrated_tooltip(m_cb_filament_tangle, filament_tangle_tip);
|
||||
set_illustrated_tooltip(text_filament_tangle, filament_tangle_tip);
|
||||
line_sizer->Add(FromDIP(5), 0, 0, 0);
|
||||
line_sizer->Add(m_cb_filament_tangle, 0, wxALL | wxALIGN_CENTER_VERTICAL, FromDIP(5));
|
||||
line_sizer->Add(text_filament_tangle, 1, wxALL | wxALIGN_CENTER_VERTICAL, FromDIP(5));
|
||||
@@ -1215,6 +1275,13 @@ wxBoxSizer* PrintOptionsDialog::create_settings_group(wxWindow* parent)
|
||||
text_purify_air_context->SetForegroundColour(STATIC_TEXT_CAPTION_COL);
|
||||
purify_air_switch_board = new SwitchBoard(parent, _L("Internal Circulation"), _L("Exhaust"), wxSize(FromDIP(300), FromDIP(26)));
|
||||
purify_air_switch_board->Disable();
|
||||
// The check box is disabled during a print (update_purify_air_at_print_end), the label still shows the tooltip then.
|
||||
const wxString purify_air_tip = _L("When a print ends, the printer runs its fans to clean the chamber air of fumes before you open the door. "
|
||||
"This keeps the fans running for a while after the print. It cannot be changed while a print is running.");
|
||||
set_illustrated_tooltip(m_cb_purify_air_at_print_end, purify_air_tip);
|
||||
set_illustrated_tooltip(text_purify_air, purify_air_tip);
|
||||
set_illustrated_tooltip(purify_air_switch_board, _L("Internal Circulation: the chamber air is passed through the printer's filter and stays inside. "
|
||||
"Exhaust: the exhaust fan blows the chamber air out of the printer, which clears it faster but releases it into the room."));
|
||||
line_sizer->Add(FromDIP(5), 0, 0, 0);
|
||||
line_sizer->Add(m_cb_purify_air_at_print_end, 0, wxALL | wxALIGN_CENTER_VERTICAL, FromDIP(5));
|
||||
line_sizer->Add(text_purify_air, 1, wxALL | wxALIGN_CENTER_VERTICAL, FromDIP(5));
|
||||
@@ -1233,6 +1300,10 @@ wxBoxSizer* PrintOptionsDialog::create_settings_group(wxWindow* parent)
|
||||
m_cb_plate_align = new CheckBox(parent);
|
||||
text_plate_align = new Label(parent, _L("Alignment Detection"));
|
||||
text_plate_align->SetFont(Label::Body_14);
|
||||
const wxString plate_align_tip = _L("The printer checks that the build plate sits square on the heatbed and pauses the print if it is shifted. "
|
||||
"A shifted plate puts the print in the wrong place and can make the nozzle hit the plate's edge.");
|
||||
set_illustrated_tooltip(m_cb_plate_align, plate_align_tip);
|
||||
set_illustrated_tooltip(text_plate_align, plate_align_tip);
|
||||
line_sizer->Add(FromDIP(5), 0, 0, 0);
|
||||
line_sizer->Add(m_cb_plate_align, 0, wxALL | wxALIGN_CENTER_VERTICAL, FromDIP(5));
|
||||
line_sizer->Add(text_plate_align, 1, wxALL | wxALIGN_CENTER_VERTICAL, FromDIP(5));
|
||||
@@ -1256,6 +1327,10 @@ wxBoxSizer* PrintOptionsDialog::create_settings_group(wxWindow* parent)
|
||||
m_cb_fod_check = new CheckBox(parent);
|
||||
text_fod_check = new Label(parent, _L("Foreign Object Detection"));
|
||||
text_fod_check->SetFont(Label::Body_14);
|
||||
const wxString fod_check_tip = _L("Before the print starts, the camera looks for things left on the build plate, such as a previous print or a tool, and stops before the nozzle runs into them. "
|
||||
"The check adds a little time before each print.");
|
||||
set_illustrated_tooltip(m_cb_fod_check, fod_check_tip);
|
||||
set_illustrated_tooltip(text_fod_check, fod_check_tip);
|
||||
line_sizer->Add(FromDIP(5), 0, 0, 0);
|
||||
line_sizer->Add(m_cb_fod_check, 0, wxALL | wxALIGN_CENTER_VERTICAL, FromDIP(5));
|
||||
line_sizer->Add(text_fod_check, 1, wxALL | wxALIGN_CENTER_VERTICAL, FromDIP(5));
|
||||
@@ -1279,6 +1354,10 @@ wxBoxSizer* PrintOptionsDialog::create_settings_group(wxWindow* parent)
|
||||
m_cb_displacement_detection = new CheckBox(parent);
|
||||
text_displacement_detection = new Label(parent, _L("Printed Part Displacement Detection"));
|
||||
text_displacement_detection->SetFont(Label::Body_14);
|
||||
const wxString displacement_tip = _L("The camera watches the printed part throughout the print and alerts you as soon as it comes loose, moves or falls over, so the rest of the print is not wasted. "
|
||||
"Tall or unusual parts can cause false alarms.");
|
||||
set_illustrated_tooltip(m_cb_displacement_detection, displacement_tip);
|
||||
set_illustrated_tooltip(text_displacement_detection, displacement_tip);
|
||||
line_sizer->Add(FromDIP(5), 0, 0, 0);
|
||||
line_sizer->Add(m_cb_displacement_detection, 0, wxALL | wxALIGN_CENTER_VERTICAL, FromDIP(5));
|
||||
line_sizer->Add(text_displacement_detection, 1, wxALL | wxALIGN_CENTER_VERTICAL, FromDIP(5));
|
||||
@@ -1315,6 +1394,11 @@ wxBoxSizer* PrintOptionsDialog::create_settings_group(wxWindow* parent)
|
||||
m_smart_nozzle_blob_mode_switch = new MultiSwitchButton(parent);
|
||||
m_smart_nozzle_blob_mode_switch->SetOptions({_L("Auto"), _L("On"), _L("Off")});
|
||||
m_smart_nozzle_blob_mode_switch->SetSelection(0);
|
||||
const wxString smart_nozzle_blob_tip = _L("Auto: the printer checks the nozzle for clumps, except with filaments prone to oozing, which would trigger it by mistake. "
|
||||
"On: always checked, which can lower print quality with such filaments. "
|
||||
"Off: never checked, so a clump can ruin the print or damage the nozzle.");
|
||||
set_illustrated_tooltip(m_smart_nozzle_blob_mode_switch, smart_nozzle_blob_tip);
|
||||
set_illustrated_tooltip(text_smart_nozzle_blob, smart_nozzle_blob_tip);
|
||||
sizer->Add(m_smart_nozzle_blob_mode_switch, 0, wxLEFT, FromDIP(30));
|
||||
smart_nozzle_blob_bottom_space = sizer->Add(0, 0, 0, wxTOP, FromDIP(15));
|
||||
text_smart_nozzle_blob->Hide();
|
||||
@@ -1329,6 +1413,12 @@ wxBoxSizer* PrintOptionsDialog::create_settings_group(wxWindow* parent)
|
||||
text_open_door->SetFont(Label::Body_14);
|
||||
open_door_switch_board = new SwitchBoard(parent, _L("Notification"), _L("Pause printing"), wxSize(FromDIP(200), FromDIP(26)));
|
||||
open_door_switch_board->Disable();
|
||||
const wxString open_door_tip = _L("The printer reacts when its door is opened during a print. "
|
||||
"An open door lets the chamber cool, which can warp or crack materials such as ABS and ASA.");
|
||||
set_illustrated_tooltip(m_cb_open_door, open_door_tip);
|
||||
set_illustrated_tooltip(text_open_door, open_door_tip);
|
||||
set_illustrated_tooltip(open_door_switch_board, _L("Notification: the printer only warns you and keeps printing. "
|
||||
"Pause printing: the print also pauses until you resume it."));
|
||||
line_sizer->Add(FromDIP(5), 0, 0, 0);
|
||||
line_sizer->Add(m_cb_open_door, 0, wxALL | wxALIGN_CENTER_VERTICAL, FromDIP(5));
|
||||
line_sizer->Add(text_open_door, 1, wxALL | wxALIGN_CENTER_VERTICAL, FromDIP(5));
|
||||
@@ -1343,6 +1433,10 @@ wxBoxSizer* PrintOptionsDialog::create_settings_group(wxWindow* parent)
|
||||
m_cb_snapshot_enable = new CheckBox(parent);
|
||||
Label* text_snapshot = new Label(parent, _L("Print Status Snapshot"));
|
||||
text_snapshot->SetFont(Label::Body_14);
|
||||
const wxString snapshot_tip = _L("The printer takes photos of the print while it runs and when it ends, and uploads them to the cloud so you can check the print from anywhere. "
|
||||
"The photos leave your network; turn it off if you do not want that.");
|
||||
set_illustrated_tooltip(m_cb_snapshot_enable, snapshot_tip);
|
||||
set_illustrated_tooltip(text_snapshot, snapshot_tip);
|
||||
line_sizer->Add(FromDIP(5), 0, 0, 0);
|
||||
line_sizer->Add(m_cb_snapshot_enable, 0, wxALL | wxALIGN_CENTER_VERTICAL, FromDIP(5));
|
||||
line_sizer->Add(text_snapshot, 1, wxALL | wxALIGN_CENTER_VERTICAL, FromDIP(5));
|
||||
@@ -1545,7 +1639,7 @@ PrinterPartsDialog::PrinterPartsDialog(wxWindow* parent)
|
||||
change_nozzle_tips->SetForegroundColour(STATIC_TEXT_CAPTION_COL);
|
||||
|
||||
m_wiki_link = new Button(single_panel, "", "toolbar_wiki", 0, 15);
|
||||
m_wiki_link->SetToolTip(_L("Wiki Guide"));
|
||||
set_illustrated_tooltip(m_wiki_link, _L("Wiki Guide"));
|
||||
m_wiki_link->SetStyle(ButtonStyle::Confirm, ButtonType::Circle);
|
||||
m_wiki_link->SetCanFocus(false);
|
||||
m_wiki_link->Bind(wxEVT_LEFT_DOWN, &PrinterPartsDialog::OnWikiClicked, this);
|
||||
@@ -1561,6 +1655,9 @@ PrinterPartsDialog::PrinterPartsDialog(wxWindow* parent)
|
||||
m_single_update_nozzle_button->SetSize(wxSize(FromDIP(80), FromDIP(32)));
|
||||
m_single_update_nozzle_button->SetMinSize(wxSize(-1, FromDIP(32)));
|
||||
m_single_update_nozzle_button->Bind(wxEVT_BUTTON, &PrinterPartsDialog::OnNozzleRefresh, this);
|
||||
const wxString refresh_nozzle_tip = _L("Asks the printer to identify its installed nozzle again and updates the values above. "
|
||||
"Use it after swapping a nozzle if they still show the old one.");
|
||||
set_illustrated_tooltip(m_single_update_nozzle_button, refresh_nozzle_tip);
|
||||
single_update_nozzle_sizer->Add(0, 0, 1, wxEXPAND, FromDIP(0));
|
||||
single_update_nozzle_sizer->Add(m_single_update_nozzle_button, 0, wxALIGN_CENTER | wxLEFT | wxRIGHT, FromDIP(18));
|
||||
|
||||
@@ -1658,7 +1755,7 @@ PrinterPartsDialog::PrinterPartsDialog(wxWindow* parent)
|
||||
multiple_change_nozzle_tips->SetForegroundColour(STATIC_TEXT_CAPTION_COL);
|
||||
|
||||
multiple_wiki_link = new Button(multiple_panel, "", "toolbar_wiki", 0, 15);
|
||||
multiple_wiki_link->SetToolTip(_L("Wiki Guide"));
|
||||
set_illustrated_tooltip(multiple_wiki_link, _L("Wiki Guide"));
|
||||
multiple_wiki_link->SetStyle(ButtonStyle::Confirm, ButtonType::Circle);
|
||||
multiple_wiki_link->SetCanFocus(false);
|
||||
multiple_wiki_link->Bind(wxEVT_LEFT_DOWN, &PrinterPartsDialog::OnWikiClicked, this);
|
||||
@@ -1675,6 +1772,7 @@ PrinterPartsDialog::PrinterPartsDialog(wxWindow* parent)
|
||||
m_multiple_update_nozzle_button->SetSize(wxSize(FromDIP(80), FromDIP(32)));
|
||||
m_multiple_update_nozzle_button->SetMinSize(wxSize(-1, FromDIP(32)));
|
||||
m_multiple_update_nozzle_button->Bind(wxEVT_BUTTON, &PrinterPartsDialog::OnNozzleRefresh, this);
|
||||
set_illustrated_tooltip(m_multiple_update_nozzle_button, refresh_nozzle_tip);
|
||||
multiple_update_nozzle_sizer->Add(0, 0, 1, wxEXPAND, FromDIP(0));
|
||||
multiple_update_nozzle_sizer->Add(m_multiple_update_nozzle_button, 0, wxALIGN_CENTER | wxLEFT | wxRIGHT, FromDIP(18));
|
||||
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
#include "GUI.hpp"
|
||||
#include "GUI_App.hpp"
|
||||
#include "GUI_Preview.hpp"
|
||||
#include "IllustratedTipPopup.hpp"
|
||||
#include "format.hpp"
|
||||
#include "MainFrame.hpp"
|
||||
#include "Widgets/ProgressDialog.hpp"
|
||||
#include "Widgets/RoundedRectangle.hpp"
|
||||
@@ -331,6 +333,7 @@ SelectMachineDialog::SelectMachineDialog(Plater *plater)
|
||||
m_rename_button = new wxStaticBitmap(m_rename_normal_panel, wxID_ANY, rename_editable->bmp(), wxDefaultPosition, wxSize(FromDIP(20), FromDIP(20)), 0);
|
||||
m_rename_button->Bind(wxEVT_ENTER_WINDOW, [this](auto& e) {SetCursor(wxCURSOR_HAND); });
|
||||
m_rename_button->Bind(wxEVT_LEAVE_WINDOW, [this](auto& e) {SetCursor(wxCURSOR_ARROW); });
|
||||
set_illustrated_tooltip(m_rename_button, _L("Renames the print job. The printer shows this name and keeps it in its print history."));
|
||||
|
||||
rename_sizer_h->Add(m_rename_text, 0, wxALIGN_CENTER, 0); // ORCA align text with icon
|
||||
rename_sizer_h->Add(m_rename_button, 0, wxALIGN_CENTER| wxLEFT, FromDIP(3)); // ORCA add gap between text and icon
|
||||
@@ -501,6 +504,12 @@ SelectMachineDialog::SelectMachineDialog(Plater *plater)
|
||||
img_ams_backup->Bind(wxEVT_LEAVE_WINDOW, [this](auto& e) {SetCursor(wxCURSOR_ARROW); });
|
||||
|
||||
m_ams_backup_tip->Bind(wxEVT_LEFT_DOWN, [this](auto& e) { if (!m_is_in_sending_mode) { popup_filament_backup(); on_rename_enter(); } });
|
||||
{
|
||||
const wxString refill_tip = _L("When a spool runs out, the printer carries on with another AMS slot that holds the same filament type and colour. "
|
||||
"Click to see which slots back each other up.");
|
||||
set_illustrated_tooltip(m_ams_backup_tip, refill_tip);
|
||||
set_illustrated_tooltip(img_ams_backup, refill_tip);
|
||||
}
|
||||
img_ams_backup->Bind(wxEVT_LEFT_DOWN, [this](auto& e) {if (!m_is_in_sending_mode) popup_filament_backup(); on_rename_enter(); });
|
||||
|
||||
sizer_split_filament->Add(0, 0, 0, wxEXPAND, 0);
|
||||
@@ -607,7 +616,7 @@ SelectMachineDialog::SelectMachineDialog(Plater *plater)
|
||||
m_check_ext_change_assist = new CheckBox(m_scroll_area, wxID_ANY);
|
||||
m_check_ext_change_assist->SetValue(false);
|
||||
m_check_ext_change_assist->SetBackgroundColour(*wxWHITE);
|
||||
m_check_ext_change_assist->SetToolTip(_L("Manually change external spool during printing for multi-color printing"));
|
||||
set_illustrated_tooltip(m_check_ext_change_assist, _L("Manually change external spool during printing for multi-color printing"));
|
||||
m_check_ext_change_assist->Hide();
|
||||
m_label_ext_change_assist = new Label(m_scroll_area, _L("Multi-color with external"));
|
||||
m_label_ext_change_assist->Wrap(-1);
|
||||
@@ -615,7 +624,7 @@ SelectMachineDialog::SelectMachineDialog(Plater *plater)
|
||||
m_label_ext_change_assist->SetMaxSize(wxSize(FromDIP(200), -1));
|
||||
m_label_ext_change_assist->SetFont(::Label::Body_13);
|
||||
m_label_ext_change_assist->SetBackgroundColour(*wxWHITE);
|
||||
m_label_ext_change_assist->SetToolTip(_L("Manually change external spool during printing for multi-color printing"));
|
||||
set_illustrated_tooltip(m_label_ext_change_assist, _L("Manually change external spool during printing for multi-color printing"));
|
||||
|
||||
wxSizer* suggestion_sizer = new wxBoxSizer(wxHORIZONTAL);
|
||||
suggestion_sizer->Add(m_link_edit_nozzle, 0, wxLEFT, 0);
|
||||
@@ -674,7 +683,7 @@ SelectMachineDialog::SelectMachineDialog(Plater *plater)
|
||||
m_timelapse_folder_btn = new ScalableButton(m_options_other, wxID_ANY, "folder-closed", wxEmptyString,
|
||||
wxDefaultSize, wxDefaultPosition, wxBU_EXACTFIT | wxNO_BORDER, true);
|
||||
m_timelapse_folder_btn->SetBackgroundColour(*wxWHITE);
|
||||
m_timelapse_folder_btn->SetToolTip(_L("Select timelapse storage location"));
|
||||
set_illustrated_tooltip(m_timelapse_folder_btn, _L("Chooses where the printer saves the timelapse video: its internal storage or the external storage card."));
|
||||
m_timelapse_folder_btn->Hide();
|
||||
m_timelapse_folder_btn->Bind(wxEVT_BUTTON, [this](wxCommandEvent&) {
|
||||
show_timelapse_folder_popup();
|
||||
@@ -692,11 +701,15 @@ SelectMachineDialog::SelectMachineDialog(Plater *plater)
|
||||
e.Skip();
|
||||
});
|
||||
option_timelapse->insert_extra_widget(m_timelapse_folder_btn);
|
||||
option_timelapse->set_about(_L("Records a video of the print with the printer's camera, one frame per layer, and saves it on the printer. "
|
||||
"In Smooth mode, chosen when slicing, the toolhead moves aside for each frame, which adds print time."),
|
||||
{{"device/timelapse_traditional.gif", _L("Traditional")}, {"device/timelapse_smooth.gif", _L("Smooth")}});
|
||||
|
||||
auto option_auto_bed_level = new PrintOption(
|
||||
m_options_other, _L("Auto Bed Leveling"),
|
||||
_L("This checks the flatness of heatbed. Leveling makes extruded height uniform.\n*Automatic mode: Run a leveling check(about 10 seconds). Skip if surface is fine."),
|
||||
ops_auto, "bed_leveling");
|
||||
option_auto_bed_level->set_about(wxEmptyString, {{"device/bed_leveling.gif", {}}});
|
||||
|
||||
auto option_flow_dynamics_cali =
|
||||
new PrintOption(m_options_other, _L("Flow Dynamics Calibration"),
|
||||
@@ -949,6 +962,9 @@ void SelectMachineDialog::init_bind()
|
||||
m_bitmap_last_plate->Bind(wxEVT_LEAVE_WINDOW, [this](auto& e) {SetCursor(wxCURSOR_ARROW); });
|
||||
m_bitmap_next_plate->Bind(wxEVT_ENTER_WINDOW, [this](auto& e) {SetCursor(wxCURSOR_HAND); });
|
||||
m_bitmap_next_plate->Bind(wxEVT_LEAVE_WINDOW, [this](auto& e) {SetCursor(wxCURSOR_ARROW); });
|
||||
// After the cursor handlers above, which do not Skip(): handlers bound later run first.
|
||||
set_illustrated_tooltip(m_bitmap_last_plate, _L("Shows the previous plate of this file."));
|
||||
set_illustrated_tooltip(m_bitmap_next_plate, _L("Shows the next plate of this file."));
|
||||
|
||||
|
||||
Bind(EVT_CONNECT_LAN_MODE_PRINT, [this](wxCommandEvent& e) {
|
||||
@@ -5544,7 +5560,7 @@ void SelectMachineDialog::change_materialitem_tip(bool no_ams_only_ext)
|
||||
Material *item = iter->second;
|
||||
if (item) {
|
||||
if (no_ams_only_ext && item->item->m_ams_name == _L("Ext")) {
|
||||
item->item->SetToolTip(wxEmptyString);
|
||||
set_illustrated_tooltip(item->item, wxEmptyString);
|
||||
}
|
||||
else {
|
||||
wxString tip_text;
|
||||
@@ -5554,9 +5570,7 @@ void SelectMachineDialog::change_materialitem_tip(bool no_ams_only_ext)
|
||||
tip_text = _L("Unable to automatically match to suitable filament. Please click to manually match.");
|
||||
}
|
||||
|
||||
if (item->item->GetToolTipText() != tip_text) {
|
||||
item->item->SetToolTip(tip_text);
|
||||
}
|
||||
set_illustrated_tooltip(item->item, tip_text);
|
||||
}
|
||||
}
|
||||
iter++;
|
||||
@@ -5657,7 +5671,7 @@ void SelectMachineDialog::reset_and_sync_ams_list()
|
||||
|
||||
if (!item) continue;
|
||||
|
||||
item->SetToolTip(m_ams_tooltip);
|
||||
set_illustrated_tooltip(item, m_ams_tooltip);
|
||||
|
||||
if (!selected_any && extruder == m_current_filament_id && item->m_enable) {
|
||||
item->on_selected();
|
||||
@@ -6691,11 +6705,27 @@ void PrintOption::update_options(std::vector<POItem> ops, const wxString &tips)
|
||||
|
||||
void PrintOption::update_tooltip(const wxString &tips)
|
||||
{
|
||||
if (m_printoption_tips->GetToolTipText() != tips) {
|
||||
m_printoption_tips->SetToolTip(tips);
|
||||
}
|
||||
m_tips = tips;
|
||||
m_printoption_tips->Show(!m_tips.IsEmpty());
|
||||
apply_tooltip();
|
||||
}
|
||||
|
||||
m_printoption_tips->Show(!m_printoption_tips->GetToolTipText().IsEmpty());
|
||||
void PrintOption::set_about(const wxString &about, const std::vector<TipMedia> &media)
|
||||
{
|
||||
m_about = about;
|
||||
m_about_media = media;
|
||||
apply_tooltip();
|
||||
}
|
||||
|
||||
// One tooltip for the whole row, so the title, the question mark and the switch all show it.
|
||||
void PrintOption::apply_tooltip()
|
||||
{
|
||||
wxString text = m_about;
|
||||
if (!m_tips.IsEmpty() && m_tips != m_about)
|
||||
text = text.IsEmpty() ? m_tips : text + "\n\n" + m_tips;
|
||||
if (m_title_shortened)
|
||||
text = text.IsEmpty() ? m_full_title : m_full_title + "\n" + text;
|
||||
set_illustrated_tooltip(this, text, m_about_media);
|
||||
}
|
||||
|
||||
std::string PrintOption::getValue()
|
||||
@@ -6729,9 +6759,11 @@ void PrintOption::update_title_display()
|
||||
wxString displayTitle = m_full_title;
|
||||
if (titleSize.x > maxTitleWidth) {
|
||||
displayTitle = wxControl::Ellipsize(m_full_title, dc, wxELLIPSIZE_END, maxTitleWidth);
|
||||
m_printoption_title->SetToolTip(m_full_title);
|
||||
} else {
|
||||
m_printoption_title->SetToolTip(wxEmptyString);
|
||||
}
|
||||
|
||||
if (const bool shortened = displayTitle != m_full_title; shortened != m_title_shortened) {
|
||||
m_title_shortened = shortened;
|
||||
apply_tooltip();
|
||||
}
|
||||
|
||||
m_printoption_title->SetLabel(displayTitle);
|
||||
@@ -7053,7 +7085,9 @@ void PrinterInfoBox::UpdatePlate(const std::string& plate_name)
|
||||
m_bed_image->SetBitmap(create_scaled_bitmap("bed_cool_supertack", this, 40));
|
||||
}
|
||||
|
||||
m_bed_image->SetToolTip(name);
|
||||
// TRN %1% is the name of a build plate type, such as Textured PEI Plate.
|
||||
const wxString bed_tip = format_wxstr(_L("%1%: the plate type this plate was sliced for. The same type of plate should be on the printer."), name);
|
||||
set_illustrated_tooltip(m_bed_image, name.empty() ? wxString() : bed_tip);
|
||||
|
||||
//if (name.length() > 8) {
|
||||
// m_text_bed_type->SetFont(Label::Body_9);
|
||||
@@ -7163,7 +7197,7 @@ void PrinterInfoBox::Create()
|
||||
|
||||
m_button_question = new ScalableButton(this, wxID_ANY, "icon_qusetion", wxEmptyString, wxDefaultSize, wxDefaultPosition, wxBU_EXACTFIT | wxNO_BORDER, true);
|
||||
m_button_question->Bind(wxEVT_BUTTON, &PrinterInfoBox::OnBtnQuestionClicked, this);
|
||||
m_button_question->SetToolTip(_L("Click here if you can't connect to the printer"));
|
||||
set_illustrated_tooltip(m_button_question, _L("Click here if you can't connect to the printer"));
|
||||
m_button_question->SetMinSize(wxSize(FromDIP(18), FromDIP(18)));
|
||||
m_button_question->SetMaxSize(wxSize(FromDIP(18), FromDIP(18)));
|
||||
|
||||
@@ -7193,9 +7227,11 @@ void PrinterInfoBox::Create()
|
||||
m_comboBox_printer->SetMaxSize(wxSize(FromDIP(300), FromDIP(60)));
|
||||
m_comboBox_printer->SetBackgroundColor(*wxWHITE);
|
||||
m_comboBox_printer->Bind(wxEVT_COMBOBOX, &SelectMachineDialog::on_selection_changed, m_select_dialog);
|
||||
set_illustrated_tooltip(m_comboBox_printer, _L("The printer to send this plate to. Its filaments and nozzles are checked against the sliced plate below."));
|
||||
|
||||
m_button_refresh = new ScalableButton(printer_staticbox, wxID_ANY, "refresh_printer", wxEmptyString, wxDefaultSize, wxDefaultPosition, wxBU_EXACTFIT | wxNO_BORDER, true);
|
||||
m_button_refresh->Bind(wxEVT_BUTTON, &SelectMachineDialog::on_refresh, m_select_dialog);
|
||||
set_illustrated_tooltip(m_button_refresh, _L("Looks for printers again, for one that was just switched on or is missing from the list."));
|
||||
|
||||
sizer_printer_staticbox->Add(0, 0, 0, wxLEFT, FromDIP(7));
|
||||
sizer_printer_staticbox->Add(m_comboBox_printer, 0, wxALIGN_CENTER, 0);
|
||||
|
||||
@@ -61,6 +61,7 @@
|
||||
#include "Widgets/ScrolledWindow.hpp"
|
||||
#include "Widgets/PopupWindow.hpp"
|
||||
#include "Widgets/HyperLink.hpp" // ORCA
|
||||
#include "IllustratedTipPopup.hpp"
|
||||
#include "DeviceTab/uiAMSBestPositionPopup.hpp" // AMS best-position popup
|
||||
#include "DeviceCore/DevFilaSwitch.h" // Orca: DevFilaSwitch::SwitchPos for best-position helpers
|
||||
#include <optional>
|
||||
@@ -230,6 +231,12 @@ private:
|
||||
ScalableButton *m_printoption_tips{ nullptr };
|
||||
PrintOptionItem *m_printoption_item{nullptr};
|
||||
wxString m_full_title;
|
||||
// The row's tooltip: what the option does and its pictures (set_about), the state message that also
|
||||
// shows the question mark (update_tooltip), and the full title while it is shortened.
|
||||
wxString m_about;
|
||||
std::vector<TipMedia> m_about_media;
|
||||
wxString m_tips;
|
||||
bool m_title_shortened{false};
|
||||
|
||||
public:
|
||||
PrintOption(wxWindow *parent, wxString title, wxString tips, std::vector<POItem> ops, std::string param = "");
|
||||
@@ -247,6 +254,7 @@ public:
|
||||
bool contain_opt(const std::string& opt_str) const;
|
||||
void update_options(std::vector<POItem> ops, const wxString &tips);
|
||||
void update_tooltip(const wxString &tips);
|
||||
void set_about(const wxString &about, const std::vector<TipMedia> &media = {});
|
||||
void update_title_display();
|
||||
void insert_extra_widget(wxWindow* widget);
|
||||
|
||||
@@ -259,6 +267,7 @@ private:
|
||||
void OnPaint(wxPaintEvent &event);
|
||||
void render(wxDC &dc);
|
||||
void doRender(wxDC &dc);
|
||||
void apply_tooltip();
|
||||
};
|
||||
|
||||
class ThumbnailPanel : public wxPanel
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
#include "GUI.hpp"
|
||||
#include "GUI_App.hpp"
|
||||
#include "GUI_Preview.hpp"
|
||||
#include "IllustratedTipPopup.hpp"
|
||||
#include "MainFrame.hpp"
|
||||
#include "Widgets/ProgressDialog.hpp"
|
||||
#include "Widgets/RoundedRectangle.hpp"
|
||||
@@ -102,6 +103,7 @@ MachineObjectPanel::MachineObjectPanel(wxWindow *parent, wxWindowID id, const wx
|
||||
this->Bind(wxEVT_ENTER_WINDOW, &MachineObjectPanel::on_mouse_enter, this);
|
||||
this->Bind(wxEVT_LEAVE_WINDOW, &MachineObjectPanel::on_mouse_leave, this);
|
||||
this->Bind(wxEVT_LEFT_UP, &MachineObjectPanel::on_mouse_left_up, this);
|
||||
this->Bind(wxEVT_MOTION, &MachineObjectPanel::on_mouse_move, this);
|
||||
|
||||
#ifdef __APPLE__
|
||||
wxPlatformInfo platformInfo;
|
||||
@@ -272,6 +274,28 @@ void MachineObjectPanel::on_mouse_leave(wxMouseEvent &evt)
|
||||
Refresh();
|
||||
}
|
||||
|
||||
// The edit and unbind icons are drawn by the row, so the tooltip follows the part of the row under the
|
||||
// pointer: an icon's own, or the printer's state anywhere else. Same rectangles as on_mouse_left_up().
|
||||
void MachineObjectPanel::on_mouse_move(wxMouseEvent &evt)
|
||||
{
|
||||
evt.Skip();
|
||||
const wxSize size = GetSize();
|
||||
const wxSize unbind = m_unbind_img.GetBmpSize();
|
||||
const wxSize edit = m_edit_name_img.GetBmpSize();
|
||||
const wxRect unbind_rect(size.x - unbind.x - 6, (size.y - unbind.y) / 2, unbind.x, unbind.y);
|
||||
const wxRect edit_rect(unbind_rect.x - edit.x - 6, (size.y - edit.y) / 2, edit.x, edit.y);
|
||||
const wxPoint pos = evt.GetPosition();
|
||||
if (m_is_my_devices && m_show_edit && edit_rect.Contains(pos))
|
||||
hover_illustrated_tooltip(this, edit_rect, _L("Renames this printer."));
|
||||
else if (m_is_my_devices && m_show_bind && m_bind_state == ALLOW_UNBIND && unbind_rect.Contains(pos))
|
||||
hover_illustrated_tooltip(this, unbind_rect,
|
||||
m_info && m_info->is_lan_mode_printer() ?
|
||||
_L("Logs out of this LAN printer: its access code is forgotten and has to be entered again to connect.") :
|
||||
_L("Unbinds this printer from your account. It has to be bound again before it can be used from here."));
|
||||
else
|
||||
hover_illustrated_tooltip(this, GetClientRect(), m_state_tip);
|
||||
}
|
||||
|
||||
void MachineObjectPanel::on_mouse_left_up(wxMouseEvent &evt)
|
||||
{
|
||||
if (m_is_my_devices) {
|
||||
@@ -590,7 +614,7 @@ void SelectMachinePopup::update_other_devices()
|
||||
if (mobj->is_in_printing()) {
|
||||
op->set_printer_state(PrinterState::BUSY);
|
||||
} else {
|
||||
op->SetToolTip(_L("Online"));
|
||||
op->set_state_tip(_L("Online"));
|
||||
op->set_printer_state(IDLE);
|
||||
}
|
||||
}
|
||||
@@ -722,7 +746,7 @@ void SelectMachinePopup::update_user_devices()
|
||||
if (mobj->has_access_right() && mobj->is_avaliable()) {
|
||||
op->set_printer_state(PrinterState::IN_LAN);
|
||||
op->show_printer_bind(true, PrinterBindState::ALLOW_UNBIND);
|
||||
op->SetToolTip(_L("Online"));
|
||||
op->set_state_tip(_L("Online"));
|
||||
}
|
||||
else {
|
||||
op->set_printer_state(PrinterState::LOCK);
|
||||
@@ -759,18 +783,18 @@ void SelectMachinePopup::update_user_devices()
|
||||
});
|
||||
|
||||
if (!mobj->is_online()) {
|
||||
op->SetToolTip(_L("Offline"));
|
||||
op->set_state_tip(_L("Offline"));
|
||||
op->set_printer_state(PrinterState::OFFLINE);
|
||||
}
|
||||
else {
|
||||
op->show_edit_printer_name(true);
|
||||
op->show_printer_bind(true, PrinterBindState::ALLOW_UNBIND);
|
||||
if (mobj->is_in_printing()) {
|
||||
op->SetToolTip(_L("Busy"));
|
||||
op->set_state_tip(_L("Busy"));
|
||||
op->set_printer_state(PrinterState::BUSY);
|
||||
}
|
||||
else {
|
||||
op->SetToolTip(_L("Online"));
|
||||
op->set_state_tip(_L("Online"));
|
||||
op->set_printer_state(PrinterState::IDLE);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -106,6 +106,7 @@ private:
|
||||
ScalableBitmap m_printer_in_lan;
|
||||
|
||||
MachineObject *m_info;
|
||||
wxString m_state_tip;
|
||||
|
||||
protected:
|
||||
wxStaticBitmap *m_bitmap_info;
|
||||
@@ -126,6 +127,7 @@ public:
|
||||
void show_printer_bind(bool show, PrinterBindState state);
|
||||
void show_edit_printer_name(bool show);
|
||||
void update_machine_info(MachineObject *info, bool is_my_devices = false);
|
||||
void set_state_tip(const wxString &tip) { m_state_tip = tip; }
|
||||
protected:
|
||||
void OnPaint(wxPaintEvent &event);
|
||||
void render(wxDC &dc);
|
||||
@@ -133,6 +135,7 @@ protected:
|
||||
void on_mouse_enter(wxMouseEvent &evt);
|
||||
void on_mouse_leave(wxMouseEvent &evt);
|
||||
void on_mouse_left_up(wxMouseEvent &evt);
|
||||
void on_mouse_move(wxMouseEvent &evt);
|
||||
};
|
||||
|
||||
class MachinePanel
|
||||
|
||||
@@ -75,6 +75,7 @@
|
||||
#include "slic3r/GUI/wxExtensions.hpp"
|
||||
#include <boost/filesystem.hpp>
|
||||
#include <wx/dcgraph.h>
|
||||
#include "slic3r/GUI/IllustratedTipPopup.hpp"
|
||||
|
||||
namespace fs = boost::filesystem;
|
||||
using json = nlohmann::json;
|
||||
@@ -886,7 +887,7 @@ wxBoxSizer* SendMultiMachinePage::create_item_title(wxString title, wxWindow* pa
|
||||
m_title->SetForegroundColour(SEND_DESIGN_GRAY800_COLOR);
|
||||
m_title->SetFont(::Label::Head_13);
|
||||
m_title->Wrap(-1);
|
||||
m_title->SetToolTip(tooltip);
|
||||
set_illustrated_tooltip(m_title, tooltip);
|
||||
|
||||
auto m_line = new wxPanel(parent, wxID_ANY, wxDefaultPosition, wxSize(-1, 1), wxTAB_TRAVERSAL);
|
||||
m_line->SetBackgroundColour(SEND_DESIGN_GRAY400_COLOR);
|
||||
@@ -900,7 +901,8 @@ wxBoxSizer* SendMultiMachinePage::create_item_title(wxString title, wxWindow* pa
|
||||
return m_sizer_title;
|
||||
}
|
||||
|
||||
wxBoxSizer* SendMultiMachinePage::create_item_checkbox(wxString title, wxWindow* parent, wxString tooltip, int padding_left, std::string param)
|
||||
wxBoxSizer* SendMultiMachinePage::create_item_checkbox(wxString title, wxWindow* parent, wxString tooltip, int padding_left, std::string param,
|
||||
const std::vector<TipMedia> &media)
|
||||
{
|
||||
wxBoxSizer* m_sizer_checkbox = new wxBoxSizer(wxHORIZONTAL);
|
||||
m_sizer_checkbox->Add(0, 0, 0, wxEXPAND | wxLEFT, 23);
|
||||
@@ -927,7 +929,8 @@ wxBoxSizer* SendMultiMachinePage::create_item_checkbox(wxString title, wxWindow*
|
||||
e.Skip();
|
||||
});
|
||||
|
||||
checkbox->SetToolTip(tooltip);
|
||||
set_illustrated_tooltip(checkbox, tooltip, media);
|
||||
set_illustrated_tooltip(checkbox_title, tooltip, media);
|
||||
m_checkbox_map.emplace(param, checkbox);
|
||||
return m_sizer_checkbox;
|
||||
}
|
||||
@@ -938,7 +941,7 @@ wxBoxSizer* SendMultiMachinePage::create_item_input(wxString str_before, wxStrin
|
||||
auto input_title = new wxStaticText(parent, wxID_ANY, str_before);
|
||||
input_title->SetForegroundColour(SEND_DESIGN_GRAY900_COLOR);
|
||||
input_title->SetFont(::Label::Body_13);
|
||||
input_title->SetToolTip(tooltip);
|
||||
set_illustrated_tooltip(input_title, tooltip);
|
||||
input_title->Wrap(-1);
|
||||
|
||||
auto input = new ::TextInput(parent, wxEmptyString, wxEmptyString, wxEmptyString, wxDefaultPosition, SEND_DESIGN_INPUT_SIZE, wxTE_PROCESS_ENTER);
|
||||
@@ -951,7 +954,8 @@ wxBoxSizer* SendMultiMachinePage::create_item_input(wxString str_before, wxStrin
|
||||
auto second_title = new wxStaticText(parent, wxID_ANY, str_after, wxDefaultPosition, wxDefaultSize, wxST_ELLIPSIZE_END);
|
||||
second_title->SetForegroundColour(SEND_DESIGN_GRAY900_COLOR);
|
||||
second_title->SetFont(::Label::Body_13);
|
||||
second_title->SetToolTip(tooltip);
|
||||
set_illustrated_tooltip(second_title, tooltip);
|
||||
set_illustrated_tooltip(input, tooltip);
|
||||
second_title->Wrap(-1);
|
||||
|
||||
sizer_input->Add(0, 0, 0, wxEXPAND | wxLEFT, 23);
|
||||
@@ -996,8 +1000,8 @@ wxBoxSizer* SendMultiMachinePage::create_item_radiobox(wxString title, wxWindow*
|
||||
wxStaticText* text = new wxStaticText(parent, wxID_ANY, title, wxDefaultPosition, wxDefaultSize);
|
||||
radiobox_sizer->Add(radiobox, 0, wxLEFT, FromDIP(23));
|
||||
radiobox_sizer->Add(text, 0, wxLEFT, FromDIP(10));
|
||||
radiobox->SetToolTip(tooltip);
|
||||
text->SetToolTip(tooltip);
|
||||
set_illustrated_tooltip(radiobox, tooltip);
|
||||
set_illustrated_tooltip(text, tooltip);
|
||||
return radiobox_sizer;
|
||||
}
|
||||
|
||||
@@ -1152,6 +1156,7 @@ wxPanel* SendMultiMachinePage::create_page()
|
||||
m_task_name->SetMaxSize(wxSize(FromDIP(200), -1));
|
||||
m_rename_button = new ScalableButton(m_rename_normal_panel, wxID_ANY, "ams_editable");
|
||||
m_rename_button->SetBackgroundColour(*wxWHITE);
|
||||
set_illustrated_tooltip(m_rename_button, _L("Renames the print job sent to the printers."));
|
||||
rename_sizer_h->Add(m_task_name, 0, wxALIGN_CENTER, 0);
|
||||
rename_sizer_h->Add(m_rename_button, 0, wxALIGN_CENTER, 0);
|
||||
rename_sizer_v->Add(rename_sizer_h, 1, wxALIGN_CENTER, 0);
|
||||
@@ -1243,8 +1248,10 @@ wxPanel* SendMultiMachinePage::create_page()
|
||||
// add filament
|
||||
wxBoxSizer* title_filament = create_item_title(_L("Filament"), main_page, "");
|
||||
wxBoxSizer* radio_sizer = new wxBoxSizer(wxHORIZONTAL);
|
||||
wxBoxSizer* use_external_sizer = create_item_radiobox(_L("Use External Spool"), main_page, "", 0, "use_external");
|
||||
wxBoxSizer* use_ams_sizer = create_item_radiobox(_L("Use AMS"), main_page, "", 0, "use_ams");
|
||||
wxBoxSizer* use_external_sizer = create_item_radiobox(_L("Use External Spool"), main_page,
|
||||
_L("Every printer prints from the spool on its external holder. The AMS is not used."), 0, "use_external");
|
||||
wxBoxSizer* use_ams_sizer = create_item_radiobox(_L("Use AMS"), main_page,
|
||||
_L("Every printer prints from its AMS. Click a filament below to choose its AMS slot: the same slot is used on every printer."), 0, "use_ams");
|
||||
radio_sizer->Add(use_external_sizer, 0, wxLeft, FromDIP(20));
|
||||
radio_sizer->Add(use_ams_sizer, 0, wxLeft, FromDIP(5));
|
||||
sizer->Add(title_filament, 0, wxEXPAND, 0);
|
||||
@@ -1276,6 +1283,7 @@ wxPanel* SendMultiMachinePage::create_page()
|
||||
m_select_checkbox = new CheckBox(m_table_head_panel, wxID_ANY);
|
||||
m_table_head_sizer->AddSpacer(FromDIP(SEND_LEFT_PADDING_LEFT));
|
||||
m_table_head_sizer->Add(m_select_checkbox, 0, wxALIGN_CENTER_VERTICAL, 0);
|
||||
set_illustrated_tooltip(m_select_checkbox, _L("Selects every printer that is ready to print, or clears the selection."));
|
||||
|
||||
m_select_checkbox->Bind(wxEVT_TOGGLEBUTTON, [this](wxCommandEvent& e) {
|
||||
if (m_select_checkbox->GetValue()) {
|
||||
@@ -1316,6 +1324,7 @@ wxPanel* SendMultiMachinePage::create_page()
|
||||
|
||||
m_table_head_sizer->Add( 0, 0, 0, wxLEFT, FromDIP(10) );
|
||||
m_table_head_sizer->Add(m_printer_name, 0, wxALIGN_CENTER_VERTICAL, 0);
|
||||
set_illustrated_tooltip(m_printer_name, _L("Sorts the printers by name. Click again to reverse the order."));
|
||||
|
||||
m_device_status = new Button(m_table_head_panel, _L("Device Status"), "toolbar_double_directional_arrow", wxNO_BORDER, ICON_SINGLE_SIZE);
|
||||
m_device_status->SetBackgroundColor(head_bg);
|
||||
@@ -1337,6 +1346,7 @@ wxPanel* SendMultiMachinePage::create_page()
|
||||
evt.Skip();
|
||||
});
|
||||
m_table_head_sizer->Add(m_device_status, 0, wxALIGN_CENTER_VERTICAL, 0);
|
||||
set_illustrated_tooltip(m_device_status, _L("Sorts the printers by whether they are ready to print. Click again to reverse the order."));
|
||||
|
||||
/*m_task_status = new Button(m_table_head_panel, _L("Task Status"), "toolbar_double_directional_arrow", wxNO_BORDER, ICON_SIZE);
|
||||
m_task_status->SetBackgroundColor(head_bg);
|
||||
@@ -1380,6 +1390,7 @@ wxPanel* SendMultiMachinePage::create_page()
|
||||
evt.Skip();
|
||||
});
|
||||
m_table_head_sizer->Add(m_ams, 0, wxALIGN_CENTER_VERTICAL, 0);
|
||||
set_illustrated_tooltip(m_ams, _L("Sorts the printers by their AMS state. Click again to reverse the order."));
|
||||
|
||||
m_refresh_button = new Button(m_table_head_panel, "", "mall_control_refresh", wxNO_BORDER, ICON_SINGLE_SIZE, false);
|
||||
m_refresh_button->SetBackgroundColor(head_bg);
|
||||
@@ -1398,6 +1409,7 @@ wxPanel* SendMultiMachinePage::create_page()
|
||||
evt.Skip();
|
||||
});
|
||||
m_table_head_sizer->Add(m_refresh_button, 0, wxALIGN_CENTER_VERTICAL, 0);
|
||||
set_illustrated_tooltip(m_refresh_button, _L("Refreshes the list of printers and their states."));
|
||||
|
||||
m_table_head_panel->SetSizer(m_table_head_sizer);
|
||||
m_table_head_panel->Layout();
|
||||
@@ -1438,9 +1450,14 @@ wxPanel* SendMultiMachinePage::create_page()
|
||||
|
||||
// add printing options
|
||||
wxBoxSizer* title_print_option = create_item_title(_L("Printing Options"), main_page, "");
|
||||
wxBoxSizer* item_bed_level = create_item_checkbox(_L("Bed leveling"), main_page, "", 50, "bed_leveling");
|
||||
wxBoxSizer* item_timelapse = create_item_checkbox(_L("Timelapse"), main_page, "", 50, "timelapse");
|
||||
wxBoxSizer* item_flow_dy_ca = create_item_checkbox(_L("Flow Dynamic Calibration"), main_page, "", 50, "flow_cali");
|
||||
wxBoxSizer* item_bed_level = create_item_checkbox(_L("Bed leveling"), main_page,
|
||||
_L("This checks the flatness of heatbed. Leveling makes extruded height uniform."), 50, "bed_leveling", {{"device/bed_leveling.gif", {}}});
|
||||
wxBoxSizer* item_timelapse = create_item_checkbox(_L("Timelapse"), main_page,
|
||||
_L("Records a video of the print with the printer's camera, one frame per layer, and saves it on the printer. "
|
||||
"In Smooth mode, chosen when slicing, the toolhead moves aside for each frame, which adds print time."), 50, "timelapse",
|
||||
{{"device/timelapse_traditional.gif", _L("Traditional")}, {"device/timelapse_smooth.gif", _L("Smooth")}});
|
||||
wxBoxSizer* item_flow_dy_ca = create_item_checkbox(_L("Flow Dynamic Calibration"), main_page,
|
||||
_L("This process determines the dynamic flow values to improve overall print quality."), 50, "flow_cali");
|
||||
sizer->Add(title_print_option, 0, wxEXPAND, 0);
|
||||
wxBoxSizer* options_sizer_v = new wxBoxSizer(wxHORIZONTAL);
|
||||
options_sizer_v->Add(item_bed_level, 0, wxLEFT, 0);
|
||||
@@ -1451,8 +1468,10 @@ wxPanel* SendMultiMachinePage::create_page()
|
||||
|
||||
// add send option
|
||||
wxBoxSizer* title_send_option = create_item_title(_L("Send Options"), main_page, "");
|
||||
wxBoxSizer* max_printer_send = create_item_input(_L("Send to"), _L("printers at the same time. (It depends on how many devices can undergo heating at the same time.)"), main_page, "", "max_send");
|
||||
wxBoxSizer* delay_time = create_item_input(_L("Wait"), _L("minute each batch. (It depends on how long it takes to complete heating.)"), main_page, "", "sending_interval");
|
||||
wxBoxSizer* max_printer_send = create_item_input(_L("Send to"), _L("printers at the same time. (It depends on how many devices can undergo heating at the same time.)"), main_page,
|
||||
_L("How many printers get the job in each batch. Each one heats its bed and nozzle as it starts, so keep the batch within what the power supply can take."), "max_send");
|
||||
wxBoxSizer* delay_time = create_item_input(_L("Wait"), _L("minute each batch. (It depends on how long it takes to complete heating.)"), main_page,
|
||||
_L("Minutes to wait before the next batch is sent, so that one batch has finished heating before the next one starts."), "sending_interval");
|
||||
sizer->Add(title_send_option, 0, wxEXPAND, 0);
|
||||
sizer->Add(max_printer_send, 0, wxLEFT, FromDIP(20));
|
||||
sizer->AddSpacer(FromDIP(3));
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
#include "Widgets/TextInput.hpp"
|
||||
#include "AmsMappingPopup.hpp"
|
||||
#include "SelectMachine.hpp"
|
||||
#include "IllustratedTipPopup.hpp"
|
||||
#include <wx/string.h>
|
||||
#include <wx/list.h>
|
||||
#include <wx/dc.h>
|
||||
@@ -193,7 +194,8 @@ public:
|
||||
|
||||
bool get_ams_mapping_result(std::string &mapping_array_str, std::string &mapping_array_str2, std::string &ams_mapping_info);
|
||||
wxBoxSizer* create_item_title(wxString title, wxWindow* parent, wxString tooltip);
|
||||
wxBoxSizer* create_item_checkbox(wxString title, wxWindow* parent, wxString tooltip, int padding_left, std::string param);
|
||||
wxBoxSizer* create_item_checkbox(wxString title, wxWindow* parent, wxString tooltip, int padding_left, std::string param,
|
||||
const std::vector<TipMedia> &media = {});
|
||||
wxBoxSizer* create_item_input(wxString str_before, wxString str_after, wxWindow* parent, wxString tooltip, std::string param);
|
||||
wxBoxSizer* create_item_radiobox(wxString title, wxWindow* parent, wxString tooltip, int groupid, std::string param);
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include "GUI_Preview.hpp"
|
||||
#include "MainFrame.hpp"
|
||||
#include "format.hpp"
|
||||
#include "IllustratedTipPopup.hpp"
|
||||
#include "Widgets/ProgressDialog.hpp"
|
||||
#include "ReleaseNote.hpp"
|
||||
#include "Widgets/RoundedRectangle.hpp"
|
||||
@@ -339,6 +340,7 @@ SendToPrinterDialog::SendToPrinterDialog(Plater *plater)
|
||||
|
||||
m_comboBox_printer = new ::ComboBox(this, wxID_ANY, "", wxDefaultPosition, wxSize(FromDIP(250), -1), 0, nullptr, wxCB_READONLY);
|
||||
m_comboBox_printer->Bind(wxEVT_COMBOBOX, &SendToPrinterDialog::on_selection_changed, this);
|
||||
set_illustrated_tooltip(m_comboBox_printer, _L("The printer to save the sliced file on. The file is only stored there, not printed: start it later from the printer."));
|
||||
|
||||
m_sizer_printer->Add(m_comboBox_printer, 1, wxEXPAND | wxRIGHT, FromDIP(5));
|
||||
|
||||
@@ -580,6 +582,7 @@ SendToPrinterDialog::SendToPrinterDialog(Plater *plater)
|
||||
rename_edit_sizer_v->Fit(m_rename_edit_panel);
|
||||
|
||||
m_rename_button->Bind(wxEVT_BUTTON, &SendToPrinterDialog::on_rename_click, this);
|
||||
set_illustrated_tooltip(m_rename_button, _L("Renames the file saved on the printer."));
|
||||
m_rename_switch_panel->AddPage(m_rename_normal_panel, wxEmptyString, true);
|
||||
m_rename_switch_panel->AddPage(m_rename_edit_panel, wxEmptyString, false);
|
||||
|
||||
@@ -688,6 +691,7 @@ void SendToPrinterDialog::update_storage_list(const std::vector<std::string> &st
|
||||
storage_text->SetLabel(_L("External Storage"));
|
||||
radiobox->Disable();
|
||||
storage_text->SetForegroundColour(StateColor::darkModeColorFor(wxColour("#CECECE")));
|
||||
set_illustrated_tooltip(storage_text, _L("No storage card is inserted in the printer."));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#include "StatusPanel.hpp"
|
||||
#include "I18N.hpp"
|
||||
#include "IllustratedTipPopup.hpp"
|
||||
#include "IPrinterAgent.hpp"
|
||||
#include "Widgets/Label.hpp"
|
||||
#include "Widgets/Button.hpp"
|
||||
@@ -439,10 +440,12 @@ ExtruderSwithingStatus::ExtruderSwithingStatus(wxWindow *parent)
|
||||
m_button_quit = new Button(this, _L_CONTEXT(L_CONTEXT("Quit", "Quit_Switching"), "Quit_Switching"), "", 0, FromDIP(22));
|
||||
m_button_quit->SetStyle(ButtonStyle::Regular, ButtonType::Window);
|
||||
m_button_quit->Bind(wxEVT_BUTTON, &ExtruderSwithingStatus::on_quit, this);
|
||||
set_illustrated_tooltip(m_button_quit, _L("Gives up the nozzle switch that failed."));
|
||||
|
||||
m_button_retry = new Button(this, _L("Retry"), "", 0, FromDIP(22));
|
||||
m_button_retry->SetStyle(ButtonStyle::Confirm, ButtonType::Window);
|
||||
m_button_retry->Bind(wxEVT_BUTTON, &ExtruderSwithingStatus::on_retry, this);
|
||||
set_illustrated_tooltip(m_button_retry, _L("Tries the nozzle switch again, once you have fixed the problem."));
|
||||
|
||||
wxBoxSizer *btn_sizer = new wxBoxSizer(wxHORIZONTAL);
|
||||
btn_sizer->Add(m_button_quit, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, FromDIP(10));
|
||||
@@ -693,35 +696,35 @@ void PrintingTaskPanel::create_panel(wxWindow* parent)
|
||||
m_button_partskip->SetBorderColor(*wxWHITE);
|
||||
m_button_partskip->SetFont(Label::Body_12);
|
||||
m_button_partskip->SetCornerRadius(0);
|
||||
m_button_partskip->SetToolTip(_L("Parts Skip"));
|
||||
m_button_partskip->Bind(wxEVT_ENTER_WINDOW, [this](auto &e) { m_button_partskip->SetIcon("print_control_partskip_hover"); });
|
||||
m_button_partskip->Bind(wxEVT_LEAVE_WINDOW, [this](auto &e) { m_button_partskip->SetIcon("print_control_partskip"); });
|
||||
// After the hover handlers above, which do not Skip(): handlers bound later run first.
|
||||
set_illustrated_tooltip(m_button_partskip, _L("Lists the objects on the plate, so you can skip the ones that failed while the rest of the plate keeps printing."));
|
||||
|
||||
m_button_pause_resume = new ScalableButton(progress_lr_panel, wxID_ANY, "print_control_pause", wxEmptyString, wxDefaultSize, wxDefaultPosition, wxBU_EXACTFIT | wxNO_BORDER,true);
|
||||
|
||||
m_button_pause_resume->Bind(wxEVT_ENTER_WINDOW, [this](auto &e) {
|
||||
if (m_button_pause_resume->GetToolTipText() == _L_CONTEXT("Pause", "Verb")) {
|
||||
if (m_pause_resume_type == "pause") {
|
||||
m_button_pause_resume->SetBitmap_("print_control_pause_hover");
|
||||
}
|
||||
|
||||
if (m_button_pause_resume->GetToolTipText() == _L("Resume")) {
|
||||
if (m_pause_resume_type == "resume") {
|
||||
m_button_pause_resume->SetBitmap_("print_control_resume_hover");
|
||||
}
|
||||
});
|
||||
|
||||
m_button_pause_resume->Bind(wxEVT_LEAVE_WINDOW, [this](auto &e) {
|
||||
auto buf = m_button_pause_resume->GetClientData();
|
||||
if (m_button_pause_resume->GetToolTipText() == _L_CONTEXT("Pause", "Verb")) {
|
||||
if (m_pause_resume_type == "pause") {
|
||||
m_button_pause_resume->SetBitmap_("print_control_pause");
|
||||
}
|
||||
|
||||
if (m_button_pause_resume->GetToolTipText() == _L("Resume")) {
|
||||
if (m_pause_resume_type == "resume") {
|
||||
m_button_pause_resume->SetBitmap_("print_control_resume");
|
||||
}
|
||||
});
|
||||
|
||||
m_button_abort = new ScalableButton(progress_lr_panel, wxID_ANY, "print_control_stop", wxEmptyString, wxDefaultSize, wxDefaultPosition, wxBU_EXACTFIT | wxNO_BORDER, true);
|
||||
m_button_abort->SetToolTip(_L("Stop"));
|
||||
|
||||
m_button_abort->Bind(wxEVT_ENTER_WINDOW, [this](auto &e) {
|
||||
m_button_abort->SetBitmap_("print_control_stop_hover");
|
||||
@@ -730,6 +733,7 @@ void PrintingTaskPanel::create_panel(wxWindow* parent)
|
||||
m_button_abort->Bind(wxEVT_LEAVE_WINDOW, [this](auto &e) {
|
||||
m_button_abort->SetBitmap_("print_control_stop"); }
|
||||
);
|
||||
set_illustrated_tooltip(m_button_abort, _L("Stops the print after you confirm. A stopped print cannot be resumed."));
|
||||
|
||||
wxBoxSizer *bSizer_buttons = new wxBoxSizer(wxHORIZONTAL);
|
||||
wxBoxSizer *bSizer_text = new wxBoxSizer(wxHORIZONTAL);
|
||||
@@ -839,7 +843,7 @@ void PrintingTaskPanel::create_panel(wxWindow* parent)
|
||||
|
||||
// Create question button
|
||||
m_question_button = new ScalableButton(m_printing_stage_panel, wxID_ANY, "thermal_question", wxEmptyString, wxDefaultSize, wxDefaultPosition, wxBU_EXACTFIT | wxNO_BORDER, true);
|
||||
m_question_button->SetToolTip(_L("Click to view thermal preconditioning explanation"));
|
||||
set_illustrated_tooltip(m_question_button, _L("Click to view thermal preconditioning explanation"));
|
||||
m_question_button->SetBackgroundColour(wxColour(255, 255, 255));
|
||||
m_question_button->Hide(); // Hide by default
|
||||
m_question_button->Bind(wxEVT_LEFT_UP, &PrintingTaskPanel::on_stage_clicked, this);
|
||||
@@ -936,6 +940,7 @@ void PrintingTaskPanel::create_panel(wxWindow* parent)
|
||||
|
||||
m_button_clean = new Button(m_panel_error_txt, _L("Clear"));
|
||||
m_button_clean->SetStyle(ButtonStyle::Regular, ButtonType::Window);
|
||||
set_illustrated_tooltip(m_button_clean, _L("Hides this error message until the printer reports a different error. It does not clear the error on the printer."));
|
||||
|
||||
static_text_sizer->Add( FromDIP(10), 0, 0, 0, 0 );
|
||||
static_text_sizer->Add(m_button_clean, 0, wxALIGN_CENTRE_VERTICAL|wxRIGHT, FromDIP(5));
|
||||
@@ -1161,11 +1166,13 @@ void PrintingTaskPanel::enable_pause_resume_button(bool enable, std::string type
|
||||
m_button_pause_resume->Enable(true);
|
||||
if (type == "resume") {
|
||||
m_button_pause_resume->SetBitmap_("print_control_resume");
|
||||
if (m_button_pause_resume->GetToolTipText() != _L("Resume")) { m_button_pause_resume->SetToolTip(_L("Resume")); }
|
||||
if (m_pause_resume_type != type) { set_illustrated_tooltip(m_button_pause_resume, _L("Resumes the paused print from where it stopped.")); }
|
||||
m_pause_resume_type = type;
|
||||
}
|
||||
else if (type == "pause") {
|
||||
m_button_pause_resume->SetBitmap_("print_control_pause");
|
||||
if (m_button_pause_resume->GetToolTipText() != _L_CONTEXT("Pause", "Verb")) { m_button_pause_resume->SetToolTip(_L_CONTEXT("Pause", "Verb")); }
|
||||
if (m_pause_resume_type != type) { set_illustrated_tooltip(m_button_pause_resume, _L("Pauses the print. Press it again to resume from where it stopped.")); }
|
||||
m_pause_resume_type = type;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1585,12 +1592,12 @@ wxBoxSizer *StatusBasePanel::create_monitoring_page()
|
||||
m_camera_switch_button->Bind(wxEVT_LEFT_DOWN, &StatusBasePanel::on_camera_switch_toggled, this);
|
||||
m_camera_switch_button->Hide();
|
||||
|
||||
m_bitmap_sdcard_img->SetToolTip(_L("Storage"));
|
||||
m_bitmap_timelapse_img->SetToolTip(_L("Timelapse"));
|
||||
m_bitmap_recording_img->SetToolTip(_L("Video"));
|
||||
m_bitmap_vcamera_img->SetToolTip(_L("Go Live"));
|
||||
m_setting_button->SetToolTip(_L("Camera Setting"));
|
||||
m_camera_switch_button->SetToolTip(_L("Switch Camera View"));
|
||||
set_illustrated_tooltip(m_bitmap_sdcard_img, _L("Storage: ready. The printer saves video recordings and timelapses to it."));
|
||||
set_illustrated_tooltip(m_bitmap_timelapse_img, _L("Timelapse: whether the printer records a timelapse of this print. It is chosen when the print is sent."));
|
||||
set_illustrated_tooltip(m_bitmap_recording_img, _L("Video recording: whether the printer records a video of its prints. Turn it on or off with Auto-record Monitoring in the camera settings."));
|
||||
set_illustrated_tooltip(m_bitmap_vcamera_img, _L("Go Live: whether the camera stream is shared as a virtual camera on this computer, for other apps to show. Turn it on or off in the camera settings."));
|
||||
set_illustrated_tooltip(m_setting_button, _L("Camera settings: auto-recording, Go Live, the video resolution and a custom camera source."));
|
||||
set_illustrated_tooltip(m_camera_switch_button, _L("Switches between the custom camera source and the printer's own camera."));
|
||||
|
||||
bSizer_monitoring_title->Add(m_camera_switch_button, 0, wxALIGN_CENTER_VERTICAL | wxALL, FromDIP(5));
|
||||
bSizer_monitoring_title->Add(m_bitmap_sdcard_img, 0, wxALIGN_CENTER_VERTICAL | wxALL, FromDIP(5));
|
||||
@@ -1669,6 +1676,11 @@ void StatusBasePanel::on_camera_switch_toggled(wxMouseEvent& event)
|
||||
show_custom_camera(m_custom_camera_view->IsShown() ? std::string() : CameraPopup::custom_source_url());
|
||||
}
|
||||
|
||||
static wxString calibration_button_tip()
|
||||
{
|
||||
return _L("Runs the printer's self-calibration, such as bed leveling, vibration compensation and motor noise cancellation, depending on the printer. Not available while printing.");
|
||||
}
|
||||
|
||||
wxBoxSizer *StatusBasePanel::create_machine_control_page(wxWindow *parent)
|
||||
{
|
||||
wxBoxSizer *bSizer_right = new wxBoxSizer(wxVERTICAL);
|
||||
@@ -1684,16 +1696,20 @@ wxBoxSizer *StatusBasePanel::create_machine_control_page(wxWindow *parent)
|
||||
|
||||
m_parts_btn = new Button(m_panel_control_title, _L("Printer Parts"));
|
||||
m_parts_btn->SetStyle(ButtonStyle::Confirm, ButtonType::Window);
|
||||
set_illustrated_tooltip(m_parts_btn, _L("Shows the nozzle the printer reports as installed: its type, diameter and flow."));
|
||||
|
||||
m_options_btn = new Button(m_panel_control_title, _L("Print Options"));
|
||||
m_options_btn->SetStyle(ButtonStyle::Confirm, ButtonType::Window);
|
||||
set_illustrated_tooltip(m_options_btn, _L("The printer's monitoring and detection settings, such as AI failure detection, first layer inspection and build plate detection. Which ones appear depends on the printer."));
|
||||
|
||||
m_safety_btn = new Button(m_panel_control_title, _L("Safety Options"));
|
||||
m_safety_btn->SetStyle(ButtonStyle::Confirm, ButtonType::Window);
|
||||
set_illustrated_tooltip(m_safety_btn, _L("The printer's safety settings, such as open door detection and idle heating protection."));
|
||||
|
||||
m_calibration_btn = new Button(m_panel_control_title, _L("Calibration"));
|
||||
m_calibration_btn->SetStyle(ButtonStyle::Confirm, ButtonType::Window);
|
||||
m_calibration_btn->EnableTooltipEvenDisabled();
|
||||
set_illustrated_tooltip(m_calibration_btn, calibration_button_tip());
|
||||
|
||||
m_options_btn->Hide();
|
||||
m_safety_btn->Hide();
|
||||
@@ -1735,6 +1751,7 @@ wxBoxSizer *StatusBasePanel::create_machine_control_page(wxWindow *parent)
|
||||
m_ams_rack_switch->updateState("left");
|
||||
m_ams_rack_switch->Hide();
|
||||
m_ams_rack_switch->Bind(wxCUSTOMEVT_SWITCH_POS, &StatusBasePanel::on_ams_rack_switch, this);
|
||||
set_illustrated_tooltip(m_ams_rack_switch, _L("Shows either the filament units or the printer's hotend rack below."));
|
||||
|
||||
bSizer_control->Add(0, 0, 0, wxTOP, FromDIP(8));
|
||||
bSizer_control->Add(temp_axis_slot, 0, wxALIGN_CENTER|wxLEFT|wxRIGHT, FromDIP(8));
|
||||
@@ -1838,6 +1855,11 @@ wxBoxSizer *StatusBasePanel::create_temp_control(wxWindow *parent)
|
||||
m_tempCtrl_nozzle_deputy->SetTextColor(tempinput_text_colour);
|
||||
m_tempCtrl_nozzle_deputy->SetBorderColor(tempinput_border_colour);
|
||||
|
||||
const wxString nozzle_temp_tip = _L("Nozzle temperature: current / target. Click the target, type a new one and press Enter to heat or cool the nozzle; 0 turns its heater off. "
|
||||
"On a printer with two nozzles, L and R mark the left and the right one.");
|
||||
set_illustrated_tooltip(m_tempCtrl_nozzle, nozzle_temp_tip);
|
||||
set_illustrated_tooltip(m_tempCtrl_nozzle_deputy, nozzle_temp_tip);
|
||||
|
||||
sizer->Add(m_tempCtrl_nozzle_deputy, 0, wxEXPAND | wxALL, 1);
|
||||
sizer->Add(m_tempCtrl_nozzle, 0, wxEXPAND | wxALL, 1);
|
||||
m_tempCtrl_nozzle_deputy->Hide();
|
||||
@@ -1857,6 +1879,7 @@ wxBoxSizer *StatusBasePanel::create_temp_control(wxWindow *parent)
|
||||
m_tempCtrl_bed->SetBorderWidth(FromDIP(2));
|
||||
m_tempCtrl_bed->SetTextColor(tempinput_text_colour);
|
||||
m_tempCtrl_bed->SetBorderColor(tempinput_border_colour);
|
||||
set_illustrated_tooltip(m_tempCtrl_bed, _L("Bed temperature: current / target. Click the target, type a new one and press Enter to heat or cool the bed; 0 turns its heater off."));
|
||||
sizer->Add(m_tempCtrl_bed, 0, wxEXPAND | wxALL, 1);
|
||||
|
||||
auto line = new StaticLine(parent);
|
||||
@@ -1874,6 +1897,8 @@ wxBoxSizer *StatusBasePanel::create_temp_control(wxWindow *parent)
|
||||
m_tempCtrl_chamber->SetBorderWidth(FromDIP(2));
|
||||
m_tempCtrl_chamber->SetTextColor(tempinput_text_colour);
|
||||
m_tempCtrl_chamber->SetBorderColor(tempinput_border_colour);
|
||||
set_illustrated_tooltip(m_tempCtrl_chamber, _L("Chamber temperature. On a printer that heats its chamber, click the target, type a new one and press Enter; 0 turns chamber heating off. "
|
||||
"On other printers it only shows the reading, where the printer reports one."));
|
||||
sizer->Add(m_tempCtrl_chamber, 0, wxEXPAND | wxALL, 1);
|
||||
|
||||
m_misc_ctrl_sizer = create_misc_control(parent);
|
||||
@@ -1897,6 +1922,7 @@ wxBoxSizer *StatusBasePanel::create_misc_control(wxWindow *parent)
|
||||
m_switch_speed->SetFont(Label::Head_13);
|
||||
m_switch_speed->SetTextColor(StateColor(std::make_pair(DISCONNECT_TEXT_COL, (int) StateColor::Disabled), std::make_pair(NORMAL_TEXT_COL, (int) StateColor::Normal)));
|
||||
m_switch_speed->SetValue(false);
|
||||
set_illustrated_tooltip(m_switch_speed, _L("Print speed level: Silent, Standard, Sport or Ludicrous. It changes the speed of the running print and has no effect while the printer is idle. Faster levels can lower print quality."));
|
||||
|
||||
line_sizer->Add(m_switch_speed, 1, wxALIGN_CENTER | wxALL, 0);
|
||||
|
||||
@@ -1913,6 +1939,7 @@ wxBoxSizer *StatusBasePanel::create_misc_control(wxWindow *parent)
|
||||
m_switch_lamp->SetBorderWidth(FromDIP(2));
|
||||
m_switch_lamp->SetFont(Label::Head_13);
|
||||
m_switch_lamp->SetTextColor(StateColor(std::make_pair(DISCONNECT_TEXT_COL, (int) StateColor::Disabled), std::make_pair(NORMAL_TEXT_COL, (int) StateColor::Normal)));
|
||||
set_illustrated_tooltip(m_switch_lamp, _L("Turns the printer's chamber light on or off. With the light off during a print, the camera's AI monitoring (such as spaghetti detection) can fail."));
|
||||
line_sizer->Add(m_switch_lamp, 1, wxALIGN_CENTER | wxALL, 0);
|
||||
|
||||
//sizer->Add(line_sizer, 0, wxEXPAND, FromDIP(5));
|
||||
@@ -1947,6 +1974,7 @@ wxBoxSizer *StatusBasePanel::create_misc_control(wxWindow *parent)
|
||||
m_switch_fan->Bind(wxEVT_LEAVE_WINDOW, [this, parent](auto& e) {
|
||||
m_fan_panel->SetBackgroundColor(parent->GetBackgroundColour());
|
||||
});
|
||||
set_illustrated_tooltip(m_switch_fan, _L("Opens the fan controls: the speed of each fan the printer lets you set, and the air duct mode on printers that have one."));
|
||||
|
||||
fan_line_sizer->Add(m_switch_fan, 1, wxEXPAND|wxALL, FromDIP(2));
|
||||
|
||||
@@ -2004,6 +2032,8 @@ wxBoxSizer *StatusBasePanel::create_axis_control(wxWindow *parent)
|
||||
m_bpButton_xy->SetTextColor(StateColor(std::make_pair(DISCONNECT_TEXT_COL, (int) StateColor::Disabled), std::make_pair(NORMAL_TEXT_COL, (int) StateColor::Normal)));
|
||||
m_bpButton_xy->SetMinSize(AXIS_MIN_SIZE);
|
||||
m_bpButton_xy->SetSize(AXIS_MIN_SIZE);
|
||||
set_illustrated_tooltip(m_bpButton_xy, _L("Moves the toolhead in X and Y in the direction of the arrow: the outer ring by 10 mm, the inner ring by 1 mm. The button in the middle homes all axes. "
|
||||
"Until the axes are homed, a move asks you to home them first."));
|
||||
sizer->AddStretchSpacer();
|
||||
sizer->Add(m_bpButton_xy, 0, wxALIGN_CENTER | wxALL, 0);
|
||||
sizer->AddStretchSpacer();
|
||||
@@ -2031,6 +2061,7 @@ wxPanel *StatusBasePanel::create_bed_control(wxWindow *parent)
|
||||
m_bpButton_z_10->SetMinSize(Z_BUTTON_SIZE);
|
||||
m_bpButton_z_10->SetSize(Z_BUTTON_SIZE);
|
||||
m_bpButton_z_10->SetCornerRadius(0);
|
||||
set_illustrated_tooltip(m_bpButton_z_10, wxString::Format(_L("Moves the bed and the nozzle %d mm closer together."), 10));
|
||||
m_bpButton_z_1 = new Button(panel, wxString(" 1"), "monitor_bed_up", 0, 15); // Orca Dont scale icon size
|
||||
m_bpButton_z_1->SetFont(::Label::Body_12);
|
||||
m_bpButton_z_1->SetBorderWidth(0);
|
||||
@@ -2039,6 +2070,7 @@ wxPanel *StatusBasePanel::create_bed_control(wxWindow *parent)
|
||||
m_bpButton_z_1->SetMinSize(Z_BUTTON_SIZE);
|
||||
m_bpButton_z_1->SetSize(Z_BUTTON_SIZE);
|
||||
m_bpButton_z_1->SetTextColor(StateColor(std::make_pair(DISCONNECT_TEXT_COL, (int) StateColor::Disabled), std::make_pair(NORMAL_TEXT_COL, (int) StateColor::Normal)));
|
||||
set_illustrated_tooltip(m_bpButton_z_1, wxString::Format(_L("Moves the bed and the nozzle %d mm closer together."), 1));
|
||||
|
||||
//bSizer_z_ctrl->Add(0, FromDIP(6), 0, wxEXPAND, 0);
|
||||
|
||||
@@ -2055,6 +2087,7 @@ wxPanel *StatusBasePanel::create_bed_control(wxWindow *parent)
|
||||
m_bpButton_z_down_1->SetMinSize(Z_BUTTON_SIZE);
|
||||
m_bpButton_z_down_1->SetSize(Z_BUTTON_SIZE);
|
||||
m_bpButton_z_down_1->SetTextColor(StateColor(std::make_pair(DISCONNECT_TEXT_COL, (int) StateColor::Disabled), std::make_pair(NORMAL_TEXT_COL, (int) StateColor::Normal)));
|
||||
set_illustrated_tooltip(m_bpButton_z_down_1, wxString::Format(_L("Moves the bed and the nozzle %d mm apart."), 1));
|
||||
|
||||
m_bpButton_z_down_10 = new Button(panel, wxString("10"), "monitor_bed_down", 0, 15); // Orca Dont scale icon size
|
||||
m_bpButton_z_down_10->SetFont(::Label::Body_12);
|
||||
@@ -2064,6 +2097,7 @@ wxPanel *StatusBasePanel::create_bed_control(wxWindow *parent)
|
||||
m_bpButton_z_down_10->SetMinSize(Z_BUTTON_SIZE);
|
||||
m_bpButton_z_down_10->SetSize(Z_BUTTON_SIZE);
|
||||
m_bpButton_z_down_10->SetTextColor(StateColor(std::make_pair(DISCONNECT_TEXT_COL, (int) StateColor::Disabled), std::make_pair(NORMAL_TEXT_COL, (int) StateColor::Normal)));
|
||||
set_illustrated_tooltip(m_bpButton_z_down_10, wxString::Format(_L("Moves the bed and the nozzle %d mm apart."), 10));
|
||||
|
||||
bSizer_z_ctrl->Add(m_bpButton_z_10, 0, wxEXPAND | wxLEFT | wxRIGHT, 0);
|
||||
bSizer_z_ctrl->Add(m_bpButton_z_1, 0, wxEXPAND | wxLEFT | wxRIGHT, FromDIP(2));
|
||||
@@ -2094,12 +2128,14 @@ wxBoxSizer *StatusBasePanel::create_extruder_control(wxWindow *parent)
|
||||
|
||||
m_nozzle_btn_panel = new SwitchBoard(panel, _L_CONTEXT("Left", "Nozzle position"), _L_CONTEXT("Right", "Nozzle position"), wxSize(FromDIP(126), FromDIP(26)));
|
||||
m_nozzle_btn_panel->SetAutoDisableWhenSwitch();
|
||||
set_illustrated_tooltip(m_nozzle_btn_panel, _L("Switches the active nozzle. Not possible while a print is running, unless it is paused."));
|
||||
|
||||
m_bpButton_e_10 = new Button(panel, "", "monitor_extruder_up", 0, 22); // Orca Dont scale icon size
|
||||
m_bpButton_e_10->SetBorderWidth(2);
|
||||
m_bpButton_e_10->SetBackgroundColor(e_ctrl_bg);
|
||||
m_bpButton_e_10->SetBorderColor(e_ctrl_bd);
|
||||
m_bpButton_e_10->SetMinSize(wxSize(FromDIP(40), FromDIP(40)));
|
||||
set_illustrated_tooltip(m_bpButton_e_10, wxString::Format(_L("Retracts 10 mm of filament, pulling it back from the nozzle. The nozzle must be at %d\u2103 or hotter."), int(TEMP_THRESHOLD_ALLOW_E_CTRL)));
|
||||
|
||||
m_extruder_book = new wxSimplebook(panel, wxID_ANY, wxDefaultPosition, wxSize(FromDIP(45), FromDIP(112)), 0);
|
||||
|
||||
@@ -2116,6 +2152,7 @@ wxBoxSizer *StatusBasePanel::create_extruder_control(wxWindow *parent)
|
||||
m_bpButton_e_down_10->SetBackgroundColor(e_ctrl_bg);
|
||||
m_bpButton_e_down_10->SetBorderColor(e_ctrl_bd);
|
||||
m_bpButton_e_down_10->SetMinSize(wxSize(FromDIP(40), FromDIP(40)));
|
||||
set_illustrated_tooltip(m_bpButton_e_down_10, wxString::Format(_L("Extrudes 10 mm of filament through the nozzle. The nozzle must be at %d\u2103 or hotter."), int(TEMP_THRESHOLD_ALLOW_E_CTRL)));
|
||||
|
||||
m_extruder_switching_status = new ExtruderSwithingStatus(panel);
|
||||
m_extruder_switching_status->SetForegroundColour(TEXT_LIGHT_FONT_COL);
|
||||
@@ -2205,6 +2242,7 @@ wxBoxSizer* StatusBasePanel::create_filament_group(wxWindow* parent)
|
||||
|
||||
m_title_filament_loading->Bind(wxEVT_LEFT_DOWN, &StatusBasePanel::expand_filament_loading, this);
|
||||
m_scale_panel->Bind(wxEVT_LEFT_DOWN, &StatusBasePanel::expand_filament_loading, this);
|
||||
set_illustrated_tooltip(m_scale_panel, _L("Shows or hides the steps of the filament change in progress."));
|
||||
|
||||
|
||||
auto sizer_box = new wxBoxSizer(wxVERTICAL);
|
||||
@@ -2237,6 +2275,7 @@ wxBoxSizer* StatusBasePanel::create_filament_group(wxWindow* parent)
|
||||
|
||||
m_button_retry = new Button(m_filament_load_box, _L("Retry"));
|
||||
m_button_retry->SetStyle(ButtonStyle::Confirm, ButtonType::Choice);
|
||||
set_illustrated_tooltip(m_button_retry, _L("Tells the printer to try the failed step of the filament change again, once you have fixed the problem."));
|
||||
//m_button_retry->Hide();
|
||||
|
||||
m_button_retry->Bind(wxEVT_BUTTON, [this](wxCommandEvent &e) {
|
||||
@@ -2248,6 +2287,7 @@ wxBoxSizer* StatusBasePanel::create_filament_group(wxWindow* parent)
|
||||
m_fila_change_abort = new Button(m_filament_load_box, _L("Stop"));
|
||||
m_fila_change_abort->SetStyle(ButtonStyle::Regular, ButtonType::Choice);
|
||||
m_fila_change_abort->Hide();
|
||||
set_illustrated_tooltip(m_fila_change_abort, _L("Stops the filament change in progress."));
|
||||
m_fila_change_abort->Bind(wxEVT_BUTTON, [this](wxCommandEvent &e) {
|
||||
BOOST_LOG_TRIVIAL(info) << "on_ams_abort";
|
||||
if (obj) { obj->command_ams_control("abort"); }
|
||||
@@ -2453,16 +2493,16 @@ void StatusPanel::update_camera_state(MachineObject* obj)
|
||||
if (m_last_sdcard != sdcard_state) {
|
||||
if (sdcard_state == DevStorage::NO_SDCARD) {
|
||||
m_bitmap_sdcard_img->SetBitmap(m_bitmap_sdcard_state_no.bmp());
|
||||
m_bitmap_sdcard_img->SetToolTip(_L("No Storage"));
|
||||
set_illustrated_tooltip(m_bitmap_sdcard_img, _L("Storage: none in the printer. Video recording and timelapse need it."));
|
||||
} else if (sdcard_state == DevStorage::HAS_SDCARD_NORMAL) {
|
||||
m_bitmap_sdcard_img->SetBitmap(m_bitmap_sdcard_state_normal.bmp());
|
||||
m_bitmap_sdcard_img->SetToolTip(_L("Storage"));
|
||||
set_illustrated_tooltip(m_bitmap_sdcard_img, _L("Storage: ready. The printer saves video recordings and timelapses to it."));
|
||||
} else if (sdcard_state == DevStorage::HAS_SDCARD_ABNORMAL) {
|
||||
m_bitmap_sdcard_img->SetBitmap(m_bitmap_sdcard_state_abnormal.bmp());
|
||||
m_bitmap_sdcard_img->SetToolTip(_L("Storage Abnormal"));
|
||||
set_illustrated_tooltip(m_bitmap_sdcard_img, _L("Storage: the printer reports a problem with it. Check or format it on the printer."));
|
||||
} else {
|
||||
m_bitmap_sdcard_img->SetBitmap(m_bitmap_sdcard_state_normal.bmp());
|
||||
m_bitmap_sdcard_img->SetToolTip(_L("Storage"));
|
||||
set_illustrated_tooltip(m_bitmap_sdcard_img, _L("Storage: ready. The printer saves video recordings and timelapses to it."));
|
||||
}
|
||||
m_last_sdcard = sdcard_state;
|
||||
m_panel_monitoring_title->Layout();
|
||||
@@ -3750,12 +3790,14 @@ void StatusPanel::update_cali(MachineObject *obj)
|
||||
|
||||
// disable calibration button in 2D
|
||||
if (!obj->is_fdm_type()) {
|
||||
// A native tooltip here: Button shows it on a disabled button (EnableTooltipEvenDisabled), ours does not.
|
||||
set_illustrated_tooltip(m_calibration_btn, wxEmptyString);
|
||||
m_calibration_btn->SetToolTip(_L("Printer 2D mode does not support 3D calibration"));
|
||||
m_calibration_btn->SetLabel(_L("Calibration"));
|
||||
m_calibration_btn->Disable();
|
||||
return;
|
||||
} else if (!m_calibration_btn->IsEnabled()) {
|
||||
m_calibration_btn->SetToolTip(wxEmptyString);
|
||||
set_illustrated_tooltip(m_calibration_btn, calibration_button_tip());
|
||||
m_calibration_btn->Enable();
|
||||
}
|
||||
|
||||
|
||||
@@ -324,6 +324,7 @@ private:
|
||||
wxStaticBitmap* m_bitmap_static_use_time;
|
||||
wxStaticBitmap* m_bitmap_static_use_weight;
|
||||
ScalableButton* m_button_pause_resume;
|
||||
std::string m_pause_resume_type; // "pause" or "resume" while the button is enabled, which icon it shows
|
||||
ScalableButton* m_button_abort;
|
||||
Button* m_button_partskip;
|
||||
Button* m_button_market_scoring;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include "SyncAmsInfoDialog.hpp"
|
||||
#include "IllustratedTipPopup.hpp"
|
||||
|
||||
#include <boost/log/trivial.hpp>
|
||||
#include "slic3r/GUI/GUI_Utils.hpp"
|
||||
@@ -769,6 +770,13 @@ SyncAmsInfoDialog::SyncAmsInfoDialog(wxWindow *parent, SyncInfo &info) :
|
||||
m_mode_combox_sizer = new wxBoxSizer(wxHORIZONTAL);
|
||||
m_colormap_btn = new CapsuleButton(m_scrolledWindow, PageType::ptColorMap, _L("Mapping"), true);
|
||||
m_override_btn = new CapsuleButton(m_scrolledWindow, PageType::ptOverride, _L("Overwriting"), false);
|
||||
set_illustrated_tooltip(m_colormap_btn, _L("Each project filament takes the type and color of the printer filament it is mapped to. "
|
||||
"The list keeps its length, and you can change the mapping before synchronizing."),
|
||||
{{"device/sync_mapping.gif", {}}});
|
||||
set_illustrated_tooltip(m_override_btn, _L("Replaces the project's filament list in order with the printer's filaments: filament 1 "
|
||||
"becomes the first slot, filament 2 the second, and so on. Printer filaments left over "
|
||||
"are added at the end."),
|
||||
{{"device/sync_overwrite.gif", {}}});
|
||||
m_mode_combox_sizer->AddSpacer(SyncAmsInfoDialogWidth / 2.0f - FromDIP(8) / 2.0f - m_colormap_btn->GetSize().GetX());
|
||||
m_mode_combox_sizer->Add(m_colormap_btn, 0, wxEXPAND | wxALL, FromDIP(2));
|
||||
m_mode_combox_sizer->AddSpacer(FromDIP(8));
|
||||
@@ -778,7 +786,7 @@ SyncAmsInfoDialog::SyncAmsInfoDialog(wxWindow *parent, SyncInfo &info) :
|
||||
true, 14);
|
||||
m_reset_all_btn->Bind(wxEVT_BUTTON, [this](wxCommandEvent &e) { reset_all_ams_info(); });
|
||||
m_reset_all_btn->SetBackgroundColour(*wxWHITE);
|
||||
m_reset_all_btn->SetToolTip(_L("Reset all filament mapping"));
|
||||
set_illustrated_tooltip(m_reset_all_btn, _L("Reset all filament mapping"));
|
||||
|
||||
m_mode_combox_sizer->Add(m_reset_all_btn, 0, wxEXPAND | wxALL, FromDIP(2));
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include "TroubleshootDialog.hpp"
|
||||
#include "IllustratedTipPopup.hpp"
|
||||
#include "I18N.hpp"
|
||||
|
||||
#include "BuildCommit.hpp"
|
||||
@@ -194,7 +195,7 @@ TroubleshootDialog::TroubleshootDialog()
|
||||
auto build = new Button(this, wxString(build_commit_label));
|
||||
build->SetStyle(ButtonStyle::Regular, ButtonType::Window);
|
||||
auto hash_url = "https://github.com/OrcaSlicer/OrcaSlicer/commit/" + wxString(build_commit_hash);
|
||||
build->SetToolTip(hash_url);
|
||||
set_illustrated_tooltip(build, hash_url);
|
||||
build->Bind(wxEVT_BUTTON, [hash_url](wxCommandEvent &e) {
|
||||
wxLaunchDefaultBrowser(hash_url);
|
||||
});
|
||||
@@ -223,11 +224,11 @@ TroubleshootDialog::TroubleshootDialog()
|
||||
|
||||
auto sys_less_btn = new Button(this, _L("Hide"));
|
||||
sys_less_btn->SetStyle(ButtonStyle::Regular, ButtonType::Window);
|
||||
sys_less_btn->SetToolTip(_L("Show/Hide system information"));
|
||||
set_illustrated_tooltip(sys_less_btn, _L("Show/Hide system information"));
|
||||
|
||||
auto sys_copy_btn = new Button(this, _L("Copy"));
|
||||
sys_copy_btn->SetStyle(ButtonStyle::Regular, ButtonType::Window);
|
||||
sys_copy_btn->SetToolTip(_L("Copy system information to clipboard"));
|
||||
set_illustrated_tooltip(sys_copy_btn, _L("Copy system information to clipboard"));
|
||||
|
||||
sys_copy_btn->Bind(wxEVT_BUTTON, [this](wxCommandEvent &e) {
|
||||
wxClipboardLocker lock;
|
||||
@@ -246,14 +247,14 @@ TroubleshootDialog::TroubleshootDialog()
|
||||
|
||||
auto wiki_btn = new Button(this, "", "toolbar_wiki", 0, 15);
|
||||
auto wiki_url = "https://www.orcaslicer.com/wiki/troubleshoot_center";
|
||||
wiki_btn->SetToolTip(_L("Wiki Guide") + "\n" + wiki_url);
|
||||
set_illustrated_tooltip(wiki_btn, _L("Wiki Guide") + "\n" + wiki_url);
|
||||
wiki_btn->SetStyle(ButtonStyle::Confirm, ButtonType::Circle);
|
||||
wiki_btn->SetCanFocus(false);
|
||||
wiki_btn->Bind(wxEVT_LEFT_DOWN, ([wiki_url](auto& e) {wxLaunchDefaultBrowser(wiki_url);}));
|
||||
|
||||
auto video_btn = new Button(this, "", "toolbar_video_guide", 0, 15);
|
||||
auto video_url = "https://www.youtube.com/watch?v=CFzt8W7OCx0";
|
||||
video_btn->SetToolTip(_L("Video Guide") + "\n" + video_url);
|
||||
set_illustrated_tooltip(video_btn, _L("Video Guide") + "\n" + video_url);
|
||||
video_btn->SetStyle(ButtonStyle::Confirm, ButtonType::Circle);
|
||||
video_btn->SetCanFocus(false);
|
||||
video_btn->Bind(wxEVT_LEFT_DOWN, ([video_url](auto& e) {wxLaunchDefaultBrowser(video_url);}));
|
||||
@@ -271,7 +272,7 @@ TroubleshootDialog::TroubleshootDialog()
|
||||
wxBoxSizer *sizer = new wxBoxSizer(wxHORIZONTAL);
|
||||
auto label = new Label(this, title, LB_AUTO_WRAP, wxSize(FromDIP(275),-1)); // 400 - 120 - 5
|
||||
label->SetForegroundColour(StateColor::darkModeColorFor(wxColour("#363636")));
|
||||
label->SetToolTip(tooltip);
|
||||
set_illustrated_tooltip(label, tooltip);
|
||||
sizer->Add(label, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, FromDIP(15));
|
||||
|
||||
if (label_out) *label_out = label;
|
||||
@@ -281,7 +282,7 @@ TroubleshootDialog::TroubleshootDialog()
|
||||
|
||||
auto create_btn = [this](wxString title, wxString tooltip) {
|
||||
auto btn = new Button(this, title);
|
||||
btn->SetToolTip(tooltip);
|
||||
set_illustrated_tooltip(btn, tooltip);
|
||||
btn->SetStyle(ButtonStyle::Regular, ButtonType::Parameter);
|
||||
return btn;
|
||||
};
|
||||
@@ -352,26 +353,31 @@ TroubleshootDialog::TroubleshootDialog()
|
||||
auto profiles_loaded = create_item_loaded_profiles();
|
||||
|
||||
// MORE
|
||||
auto cfg_folder_szr = create_label(_L("Configurations folder"), "");
|
||||
auto cfg_folder_szr = create_label(_L("Configurations folder"), _L("The folder where Orca Slicer keeps your presets, its settings and its logs."));
|
||||
auto cfg_folder_btn = create_btn(_L("Browse") + "...", _L("Opens configurations folder."));
|
||||
cfg_folder_btn->Bind(wxEVT_BUTTON, [this, data_dir](wxCommandEvent &e) {
|
||||
BrowseFolder(data_dir.string());
|
||||
});
|
||||
cfg_folder_szr->Add(cfg_folder_btn, 0, wxALIGN_CENTER_VERTICAL);
|
||||
|
||||
auto log_level_szr = create_label(_L("Log level"), "");
|
||||
log_level_szr->Add(create_item_log_level_combo(), 0, wxALIGN_CENTER_VERTICAL);
|
||||
const wxString log_level_tip = _L("How much detail Orca Slicer writes to its log. Set it to debug or trace while you reproduce a problem "
|
||||
"for a report, and back afterwards: those levels write large logs.");
|
||||
auto log_level_szr = create_label(_L("Log level"), log_level_tip);
|
||||
auto log_level_combo = create_item_log_level_combo();
|
||||
set_illustrated_tooltip(log_level_combo, log_level_tip);
|
||||
log_level_szr->Add(log_level_combo, 0, wxALIGN_CENTER_VERTICAL);
|
||||
|
||||
auto log_pack_szr = create_label(_L("Stored logs"), _L("Packs all stored logs onto a ZIP archive."));
|
||||
auto log_pack_btn = create_btn(_L("Pack") + "...", "");
|
||||
auto log_pack_btn = create_btn(_L("Pack") + "...", _L("Packs all stored logs onto a ZIP archive."));
|
||||
log_pack_btn->Bind(wxEVT_BUTTON, [this](wxCommandEvent &e) {
|
||||
auto data_dir = boost::filesystem::path(Slic3r::data_dir());
|
||||
ExportAsZip({wxString((data_dir / "log").string())}, "OrcaSlicer_Logs_" + GetTimestamp());
|
||||
});
|
||||
log_pack_szr->Add(log_pack_btn, 0, wxALIGN_CENTER_VERTICAL);
|
||||
|
||||
auto log_clear_szr = create_label("-", "", &m_logs_storage);
|
||||
auto log_clear_btn = create_btn(_L("Clear"), "");
|
||||
const wxString log_clear_tip = _L("Deletes the stored logs except the newest one, the log of this session.");
|
||||
auto log_clear_szr = create_label("-", log_clear_tip, &m_logs_storage);
|
||||
auto log_clear_btn = create_btn(_L("Clear"), log_clear_tip);
|
||||
log_clear_btn->Bind(wxEVT_BUTTON, [this](wxCommandEvent &e) {
|
||||
ClearLogs();
|
||||
});
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include "UpgradePanel.hpp"
|
||||
#include "IllustratedTipPopup.hpp"
|
||||
#include "slic3r/GUI/Widgets/Button.hpp"
|
||||
#include "slic3r/GUI/Widgets/ProgressBar.hpp"
|
||||
#include <exception>
|
||||
@@ -1511,6 +1512,8 @@ void MachineInfoPanel::createNozzleRackWidgets(wxBoxSizer *main_left_sizer)
|
||||
m_nozzle_rack_update_btn->SetMinSize(wxSize(FromDIP(-1), FromDIP(24)));
|
||||
m_nozzle_rack_update_btn->SetCornerRadius(FromDIP(12));
|
||||
m_nozzle_rack_update_btn->Bind(wxEVT_BUTTON, &MachineInfoPanel::on_nozzle_rack_update, this);
|
||||
set_illustrated_tooltip(m_nozzle_rack_update_btn, _L("Opens the list of the hotends on the rack, where the information of each one "
|
||||
"can be read again."));
|
||||
content_sizer->Add(m_nozzle_rack_update_btn, 0, wxALIGN_CENTER_VERTICAL | wxLEFT, FromDIP(350));
|
||||
|
||||
m_nozzle_rack_sizer->Add(content_sizer, 1, wxEXPAND, 0);
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#include "../GUI_App.hpp"
|
||||
|
||||
#include "slic3r/GUI/MsgDialog.hpp"
|
||||
#include "slic3r/GUI/IllustratedTipPopup.hpp"
|
||||
#include "slic3r/GUI/DeviceTab/uiAmsHumidityPopup.h"
|
||||
|
||||
#include "slic3r/GUI/DeviceCore/DevManager.h"
|
||||
@@ -168,6 +169,9 @@ AMSControl::AMSControl(wxWindow *parent, wxWindowID id, const wxPoint &pos, cons
|
||||
/*option left*/
|
||||
m_button_auto_refill = new Button(m_panel_option_left, _L("Auto Refill"));
|
||||
m_button_auto_refill->SetStyle(ButtonStyle::Regular, ButtonType::Choice);
|
||||
set_illustrated_tooltip(m_button_auto_refill,
|
||||
_L("Shows which slots back each other up. When a spool runs out during a print, the AMS continues with a matching filament "
|
||||
"from another slot of its group, if AMS filament backup is on in the AMS settings."));
|
||||
|
||||
m_button_ams_setting_normal = ScalableBitmap(this, "ams_setting_normal", 24);
|
||||
m_button_ams_setting_hover = ScalableBitmap(this, "ams_setting_hover", 24);
|
||||
@@ -176,6 +180,8 @@ AMSControl::AMSControl(wxWindow *parent, wxWindowID id, const wxPoint &pos, cons
|
||||
m_button_ams_setting = new wxStaticBitmap(m_panel_option_left, wxID_ANY, m_button_ams_setting_normal.bmp(), wxDefaultPosition, wxSize(FromDIP(24), FromDIP(24)));
|
||||
m_button_ams_setting->SetMinSize(wxSize(FromDIP(24), FromDIP(24)));
|
||||
m_button_ams_setting->SetMaxSize(wxSize(FromDIP(24), FromDIP(24)));
|
||||
set_illustrated_tooltip(m_button_ams_setting,
|
||||
_L("AMS settings: when the AMS reads the spools' information, remaining capacity estimation, filament backup and other options."));
|
||||
m_sizer_option_left->Add(m_button_auto_refill, 0, wxALIGN_CENTER, 0);
|
||||
m_sizer_option_left->Add(0, 0, 0, wxLEFT, FromDIP(20));
|
||||
m_sizer_option_left->Add(m_button_ams_setting, 0, wxALIGN_CENTER, 0);
|
||||
@@ -229,6 +235,9 @@ AMSControl::AMSControl(wxWindow *parent, wxWindowID id, const wxPoint &pos, cons
|
||||
m_sizer_option_right->Add(m_button_extruder_back, 0, wxLEFT, FromDIP(0));
|
||||
m_sizer_option_right->Add(m_button_extruder_feed, 0, wxLEFT, FromDIP(20));
|
||||
|
||||
EnableLoadFilamentBtn(m_button_extruder_feed->IsEnabled(), "", "", wxEmptyString);
|
||||
EnableUnLoadFilamentBtn(m_button_extruder_back->IsEnabled(), "", "", wxEmptyString);
|
||||
|
||||
m_panel_option_left->Layout();
|
||||
m_panel_option_right->Layout();
|
||||
|
||||
@@ -429,22 +438,45 @@ wxColour AMSControl::GetCanColour(std::string amsid, std::string canid)
|
||||
return col;
|
||||
}
|
||||
|
||||
// An enabled Load or Unload button gets an illustrated tooltip. A disabled one gets no mouse events on most
|
||||
// platforms, so the reason it is disabled stays a native tooltip: GTK and macOS show those on disabled
|
||||
// windows, and Button::EnableTooltipEvenDisabled() shows it on Windows.
|
||||
static void set_filament_button_tip(Button *button, const wxString &text)
|
||||
{
|
||||
if (button->IsEnabled()) {
|
||||
set_illustrated_tooltip(button, text);
|
||||
} else {
|
||||
set_illustrated_tooltip(button, wxEmptyString);
|
||||
if (button->GetToolTipText() != text)
|
||||
button->SetToolTip(text);
|
||||
}
|
||||
}
|
||||
|
||||
void AMSControl::EnableLoadFilamentBtn(bool enable, const std::string& ams_id, const std::string& can_id,const wxString& tips)
|
||||
{
|
||||
m_button_extruder_feed->Enable(enable);
|
||||
if (m_button_extruder_feed->GetToolTipText() != tips) {
|
||||
if (m_load_btn_tip != tips) {
|
||||
BOOST_LOG_TRIVIAL(info) << "ams_id=" << ams_id << ", can_id=" << can_id << " Set Load Filament Button ToolTip : " << tips.ToUTF8();
|
||||
m_button_extruder_feed->SetToolTip(tips);
|
||||
m_load_btn_tip = tips;
|
||||
}
|
||||
wxString text = _L("Loads the filament of the selected slot into the toolhead. Filament already in the toolhead is unloaded "
|
||||
"first, and the nozzle heats up for the change.");
|
||||
if (!tips.empty())
|
||||
text += "\n\n" + tips;
|
||||
set_filament_button_tip(m_button_extruder_feed, text);
|
||||
}
|
||||
|
||||
void AMSControl::EnableUnLoadFilamentBtn(bool enable, const std::string& ams_id, const std::string& can_id,const wxString& tips)
|
||||
{
|
||||
m_button_extruder_back->Enable(enable);
|
||||
if (m_button_extruder_back->GetToolTipText() != tips) {
|
||||
if (m_unload_btn_tip != tips) {
|
||||
BOOST_LOG_TRIVIAL(info) << "ams_id=" << ams_id << ", can_id=" << can_id << " Set Unload Filament Button ToolTip : " << tips.ToUTF8();
|
||||
m_button_extruder_back->SetToolTip(tips);
|
||||
m_unload_btn_tip = tips;
|
||||
}
|
||||
wxString text = _L("Unloads the filament from the toolhead and pulls it back to its slot. The nozzle heats up for this.");
|
||||
if (!tips.empty())
|
||||
text += "\n\n" + tips;
|
||||
set_filament_button_tip(m_button_extruder_back, text);
|
||||
}
|
||||
|
||||
void AMSControl::EnterNoneAMSMode()
|
||||
|
||||
@@ -132,6 +132,9 @@ protected:
|
||||
Button *m_button_extruder_feed {nullptr};
|
||||
Button *m_button_extruder_back {nullptr};
|
||||
Button *m_button_auto_refill{ nullptr };
|
||||
// Why the Load and Unload buttons are disabled, as last given (empty when enabled).
|
||||
wxString m_load_btn_tip;
|
||||
wxString m_unload_btn_tip;
|
||||
wxStaticBitmap* m_button_ams_setting {nullptr};
|
||||
wxStaticBitmap* m_img_ams_backup {nullptr};
|
||||
wxStaticBitmap* m_img_amsmapping_tip {nullptr};
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#include "../format.hpp"
|
||||
#include "../GUI_App.hpp"
|
||||
#include "../FilamentBitmapUtils.hpp"
|
||||
#include "../IllustratedTipPopup.hpp"
|
||||
#include "../Utils/WxFontUtils.hpp"
|
||||
|
||||
#include "slic3r/GUI/DeviceTab/uiAmsHumidityPopup.h"
|
||||
@@ -412,6 +413,8 @@ void AMSrefresh::create(wxWindow *parent, wxWindowID id, const wxPoint &pos, con
|
||||
SetSize(AMS_REFRESH_SIZE);
|
||||
SetMinSize(AMS_REFRESH_SIZE);
|
||||
SetMaxSize(AMS_REFRESH_SIZE);
|
||||
set_illustrated_tooltip(this, _L("Reads the RFID tag of the spool in this slot again and updates its filament information. "
|
||||
"Works with spools that carry such a tag."));
|
||||
Refresh();
|
||||
}
|
||||
|
||||
@@ -2593,6 +2596,7 @@ AMSPreview::AMSPreview(wxWindow* parent, wxWindowID id, AMSinfo amsinfo, AMSMode
|
||||
Bind(wxEVT_PAINT, &AMSPreview::paintEvent, this);
|
||||
Bind(wxEVT_ENTER_WINDOW, &AMSPreview::OnEnterWindow, this);
|
||||
Bind(wxEVT_LEAVE_WINDOW, &AMSPreview::OnLeaveWindow, this);
|
||||
set_illustrated_tooltip(this, _L("Click to show this AMS and its slots."));
|
||||
}
|
||||
|
||||
void AMSPreview::Open()
|
||||
@@ -2929,6 +2933,11 @@ void AMSHumidity::UpdateInfo(AMSinfo amsinfo)
|
||||
{
|
||||
m_amsinfo = amsinfo;
|
||||
update_size();
|
||||
if (m_amsinfo.ams_type == AMSModel::GENERIC_AMS)
|
||||
set_illustrated_tooltip(this, _L("Humidity inside this AMS. Click for details and when to change the desiccant."));
|
||||
else
|
||||
set_illustrated_tooltip(this, _L("Humidity inside this AMS, and its drying state. Click for details and, where the printer "
|
||||
"supports it, to start or stop drying."));
|
||||
Refresh();
|
||||
}
|
||||
}
|
||||
@@ -3230,6 +3239,13 @@ void AmsItem::AddCan(Caninfo caninfo, int canindex, int maxcan, wxBoxSizer* size
|
||||
m_panel_lib->m_slot_id = caninfo.can_id;
|
||||
m_panel_lib->m_info.can_id = caninfo.can_id;
|
||||
m_panel_lib->m_can_index = canindex;
|
||||
if (m_ams_model == AMSModel::EXT_AMS)
|
||||
set_illustrated_tooltip(m_panel_lib, _L("The external spool, fed into the toolhead from outside the AMS. Click to select it for "
|
||||
"Load or Unload. Once it is selected, click the icon at its bottom to set its filament: "
|
||||
"type, color, temperature and flow dynamics."));
|
||||
else
|
||||
set_illustrated_tooltip(m_panel_lib, _L("Click to select this slot for Load or Unload. Once it is selected, click the icon at "
|
||||
"its bottom to view or change its filament: type, color, temperature and flow dynamics."));
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
@@ -3306,6 +3322,8 @@ void AmsItem::AddLiteCan(Caninfo caninfo, int canindex, wxGridSizer* sizer)
|
||||
m_panel_lib->m_slot_id = caninfo.can_id;
|
||||
m_panel_lib->m_info.can_id = caninfo.can_id;
|
||||
m_panel_lib->m_can_index = canindex;
|
||||
set_illustrated_tooltip(m_panel_lib, _L("Click to select this slot for Load or Unload. Once it is selected, click the icon at "
|
||||
"its bottom to view or change its filament: type, color, temperature and flow dynamics."));
|
||||
|
||||
//auto m_panel_road = new AMSRoad(amscan, wxID_ANY, caninfo, canindex, maxcan, wxDefaultPosition, AMS_CAN_ROAD_SIZE);
|
||||
if (caninfo.can_id == "0" || caninfo.can_id == "1") {
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#include "../I18N.hpp"
|
||||
#include "../GUI_App.hpp"
|
||||
#include "../MsgDialog.hpp"
|
||||
#include "../IllustratedTipPopup.hpp"
|
||||
#include <nlohmann/json.hpp>
|
||||
|
||||
#include <wx/anybutton.h>
|
||||
@@ -387,6 +388,7 @@ FanControlNew::FanControlNew(wxWindow *parent, const AirDuctData &fan_data, int
|
||||
m_switch_button->Bind(wxEVT_ENTER_WINDOW, [this](auto& e) { SetCursor(wxCURSOR_HAND); });
|
||||
m_switch_button->Bind(wxEVT_LEAVE_WINDOW, [this](auto& e) { SetCursor(wxCURSOR_RIGHT_ARROW); });
|
||||
m_switch_button->Bind(wxEVT_LEFT_DOWN, &FanControlNew::on_swith_fan, this);
|
||||
set_illustrated_tooltip(m_switch_button, _L("Turns this fan on at full speed, or off."));
|
||||
|
||||
|
||||
sizer_control_top->Add(m_static_bitmap_fan, 0, wxLEFT | wxTOP, FromDIP(8));
|
||||
@@ -402,7 +404,11 @@ FanControlNew::FanControlNew(wxWindow *parent, const AirDuctData &fan_data, int
|
||||
m_static_status_name->SetFont(Label::Head_16);
|
||||
m_static_status_name->SetMinSize(wxSize(FromDIP(100), -1));
|
||||
m_static_status_name->SetMaxSize(wxSize(FromDIP(100), -1));
|
||||
set_illustrated_tooltip(m_static_status_name, _L("The current air duct mode controls this fan: Auto runs it as the printer needs, Off keeps it off."));
|
||||
m_fan_operate = new FanOperate(this, wxID_ANY, wxDefaultPosition, wxDefaultSize);
|
||||
// xgettext:no-c-format, no-boost-format
|
||||
set_illustrated_tooltip(m_fan_operate, _L("Lowers (-) or raises (+) this fan's speed in 10% steps; lowering it from 10% turns the fan off. "
|
||||
"Changing it during a print can affect print quality."));
|
||||
|
||||
m_fan_operate->Bind(EVT_FAN_SWITCH_ON, [this](const wxCommandEvent &e) {
|
||||
m_current_speed = e.GetInt();
|
||||
@@ -429,6 +435,12 @@ FanControlNew::FanControlNew(wxWindow *parent, const AirDuctData &fan_data, int
|
||||
m_sizer_control_bottom->Add(m_fan_operate, 0, wxALL, FromDIP(5));
|
||||
|
||||
sizer_control->Add(m_sizer_control_bottom, 0, wxALL | wxEXPAND, 0);
|
||||
|
||||
// The tile itself says what the fan is for; its switch and speed control above have their own tooltips.
|
||||
if (m_part_id == AIR_FUN::FAN_COOLING_0_AIRDOOR)
|
||||
set_illustrated_tooltip(this, _L("Part cooling fan: cools the plastic right after it leaves the nozzle."));
|
||||
else if (m_part_id == AIR_FUN::FAN_CHAMBER_0_IDX)
|
||||
set_illustrated_tooltip(this, _L("Exhaust fan: moves air out of the chamber, which lowers the chamber temperature."));
|
||||
m_sizer_main->Add(sizer_control, 0, wxALIGN_CENTER, 0);
|
||||
update_mode();
|
||||
|
||||
@@ -717,6 +729,9 @@ void FanControlPopupNew::CreateDuct()
|
||||
|
||||
SendModeSwitchButton *radio_btn = new SendModeSwitchButton(this, text, m_data.curren_mode == mode_id);
|
||||
radio_btn->Bind(wxEVT_LEFT_DOWN, &FanControlPopupNew::on_mode_changed, this);
|
||||
// The description of each mode; some modes have none beyond their name.
|
||||
if (const wxString &desc = label_text[AIR_DUCT(mode_id)]; desc != text)
|
||||
set_illustrated_tooltip(radio_btn, desc);
|
||||
m_mode_switch_btns[mode_id] = radio_btn;
|
||||
m_radio_btn_sizer->Add(radio_btn, wxALL, FromDIP(5));
|
||||
iter++;
|
||||
|
||||
Reference in New Issue
Block a user