diff --git a/crates/craft/Cargo.toml b/crates/craft/Cargo.toml index 80deb3442..d72241234 100644 --- a/crates/craft/Cargo.toml +++ b/crates/craft/Cargo.toml @@ -213,7 +213,6 @@ screen-testing = [ "craft-menu?/screen-testing", "craft-pages?/screen-testing", "craft-print?/screen-testing", - "craft-settings?/testing", "craft-review?/screen-testing", "craft-table?/screen-testing", "craft-text?/screen-testing", @@ -367,7 +366,7 @@ flow = ["dep:craft-flow"] font-catalog = ["dep:craft-font-catalog"] font-catalog-system = ["font-catalog", "craft-font-catalog/system"] -font-manager = ["dep:craft-font-manager"] # native only: needs craft-font-store's store and network client +font-manager = ["dep:craft-font-manager"] font-store = ["dep:craft-font-store"] font-store-bundled-index = ["font-store", "craft-font-store/bundled-index"] @@ -410,7 +409,7 @@ image-codecs-corpus = ["image-codecs", "craft-image-codecs/corpus"] image-codecs-heif = ["image-codecs", "craft-image-codecs/heif"] image-codecs-sgi = ["image-codecs", "craft-image-codecs/sgi"] -imaging = ["dep:craft-imaging", "keymap"] +imaging = ["dep:craft-imaging", "color", "keymap"] indd = ["dep:craft-indd"] @@ -622,7 +621,7 @@ table = ["dep:craft-table", "keymap"] tcraft = ["dep:craft-tcraft"] -text = ["dep:craft-text"] +text = ["dep:craft-text", "keymap"] text-afrikaans = ["text", "craft-text/afrikaans"] text-albanian = ["text", "craft-text/albanian"] text-all-languages = ["text", "craft-text/all-languages"] diff --git a/crates/menu/src/shortcuts/view/table.rs b/crates/menu/src/shortcuts/view/table.rs index 0f29e53bb..3c0c87c1f 100644 --- a/crates/menu/src/shortcuts/view/table.rs +++ b/crates/menu/src/shortcuts/view/table.rs @@ -726,7 +726,6 @@ impl ChordChip { ChordChip { common: Common::new(), chord, pressed: false } } - #[cfg(feature = "screen-testing")] fn sample() -> Self { ChordChip::new("Ctrl+S".to_owned()).label("Save, Ctrl+S") } diff --git a/crates/psd/src/text/envelope.rs b/crates/psd/src/text/envelope.rs index 73345fa83..ddc753a50 100644 --- a/crates/psd/src/text/envelope.rs +++ b/crates/psd/src/text/envelope.rs @@ -1,7 +1,7 @@ //! Editable PSD Type Tool Object Setting (`TySh`) envelope, extracted from PhotoCraft. //! App-specific text styles, layout, units and editing policy stay with the consumer. //! Parsing intentionally retains PhotoCraft's optional-warp and partial-bounds recovery. -//! Existing read-only [`super::TypeLayer`] behavior is unchanged. +//! Existing read-only [`crate::text::TypeLayer`] behavior is unchanged. use crate::descriptor::{Class, Descriptor, Id, ReferenceItem, UnicodeString, Value as D, VersionedDescriptor}; use crate::error::{PsdError, Result}; diff --git a/crates/tiff/src/classic.rs b/crates/tiff/src/classic.rs index c1ab6f64a..cbfe4e023 100644 --- a/crates/tiff/src/classic.rs +++ b/crates/tiff/src/classic.rs @@ -2,8 +2,8 @@ //! their entries and values, and the SubIFD tree. //! //! Every offset and count comes from the file and is checked before use: an entry whose value lies -//! outside the file is an error when it is read, the walk visits at most [`MAX_IFDS`] directories, -//! never the same one twice (cyclic chains end), and goes at most [`MAX_DEPTH`] SubIFD levels deep. +//! outside the file is an error when it is read, the walk visits at most [`crate::classic::MAX_IFDS`] directories, +//! never the same one twice (cyclic chains end), and goes at most [`crate::classic::MAX_DEPTH`] SubIFD levels deep. use std::collections::HashSet; diff --git a/crates/ui-contract/src/contract/level_table.rs b/crates/ui-contract/src/contract/level_table.rs index 32b88db91..d961ff363 100644 --- a/crates/ui-contract/src/contract/level_table.rs +++ b/crates/ui-contract/src/contract/level_table.rs @@ -99,7 +99,6 @@ pub(super) const SURFACES: &[(&str, &str, Surface)] = &[ ("craft_ui", "DocumentWindow", Own), ("craft_ui", "FalloffPreview", Canvas), ("craft_ui", "FloatingGroup", Own), - ("craft_ui", "Flyout", Own), ("craft_ui", "FlyoutButton", Chrome), ("craft_ui", "FormDialog", Own), ("craft_ui", "FormatOptionsDialog", Own), diff --git a/crates/xfl/src/document.rs b/crates/xfl/src/document.rs index ec749189a..902558be3 100644 --- a/crates/xfl/src/document.rs +++ b/crates/xfl/src/document.rs @@ -2,7 +2,7 @@ //! //! This layer recognizes the document, stage, scene, layer and keyframe fields defined by XFL. //! It does not construct a consumer's animation model. More detailed payloads remain available -//! through [`Document::root`] for the application adapter. +//! through [`crate::document::Document::root`] for the application adapter. use crate::shape::XflElement; use craft_xml::{Doctype, El, Error as XmlError, Limits, Local, Options, Pat, UnknownEntity}; use std::borrow::Cow; diff --git a/docs/components-index.md b/docs/components-index.md index ef0e0e498..e0de87c73 100644 --- a/docs/components-index.md +++ b/docs/components-index.md @@ -24,21 +24,23 @@ Grouped by gallery level, then shape, then name. | `Marquee` | Leaf | `craft_ui_canvas::canvas_controls::marquee` | An outline over the document, shown at the canvas's rect with `show_at` and mapped through the canvas's view | | `Navigator` | Leaf | `craft_ui_canvas::canvas::navigator::preview` | The preview box of the Navigator panel with the proxy rectangle of the view | | `Pasteboard` | Leaf | `craft_ui_canvas::canvas::pasteboard` | The pasteboard and page frames under a document | -| `Picture` | Leaf | `craft_ui_widgets::display::picture` | A picture of an image the caller makes | +| `Picture` | Leaf | `craft_ui_widgets::display::picture` | A picture of an image the caller makes (`new`) or of what a content painter paints (`painter`); both sit in a rect of the same token sizes | | `PixelGrid` | Leaf | `craft_ui_canvas::canvas_controls::pixel_grid` | The pixel grid over a raster document | | `RasterDisplay` | Leaf | `craft_ui_canvas::canvas::raster` | The document display of one canvas: the document drawn through the view of the [`Canvas`](super::Canvas) it is shown in, at the canvas rect | | `RotateView` | Leaf | `craft_ui_canvas::canvas::rotate` | The compass of a turned view: a dial whose needle points where the document's up lies on screen | | `Rulers` | Leaf | `craft_ui_canvas::canvas::rulers` | The rulers of a canvas: ticks and labels counted from a zero point, level whatever the view's rotation, a pointer marker, the guide drag-out and the zero point's corner | | `SelectionOutline` | Leaf | `craft_ui_canvas::canvas_controls::outline` | Highlights over the selected shapes, in the host's colour (a layer's colour), else the overlay line colour | | `SmartGuides` | Leaf | `craft_ui_canvas::canvas_controls::smart_guides` | The alignment lines and distances an app shows while something moves (Smart Guides and Alt distances) | +| `SourceMarker` | Leaf | `craft_ui_canvas::canvas_controls::brush::source_marker` | The clone source's crosshair at document point `at`: two arms through the view, a thin line over a thick halo | | `StraightLinePreview` | Leaf | `craft_ui_canvas::canvas_controls::line_preview` | The Shift-click line from `from` (the end of the last stroke) to `to` (the pointer), both in document units | +| `StrokeTrail` | Leaf | `craft_ui_canvas::canvas_controls::brush::trail` | The footprint of the stroke being painted, drawn from a [`CoverageMask`] as one textured quad over the mask's document rect | | `Text` | Leaf | `craft_ui_widgets::display::text` | Text in a type role (body by default) and a shade (normal by default), or in the colour of a tone | | `TipCell` | Leaf | `craft_ui_canvas::canvas_controls::brush::cursor` | An aliased tip's whole-pixel cell on the pixel grid, outlined as a square or a disc: what a pencil shows under the hidden pointer | | `TipText` | Leaf | `craft_ui_contract::contract::tooltip` | The text of a tooltip, on a popup surface | | `Canvas` | Body | `craft_ui_canvas::canvas` | A canvas: a pasteboard the caller's canvas controls and the active tool share | | `Grid` | Body | `craft_ui_widgets::layout_components` | Children row-major over a column list: a child in flow takes the next cell | | `Row` | Body | `craft_ui_widgets::layout_components` | Children side by side | -| `SplitViews` | Body | `craft_ui_canvas::canvas::split` | One canvas area divided into 1, 2 or 4 panes | +| `SplitViews` | Body | `craft_ui_canvas::canvas::split` | One canvas area shown as views of one document, or a grid of panes the caller fills (one document each), in the panes of a [`SplitLayout`] | | `Stack` | Body | `craft_ui_widgets::layout_components` | Children one under another | | `TargetMark` | Body | `craft_ui_widgets::display::target_mark` | A ring around `target` that pulses in the accent colour, still where motion is off | @@ -84,6 +86,7 @@ Grouped by gallery level, then shape, then name. | `TreePicker` | Leaf | `craft_ui_widgets::pickers::tree_picker` | A field that opens a tree of items and folders and sets the binding to the picked item's key | | `UnitSelect` | Leaf | `craft_ui_widgets::pickers::unit_select` | A number field with a select of units after it | | `RadioGroup` | Body | `craft_ui_widgets::choice::radio` | A group of radio buttons over one value: one Tab stop, arrows move focus, Space, Enter or a click selects | +| `SwatchTable` | Items | `craft_ui_widgets::choice::swatch_table` | A table of touching colour cells, one per entry, wrapping to the width or to a fixed count per row | ### Composites @@ -153,7 +156,7 @@ Grouped by gallery level, then shape, then name. | `ToolRail` | Body | `craft_ui_panels::rails::tool` | The rail of tool slots, as a side panel at one edge of the window: one `FlyoutButton` per visible slot showing the slot's shown tool, the slot with the current tool toggled on | | `AboutDialog` | Pattern | `craft_ui_patterns::patterns::form_dialogs::about` | Help > About: tabs About, Contributors and Models over the app's [`AboutInfo`] and [`Credits`], with an OK button | | `Alert` | Pattern | `craft_ui_panels::dialog::alert` | A modal notice with one OK button: a prompt whose only answer is OK, which OK, Enter, Escape and the close action all give | -| `AlignBar` | Pattern | `craft_ui_widgets::bars::align` | The align buttons, the optional distribute buttons and the menu button, shown as children of a `Bar` | +| `AlignBar` | Pattern | `craft_ui_widgets::bars::align` | The two sections of four align and distribute buttons, then the menu button, shown as children of a `Bar` | | `BarHome` | Pattern | `craft_ui_widgets::bars::lead` | The Home button at the start of an options bar: a toggle with the home icon, then a rule | | `BarTool` | Pattern | `craft_ui_widgets::bars::lead` | The active tool's icon at the start of an options bar, after Home: the icon, the dropdown arrow that tells it has a menu, then a rule | | `CanvasSize` | Pattern | `craft_ui_patterns::patterns::form_dialogs::sizing::canvas` | Canvas Size: the current size, the new width and height with a unit each (no chain: the sides are independent), the Relative box, the 3 by 3 anchor and the colour that fills a larger canvas | @@ -164,7 +167,7 @@ Grouped by gallery level, then shape, then name. | `DocumentTabs` | Pattern | `craft_ui_widgets::tabs::document` | The tab strip of one document group | | `EditMenu` | Pattern | `craft_ui_widgets::menu::edit` | The edit rows of a text control: Undo and Redo, Cut, Copy, Paste and Delete, then Select All | | `ExportAsDialog` | Pattern | `craft_ui_patterns::patterns::form_dialogs::export::as_dialog` | File, Export, Export As: format, size, quality, metadata, colour profile, a preview and a size estimate the app computes | -| `Flyout` | Pattern | `craft_ui_panels::docking::flyout` | A popup beside an iconic column, on the side of the canvas, level with the icon that opened it | +| `FileListPicker` | Pattern | `craft_ui_patterns::patterns::form_dialogs::file_list` | Photoshop's Load Files into Stack file list, after PhotoCraft's port of it | | `FormatOptionsDialog` | Pattern | `craft_ui_patterns::patterns::form_dialogs::export::options` | The options dialog of one export format: JPEG (the quality as a field, a slider and a preset list, then the encoding), layered TIFF (keep or discard the layers, and not to ask again), Targa (24 or 32 bits per pixel) or DDS (compression and mipmaps) | | `FormDialog` | Pattern | `craft_ui_patterns::patterns::form_dialogs::form` | A dialog over one value `V` | | `FullWindowCanvas` | Pattern | `craft_ui_canvas::canvas::full_window_parts::canvas` | The canvas region of a full-window dialog: the app's image, its overlays and one tool, filling what the other regions left | @@ -172,11 +175,13 @@ Grouped by gallery level, then shape, then name. | `FullWindowTitle` | Pattern | `craft_ui_canvas::canvas::full_window_parts::title` | The title strip's text: the workspace's name, then in brackets what it works on and the zoom on screen, "Liquify (Layer 1, 66.67%)" | | `FullWindowZoomBar` | Pattern | `craft_ui_canvas::canvas::full_window_parts::zoom_bar` | The strip under a full-window canvas: Zoom Out, Zoom In, a zoom select, then a progress bar while the preview renders, or a note | | `GuideLayoutDialog` | Pattern | `craft_ui_patterns::patterns::form_dialogs::guides` | New Guide Layout, Photoshop's dialog: Preset and Target lists, Color, the Columns and Rows groups (each a check box with Number, Width or Height, and Gutter), the Margin group (a check box and Top, Left, Bottom, Right), Center Columns and Clear Existing Guides; beside them a column of OK and Cancel with Preview under it | +| `HistoryPanel` | Pattern | `craft_ui_patterns::patterns::panels::history` | The history panel: `rows` with the `current` one marked, thumbnails of the snapshots and a footer of buttons | | `IconPicker` | Pattern | `craft_ui_widgets::pickers::icon_picker` | A searchable grid of icons in named groups | | `ImageSize` | Pattern | `craft_ui_patterns::patterns::form_dialogs::sizing::image` | Image Size: the width, height and resolution with a unit each, the chain that keeps the proportions, Resample with its method list and Scale Styles, over a readout of the file size and the dimensions | | `Inspector` | Pattern | `craft_ui_patterns::patterns::panels::inspector` | A properties panel: a `Panel` whose header names the target (icon and name, and the kind at the end), and whose body the caller fills with the target's controls, labelled as inspector rows (`LabelScheme::Inspector`) | | `ListManager` | Pattern | `craft_ui_patterns::patterns::form_dialogs::list_manager` | A named list with a name box and a column of action buttons (after Excel's Macros dialog) | | `MetadataTable` | Pattern | `craft_ui_widgets::table::metadata` | A key and value table in groups: a search field over the rows keeps the fields whose name or value matches the typed text, and a check column marks the keys the app shows as columns | +| `ModifierKeysPanel` | Pattern | `craft_ui_patterns::patterns::panels::modifier_keys` | A panel of latching modifier-key toggles: a press on one holds that modifier for the next click or key | | `NamedPresetRow` | Pattern | `craft_ui_patterns::patterns::presets::named` | A preset picker with the commands that make, rename and delete presets | | `NavigateBar` | Pattern | `craft_ui_canvas::canvas::navigate::bar` | The options of a navigation tool (Zoom, Rotate View, Hand), shown as children of the app's options bar, as in Photoshop | | `NavigatorOptionsDialog` | Pattern | `craft_ui_patterns::patterns::form_dialogs::navigator_options` | Panel Options of the Navigator: the colour of the proxy rectangle | @@ -189,7 +194,7 @@ Grouped by gallery level, then shape, then name. | `OutputPathRow` | Pattern | `craft_ui_patterns::patterns::form_dialogs::export::path_row` | "Output To", a list of name templates (`[Comp Name].[fileExtension]`) and the resulting file name as a link, for render queues and export dialogs (After Effects' Render Queue) | | `PaneArea` | Pattern | `craft_ui_patterns::patterns::dock::panes` | The app's side panes, bottom panes and floating panes around its document | | `PanelMenu` | Pattern | `craft_ui_widgets::menu::panel` | The rows of one panel's menu: the host's rows, a separator, then the dock's rows | -| `ParamDialog` | Pattern | `craft_ui_patterns::patterns::form_dialogs::dialog` | A dialog from a parameter list: one row per [`Param`], the Preview check box with a preview pane when the host gives a picture, and OK, Cancel and a footer extra | +| `ParamDialog` | Pattern | `craft_ui_patterns::patterns::form_dialogs::dialog` | A dialog from a parameter list: one row per [`Param`], the Preview check box when it [`previews`](ParamDialog::previews), with a preview pane when the host gives a picture, and OK, Cancel, extra buttons and a footer note | | `ParamRows` | Pattern | `craft_ui_patterns::patterns::form_dialogs::rows` | The rows of a parameter list: a group of one labelled field per visible [`Param`], the control chosen by its [`ParamKind`], in a panel the host lays out or inside a dialog | | `PasswordDialog` | Pattern | `craft_ui_patterns::patterns::form_dialogs::password` | A question with a lock icon, the message, the masked field and the buttons | | `PathRow` | Pattern | `craft_ui_patterns::patterns::form_dialogs::path_row` | A text field with the path, taking the row's room, and a Browse button after it, for a row whose enclosing `Field` shows the label | @@ -197,6 +202,7 @@ Grouped by gallery level, then shape, then name. | `PreferencesWindow` | Pattern | `craft_ui_patterns::patterns::preferences::window` | The preferences window: a search field over a page list and the shown page, with OK, Cancel and Apply under them | | `PresetBrowser` | Pattern | `craft_ui_patterns::patterns::presets::browser` | A library of named presets shown as thumbnails | | `PresetFooter` | Pattern | `craft_ui_patterns::patterns::presets::footer` | The footer of a preset panel: the host's own controls, the thumbnail size slider and the count, then the action buttons Delete, New and New Group and the host's own actions | +| `PresetManager` | Pattern | `craft_ui_patterns::patterns::presets::manager` | The preset manager: a select of preset `kinds` over the list of the picked kind's `rows`, with Rename and Delete on each row and buttons for the host's own `actions` (Load, Save, Reset) | | `PresetPicker` | Pattern | `craft_ui_patterns::patterns::presets::picker` | A field that shows the current preset and opens its presets | | `PreviewZoom` | Pattern | `craft_ui_patterns::patterns::form_dialogs::preview` | The zoom row of a preview: a zoom-out button, the zoom as a percentage field and a zoom-in button | | `Prompt` | Pattern | `craft_ui_panels::dialog::prompt` | A question with answers: a dialog on the modal preset, centred and not movable, with a message, optional extras and one footer button per answer | @@ -209,6 +215,7 @@ Grouped by gallery level, then shape, then name. | `StatusMessage` | Pattern | `craft_ui_widgets::bars::status` | A message for the status bar and its tone | | `StatusProgress` | Pattern | `craft_ui_widgets::bars::status` | A background task's progress, for a status bar's trailing group: the task's name, a progress bar that moves a segment while the extent is unknown, the percentage and an optional cancel button | | `StatusReadout` | Pattern | `craft_ui_widgets::bars::status_readout` | The zoom field, the chosen item's text and the menu that chooses it, shown as children of a status `Bar` | +| `TaskBar` | Pattern | `craft_ui_canvas::canvas_controls::task_bar` | The contextual task bar: a movable modeless layer hung below the screen bounds of `anchor` while its place is unset, with a body of members and a More menu (Hide, Reset, Pin) | | `ToastStack` | Pattern | `craft_ui_widgets::notices::toasts` | The cards of a window's toast queue | | `ToolbarDrawer` | Pattern | `craft_ui_panels::rails::drawer` | The All Tools drawer: a popover beside the rail with one list over all groups, a heading row for each group | | `Tour` | Pattern | `craft_ui_patterns::patterns::panels::tour` | A guided tour of the interface: a card with the step count and a close button, the step's heading and text, Skip, Back and Next (Done on the last step), beside the part the step points at, which a pulsing ring marks | @@ -216,6 +223,7 @@ Grouped by gallery level, then shape, then name. | `Watermark` | Pattern | `craft_ui_patterns::patterns::form_dialogs::watermark` | The watermark rows of an export dialog: Style (Text, Graphic), the text field or the image path with Choose…, Orientation, Position as the 3 by 3 reference point, Rotation, Size, Opacity, Inset X and Y, and Shadow | | `WindowMenuRows` | Pattern | `craft_ui_panels::docking::window_menu` | One check row per panel in the order the app gives, for a Window menu | | `WorkspaceSwitcher` | Pattern | `craft_ui_patterns::patterns::dock::switcher` | The switcher at the end of an options bar: a small select showing the current workspace's name | +| `ZoomField` | Pattern | `craft_ui_widgets::text::zoom_field` | A zoom field: a `NumberField` over the view's device zoom in percent, with the zoom codec and the zoom ladder's range | | `RecoveryDialog` | Dialog | `craft_ui_panels::dialog::recovery` | Recover Unsaved Work, one document at a time: a prompt saying when the document was autosaved, with Discard and Recover (the accepting answer) | ### Shells @@ -226,7 +234,9 @@ Grouped by gallery level, then shape, then name. | `DocumentWindow` | Body | `craft_ui_shell::shell::document_window` | A document's window: the container of one entry of the app's window list, in its own OS window | | `ShellRegion` | Body | `craft_ui_shell::shell::app_shell` | A region of the window skeleton: the root window's content, the scope that carries the shell to its slots, or one pane (a bar, a rail or the body) | | `AppShell` | Pattern | `craft_ui_shell::shell::app_shell` | The window skeleton | -| `CanvasPanel` | Pattern | `craft_ui_shell::shell::canvas_shell` | The canvas panel of a dock: the panel rail at the end edge, spanning the tabs and the document; then, in what is left, the document tab strip flush against the document; then the document area, which the shell's backdrop shows through | +| `CanvasPanel` | Pattern | `craft_ui_shell::shell::canvas_shell` | The canvas panel of a dock: the panel rail at the end edge, spanning the tabs and the document; then, in what is left, the document tab strip flush against the document; then the document area, over the canvas surround | +| `OpeningCard` | Pattern | `craft_ui_shell::shell::opening` | A centred card: "Opening {name}…" elided on one line with the full text on hover, the muted message, a progress bar (indeterminate without a fraction), the percentage at the start and Cancel at the end of the last row | +| `ScreenModeButton` | Pattern | `craft_ui_shell::shell::screen_mode_button` | A flyout button over the three screen modes, with `mode` marked: a click, Enter or Space cycles; a hold, a drag away or a right click lists the three modes without cycling | | `StartScreen` | Pattern | `craft_ui_shell::shell::start` | The start screen, shown in a shell's body when no document is open | | `ViewportWindow` | Pattern | `craft_ui_shell::shell::viewport_window` | A window of the app with a body the app fills | diff --git a/migration/api-map/automation-update-quit-dialogs.toml b/migration/api-map/automation-update-quit-dialogs.toml index 50d5fe08e..5aed71960 100644 --- a/migration/api-map/automation-update-quit-dialogs.toml +++ b/migration/api-map/automation-update-quit-dialogs.toml @@ -11,21 +11,21 @@ new_module = "craft_dialogs::ui" name = "FileListPicker" old = "craft_dialogs::ui::FileListPicker" new = "craft_ui::patterns::form_dialogs::FileListPicker" -status = "same" +status = "moved" note = "A pattern over one `List`: `FileListPicker::new(label, Bind)` with `request`, `folder_mode`, `open_files`, `folder_files` and `info` as props. `show(ui) -> FileListPickerOutput`. The ticket of Browse is kept in the picker's container; Delete and Backspace remove the selected file and Alt+Up and Alt+Down move it (the list's contract keys). Folder mode is the same list over the folder's files with no selection. The buttons sit under the list, not beside it." [[type]] name = "FileList" old = "craft_dialogs::ui::FileList" new = "craft_ui::patterns::form_dialogs::FileList" -status = "same" +status = "moved" note = "`#[non_exhaustive]`: build it with `FileList::default()` and set the fields. `problem` takes `&FileListWords`." [[type]] name = "FileListMode" old = "craft_dialogs::ui::FileListMode" new = "craft_ui::patterns::form_dialogs::FileListMode" -status = "same" +status = "moved" note = "`#[non_exhaustive]`." [[type]] diff --git a/migration/api-map/canvas-core.toml b/migration/api-map/canvas-core.toml index 35ec13304..5529bc472 100644 --- a/migration/api-map/canvas-core.toml +++ b/migration/api-map/canvas-core.toml @@ -622,13 +622,6 @@ new = "craft_behavior::placement::capped" status = "replaced" note = "`capped(size, &monitor, frame, min) -> Vec2`: `size` at least `min` and at most the monitor's work area less the window's `frame`, in points; the cap wins over the minimum. `DocumentWindow::wrap_in` sizes the window with it." -[[type]] -name = "DocumentWindow" -old = "" -new = "craft_ui::shell::DocumentWindow" -status = "replaced" -note = "Zoom-to-window sizing: in the pass a zoom edit changed the view, the window's body calls `DocumentWindow::wrap_in(cx, canvas_rect, wanted)` with `wanted = zoom::wrapped_canvas(..)`. The window takes that size between its own minimum (`overlay(|o| o.size_limits(..))`) and the monitor's work area, about its centre, and reports `DocumentWindowOutput::wrapped`: `Some(Wrapped::Fits)` (centre the document) or `Some(Wrapped::Capped)` (keep the zoomed spot); `None` without OS windows, when maximised or full screen, or before the window reports its facts. The rest of the type is in `craft-window-ui.toml`." - [[type]] name = "ToolPill" old = "craft_ui::canvas::tool_pill::ToolPill" @@ -724,12 +717,6 @@ old = "first(usize)" new = "" note = "The body shows the panes in the order of `SplitAt::placed`; pane 0 is the top start corner." -[[setter]] -type = "SplitViews" -old = "" -new = "count(usize)" -note = "The documents a tile arrangement shows, one pane each." - [[setter]] type = "SplitViews" old = "show(ui, rect, |ui, pane, rect| ..)" diff --git a/migration/api-map/craft-window-ui.toml b/migration/api-map/craft-window-ui.toml index 1864ead28..16c384b70 100644 --- a/migration/api-map/craft-window-ui.toml +++ b/migration/api-map/craft-window-ui.toml @@ -19,7 +19,7 @@ name = "DocumentWindow" old = "" new = "craft_ui::shell::DocumentWindow" status = "replaced" -note = "craft_window::Viewports::show plus a container per document: one DocumentWindow for each entry of the WindowList, on Mount::Viewport with WindowSpec::document(). `in_list(&mut WindowList, WindowId)` makes the window the list's active one when it gains OS focus (the old `WindowEvent::Focused`); `overlay(FnOnce(Overlay) -> Overlay)` changes the fallback layer; `remember(SaveKey::named(..))` keeps a placement for each document." +note = "craft_window::Viewports::show plus a container per document: one DocumentWindow for each entry of the WindowList, on Mount::Viewport with WindowSpec::document(). `in_list(&mut WindowList, WindowId)` makes the window the list's active one when it gains OS focus (the old `WindowEvent::Focused`); `overlay(FnOnce(Overlay) -> Overlay)` changes the fallback layer; `remember(SaveKey::named(..))` keeps a placement for each document. Zoom-to-window sizing: in the pass a zoom edit changed the view, the window's body calls `DocumentWindow::wrap_in(cx, canvas_rect, wanted)` with `wanted = zoom::wrapped_canvas(..)`. The window takes that size between its own minimum (`overlay(|o| o.size_limits(..))`) and the monitor's work area, about its centre, and reports `DocumentWindowOutput::wrapped`: `Some(Wrapped::Fits)` (centre the document) or `Some(Wrapped::Capped)` (keep the zoomed spot); `None` without OS windows, when maximised or full screen, or before the window reports its facts." [[type]] name = "Viewports" diff --git a/migration/api-map/draw-bars-and-dialogs.toml b/migration/api-map/draw-bars-and-dialogs.toml index 89f19f7e3..375cbb72a 100644 --- a/migration/api-map/draw-bars-and-dialogs.toml +++ b/migration/api-map/draw-bars-and-dialogs.toml @@ -1436,8 +1436,15 @@ note = "Constructed with `TransformRow::new(state, skew_v)`; the type is `#[non_ [[type]] name = "BarGroups" old = "craft_draw::ui::BarGroups" +new = "" +status = "removed" +note = "Replaced by `TransformGroups`." + +[[type]] +name = "TransformGroups" +old = "" new = "craft_draw::ui::TransformGroups" -status = "moved" +status = "replaced" note = "`#[non_exhaustive]`: start from `TransformGroups::ALL` and clear fields. The panel form leaves out the rows of hidden groups." [[type]] diff --git a/migration/api-map/form-dialogs.toml b/migration/api-map/form-dialogs.toml index 157fb2bb7..c9038dfd7 100644 --- a/migration/api-map/form-dialogs.toml +++ b/migration/api-map/form-dialogs.toml @@ -404,7 +404,6 @@ note = "The close action is named by the dialog title row; `closable(false)` rem type = "ParamDialog" old = "footer_extra(FnMut(&mut Ui) + Send + 'static)" new = "" -status = "removed" note = "A footer line is `footer_note(impl Into