Files
OrcaSlicer/scripts/operation_calls_baseline.txt
T
SoftFever 1d63e52dec Say action and Speed Dial, not tile and palette, in the MCP commands and docs
The MCP commands, their catalog and the docs called a command's Speed Dial entry a "tile" and the Speed
Dial itself "the palette", words the app already uses for an entry's icon and for sets of colours. They now
say "action" and "Speed Dial", as action_search and action_run do, and the catalog's tiles, tile_group and
in_palette fields are now actions, action_group and has_own_action. Speed Dial ids, and the pins people
stored under them, are unchanged.
2026-11-19 01:39:50 +08:00

63 lines
3.4 KiB
Plaintext

# Owner calls that scripts/check_operation_calls.py bans in the callers of the operations layer and
# that stay where they are, by file and exact source line (trimmed), each under the reason it stays.
# A [file] line starts a file's lines; a # line is a reason for the lines after it.
#
# The check fails on a banned call that is not here and on a line here that the source no longer has.
# Generate candidates with: python3 scripts/check_operation_calls.py --print
[src/slic3r/GUI/NativeCommands.cpp]
# The asking path of a command, its menu item's action (MenuItems): the item's function calls the owner's method, which
# asks the person what an operation would be told (project_open {}, project_save {save_as: true}, project_import
# {archive: true}, project_export with an action's arguments, filament_sync_ams {}).
plater->load_project();
return NativeCommands::project_save_result(plater->save_project(true));
plater->import_zip_archive();
plater->export_stl();
plater->export_core_3mf();
plater->export_gcode_3mf(all_plates);
plater->export_toolpaths_to_obj();
const std::optional<Ops::Refusal> refusal = plater->sidebar().sync_ams_list();
# Another function that uses the same owner method: every object as its own STL, and the Draco exports, each asking
# for its file or folder.
plater->export_stl(false, false, true);
plater->export_stl(false, false, false, FT_DRC);
plater->export_stl(false, false, true, FT_DRC);
[src/slic3r/GUI/Mcp/McpToolsConfig.cpp]
# The undo step of a tool whose function has one automation entry point (settings_set's object and part
# targets, plate_set_settings and project_set_settings).
plater.take_snapshot("Move object");
plater.take_snapshot("Plate Settings");
plater.take_snapshot("Change object settings");
# A tool selecting the plate it was given before its own work, as the plate's settings icon does.
plater.select_plate(index);
# Another function that uses the same owner method: settings_set makes the filament tab edit a slot's
# preset, and preset_delete selects the preset, deletes it and selects back.
if (!tab->select_preset(name))
if (!tab->select_preset(name))
tab->select_preset(selected);
[src/slic3r/GUI/Mcp/McpToolsLayers.cpp]
# The undo step of a tool whose function has one automation entry point (object_set_height_ranges).
plater.take_snapshot("Edit height ranges");
[src/slic3r/GUI/Mcp/McpToolsProject.cpp]
# The asking path of a command, its person's form: project_new and project_save called with no arguments
# call the owner's method, which asks the person what an operation would be told.
plater->new_project();
return NativeCommands::project_save_result(plater->save_project(false));
[src/slic3r/GUI/Mcp/McpToolsScene.cpp]
# The asking path of a command, its person's form: object_rename {} and object_set_instances {} call the owner's
# method on the target they resolved from the selection, which asks the person what an operation would be told.
list->rename_item();
plater.set_number_of_copies();
# The undo step of a tool whose function has one automation entry point (object_transform).
plater.take_snapshot("Transform object");
plater.take_snapshot("Transform part", UndoRedo::SnapshotType::GizmoAction);
[src/slic3r/plugin/host/PluginHostPresets.cpp]
# The plugin API's own step between resolving a filament and assigning it: its transaction edits the
# preset, so the filament tab is made to edit it first, and a declined prompt ends the call there.
if (!tab->select_preset(target))