mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-08 03:41:28 +00:00
Window > Arrange > Float in Window (window.arrange.floatInWindow) moves the current document out of the tab strip into a floating window of its own, and Float All in Windows (window.arrange.floatAllInWindows), a new item, does so for every tabbed document. Cascade (window.arrange.cascade) floats every document and stacks the windows from the upper left of the document area to its lower right, 30 pt apart, in tab order. On the desktop each window is an OS window; on the web and on Wayland it is a window inside the app's window, as floating panels are. While the control channel is attached, the windows also open inside the app's window, so ui.click, ui.drag and ui.screenshot reach them. The current document's window holds the canvas. The other windows, and the main window while the current document floats, draw their documents as Tile's panes do, and a press in one makes its document the current one. A document's OS window that takes the keyboard focus makes its document the current one, and keys typed there run the main window's shortcuts. Closing a window closes its document, asking to save unsaved changes. Consolidate All Windows brings floating documents back under the tabs, and Tile brings them back into its grid. Cascade is enabled with two or more documents, Float in Window while the current document is tabbed, Float All in Windows while any document is tabbed, and Consolidate All Windows while documents are tiled or floating. ui.inspect reports the floating documents.