DesignCraft: An open-source page and layout design editor written by scratch in pure Rust
Docking: drop unused panel-window translations; docs say floating panels have their own windows on the desktop
aiongg1d9ba473b674
diff --git a/crates/ui-egui/src/i18n.rs b/crates/ui-egui/src/i18n.rsindex 1627c41e5..d4921c56f 100644--- a/crates/ui-egui/src/i18n.rs+++ b/crates/ui-egui/src/i18n.rs@@ -263,21 +263,6 @@ const TABLE: &[(&str, [&str; 5])] = &["Close panel window",["Bedienfeldfenster schließen", "Fermer la fenêtre de panneau", "Cerrar ventana de panel", "パネルウィンドウを閉じる", "关闭面板窗口"],),- ("Undock Panel", ["Bedienfeld abdocken", "Désancrer le panneau", "Desacoplar panel", "パネルのドッキングを解除", "取消停靠面板"]),- (- "Undock Panel Group",- [- "Bedienfeldgruppe abdocken",- "Désancrer le groupe de panneaux",- "Desacoplar grupo de paneles",- "パネルグループのドッキングを解除",- "取消停靠面板组",- ],- ),- (- "Close Panel Group",- ["Bedienfeldgruppe schließen", "Fermer le groupe de panneaux", "Cerrar grupo de paneles", "パネルグループを閉じる", "关闭面板组"],- ),("Close Other Panels in Group",[diff --git a/crates/ui-egui/src/menus.rs b/crates/ui-egui/src/menus.rsindex b1270f834..a5627ff59 100644--- a/crates/ui-egui/src/menus.rs+++ b/crates/ui-egui/src/menus.rs@@ -276,7 +276,7 @@ pub const UI_COMMANDS: &[(&str, &str, Option<&str>, &str)] = &["window.panel.float","Float Panel",None,- "{panel, x?, y?, width?, height?, group?, column?} — detach a panel (or its group, or its dock column) inside the application window",+ "{panel, x?, y?, width?, height?, group?, column?} — detach a panel (or its group, or its dock column) into a floating window",),("window.panel.dock",@@ -290,7 +290,12 @@ pub const UI_COMMANDS: &[(&str, &str, Option<&str>, &str)] = &[("window.panel.closeOthers", "Close Other Panels in Group", None, "{panel} — hide the panels tabbed with it"),("window.panel.minimize", "Minimize", None, "{panel, minimized?} — minimize the panel's group to its tab strip (toggles without minimized)"),("window.panel.iconic", "Collapse to Icons", None, "{panel, iconic?} — collapse the panel's dock column to icons (toggles without iconic)"),- ("window.panel.window", "Move Panel to New Window", None, "{panel, native?} — not available: DesignCraft keeps panels in its window"),+ (+ "window.panel.window",+ "Move Panel to New Window",+ None,+ "{panel, native?} — not available: a floating panel has its own window on the desktop and stays in the page on the web",+ ),("window.workspace.new", "New Workspace", None, "{name} — save the current workspace (window.newWorkspace)"),("window.workspace.delete", "Delete Workspace", None, "{name} — delete a saved workspace (window.deleteWorkspace)"),("window.workspace.reset", "Reset Workspace", None, "{} — back to the current workspace as saved (window.resetWorkspace)"),diff --git a/crates/ui-egui/src/panel_docking.rs b/crates/ui-egui/src/panel_docking.rsindex c35ee322b..f77819ad3 100644--- a/crates/ui-egui/src/panel_docking.rs+++ b/crates/ui-egui/src/panel_docking.rs@@ -592,7 +592,12 @@ fn shared_command(app: &mut DesignApp, id: &str, params: &Value) -> Result<ValueDockCommand::DeleteWorkspace { name } => return app.run("window.deleteWorkspace", json!({"name": name})),DockCommand::ResetWorkspace {} => return app.run("window.resetWorkspace", json!({})),DockCommand::Lock { .. } => return Err("Lock Workspace is not available in DesignCraft".into()),- DockCommand::Window { .. } => return Err("DesignCraft does not move panels to their own windows".into()),+ DockCommand::Window { .. } => {+ return Err(+ "Move Panel to New Window is not available: a floating panel has its own window on the desktop and stays in the page on the web"+ .into(),+ );+ }_ => {}}// A zone is a side of `anchor`. DesignCraft's docks are columns beside the canvas, so a dock atdiff --git a/docs/control-protocol.md b/docs/control-protocol.mdindex dbc7c8d16..2986adc1c 100644--- a/docs/control-protocol.md+++ b/docs/control-protocol.md@@ -75,9 +75,10 @@ to finish before retrying a request that would exceed the pending-event limit.## Shared panel dockingPanel arrangements support tab grouping and reordering, horizontal and vertical splits,-and movable, resizable floating windows inside the application window. A floating window-holds tab groups split side by side or one above another, like the dock area. Drag a panel-tab, or use its context menu. Floating windows remain within the application viewport.+and movable, resizable floating windows. A floating window holds tab groups split side by side+or one above another, like the dock area. Drag a panel tab, or use its context menu. On the+desktop each floating window is a window of its own; on the web floating windows stay within+the application viewport.The window is one panel layout: the protected `canvas` panel (the document area) beside adock at the logical end edge, the right in left-to-right languages and the left in@@ -139,8 +140,8 @@ read as `anchor`.and SoundCraft use: `open`, `close`, `activate`, `float {rect}`, `moveFloating {rect}`,`move {target, zone?, before?}`, `setStackOpen {open}`, `resizeStack {height}` and`resizeSplit {path, size}`, with `rect` as `[x, y, width, height]`.-- `window.panel.window` (native panel windows) and `window.workspace.lock` are not available- in DesignCraft and return an error.+- `window.panel.window` (a panel into or out of its own window) and `window.workspace.lock` are+ not available in DesignCraft and return an error.- `window.collapseToIcons` collapses every dock column to icons.Panel IDs are stable across themes. Invalid IDs, non-finite or invalid geometry, and