Files
OrcaSlicer/src/slic3r/GUI/AuiMgr.hpp
SoftFever d64e10f4dd Regroup the slicer's MCP commands and let each run from its arguments
Outside the Design tab an agent had 175 commands, 50 of them in the tool
list. There are now 118, named by what they act on (`object_`, `plate_`,
`preset_`, `filament_`, `plugin_` and so on), and 115 are listed. Each takes
its target and values in the call, acts on the selection when it names no
target and says what it acted on; an old name is refused. Printers and
system filaments install and uninstall, preferences read and write, plugins
enable, reload, uninstall and refresh, and objects reorder, with no dialog
to drive.

The Speed Dial keeps its 129 tiles under the same ids. Eight defects in the
rows these commands share with the menus are fixed. For a person: an object
row that cannot run says why instead of "Select an object first.", rows
that failed no longer claim success, Duplicate Plate can be undone, and
Refresh Plugins picked while a refresh runs now runs after it instead of
beside it.
2026-11-18 16:50:32 +08:00

30 lines
1.2 KiB
C++

#pragma once
#include <wx/aui/framemanager.h>
namespace Slic3r { namespace GUI {
// The wxAuiManager behind Orca's docked sidebars: Orca's caption and sash art in both themes,
// floating frames that follow the app theme, and no floating on Wayland.
class AuiMgr : public wxAuiManager
{
public:
// Manages `window`, whose own wxEVT_SIZE handlers must Skip().
void init(wxWindow* window);
// Captions, sashes and borders in the current theme.
void apply_color_mode();
// Keeps the docked size of `window`'s pane in its best_size, which re-docking and a saved layout
// use: wxAUI does not record a dragged sash there.
void track_docked_size(wxWindow* window);
// Docks the left or right pane of `window` at `width` pixels, as a drag of its sash leaves it: its best_size, which
// its dock takes at once and again when it is docked anew.
void set_docked_width(wxWindow* window, int width);
// A tab's sidebar pane: docked left by default, movable to the right or floating, no close button.
static wxAuiPaneInfo sidebar_pane_info();
wxAuiFloatingFrame* CreateFloatingFrame(wxWindow* parent, const wxAuiPaneInfo& pane) override;
};
}} // namespace Slic3r::GUI