From be4c424bb7e17cde7b9dc26631c55faecb7db3e6 Mon Sep 17 00:00:00 2001 From: mavrick Date: Tue, 1 Dec 2026 10:32:12 -0600 Subject: [PATCH 1/4] refactor: rename ModelBuilder to Model Designer ui.modelDesigner is the new command id; ui.modelBuilder still works. --- README.md | 4 +- apps/rustgis/src/main.rs | 2 +- apps/rustgis/src/menu.rs | 4 +- crates/engine/src/cmd/sharing.rs | 4 +- crates/engine/src/cmd/workflows.rs | 10 +-- crates/engine/src/lib.rs | 4 +- crates/engine/src/model.rs | 2 +- crates/engine/src/project.rs | 4 +- crates/engine/src/tests.rs | 10 +-- crates/ui-egui/src/analysispane.rs | 12 +-- crates/ui-egui/src/chrome.rs | 12 +-- crates/ui-egui/src/cubesui.rs | 2 +- crates/ui-egui/src/i18n/az.tsv | 10 +-- crates/ui-egui/src/i18n/bn.tsv | 10 +-- crates/ui-egui/src/i18n/de.tsv | 10 +-- crates/ui-egui/src/i18n/el.tsv | 10 +-- crates/ui-egui/src/i18n/es.tsv | 10 +-- crates/ui-egui/src/i18n/fa.tsv | 10 +-- crates/ui-egui/src/i18n/fr.tsv | 10 +-- crates/ui-egui/src/i18n/id.tsv | 10 +-- crates/ui-egui/src/i18n/it.tsv | 10 +-- crates/ui-egui/src/i18n/ja.tsv | 10 +-- crates/ui-egui/src/i18n/ka.tsv | 10 +-- crates/ui-egui/src/i18n/ko.tsv | 10 +-- crates/ui-egui/src/i18n/lo.tsv | 10 +-- crates/ui-egui/src/i18n/nl.tsv | 10 +-- crates/ui-egui/src/i18n/pl.tsv | 10 +-- crates/ui-egui/src/i18n/pt.tsv | 10 +-- crates/ui-egui/src/i18n/ru.tsv | 10 +-- crates/ui-egui/src/i18n/tr.tsv | 10 +-- crates/ui-egui/src/i18n/vi.tsv | 10 +-- crates/ui-egui/src/i18n/zh-tw.tsv | 10 +-- crates/ui-egui/src/i18n/zh.tsv | 10 +-- crates/ui-egui/src/inuse.rs | 2 +- crates/ui-egui/src/keymap.rs | 2 + crates/ui-egui/src/layoutview/format.rs | 2 +- crates/ui-egui/src/layoutview/tests.rs | 4 +- crates/ui-egui/src/lib.rs | 21 +++--- crates/ui-egui/src/mapview.rs | 16 ++-- .../src/{modelbuilder.rs => modeldesigner.rs} | 74 +++++++++++-------- crates/ui-egui/src/readjob.rs | 2 +- crates/ui-egui/src/ribbon.rs | 4 +- crates/ui-egui/src/workspacepanes.rs | 2 +- .../tests/integration/tool_field_lists.rs | 10 +-- crates/ui-egui/tests/smoke.rs | 14 ++-- crates/ui-touch/src/assistant.rs | 4 +- crates/ui-touch/src/lib.rs | 42 +++++------ docs/comparison/index.md | 2 +- docs/comparison/qgis.md | 2 +- docs/geolibre-parity.md | 2 +- docs/index.md | 6 +- docs/user-guide/analysis.md | 14 ++-- docs/user-guide/index.md | 4 +- schema/project.schema.json | 4 +- 54 files changed, 265 insertions(+), 248 deletions(-) rename crates/ui-egui/src/{modelbuilder.rs => modeldesigner.rs} (97%) diff --git a/README.md b/README.md index 11fc91deef..6a8e95a904 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ Browser](https://youtu.be/XFhqlSiKn6U) walks through the main features, and the The Plugin Manager browsing the plugin registry, listing Basemaps, Hello RustGIS, Map Explorer and Vector Toolkit with their permissions

Plugins. Install sandboxed plugins from plugins.rustgis.app.

-ModelBuilder after a run: Cities buffered by 300 km clip the Rivers, and Countries are dissolved by continent; every node is ticked and the results are on the map

ModelBuilder. Chain tools on a node canvas and run them in one go.

+Model Designer after a run: Cities buffered by 300 km clip the Rivers, and Countries are dissolved by continent; every node is ticked and the results are on the map

Model Designer. Chain tools on a node canvas and run them in one go.

The Sentinel-2 Explorer in the Web Data pane over Bern: the clearest recent scenes as cards with previews, their footprints drawn on the map

Web Data. STAC, Overture Maps, NASA and open-data portals, where the map is.

@@ -109,7 +109,7 @@ Every screenshot is RustGIS itself, rendered offscreen by `cargo run -p rustgis- | **Web tiles** | XYZ/TMS/WMS raster tiles, Mapbox Vector Tiles and MapLibre styles (sprites, patterns, expressions), cached and fetched in the background | | **Cartography** | Single symbol, unique values (also by expression), graduated colours with seven classification methods and manual breaks, proportional symbols, pie and bar diagrams; symbol size, colour, width and angle, and label text, size, colour and angle, by expression; label classes with SQL queries, straight and curved line placement, river names fitted along their lines, labels curved along polygons and guide lines, installed font families (desktop), scale ranges and annotation; stacked and dashed line strokes, PNG and JPEG picture markers (also from ArcGIS services and QGIS styles), hatch, marker, gradient and shapeburst fills, custom colour ramps and the matplotlib colour maps, symbol levels, reference scales and polygons without fill; masking, display filters, aggregation bins, 2.5D extrusion; graphics and dynamic text | | **Editing** | Create, move, rotate, scale, merge, split and explode features; vertex editing, constrained rotated boxes with paddle/numeric controls, cut polygons, reshape and trace along an edge; coincident polygon vertices in a layer moved together with Shared Vertices turned on; snapping, templates, elevation, traverse, topology rules; domains, subtypes, attribute rules, contingent values, relationships, archiving; Calculate Field with an expression language and Calculate Geometry in metric or imperial units, from the attribute table; edits saved back to GeoPackage and PostGIS tables, and published back to the Shapefile or GeoJSON file a layer was read from (desktop); undo for everything in the project (undoing a save doesn't reverse what was written to the table) | -| **Analysis** | Selection by attributes (SQL) and location; Buffer, Near, Clip, Erase, Split, Intersect, Identity, Union, Symmetrical Difference, Update, Summarize Within, Summary Statistics, Pivot Table, Tabulate Intersection, Spatial Join, Zonal Statistics, Kernel Density, A5 grids; viewshed, line of sight, IDW, ordinary kriging, shortest path, Service Area and OD Cost Matrix over a line network, Tabulate Area, suitability modelling; tools in the background on the desktop with progress and Cancel, many on several cores, and in batches; ModelBuilder on a node canvas, scripts with command, parameter and value completion, and history copied as code; 1,000+ [GeoLibre](https://github.com/opengeos/geolibre-rust) and Whitebox raster, vector, LiDAR, hydrology and terrain tools | +| **Analysis** | Selection by attributes (SQL) and location; Buffer, Near, Clip, Erase, Split, Intersect, Identity, Union, Symmetrical Difference, Update, Summarize Within, Summary Statistics, Pivot Table, Tabulate Intersection, Spatial Join, Zonal Statistics, Kernel Density, A5 grids; viewshed, line of sight, IDW, ordinary kriging, shortest path, Service Area and OD Cost Matrix over a line network, Tabulate Area, suitability modelling; tools in the background on the desktop with progress and Cancel, many on several cores, and in batches; Model Designer on a node canvas, scripts with command, parameter and value completion, and history copied as code; 1,000+ [GeoLibre](https://github.com/opengeos/geolibre-rust) and Whitebox raster, vector, LiDAR, hydrology and terrain tools | | **Data management** | Dissolve, Merge and Join Field; geometry conversions (feature to point, feature vertices to points, points along lines, polygon to line, split line at vertices, unsplit line, feature envelope to polygon, XY table to point) and minimum bounding geometry; check and repair geometry | | **Imagery** | Ortho and reality mapping, pixel classification (k-means, minimum distance, a trainable neural network), mensuration, hosted imagery tiles | | **Layouts and reports** | Page layouts with map frames, legends, scale bars, grids, bar and column charts and map series; publication sheets and figures in one command, format panes, guides, snapping and element locks; reports with groups, statistics, charts and subreports; vector PDF and SVG, and GeoPDF with [supported map frames](docs/user-guide/layouts.md#layouts) georeferenced; presentations (HTML slideshow, PDF); notebooks (Jupyter in and out) | diff --git a/apps/rustgis/src/main.rs b/apps/rustgis/src/main.rs index 8a69188a2d..dfc02d3718 100644 --- a/apps/rustgis/src/main.rs +++ b/apps/rustgis/src/main.rs @@ -587,7 +587,7 @@ impl eframe::App for App { press(&mut raw_input.events, k); } } - // Undo and Redo as when typed: a focused text field or ModelBuilder's canvas takes + // Undo and Redo as when typed: a focused text field or Model Designer's canvas takes // the Mac's key, the keymap the key it gives them; with none, the command runs. menu::Action::Keys { command, .. } => { let own = ctx.text_edit_focused() || (self.0.mb.shown() && !ctx.egui_wants_keyboard_input()); diff --git a/apps/rustgis/src/menu.rs b/apps/rustgis/src/menu.rs index 4372bbb9dd..e35a878e67 100644 --- a/apps/rustgis/src/menu.rs +++ b/apps/rustgis/src/menu.rs @@ -1,7 +1,7 @@ //! macOS: the native menu bar (#1077), beside the ribbon rather than a copy of it. Each item runs //! a command the app already has, so the menus add no behaviour of their own: File, View and Help //! items run their commands as the ribbon does (asking to save first when one would replace the -//! project), the Edit items work as their keys do (on a focused text field, ModelBuilder's canvas, +//! project), the Edit items work as their keys do (on a focused text field, Model Designer's canvas, //! or the project), and Quit RustGIS asks to save unsaved changes. The shortcuts shown are the //! keymap's, and items grey out as their commands do; Undo and Redo don't, since a text field //! undoes its own text when the project has nothing to undo. @@ -28,7 +28,7 @@ use serde_json::Value; pub enum Action { /// Runs a command with these parameters (JSON, or empty for none), as the ribbon does. Command(&'static str, &'static str), - /// Undo or Redo: as its key would when typed (a focused text field or ModelBuilder's canvas + /// Undo or Redo: as its key would when typed (a focused text field or Model Designer's canvas /// takes the Mac's, `fallback`; the keymap the one it gives the command), else runs the /// command. Shows the keymap's key, else `fallback` when no other command has it. Keys { diff --git a/crates/engine/src/cmd/sharing.rs b/crates/engine/src/cmd/sharing.rs index 1a6f39cfc0..c6a8b6b3e5 100644 --- a/crates/engine/src/cmd/sharing.rs +++ b/crates/engine/src/cmd/sharing.rs @@ -339,7 +339,7 @@ fn share_bytes_inner(s: &mut Session, kind: &str, p: &Value, out: Output<'_>) -> } "webTool" => { let i = shared_model(s, p)?; - let m = s.project.models.get_mut(i).ok_or("make a model first (ModelBuilder)")?; + let m = s.project.models.get_mut(i).ok_or("make a model first (Model Designer)")?; let name = m.name.clone(); let (bytes, report) = crate::durable::output(m, None, |m| out.json_pretty(&crate::model::to_web_tool_file(&m.name, &m.steps)))?; crate::durable::notify(s, &report); @@ -1937,7 +1937,7 @@ fn shared_model(input: &impl super::InputSource, p: &Value) -> Result s.project.models.iter().position(|m| m.name.eq_ignore_ascii_case(n)).ok_or_else(|| format!("no model '{n}'")), - None => s.project.models.len().checked_sub(1).ok_or_else(|| "make a model first (ModelBuilder)".into()), + None => s.project.models.len().checked_sub(1).ok_or_else(|| "make a model first (Model Designer)".into()), } } /// Binds effective included datasets and the actual target path without producing export bytes. diff --git a/crates/engine/src/cmd/workflows.rs b/crates/engine/src/cmd/workflows.rs index ec04fb73e7..eecb4d348c 100644 --- a/crates/engine/src/cmd/workflows.rs +++ b/crates/engine/src/cmd/workflows.rs @@ -26,7 +26,7 @@ pub fn commands() -> Vec { r#"{"threads"?: the most threads one piece of work uses, 1–1024, for the whole process and not saved with the project (null: the default, the cores up to 16); without it, the setting is only said}"#, ), C::new("gp.gallery", "Tool Gallery", "Analyze › Portal", gallery).roles(&[]).effects(crate::policy::Effects::NONE).view().params(r#"{"kind": "ready"|"feature"|"raster"}"#), - C::new("model.new", "ModelBuilder", "Analyze › Geoprocessing", new_model).roles(&[crate::ParamRole { key: "steps", role: crate::Role::ModelSteps }, crate::ParamRole { key: "graph", role: crate::Role::ModelGraph }]).effects(crate::policy::Effects::NONE.with(crate::policy::Effect::Reserved).with(crate::policy::Effect::Files)).params( + C::new("model.new", "Model Designer", "Analyze › Geoprocessing", new_model).roles(&[crate::ParamRole { key: "steps", role: crate::Role::ModelSteps }, crate::ParamRole { key: "graph", role: crate::Role::ModelGraph }]).effects(crate::policy::Effects::NONE.with(crate::policy::Effect::Reserved).with(crate::policy::Effect::Files)).params( r#"{"name"?: string, "graph"?: {"nodes": [{"id", "kind": "input"|"tool"|"output", "x", "y" (optional), an input's "layer", a tool's "tool" and "params", an output's "name"}], "edges": [{"from", "fromPort": "out", "to", "toPort": a tool's layer parameter | "in" (output)}]}, "steps"?: [{"tool": id, "params": {…, "%1" for step 1's output}}], "fromHistory"?: bool, "imported"?: bool (from a file: its tools may not touch files)}"#, ), C::new("model.save", "Save Model", "Analyze › Geoprocessing", save_model).roles(&[crate::ParamRole { key: "graph", role: crate::Role::ModelGraph }]).effects(crate::policy::Effects::NONE.with(crate::policy::Effect::Reserved)) @@ -1109,7 +1109,7 @@ fn new_model(s: &mut Session, p: &Value) -> CmdResult { } } } - // Steps stay steps (ModelBuilder shows them as a graph, and saves one). + // Steps stay steps (Model Designer shows them as a graph, and saves one). let mut name = base.clone(); let mut i = 1; while s.project.models.iter().any(|m| m.name.eq_ignore_ascii_case(&name)) { @@ -1130,7 +1130,7 @@ fn new_model(s: &mut Session, p: &Value) -> CmdResult { let cut = kept < length; if cut { s.notify( - format!("ModelBuilder: a model has that name already, so the name given is cut to {kept} characters to fit \" {i}\""), + format!("Model Designer: a model has that name already, so the name given is cut to {kept} characters to fit \" {i}\""), false, ); } @@ -1454,13 +1454,13 @@ fn model_file(s: &mut Session, p: &Value, out: super::exports::Output<'_>) -> Re } /// Runs a model saved as steps (no graph) in order, putting each step's output layer name in place -/// of `%n` anywhere in the parameters, as models always ran before ModelBuilder drew graphs. +/// of `%n` anywhere in the parameters, as models always ran before Model Designer drew graphs. fn run_steps(s: &mut Session, model: Model) -> CmdResult { if model.steps.is_empty() { return Err(format!("{} has no steps", model.name)); } // A model that came in a file (an opened project, or an imported tool) may not touch files. - // Each step is checked as the `gp.run` it is, tool and all, as ModelBuilder's graphs are. + // Each step is checked as the `gp.run` it is, tool and all, as Model Designer's graphs are. if !s.item_trusted("model", &model.name) && let Some((i, st)) = model .steps diff --git a/crates/engine/src/lib.rs b/crates/engine/src/lib.rs index 6146806621..23ec16f544 100644 --- a/crates/engine/src/lib.rs +++ b/crates/engine/src/lib.rs @@ -1025,10 +1025,10 @@ pub struct Session { /// Models made in this session (lower-cased names); the steps of others may not touch files. trusted_models: policy::Trust, /// What the last model run did, node by node (`model::RunReport`), kept even when the run - /// failed and the project was restored, so ModelBuilder can show which node stopped it. + /// failed and the project was restored, so Model Designer can show which node stopped it. pub model_run: Option, /// Counts the projects started in this session (new, open): front ends holding state about - /// the project (ModelBuilder's canvas) drop it when this changes. + /// the project (Model Designer's canvas) drop it when this changes. pub project_starts: u64, /// Notebooks made in this session (lower-cased names); the cells of others may not touch files. trusted_notebooks: policy::Trust, diff --git a/crates/engine/src/model.rs b/crates/engine/src/model.rs index d135ec5657..8981ebcd50 100644 --- a/crates/engine/src/model.rs +++ b/crates/engine/src/model.rs @@ -1,4 +1,4 @@ -//! ModelBuilder's models as graphs: the ports each node offers, the problems that keep a model +//! Model Designer's models as graphs: the ports each node offers, the problems that keep a model //! from running, the order its nodes run in, an automatic layout, and the run itself. //! //! A graph has three kinds of node. An **input** names a layer of the map; a **tool** is a diff --git a/crates/engine/src/project.rs b/crates/engine/src/project.rs index c80dd73c82..e479348a81 100644 --- a/crates/engine/src/project.rs +++ b/crates/engine/src/project.rs @@ -939,7 +939,7 @@ pub struct ProjectedCells { } /// A model: geoprocessing steps run in order. A parameter value `%n` stands for the output layer -/// of step n (1-based). A model drawn in ModelBuilder keeps its `graph` too, which is what runs; +/// of step n (1-based). A model drawn in Model Designer keeps its `graph` too, which is what runs; /// `steps` then holds the same tools in run order, for older versions and web tools. #[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)] #[cfg_attr(feature = "schema", derive(schemars::JsonSchema))] @@ -951,7 +951,7 @@ pub struct Model { pub graph: Option, } -/// A model as ModelBuilder draws it: input, tool and output nodes joined by edges from an output +/// A model as Model Designer draws it: input, tool and output nodes joined by edges from an output /// port to an input port (see `crate::model`). #[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)] #[cfg_attr(feature = "schema", derive(schemars::JsonSchema))] diff --git a/crates/engine/src/tests.rs b/crates/engine/src/tests.rs index 1dacd58ac3..7e1475b48c 100644 --- a/crates/engine/src/tests.rs +++ b/crates/engine/src/tests.rs @@ -20817,19 +20817,19 @@ fn model_new_refuses_or_says_what_it_leaves() { let r = s.run("model.new", &json!({"name": at(200), "steps": [step.clone()]})).unwrap(); assert_eq!(r["model"].as_str().map(|n| (n.chars().count(), n.ends_with(" 2"))), Some((200, true)), "{r}"); assert_eq!( - said(&s, mark, "ModelBuilder"), - ["ModelBuilder: a model has that name already, so the name given is cut to 198 characters to fit \" 2\""] + said(&s, mark, "Model Designer"), + ["Model Designer: a model has that name already, so the name given is cut to 198 characters to fit \" 2\""] ); let mark = s.notice_mark(); s.run("model.new", &json!({"name": "Long", "steps": [step.clone()]})).unwrap(); - assert!(said(&s, mark, "ModelBuilder").is_empty(), "a short name only gains the suffix"); + assert!(said(&s, mark, "Model Designer").is_empty(), "a short name only gains the suffix"); // A cut that lands on a space keeps no space before the suffix: the name's 197 letters, then " 2". let spaced = format!("{} bc", "a".repeat(197)); s.run("model.new", &json!({"name": spaced, "steps": [step.clone()]})).unwrap(); let mark = s.notice_mark(); let r = s.run("model.new", &json!({"name": spaced, "steps": [step.clone()]})).unwrap(); assert_eq!(r["model"], format!("{} 2", "a".repeat(197)), "{r}"); - assert_eq!(said(&s, mark, "ModelBuilder").len(), 1, "the cut to 197 is said"); + assert_eq!(said(&s, mark, "Model Designer").len(), 1, "the cut to 197 is said"); // From the history: 2,006 runs, five with a tool that isn't available. The model replays the // first 2,000 of the 2,001 it can, in their order, and says both. let run = |i: usize| crate::GpRecord { @@ -47517,7 +47517,7 @@ fn unreadable_model_nodes_do_not_redirect_their_connections() { assert_eq!(graph.edges.len(), 1); } -/// ModelBuilder graphs: validated, run in flow order, intermediate results dropped, outputs named. +/// Model Designer graphs: validated, run in flow order, intermediate results dropped, outputs named. fn model_graphs(s: &mut Session) { let graph = json!({ "nodes": [ diff --git a/crates/ui-egui/src/analysispane.rs b/crates/ui-egui/src/analysispane.rs index 333cc2b1d7..842bdd7047 100644 --- a/crates/ui-egui/src/analysispane.rs +++ b/crates/ui-egui/src/analysispane.rs @@ -666,7 +666,7 @@ pub const SECTIONS: &[(&str, &str)] = &[ ("similar", "Embeddings"), ("interop", "Data Interop"), ("environments", "Environments"), - ("models", "ModelBuilder"), + ("models", "Model Designer"), ("georeference", "Georeference"), ("change", "Change Detection"), ("trend", "Trend Analysis"), @@ -1600,17 +1600,17 @@ pub fn workflows(app: &mut RustGisApp, ui: &mut Ui, t: &Tokens) { heading(ui, "Models"); let models: Vec<(String, usize)> = app.session.project.models.iter().map(|m| (m.name.clone(), m.steps.len())).collect(); if ui - .button(tl!("Open ModelBuilder")) + .button(tl!("Open Model Designer")) .on_hover_text(tl!("Draw a model: chain tools from input layers to the results to keep")) .clicked() { - let _ = app.run("ui.modelBuilder", Value::Null); + let _ = app.run("ui.modelDesigner", Value::Null); } for (n, steps) in models { ui.horizontal(|ui| { ui.label(crate::i18n::fmt("{name} ({n} steps)", &[("name", &n), ("n", &steps.to_string())])); - if ui.small_button(tl!("Open")).on_hover_text(tl!("Open in ModelBuilder")).clicked() { - let _ = app.run("ui.modelBuilder", json!({"name": n})); + if ui.small_button(tl!("Open")).on_hover_text(tl!("Open in Model Designer")).clicked() { + let _ = app.run("ui.modelDesigner", json!({"name": n})); } // On the desktop its tools run on a thread of their own, the status bar // showing it and Cancel; its result shows here once it lands. @@ -1634,7 +1634,7 @@ pub fn workflows(app: &mut RustGisApp, ui: &mut Ui, t: &Tokens) { match app.run("model.new", json!({"name": "Model", "fromHistory": true})) { Ok(v) => { let name = v["model"].as_str().unwrap_or_default().to_string(); - let _ = app.run("ui.modelBuilder", json!({"name": name})); + let _ = app.run("ui.modelDesigner", json!({"name": name})); } Err(e) => app.workflow.error = Some(e), } diff --git a/crates/ui-egui/src/chrome.rs b/crates/ui-egui/src/chrome.rs index 97f500a6c9..63476f6f2b 100644 --- a/crates/ui-egui/src/chrome.rs +++ b/crates/ui-egui/src/chrome.rs @@ -953,7 +953,7 @@ pub fn shortcuts(app: &mut RustGisApp, ctx: &egui::Context) { { app.ui.history_jump = None; } - crate::modelbuilder::shortcuts(app, ctx); + crate::modeldesigner::shortcuts(app, ctx); let typing = typing(app, ctx); // A text field focused, not any widget (a button reached with Tab): it has an undo of its own. let text_field = ctx.text_edit_focused(); @@ -971,7 +971,7 @@ pub fn shortcuts(app: &mut RustGisApp, ctx: &egui::Context) { ctx.input_mut(|i| { for b in keymap.match_order() { // While a text field has focus, it keeps the keys it acts on: those without Ctrl (⌘), - // which type text, and undo and redo, whatever they're bound to (#685), as ModelBuilder + // which type text, and undo and redo, whatever they're bound to (#685), as Model Designer // leaves them. // Pause unmodified shortcuts during first-person movement, retaining the existing Escape, Home and Delete controls. if text_takes(Some(b.chord), typing, text_field) @@ -988,7 +988,7 @@ pub fn shortcuts(app: &mut RustGisApp, ctx: &egui::Context) { let press = crate::inuse::press(app, b.chord.key, Some(b.chord.modifiers())); let key_pane = press.map_or(pane, |press| press.pane); // Select All is the text's while a text field has the focus, and is left alone where - // there are no features to select: in a layout, in ModelBuilder and in a standalone + // there are no features to select: in a layout, in Model Designer and in a standalone // table's view. if b.command == "select.all" && select_all_left_alone(app, key_pane, typing || text_field) { continue; @@ -1125,7 +1125,7 @@ fn typing(app: &RustGisApp, ctx: &egui::Context) -> bool { /// Whether a text field keeps a key for itself (`chord`: the shortcut, or `None` for a key that /// is none): while one has the focus it keeps the keys it acts on, those without Ctrl (⌘), which -/// type text, and undo and redo, whatever they're bound to (#685), as ModelBuilder leaves them. +/// type text, and undo and redo, whatever they're bound to (#685), as Model Designer leaves them. fn text_takes(chord: Option, typing: bool, text_field: bool) -> bool { match chord { Some(chord) => (typing && !chord.command) || (text_field && chord.is_text_undo()), @@ -1135,7 +1135,7 @@ fn text_takes(chord: Option, typing: bool, text_field: boo /// Whether Select All's key is left alone, with `pane` in use: while text is typed or a text field /// has the focus (`in_text`: the key selects its text), and where there are no features to select -/// (a layout, ModelBuilder, a standalone table's view). +/// (a layout, Model Designer, a standalone table's view). fn select_all_left_alone(app: &RustGisApp, pane: Pane, in_text: bool) -> bool { in_text || app.session.active_layout.is_some() || app.mb.shown() || (pane == Pane::Table && app.session.table_layer.is_none()) } @@ -1374,7 +1374,7 @@ fn pastes_features(p: &Value) -> bool { /// The dialog Rename (F2) opens for the map or layout in view, when `pane` is one where the key /// is about it rather than the active layer: the tabs, or a layout. `None` elsewhere, and with -/// ModelBuilder in view (a model is named in its own toolbar). +/// Model Designer in view (a model is named in its own toolbar). fn renames_view(app: &RustGisApp, pane: Pane) -> Option<&'static str> { if app.mb.shown() { return None; diff --git a/crates/ui-egui/src/cubesui.rs b/crates/ui-egui/src/cubesui.rs index 21d3b69fc6..da2ab18d5b 100644 --- a/crates/ui-egui/src/cubesui.rs +++ b/crates/ui-egui/src/cubesui.rs @@ -175,7 +175,7 @@ fn jaxa_line(ui: &mut egui::Ui, t: &crate::theme::Tokens) { jaxa::Status::Unread => {} jaxa::Status::Reading => { ui.label(egui::RichText::new(tl!("Reading JAXA Earth's catalog…")).small().color(t.text_dim)); - // The tile cache's waker comes with the map view, which a layout, the model builder + // The tile cache's waker comes with the map view, which a layout, the model designer // or the catalog view keeps from drawing: look again until the catalog is read. ui.ctx().request_repaint_after(std::time::Duration::from_millis(250)); } diff --git a/crates/ui-egui/src/i18n/az.tsv b/crates/ui-egui/src/i18n/az.tsv index a68701ebcb..239ef08fe2 100644 --- a/crates/ui-egui/src/i18n/az.tsv +++ b/crates/ui-egui/src/i18n/az.tsv @@ -869,7 +869,7 @@ Close Bağla Close (Esc) Bağla (Esc) Close All Hamısını bağla Close all panes Bütün panelləri bağla -Close ModelBuilder Model qurucusunu bağla +Close Model Designer Model dizaynerini bağla Close Others Digərlərini bağla Close Table Cədvəli bağla Close table Cədvəli bağla @@ -2638,10 +2638,10 @@ Mod+X Mod+X Mod+Y Mod+Y Mod+Z Mod+Z Model Model -Model\nBuilder Model\nqurucusu +Model\nDesigner Model\ndizayneri model id model identifikatoru Model output Model çıxışı -ModelBuilder Model qurucusu +Model Designer Model dizayneri Models Modellər Modified Mann–Kendall (Hamed & Rao) Modifikasiya olunmuş Mann–Kendall (Hamed & Rao) Modified Mann–Kendall (Yue & Wang) Modifikasiya olunmuş Mann–Kendall (Yue & Wang) @@ -3007,12 +3007,12 @@ Open data catalogues searched by text. Files are added by their address (read in Open data products on Source Cooperative. GeoParquet, FlatGeobuf, cloud-optimised GeoTIFFs and PMTiles are read in place; other files are downloaded. Source Cooperative-də açıq məlumat məhsulları. GeoParquet, FlatGeobuf, bulud üçün optimallaşdırılmış GeoTIFF-lər və PMTiles yerində oxunur; digər fayllar endirilir. Open folder Qovluğu aç Open In Geoprocessing… Geoemalda aç… -Open in ModelBuilder Model qurucusunda aç +Open in Model Designer Model dizaynerində aç Open in Script Pane Skript panelində aç Open in Tool Alətdə aç Open Layout Tərtibatı aç Open Messages Mesajları aç -Open ModelBuilder Model qurucusunu aç +Open Model Designer Model dizaynerini aç Open Notebook Bloknotu aç Open Offline Map Oflayn xəritəni aç Open Presentation Təqdimatı aç diff --git a/crates/ui-egui/src/i18n/bn.tsv b/crates/ui-egui/src/i18n/bn.tsv index 965a5d6779..bd9384126f 100644 --- a/crates/ui-egui/src/i18n/bn.tsv +++ b/crates/ui-egui/src/i18n/bn.tsv @@ -869,7 +869,7 @@ Close বন্ধ করুন Close (Esc) বন্ধ করুন (Esc) Close All সব বন্ধ করুন Close all panes সব pane বন্ধ করুন -Close ModelBuilder ModelBuilder বন্ধ করুন +Close Model Designer মডেল ডিজাইনার বন্ধ করুন Close Others অন্যগুলো বন্ধ করুন Close Table টেবিল বন্ধ করুন Close table টেবিল বন্ধ করুন @@ -2638,10 +2638,10 @@ Mod+X Mod+X Mod+Y Mod+Y Mod+Z Mod+Z Model মডেল -Model\nBuilder মডেল\nবিল্ডার +Model\nDesigner মডেল\nডিজাইনার model id model ID Model output মডেল আউটপুট -ModelBuilder মডেল বিল্ডার +Model Designer মডেল ডিজাইনার Models Model-সমূহ Modified Mann–Kendall (Hamed & Rao) পরিবর্তিত Mann–Kendall (Hamed & Rao) Modified Mann–Kendall (Yue & Wang) পরিবর্তিত Mann–Kendall (Yue & Wang) @@ -3007,12 +3007,12 @@ Open data catalogues searched by text. Files are added by their address (read in Open data products on Source Cooperative. GeoParquet, FlatGeobuf, cloud-optimised GeoTIFFs and PMTiles are read in place; other files are downloaded. Source Cooperative-এর open-data product। GeoParquet, FlatGeobuf, cloud-optimized GeoTIFF ও PMTiles একই জায়গায় পড়া হয়; অন্য file ডাউনলোড হয়। Open folder ফোল্ডার খুলুন Open In Geoprocessing… Geoprocessing-এ খুলুন… -Open in ModelBuilder ModelBuilder-এ খুলুন +Open in Model Designer মডেল ডিজাইনারে খুলুন Open in Script Pane Script pane-এ খুলুন Open in Tool Tool-এ খুলুন Open Layout Layout খুলুন Open Messages বার্তা খুলুন -Open ModelBuilder ModelBuilder খুলুন +Open Model Designer মডেল ডিজাইনার খুলুন Open Notebook Notebook খুলুন Open Offline Map Offline map খুলুন Open Presentation Presentation খুলুন diff --git a/crates/ui-egui/src/i18n/de.tsv b/crates/ui-egui/src/i18n/de.tsv index 502a0c7094..b76e0ed3f9 100644 --- a/crates/ui-egui/src/i18n/de.tsv +++ b/crates/ui-egui/src/i18n/de.tsv @@ -869,7 +869,7 @@ Close Schließen Close (Esc) Schließen (Esc) Close All Alle schließen Close all panes Alle Bereiche schließen -Close ModelBuilder ModelBuilder schließen +Close Model Designer Modelldesigner schließen Close Others Andere schließen Close Table Tabelle schließen Close table Tabelle schließen @@ -2638,10 +2638,10 @@ Mod+X Mod+X Mod+Y Mod+Y Mod+Z Mod+Z Model Modell -Model\nBuilder Model\nBuilder +Model\nDesigner Modell-\ndesigner model id Modell-ID Model output Modellausgabe -ModelBuilder ModelBuilder +Model Designer Modelldesigner Models Modelle Modified Mann–Kendall (Hamed & Rao) Modifizierter Mann–Kendall (Hamed & Rao) Modified Mann–Kendall (Yue & Wang) Modifizierter Mann–Kendall (Yue & Wang) @@ -3007,12 +3007,12 @@ Open data catalogues searched by text. Files are added by their address (read in Open data products on Source Cooperative. GeoParquet, FlatGeobuf, cloud-optimised GeoTIFFs and PMTiles are read in place; other files are downloaded. Offene Datenprodukte auf Source Cooperative. GeoParquet, FlatGeobuf, Cloud-optimierte GeoTIFFs und PMTiles werden direkt gelesen; andere Dateien werden heruntergeladen. Open folder Ordner öffnen Open In Geoprocessing… In Geoverarbeitung öffnen… -Open in ModelBuilder In ModelBuilder öffnen +Open in Model Designer Im Modelldesigner öffnen Open in Script Pane Im Skriptbereich öffnen Open in Tool Im Werkzeug öffnen Open Layout Layout öffnen Open Messages Meldungen öffnen -Open ModelBuilder ModelBuilder öffnen +Open Model Designer Modelldesigner öffnen Open Notebook Notizbuch öffnen Open Offline Map Offline-Karte öffnen Open Presentation Präsentation öffnen diff --git a/crates/ui-egui/src/i18n/el.tsv b/crates/ui-egui/src/i18n/el.tsv index f19774754f..c93793467d 100644 --- a/crates/ui-egui/src/i18n/el.tsv +++ b/crates/ui-egui/src/i18n/el.tsv @@ -869,7 +869,7 @@ Close Κλείσιμο Close (Esc) Κλείσιμο (Esc) Close All Κλείσιμο όλων Close all panes Κλείσιμο όλων των πλαισίων -Close ModelBuilder Κλείσιμο ModelBuilder +Close Model Designer Κλείσιμο Σχεδιαστή μοντέλων Close Others Κλείσιμο των υπολοίπων Close Table Κλείσιμο πίνακα Close table Κλείσιμο πίνακα @@ -2637,10 +2637,10 @@ Mod+X Mod+X Mod+Y Mod+Y Mod+Z Mod+Z Model Μοντέλο -Model\nBuilder Model\nBuilder +Model\nDesigner Σχεδιαστής\nμοντέλων model id αναγνωριστικό μοντέλου Model output Έξοδος μοντέλου -ModelBuilder ModelBuilder +Model Designer Σχεδιαστής μοντέλων Models Μοντέλα Modified Mann–Kendall (Hamed & Rao) Τροποποιημένο Mann–Kendall (Hamed & Rao) Modified Mann–Kendall (Yue & Wang) Τροποποιημένο Mann–Kendall (Yue & Wang) @@ -3006,12 +3006,12 @@ Open data catalogues searched by text. Files are added by their address (read in Open data products on Source Cooperative. GeoParquet, FlatGeobuf, cloud-optimised GeoTIFFs and PMTiles are read in place; other files are downloaded. Προϊόντα ανοιχτών δεδομένων στο Source Cooperative. Τα GeoParquet, FlatGeobuf, cloud-optimised GeoTIFF και PMTiles διαβάζονται επί τόπου, ενώ για τα υπόλοιπα αρχεία γίνεται λήψη. Open folder Άνοιγμα φακέλου Open In Geoprocessing… Άνοιγμα στη γεωεπεξεργασία… -Open in ModelBuilder Άνοιγμα στο ModelBuilder +Open in Model Designer Άνοιγμα στον Σχεδιαστή μοντέλων Open in Script Pane Άνοιγμα στο πλαίσιο Σεναρίου Open in Tool Άνοιγμα στο εργαλείο Open Layout Άνοιγμα διάταξης Open Messages Άνοιγμα μηνυμάτων -Open ModelBuilder Άνοιγμα ModelBuilder +Open Model Designer Άνοιγμα Σχεδιαστή μοντέλων Open Notebook Άνοιγμα σημειωματαρίου Open Offline Map Άνοιγμα χάρτη εκτός σύνδεσης Open Presentation Άνοιγμα παρουσίασης diff --git a/crates/ui-egui/src/i18n/es.tsv b/crates/ui-egui/src/i18n/es.tsv index 54e81db676..de3cf6fc10 100644 --- a/crates/ui-egui/src/i18n/es.tsv +++ b/crates/ui-egui/src/i18n/es.tsv @@ -869,7 +869,7 @@ Close Cerrar Close (Esc) Cerrar (Esc) Close All Cerrar todo Close all panes Cerrar todos los paneles -Close ModelBuilder Cerrar ModelBuilder +Close Model Designer Cerrar el diseñador de modelos Close Others Cerrar los demás Close Table Cerrar tabla Close table Cerrar tabla @@ -2638,10 +2638,10 @@ Mod+X Mod+X Mod+Y Mod+Y Mod+Z Mod+Z Model Modelo -Model\nBuilder Model\nBuilder +Model\nDesigner Diseñador\nde modelos model id id. del modelo Model output Salida del modelo -ModelBuilder ModelBuilder +Model Designer Diseñador de modelos Models Modelos Modified Mann–Kendall (Hamed & Rao) Mann–Kendall modificado (Hamed & Rao) Modified Mann–Kendall (Yue & Wang) Mann–Kendall modificado (Yue & Wang) @@ -3007,12 +3007,12 @@ Open data catalogues searched by text. Files are added by their address (read in Open data products on Source Cooperative. GeoParquet, FlatGeobuf, cloud-optimised GeoTIFFs and PMTiles are read in place; other files are downloaded. Productos de datos abiertos en Source Cooperative. GeoParquet, FlatGeobuf, GeoTIFF optimizados para la nube y PMTiles se leen en su ubicación; los demás archivos se descargan. Open folder Abrir carpeta Open In Geoprocessing… Abrir en Geoprocesamiento… -Open in ModelBuilder Abrir en ModelBuilder +Open in Model Designer Abrir en el diseñador de modelos Open in Script Pane Abrir en el panel Script Open in Tool Abrir en la herramienta Open Layout Abrir diseño Open Messages Abrir mensajes -Open ModelBuilder Abrir ModelBuilder +Open Model Designer Abrir el diseñador de modelos Open Notebook Abrir cuaderno Open Offline Map Abrir mapa sin conexión Open Presentation Abrir presentación diff --git a/crates/ui-egui/src/i18n/fa.tsv b/crates/ui-egui/src/i18n/fa.tsv index 1f3f653a3d..d496cb27f2 100644 --- a/crates/ui-egui/src/i18n/fa.tsv +++ b/crates/ui-egui/src/i18n/fa.tsv @@ -869,7 +869,7 @@ Close بستن Close (Esc) بستن (Esc) Close All بستن همه Close all panes بستن همه پنل‌ها -Close ModelBuilder بستن ModelBuilder +Close Model Designer بستن طراح مدل Close Others بستن بقیه Close Table بستن جدول Close table بستن جدول @@ -2638,10 +2638,10 @@ Mod+X Mod+X Mod+Y Mod+Y Mod+Z Mod+Z Model مدل -Model\nBuilder Model\nBuilder +Model\nDesigner طراح\nمدل model id شناسه مدل Model output خروجی مدل -ModelBuilder ModelBuilder +Model Designer طراح مدل Models مدل‌ها Modified Mann–Kendall (Hamed & Rao) Mann–Kendall اصلاح‌شده (Hamed & Rao) Modified Mann–Kendall (Yue & Wang) Mann–Kendall اصلاح‌شده (Yue & Wang) @@ -3007,12 +3007,12 @@ Open data catalogues searched by text. Files are added by their address (read in Open data products on Source Cooperative. GeoParquet, FlatGeobuf, cloud-optimised GeoTIFFs and PMTiles are read in place; other files are downloaded. محصولات داده باز روی Source Cooperative. GeoParquet، FlatGeobuf، GeoTIFFهای بهینه ابری و PMTiles در جا خوانده می‌شوند؛ بقیه فایل‌ها دانلود می‌شوند. Open folder بازکردن پوشه Open In Geoprocessing… بازکردن در زمین‌پردازش… -Open in ModelBuilder بازکردن در ModelBuilder +Open in Model Designer بازکردن در طراح مدل Open in Script Pane باز کردن در پنل Script Open in Tool بازکردن در ابزار Open Layout بازکردن صفحه‌آرایی Open Messages باز کردن پیام‌ها -Open ModelBuilder بازکردن ModelBuilder +Open Model Designer بازکردن طراح مدل Open Notebook بازکردن Notebook Open Offline Map بازکردن نقشه آفلاین Open Presentation بازکردن Presentation diff --git a/crates/ui-egui/src/i18n/fr.tsv b/crates/ui-egui/src/i18n/fr.tsv index cc8e769dfc..5c8c99945b 100644 --- a/crates/ui-egui/src/i18n/fr.tsv +++ b/crates/ui-egui/src/i18n/fr.tsv @@ -869,7 +869,7 @@ Close Fermer Close (Esc) Fermer (Esc) Close All Tout fermer Close all panes Fermer tous les volets -Close ModelBuilder Fermer ModelBuilder +Close Model Designer Fermer le concepteur de modèles Close Others Fermer les autres Close Table Fermer la table Close table Fermer la table @@ -2638,10 +2638,10 @@ Mod+X Mod+X Mod+Y Mod+Y Mod+Z Mod+Z Model Modèle -Model\nBuilder Model\nBuilder +Model\nDesigner Concepteur\nde modèles model id identifiant du modèle Model output Sortie du modèle -ModelBuilder ModelBuilder +Model Designer Concepteur de modèles Models Modèles Modified Mann–Kendall (Hamed & Rao) Mann–Kendall modifié (Hamed & Rao) Modified Mann–Kendall (Yue & Wang) Mann–Kendall modifié (Yue & Wang) @@ -3007,12 +3007,12 @@ Open data catalogues searched by text. Files are added by their address (read in Open data products on Source Cooperative. GeoParquet, FlatGeobuf, cloud-optimised GeoTIFFs and PMTiles are read in place; other files are downloaded. Produits de données ouvertes sur Source Cooperative. GeoParquet, FlatGeobuf, GeoTIFF optimisés pour le cloud et PMTiles sont lus sur place ; les autres fichiers sont téléchargés. Open folder Ouvrir le dossier Open In Geoprocessing… Ouvrir dans Géotraitement… -Open in ModelBuilder Ouvrir dans ModelBuilder +Open in Model Designer Ouvrir dans le concepteur de modèles Open in Script Pane Ouvrir dans le volet Script Open in Tool Ouvrir dans l'outil Open Layout Ouvrir une mise en page Open Messages Ouvrir les messages -Open ModelBuilder Ouvrir ModelBuilder +Open Model Designer Ouvrir le concepteur de modèles Open Notebook Ouvrir un bloc-notes Open Offline Map Ouvrir une carte hors connexion Open Presentation Ouvrir une présentation diff --git a/crates/ui-egui/src/i18n/id.tsv b/crates/ui-egui/src/i18n/id.tsv index 1af28bcade..18031b1d8f 100644 --- a/crates/ui-egui/src/i18n/id.tsv +++ b/crates/ui-egui/src/i18n/id.tsv @@ -869,7 +869,7 @@ Close Tutup Close (Esc) Tutup (Esc) Close All Tutup Semua Close all panes Tutup semua panel -Close ModelBuilder Tutup ModelBuilder +Close Model Designer Tutup Perancang Model Close Others Tutup Lainnya Close Table Tutup Tabel Close table Tutup tabel @@ -2638,10 +2638,10 @@ Mod+X Mod+X Mod+Y Mod+Y Mod+Z Mod+Z Model Model -Model\nBuilder Model\nBuilder +Model\nDesigner Perancang\nModel model id id model Model output Keluaran model -ModelBuilder ModelBuilder +Model Designer Perancang Model Models Model Modified Mann–Kendall (Hamed & Rao) Mann–Kendall Termodifikasi (Hamed & Rao) Modified Mann–Kendall (Yue & Wang) Mann–Kendall Termodifikasi (Yue & Wang) @@ -3007,12 +3007,12 @@ Open data catalogues searched by text. Files are added by their address (read in Open data products on Source Cooperative. GeoParquet, FlatGeobuf, cloud-optimised GeoTIFFs and PMTiles are read in place; other files are downloaded. Produk data terbuka di Source Cooperative. GeoParquet, FlatGeobuf, GeoTIFF yang dioptimalkan untuk cloud, dan PMTiles dibaca di tempat; file lainnya diunduh. Open folder Buka folder Open In Geoprocessing… Buka di Geoprosesing… -Open in ModelBuilder Buka di ModelBuilder +Open in Model Designer Buka di Perancang Model Open in Script Pane Buka di Panel Skrip Open in Tool Buka di Alat Open Layout Buka Tata Letak Open Messages Buka Pesan -Open ModelBuilder Buka ModelBuilder +Open Model Designer Buka Perancang Model Open Notebook Buka Notebook Open Offline Map Buka Peta Offline Open Presentation Buka Presentasi diff --git a/crates/ui-egui/src/i18n/it.tsv b/crates/ui-egui/src/i18n/it.tsv index 89552fcd53..b9b1b63c05 100644 --- a/crates/ui-egui/src/i18n/it.tsv +++ b/crates/ui-egui/src/i18n/it.tsv @@ -869,7 +869,7 @@ Close Chiudi Close (Esc) Chiudi (Esc) Close All Chiudi tutto Close all panes Chiudi tutti i pannelli -Close ModelBuilder Chiudi ModelBuilder +Close Model Designer Chiudi il progettista di modelli Close Others Chiudi gli altri Close Table Chiudi tabella Close table Chiudi tabella @@ -2638,10 +2638,10 @@ Mod+X Mod+X Mod+Y Mod+Y Mod+Z Mod+Z Model Modello -Model\nBuilder Model\nBuilder +Model\nDesigner Progettista\ndi modelli model id id del modello Model output Output del modello -ModelBuilder ModelBuilder +Model Designer Progettista di modelli Models Modelli Modified Mann–Kendall (Hamed & Rao) Mann–Kendall modificato (Hamed & Rao) Modified Mann–Kendall (Yue & Wang) Mann–Kendall modificato (Yue & Wang) @@ -3007,12 +3007,12 @@ Open data catalogues searched by text. Files are added by their address (read in Open data products on Source Cooperative. GeoParquet, FlatGeobuf, cloud-optimised GeoTIFFs and PMTiles are read in place; other files are downloaded. Prodotti di dati aperti su Source Cooperative. GeoParquet, FlatGeobuf, GeoTIFF ottimizzati per il cloud e PMTiles vengono letti sul posto; gli altri file vengono scaricati. Open folder Apri cartella Open In Geoprocessing… Apri in Geoprocessing… -Open in ModelBuilder Apri in ModelBuilder +Open in Model Designer Apri nel progettista di modelli Open in Script Pane Apri nel pannello Script Open in Tool Apri nello strumento Open Layout Apri layout Open Messages Apri messaggi -Open ModelBuilder Apri ModelBuilder +Open Model Designer Apri il progettista di modelli Open Notebook Apri notebook Open Offline Map Apri mappa offline Open Presentation Apri presentazione diff --git a/crates/ui-egui/src/i18n/ja.tsv b/crates/ui-egui/src/i18n/ja.tsv index 9acb3244d2..88d577a89e 100644 --- a/crates/ui-egui/src/i18n/ja.tsv +++ b/crates/ui-egui/src/i18n/ja.tsv @@ -869,7 +869,7 @@ Close 閉じる Close (Esc) 閉じる (Esc) Close All すべて閉じる Close all panes すべてのウィンドウを閉じる -Close ModelBuilder ModelBuilder を閉じる +Close Model Designer モデルデザイナーを閉じる Close Others 他を閉じる Close Table テーブルを閉じる Close table テーブルを閉じる @@ -2638,10 +2638,10 @@ Mod+X Mod+X Mod+Y Mod+Y Mod+Z Mod+Z Model モデル -Model\nBuilder モデル\nビルダー +Model\nDesigner モデル\nデザイナー model id モデル ID Model output モデルの出力 -ModelBuilder ModelBuilder +Model Designer モデルデザイナー Models モデル Modified Mann–Kendall (Hamed & Rao) 修正 Mann–Kendall (Hamed & Rao) Modified Mann–Kendall (Yue & Wang) 修正 Mann–Kendall (Yue & Wang) @@ -3007,12 +3007,12 @@ Open data catalogues searched by text. Files are added by their address (read in Open data products on Source Cooperative. GeoParquet, FlatGeobuf, cloud-optimised GeoTIFFs and PMTiles are read in place; other files are downloaded. Source Cooperative のオープン データ プロダクト。GeoParquet、FlatGeobuf、クラウド最適化 GeoTIFF、PMTiles はその場で読み込まれ、その他のファイルはダウンロードされます。 Open folder フォルダーを開く Open In Geoprocessing… ジオプロセシングで開く… -Open in ModelBuilder ModelBuilder で開く +Open in Model Designer モデルデザイナーで開く Open in Script Pane スクリプト ウィンドウで開く Open in Tool ツールで開く Open Layout レイアウトを開く Open Messages メッセージを開く -Open ModelBuilder ModelBuilder を開く +Open Model Designer モデルデザイナーを開く Open Notebook ノートブックを開く Open Offline Map オフライン マップを開く Open Presentation プレゼンテーションを開く diff --git a/crates/ui-egui/src/i18n/ka.tsv b/crates/ui-egui/src/i18n/ka.tsv index 93df3b7c2b..bf93b9f080 100644 --- a/crates/ui-egui/src/i18n/ka.tsv +++ b/crates/ui-egui/src/i18n/ka.tsv @@ -869,7 +869,7 @@ Close დახურვა Close (Esc) დახურვა (Esc) Close All ყველას დახურვა Close all panes ყველა პანელის დახურვა -Close ModelBuilder ModelBuilder-ის დახურვა +Close Model Designer მოდელების დიზაინერის დახურვა Close Others დანარჩენების დახურვა Close Table ცხრილის დახურვა Close table ცხრილის დახურვა @@ -2638,10 +2638,10 @@ Mod+X Mod+X Mod+Y Mod+Y Mod+Z Mod+Z Model მოდელი -Model\nBuilder მოდელების\nაგება +Model\nDesigner მოდელების\nდიზაინერი model id მოდელის ID Model output მოდელის გამოსავალი -ModelBuilder ModelBuilder +Model Designer მოდელების დიზაინერი Models მოდელები Modified Mann–Kendall (Hamed & Rao) მოდიფიცირებული მან–კენდალი (Hamed & Rao) Modified Mann–Kendall (Yue & Wang) მოდიფიცირებული მან–კენდალი (Yue & Wang) @@ -3007,12 +3007,12 @@ Open data catalogues searched by text. Files are added by their address (read in Open data products on Source Cooperative. GeoParquet, FlatGeobuf, cloud-optimised GeoTIFFs and PMTiles are read in place; other files are downloaded. ღია მონაცემთა პროდუქტები Source Cooperative-ზე. GeoParquet, FlatGeobuf, ღრუბლისთვის ოპტიმიზებული GeoTIFF-ები და PMTiles ადგილზე იკითხება; სხვა ფაილები ჩამოიტვირთება. Open folder საქაღალდის გახსნა Open In Geoprocessing… გეოდამუშავებაში გახსნა… -Open in ModelBuilder ModelBuilder-ში გახსნა +Open in Model Designer მოდელების დიზაინერში გახსნა Open in Script Pane სკრიპტის პანელში გახსნა Open in Tool ხელსაწყოში გახსნა Open Layout განლაგების გახსნა Open Messages შეტყობინებების გახსნა -Open ModelBuilder ModelBuilder-ის გახსნა +Open Model Designer მოდელების დიზაინერის გახსნა Open Notebook რვეულის გახსნა Open Offline Map ოფლაინ რუკის გახსნა Open Presentation პრეზენტაციის გახსნა diff --git a/crates/ui-egui/src/i18n/ko.tsv b/crates/ui-egui/src/i18n/ko.tsv index bb6fc023e7..e61652b580 100644 --- a/crates/ui-egui/src/i18n/ko.tsv +++ b/crates/ui-egui/src/i18n/ko.tsv @@ -869,7 +869,7 @@ Close 닫기 Close (Esc) 닫기 (Esc) Close All 모두 닫기 Close all panes 모든 창 닫기 -Close ModelBuilder ModelBuilder 닫기 +Close Model Designer 모델 디자이너 닫기 Close Others 다른 항목 닫기 Close Table 테이블 닫기 Close table 테이블 닫기 @@ -2638,10 +2638,10 @@ Mod+X Mod+X Mod+Y Mod+Y Mod+Z Mod+Z Model 모델 -Model\nBuilder 모델\n빌더 +Model\nDesigner 모델\n디자이너 model id 모델 ID Model output 모델 출력 -ModelBuilder ModelBuilder +Model Designer 모델 디자이너 Models 모델 Modified Mann–Kendall (Hamed & Rao) 수정 Mann–Kendall(Hamed & Rao) Modified Mann–Kendall (Yue & Wang) 수정 Mann–Kendall(Yue & Wang) @@ -3007,12 +3007,12 @@ Open data catalogues searched by text. Files are added by their address (read in Open data products on Source Cooperative. GeoParquet, FlatGeobuf, cloud-optimised GeoTIFFs and PMTiles are read in place; other files are downloaded. Source Cooperative의 오픈 데이터 제품. GeoParquet, FlatGeobuf, 클라우드 최적화 GeoTIFF, PMTiles는 그 자리에서 읽고, 다른 파일은 다운로드합니다. Open folder 폴더 열기 Open In Geoprocessing… 지오프로세싱에서 열기… -Open in ModelBuilder ModelBuilder에서 열기 +Open in Model Designer 모델 디자이너에서 열기 Open in Script Pane 스크립트 창에서 열기 Open in Tool 도구에서 열기 Open Layout 레이아웃 열기 Open Messages 메시지 열기 -Open ModelBuilder ModelBuilder 열기 +Open Model Designer 모델 디자이너 열기 Open Notebook 노트북 열기 Open Offline Map 오프라인 지도 열기 Open Presentation 프레젠테이션 열기 diff --git a/crates/ui-egui/src/i18n/lo.tsv b/crates/ui-egui/src/i18n/lo.tsv index bb0404ec05..bfce7f7316 100644 --- a/crates/ui-egui/src/i18n/lo.tsv +++ b/crates/ui-egui/src/i18n/lo.tsv @@ -869,7 +869,7 @@ Close ປິດ Close (Esc) ປິດ (Esc) Close All ປິດທັງໝົດ Close all panes ປິດທຸກໜ້າຕ່າງ -Close ModelBuilder ປິດ ModelBuilder +Close Model Designer ປິດຕົວອອກແບບຕົວແບບ Close Others ປິດອື່ນໆ Close Table ປິດຕາຕະລາງ Close table ປິດຕາຕະລາງ @@ -2638,10 +2638,10 @@ Mod+X Mod+X Mod+Y Mod+Y Mod+Z Mod+Z Model ຕົວແບບ -Model\nBuilder ຕົວສ້າງ\nຕົວແບບ +Model\nDesigner ຕົວອອກແບບ\nຕົວແບບ model id ໄອດີຕົວແບບ Model output ຜົນຮັບຕົວແບບ -ModelBuilder ModelBuilder +Model Designer ຕົວອອກແບບຕົວແບບ Models ຕົວແບບ Modified Mann–Kendall (Hamed & Rao) Mann–Kendall ດັດແກ້ (Hamed & Rao) Modified Mann–Kendall (Yue & Wang) Mann–Kendall ດັດແກ້ (Yue & Wang) @@ -3007,12 +3007,12 @@ Open data catalogues searched by text. Files are added by their address (read in Open data products on Source Cooperative. GeoParquet, FlatGeobuf, cloud-optimised GeoTIFFs and PMTiles are read in place; other files are downloaded. ຜະລິດຕະພັນຂໍ້ມູນເປີດເທິງ Source Cooperative. GeoParquet, FlatGeobuf, GeoTIFF ທີ່ປັບແຕ່ງສຳລັບຄລາວ ແລະ PMTiles ຈະຖືກອ່ານຈາກບ່ອນເດີມໂດຍກົງ; ໄຟລ໌ອື່ນໆຈະຖືກດາວໂຫຼດມາໄວ້ໃນເຄື່ອງ. Open folder ເປີດໂຟນເດີ Open In Geoprocessing… ເປີດໃນ Geoprocessing… -Open in ModelBuilder ເປີດໃນ ModelBuilder +Open in Model Designer ເປີດໃນຕົວອອກແບບຕົວແບບ Open in Script Pane ເປີດໃນໜ້າຕ່າງສະຄຣິບ Open in Tool ເປີດໃນເຄື່ອງມື Open Layout ເປີດໜ້າຈັດວາງ Open Messages ເປີດຂໍ້ຄວາມ -Open ModelBuilder ເປີດ ModelBuilder +Open Model Designer ເປີດຕົວອອກແບບຕົວແບບ Open Notebook ເປີດໂນ້ດບຸກ Open Offline Map ເປີດແຜນທີ່ອອບລາຍນ໌ Open Presentation ເປີດການນຳສະເໜີ diff --git a/crates/ui-egui/src/i18n/nl.tsv b/crates/ui-egui/src/i18n/nl.tsv index 8941f3d95e..4b2b6346b4 100644 --- a/crates/ui-egui/src/i18n/nl.tsv +++ b/crates/ui-egui/src/i18n/nl.tsv @@ -869,7 +869,7 @@ Close Sluiten Close (Esc) Sluiten (Esc) Close All Alles sluiten Close all panes Alle vensters sluiten -Close ModelBuilder ModelBuilder sluiten +Close Model Designer Modelontwerper sluiten Close Others Andere sluiten Close Table Tabel sluiten Close table Tabel sluiten @@ -2638,10 +2638,10 @@ Mod+X Mod+X Mod+Y Mod+Y Mod+Z Mod+Z Model Model -Model\nBuilder Model-\nBuilder +Model\nDesigner Model-\nontwerper model id model-id Model output Modeluitvoer -ModelBuilder ModelBuilder +Model Designer Modelontwerper Models Modellen Modified Mann–Kendall (Hamed & Rao) Gemodificeerde Mann–Kendall (Hamed & Rao) Modified Mann–Kendall (Yue & Wang) Gemodificeerde Mann–Kendall (Yue & Wang) @@ -3007,12 +3007,12 @@ Open data catalogues searched by text. Files are added by their address (read in Open data products on Source Cooperative. GeoParquet, FlatGeobuf, cloud-optimised GeoTIFFs and PMTiles are read in place; other files are downloaded. Open-dataproducten op Source Cooperative. GeoParquet, FlatGeobuf, cloud-geoptimaliseerde GeoTIFF's en PMTiles worden ter plekke gelezen; andere bestanden worden gedownload. Open folder Map openen Open In Geoprocessing… Openen in Geoverwerking… -Open in ModelBuilder Openen in ModelBuilder +Open in Model Designer Openen in Modelontwerper Open in Script Pane Openen in scriptvenster Open in Tool Openen in gereedschap Open Layout Lay-out openen Open Messages Berichten openen -Open ModelBuilder ModelBuilder openen +Open Model Designer Modelontwerper openen Open Notebook Notebook openen Open Offline Map Offline kaart openen Open Presentation Presentatie openen diff --git a/crates/ui-egui/src/i18n/pl.tsv b/crates/ui-egui/src/i18n/pl.tsv index 0dc5c1ca79..7dd6cfe713 100644 --- a/crates/ui-egui/src/i18n/pl.tsv +++ b/crates/ui-egui/src/i18n/pl.tsv @@ -869,7 +869,7 @@ Close Zamknij Close (Esc) Zamknij (Esc) Close All Zamknij wszystkie Close all panes Zamknij wszystkie panele -Close ModelBuilder Zamknij kreator modeli +Close Model Designer Zamknij projektanta modeli Close Others Zamknij pozostałe Close Table Zamknij tabelę Close table Zamknij tabelę @@ -2638,10 +2638,10 @@ Mod+X Mod+X Mod+Y Mod+Y Mod+Z Mod+Z Model Model -Model\nBuilder Kreator\nmodeli +Model\nDesigner Projektant\nmodeli model id id modelu Model output Wyjście modelu -ModelBuilder Kreator modeli +Model Designer Projektant modeli Models Modele Modified Mann–Kendall (Hamed & Rao) Zmodyfikowany test Manna-Kendalla (Hamed i Rao) Modified Mann–Kendall (Yue & Wang) Zmodyfikowany test Manna-Kendalla (Yue i Wang) @@ -3007,12 +3007,12 @@ Open data catalogues searched by text. Files are added by their address (read in Open data products on Source Cooperative. GeoParquet, FlatGeobuf, cloud-optimised GeoTIFFs and PMTiles are read in place; other files are downloaded. Otwórz produkty danych w Source Cooperative. Pliki GeoParquet, FlatGeobuf, GeoTIFF w chmurze (COG) i PMTiles są czytane w miejscu, inne pliki są pobierane. Open folder Otwórz folder Open In Geoprocessing… Otwórz w geoprzetwarzaniu… -Open in ModelBuilder Otwórz w kreatorze modeli +Open in Model Designer Otwórz w projektancie modeli Open in Script Pane Otwórz w panelu Skrypt Open in Tool Otwórz w narzędziu Open Layout Otwórz układ Open Messages Otwórz komunikaty -Open ModelBuilder Otwórz kreator modeli +Open Model Designer Otwórz projektanta modeli Open Notebook Otwórz notatnik Open Offline Map Otwórz mapę offline Open Presentation Otwórz prezentację diff --git a/crates/ui-egui/src/i18n/pt.tsv b/crates/ui-egui/src/i18n/pt.tsv index 05479bfb85..2c744025a5 100644 --- a/crates/ui-egui/src/i18n/pt.tsv +++ b/crates/ui-egui/src/i18n/pt.tsv @@ -869,7 +869,7 @@ Close Fechar Close (Esc) Fechar (Esc) Close All Fechar tudo Close all panes Fechar todos os painéis -Close ModelBuilder Fechar ModelBuilder +Close Model Designer Fechar o designer de modelos Close Others Fechar os outros Close Table Fechar tabela Close table Fechar tabela @@ -2638,10 +2638,10 @@ Mod+X Mod+X Mod+Y Mod+Y Mod+Z Mod+Z Model Modelo -Model\nBuilder Model\nBuilder +Model\nDesigner Designer\nde modelos model id id do modelo Model output Saída do modelo -ModelBuilder ModelBuilder +Model Designer Designer de modelos Models Modelos Modified Mann–Kendall (Hamed & Rao) Mann–Kendall modificado (Hamed & Rao) Modified Mann–Kendall (Yue & Wang) Mann–Kendall modificado (Yue & Wang) @@ -3007,12 +3007,12 @@ Open data catalogues searched by text. Files are added by their address (read in Open data products on Source Cooperative. GeoParquet, FlatGeobuf, cloud-optimised GeoTIFFs and PMTiles are read in place; other files are downloaded. Produtos de dados abertos no Source Cooperative. GeoParquet, FlatGeobuf, GeoTIFFs otimizados para nuvem e PMTiles são lidos no local; os demais arquivos são baixados. Open folder Abrir pasta Open In Geoprocessing… Abrir no Geoprocessamento… -Open in ModelBuilder Abrir no ModelBuilder +Open in Model Designer Abrir no designer de modelos Open in Script Pane Abrir no painel Script Open in Tool Abrir na ferramenta Open Layout Abrir layout Open Messages Abrir mensagens -Open ModelBuilder Abrir ModelBuilder +Open Model Designer Abrir o designer de modelos Open Notebook Abrir notebook Open Offline Map Abrir mapa offline Open Presentation Abrir apresentação diff --git a/crates/ui-egui/src/i18n/ru.tsv b/crates/ui-egui/src/i18n/ru.tsv index 265226ac95..ab47df7706 100644 --- a/crates/ui-egui/src/i18n/ru.tsv +++ b/crates/ui-egui/src/i18n/ru.tsv @@ -869,7 +869,7 @@ Close Закрыть Close (Esc) Закрыть (Esc) Close All Закрыть все Close all panes Закрыть все панели -Close ModelBuilder Закрыть ModelBuilder +Close Model Designer Закрыть дизайнер моделей Close Others Закрыть другие Close Table Закрыть таблицу Close table Закрыть таблицу @@ -2638,10 +2638,10 @@ Mod+X Mod+X Mod+Y Mod+Y Mod+Z Mod+Z Model Модель -Model\nBuilder Конструктор\nмоделей +Model\nDesigner Дизайнер\nмоделей model id идентификатор модели Model output Выход модели -ModelBuilder ModelBuilder +Model Designer Дизайнер моделей Models Модели Modified Mann–Kendall (Hamed & Rao) Модифицированный Манн–Кендалл (Hamed & Rao) Modified Mann–Kendall (Yue & Wang) Модифицированный Манн–Кендалл (Yue & Wang) @@ -3007,12 +3007,12 @@ Open data catalogues searched by text. Files are added by their address (read in Open data products on Source Cooperative. GeoParquet, FlatGeobuf, cloud-optimised GeoTIFFs and PMTiles are read in place; other files are downloaded. Продукты открытых данных на Source Cooperative. GeoParquet, FlatGeobuf, облачно-оптимизированные GeoTIFF и PMTiles читаются на месте; остальные файлы скачиваются. Open folder Открыть папку Open In Geoprocessing… Открыть в геообработке… -Open in ModelBuilder Открыть в ModelBuilder +Open in Model Designer Открыть в дизайнере моделей Open in Script Pane Открыть на панели скриптов Open in Tool Открыть в инструменте Open Layout Открыть макет Open Messages Открыть сообщения -Open ModelBuilder Открыть ModelBuilder +Open Model Designer Открыть дизайнер моделей Open Notebook Открыть блокнот Open Offline Map Открыть автономную карту Open Presentation Открыть презентацию diff --git a/crates/ui-egui/src/i18n/tr.tsv b/crates/ui-egui/src/i18n/tr.tsv index e8c0975af2..ab29bc2619 100644 --- a/crates/ui-egui/src/i18n/tr.tsv +++ b/crates/ui-egui/src/i18n/tr.tsv @@ -869,7 +869,7 @@ Close Kapat Close (Esc) Kapat (Esc) Close All Tümünü Kapat Close all panes Tüm panelleri kapat -Close ModelBuilder Model Oluşturucuyu Kapat +Close Model Designer Model Tasarımcısını Kapat Close Others Diğerlerini Kapat Close Table Tabloyu Kapat Close table Tabloyu kapat @@ -2638,10 +2638,10 @@ Mod+X Mod+X Mod+Y Mod+Y Mod+Z Mod+Z Model Model -Model\nBuilder Model\nOluşturucu +Model\nDesigner Model\nTasarımcısı model id model kimliği Model output Model çıktısı -ModelBuilder Model Oluşturucu +Model Designer Model Tasarımcısı Models Modeller Modified Mann–Kendall (Hamed & Rao) Değiştirilmiş Mann–Kendall (Hamed & Rao) Modified Mann–Kendall (Yue & Wang) Değiştirilmiş Mann–Kendall (Yue & Wang) @@ -3007,12 +3007,12 @@ Open data catalogues searched by text. Files are added by their address (read in Open data products on Source Cooperative. GeoParquet, FlatGeobuf, cloud-optimised GeoTIFFs and PMTiles are read in place; other files are downloaded. Source Cooperative'deki açık veri ürünleri. GeoParquet, FlatGeobuf, bulut için optimize edilmiş GeoTIFF'ler ve PMTiles yerinde okunur; diğer dosyalar indirilir. Open folder Klasörü aç Open In Geoprocessing… Coğrafi İşlemede Aç… -Open in ModelBuilder Model Oluşturucuda Aç +Open in Model Designer Model Tasarımcısında Aç Open in Script Pane Betik Bölmesinde Aç Open in Tool Araçta Aç Open Layout Sayfa Düzeni Aç Open Messages Mesajları Aç -Open ModelBuilder Model Oluşturucuyu Aç +Open Model Designer Model Tasarımcısını Aç Open Notebook Not Defteri Aç Open Offline Map Çevrimdışı Harita Aç Open Presentation Sunum Aç diff --git a/crates/ui-egui/src/i18n/vi.tsv b/crates/ui-egui/src/i18n/vi.tsv index b2e80b9b49..e2ae714f47 100644 --- a/crates/ui-egui/src/i18n/vi.tsv +++ b/crates/ui-egui/src/i18n/vi.tsv @@ -869,7 +869,7 @@ Close Đóng Close (Esc) Đóng (Esc) Close All Đóng tất cả Close all panes Đóng tất cả các ngăn -Close ModelBuilder Đóng ModelBuilder +Close Model Designer Đóng Trình thiết kế mô hình Close Others Đóng các mục khác Close Table Đóng bảng Close table Đóng bảng @@ -2638,10 +2638,10 @@ Mod+X Mod+X Mod+Y Mod+Y Mod+Z Mod+Z Model Mô hình -Model\nBuilder Trình dựng\nmô hình +Model\nDesigner Trình thiết kế\nmô hình model id mã mô hình Model output Đầu ra mô hình -ModelBuilder ModelBuilder +Model Designer Trình thiết kế mô hình Models Mô hình Modified Mann–Kendall (Hamed & Rao) Mann–Kendall hiệu chỉnh (Hamed & Rao) Modified Mann–Kendall (Yue & Wang) Mann–Kendall hiệu chỉnh (Yue & Wang) @@ -3007,12 +3007,12 @@ Open data catalogues searched by text. Files are added by their address (read in Open data products on Source Cooperative. GeoParquet, FlatGeobuf, cloud-optimised GeoTIFFs and PMTiles are read in place; other files are downloaded. Các sản phẩm dữ liệu mở trên Source Cooperative. GeoParquet, FlatGeobuf, GeoTIFF tối ưu cho đám mây và PMTiles được đọc tại chỗ; các tệp khác được tải xuống. Open folder Mở thư mục Open In Geoprocessing… Mở trong Xử lý không gian… -Open in ModelBuilder Mở trong ModelBuilder +Open in Model Designer Mở trong Trình thiết kế mô hình Open in Script Pane Mở trong khung Script Open in Tool Mở trong công cụ Open Layout Mở bố cục Open Messages Mở Tin nhắn -Open ModelBuilder Mở ModelBuilder +Open Model Designer Mở Trình thiết kế mô hình Open Notebook Mở sổ tay Open Offline Map Mở bản đồ ngoại tuyến Open Presentation Mở bản trình bày diff --git a/crates/ui-egui/src/i18n/zh-tw.tsv b/crates/ui-egui/src/i18n/zh-tw.tsv index 2e5729bf5a..90c5064915 100644 --- a/crates/ui-egui/src/i18n/zh-tw.tsv +++ b/crates/ui-egui/src/i18n/zh-tw.tsv @@ -883,7 +883,7 @@ Close 關閉 Close (Esc) 關閉 (Esc) Close All 全部關閉 Close all panes 關閉所有窗格 -Close ModelBuilder 關閉模型建置器 +Close Model Designer 關閉模型設計器 Close Others 關閉其他 Close Table 關閉資料表 Close table 關閉資料表 @@ -2676,10 +2676,10 @@ Mod+X Mod+X Mod+Y Mod+Y Mod+Z Mod+Z Model 模型 -Model\nBuilder 模型\n建置器 +Model\nDesigner 模型\n設計器 model id 模型 ID Model output 模型輸出 -ModelBuilder 模型建置器 +Model Designer 模型設計器 Models 模型 Modified Mann–Kendall (Hamed & Rao) 修正 Mann–Kendall(Hamed & Rao) Modified Mann–Kendall (Yue & Wang) 修正 Mann–Kendall(Yue & Wang) @@ -3050,12 +3050,12 @@ Open data catalogues searched by text. Files are added by their address (read in Open data products on Source Cooperative. GeoParquet, FlatGeobuf, cloud-optimised GeoTIFFs and PMTiles are read in place; other files are downloaded. Source Cooperative 上的開放資料產品。GeoParquet、FlatGeobuf、雲端最佳化 GeoTIFF 和 PMTiles 就地讀取;其他檔案則下載。 Open folder 開啟資料夾 Open In Geoprocessing… 在地理處理中開啟… -Open in ModelBuilder 在模型建置器中開啟 +Open in Model Designer 在模型設計器中開啟 Open in Script Pane 在指令碼窗格中開啟 Open in Tool 在工具中開啟 Open Layout 開啟圖面配置 Open Messages 開啟訊息 -Open ModelBuilder 開啟模型建置器 +Open Model Designer 開啟模型設計器 Open Notebook 開啟筆記本 Open Offline Map 開啟離線地圖 Open Presentation 開啟簡報 diff --git a/crates/ui-egui/src/i18n/zh.tsv b/crates/ui-egui/src/i18n/zh.tsv index 3d2066d838..08a6fb91ff 100644 --- a/crates/ui-egui/src/i18n/zh.tsv +++ b/crates/ui-egui/src/i18n/zh.tsv @@ -899,7 +899,7 @@ Close 关闭 Close (Esc) 关闭 (Esc) Close All 全部关闭 Close all panes 关闭所有窗格 -Close ModelBuilder 关闭模型构建器 +Close Model Designer 关闭模型设计器 Close Others 关闭其他 Close Table 关闭表 Close table 关闭表 @@ -2714,10 +2714,10 @@ Mod+X Mod+X Mod+Y Mod+Y Mod+Z Mod+Z Model 模型 -Model\nBuilder 模型\n构建器 +Model\nDesigner 模型\n设计器 model id 模型 ID Model output 模型输出 -ModelBuilder 模型构建器 +Model Designer 模型设计器 Models 模型 Modified Mann–Kendall (Hamed & Rao) 修正 Mann–Kendall(Hamed & Rao) Modified Mann–Kendall (Yue & Wang) 修正 Mann–Kendall(Yue & Wang) @@ -3094,12 +3094,12 @@ Open data catalogues searched by text. Files are added by their address (read in Open data products on Source Cooperative. GeoParquet, FlatGeobuf, cloud-optimised GeoTIFFs and PMTiles are read in place; other files are downloaded. Source Cooperative 上的开放数据产品。GeoParquet、FlatGeobuf、云优化 GeoTIFF 和 PMTiles 就地读取;其他文件则下载。 Open folder 打开文件夹 Open In Geoprocessing… 在地理处理中打开… -Open in ModelBuilder 在模型构建器中打开 +Open in Model Designer 在模型设计器中打开 Open in Script Pane 在脚本窗格中打开 Open in Tool 在工具中打开 Open Layout 打开布局 Open Messages 打开消息 -Open ModelBuilder 打开模型构建器 +Open Model Designer 打开模型设计器 Open Notebook 打开笔记本 Open Offline Map 打开离线地图 Open Presentation 打开演示文稿 diff --git a/crates/ui-egui/src/inuse.rs b/crates/ui-egui/src/inuse.rs index f6189780a7..54cf48d291 100644 --- a/crates/ui-egui/src/inuse.rs +++ b/crates/ui-egui/src/inuse.rs @@ -14,7 +14,7 @@ use crate::{LeftPane, RustGisApp}; /// A part of the window a key can act on. #[derive(Clone, Copy, Debug, Default, PartialEq, Eq)] pub enum Pane { - /// The map, layout or ModelBuilder canvas in view. Also before anything was pressed, and in a + /// The map, layout or Model Designer canvas in view. Also before anything was pressed, and in a /// shell that draws its own interface: the keys act as they do on the map. #[default] View, diff --git a/crates/ui-egui/src/keymap.rs b/crates/ui-egui/src/keymap.rs index 849decbe85..46d135eee7 100644 --- a/crates/ui-egui/src/keymap.rs +++ b/crates/ui-egui/src/keymap.rs @@ -77,6 +77,8 @@ pub const MAP_TOOLS: &[(&str, &str)] = &[ const UI_LABELS: &[(&str, &str)] = &[ ("ui.commandSearch", "Command Search"), ("ui.convertShape", "Convert Polygon to Shape…"), + ("ui.modelBuilder", "Model Designer"), + ("ui.modelDesigner", "Model Designer"), ("ui.open", "Open Project…"), ("ui.save", "Save Project"), ("ui.saveAs", "Save Project As…"), diff --git a/crates/ui-egui/src/layoutview/format.rs b/crates/ui-egui/src/layoutview/format.rs index d90cc6e525..0ada45cd42 100644 --- a/crates/ui-egui/src/layoutview/format.rs +++ b/crates/ui-egui/src/layoutview/format.rs @@ -230,7 +230,7 @@ pub(super) fn outline_rows( } /// The Format pane (#516): the selected layout element's properties, while its layout is on -/// screen. On the map (no layout open) or under the Model Builder, it waits for a selection. +/// screen. On the map (no layout open) or under Model Designer, it waits for a selection. pub fn format(app: &mut RustGisApp, ui: &mut Ui, t: &Tokens) { let on_screen = app.session.active_layout.filter(|_| !app.mb.shown()); let layout = on_screen.and_then(|li| Some((li, shown_layout(app, li)?))); diff --git a/crates/ui-egui/src/layoutview/tests.rs b/crates/ui-egui/src/layoutview/tests.rs index a64f5eb930..3a4f14c31a 100644 --- a/crates/ui-egui/src/layoutview/tests.rs +++ b/crates/ui-egui/src/layoutview/tests.rs @@ -3650,11 +3650,11 @@ fn a_selected_element_is_formatted_in_its_pane() { assert_eq!(h.state().layout.selected, ids.get(1).copied()); h.state_mut().run("ui.pane.format", json!({})).unwrap(); h.run_steps(2); - // The layout out of sight, under the Model Builder or for the map: nothing to edit. + // The layout out of sight, under Model Designer or for the map: nothing to edit. let hint = |h: &egui_kittest::Harness<'_, RustGisApp>| h.query_by_label("Select an element to format it.").is_some(); (h.state_mut().mb.open, h.state_mut().mb.active) = (true, true); h.run_steps(2); - assert!(hint(&h), "under the Model Builder"); + assert!(hint(&h), "under Model Designer"); (h.state_mut().mb.open, h.state_mut().mb.active) = (false, false); h.run_steps(2); assert!(!hint(&h)); diff --git a/crates/ui-egui/src/lib.rs b/crates/ui-egui/src/lib.rs index 30133aec89..679c3f18b0 100644 --- a/crates/ui-egui/src/lib.rs +++ b/crates/ui-egui/src/lib.rs @@ -79,7 +79,7 @@ mod markerpick; pub use markerpick::{MarkerImage, marker_file_too_large}; mod matchcount; mod measure_units; -mod modelbuilder; +mod modeldesigner; mod navui; mod nldiui; mod opendataui; @@ -257,7 +257,7 @@ pub const PROJECT_EXTS: &[&str] = &["rgis", "rgisx", "rgispkg", "rgisfield", "qg pub const GEOLIBRE_EXTS: &[&str] = &["geolibre", "json"]; /// Extensions offered when opening a project item in the browser (`purpose == "item"`), kept in -/// sync with [`OPEN_ITEMS`], `ui.reportLayoutFile`, and ModelBuilder's import picker. +/// sync with [`OPEN_ITEMS`], `ui.reportLayoutFile`, and Model Designer's import picker. pub const ITEM_EXTS: &[&str] = &[ "rgismap", "rgismpk", @@ -1640,8 +1640,8 @@ pub struct RustGisApp { /// Which layers hold edits their file lacks, for the Layers pane. #[cfg(not(target_arch = "wasm32"))] syncmark: syncmark::Marks, - /// ModelBuilder's view: the model on its canvas. - pub mb: modelbuilder::ModelBuilder, + /// Model Designer's view: the model on its canvas. + pub mb: modeldesigner::ModelDesigner, pub ws: workspacepanes::WorkspaceState, /// The time slider bar. pub time: timebar::TimeBarState, @@ -2007,7 +2007,7 @@ impl RustGisApp { diskwatch: diskwatch::Watch::default(), #[cfg(not(target_arch = "wasm32"))] syncmark: syncmark::Marks::default(), - mb: modelbuilder::ModelBuilder::default(), + mb: modeldesigner::ModelDesigner::default(), ws: workspacepanes::WorkspaceState::default(), time: timebar::TimeBarState::default(), plugins: pluginsui::PluginsState::default(), @@ -2961,11 +2961,11 @@ impl RustGisApp { } let r = self.run_by_user(cmd, p); self.map.invalidate(); - // A model file opens in ModelBuilder. + // A model file opens in Model Designer. if cmd == "model.import" && let Ok(v) = &r { - modelbuilder::imported(self, v); + modeldesigner::imported(self, v); } return r; } @@ -5826,8 +5826,9 @@ impl RustGisApp { return self.run("presentation.export", json!({"presentation": i, "path": path})); } } - "ui.modelBuilder" => modelbuilder::command(self, p)?, - "ui.importModel" => modelbuilder::import(self), + // `ui.modelBuilder` is its old id, which scripts may still call. + "ui.modelDesigner" | "ui.modelBuilder" => modeldesigner::command(self, p)?, + "ui.importModel" => modeldesigner::import(self), "ui.catalogView" => self.ws.catalog_view = p.get("on").and_then(Value::as_bool).unwrap_or(!self.ws.catalog_view), "ui.itemPopups" => self.ws.item_popups = p.get("on").and_then(Value::as_bool).unwrap_or(!self.ws.item_popups), "ui.linkCursors" => self.ws.link_cursors = p.get("on").and_then(Value::as_bool).unwrap_or(!self.ws.link_cursors), @@ -11402,7 +11403,7 @@ mod peer_output_tests { _ => {} } } - for ext in std::iter::once(&"rgislayout").chain(modelbuilder::MODEL_EXTS.iter()) { + for ext in std::iter::once(&"rgislayout").chain(modeldesigner::MODEL_EXTS.iter()) { assert!(ITEM_EXTS.contains(ext), "ITEM_EXTS is missing .{ext}"); } } diff --git a/crates/ui-egui/src/mapview.rs b/crates/ui-egui/src/mapview.rs index 444cc7005e..9d332371c1 100644 --- a/crates/ui-egui/src/mapview.rs +++ b/crates/ui-egui/src/mapview.rs @@ -867,7 +867,7 @@ pub fn show(app: &mut RustGisApp, ui: &mut Ui) { app.map.pictures.forget_if_cleared(rustgis_engine::render::rustgis_tiles::cache::clears()); app.map.follow_project(app.session.opened); let t = Tokens::get(ui.ctx()); - crate::modelbuilder::follow_view(app); + crate::modeldesigner::follow_view(app); // A shell with its own interface (the touch interface) switches views itself. if app.chrome.is_none() { view_tabs(app, ui, &t); @@ -876,7 +876,7 @@ pub fn show(app: &mut RustGisApp, ui: &mut Ui) { crate::vertexedit::cancel_stale_drag(app); crate::vertexedit::say_unplaced(app); if app.mb.shown() { - crate::modelbuilder::show(app, ui); + crate::modeldesigner::show(app, ui); return; } if app.session.active_layout.is_some() { @@ -4872,7 +4872,7 @@ fn navigator(app: &mut RustGisApp, ui: &mut Ui, p: &egui::Painter, rect: Rect, t /// Width of the New Map button after the view tabs. const NEW_TAB_W: f32 = 22.0; -/// ModelBuilder's view tab, while it is open: its model's name. +/// Model Designer's view tab, while it is open: its model's name. fn model_tab_name(app: &RustGisApp) -> Option { app.mb.open.then(|| if app.mb.name.trim().is_empty() { tl!("Untitled model").to_string() } else { app.mb.name.trim().to_string() }) } @@ -4949,7 +4949,7 @@ fn view_tabs(app: &mut RustGisApp, ui: &mut Ui, t: &Tokens) { } } -/// The view tabs in a row: maps, layouts, then ModelBuilder. The one in view scrolls into sight +/// The view tabs in a row: maps, layouts, then Model Designer. The one in view scrolls into sight /// while `follow` says so. The map or layout whose close button was clicked, to confirm. fn view_tab_row(app: &mut RustGisApp, ui: &mut Ui, t: &Tokens, follow: bool) -> Option { let names: Vec = app.session.project.maps.iter().map(|m| m.name.clone()).collect(); @@ -5056,7 +5056,7 @@ fn view_tab_row(app: &mut RustGisApp, ui: &mut Ui, t: &Tokens, follow: bool) -> } resp.context_menu(|ui| crate::panes::layout_menu(app, ui, n)); } - // ModelBuilder, after the layouts. + // Model Designer, after the layouts. if let Some(n) = model_tab_name(app) { let tr = alloc_view_tab(ui, view_tab_w(ui, &n)); let resp = ui.interact(tr, egui::Id::unique("modeltab"), Sense::click()); @@ -5089,11 +5089,11 @@ fn view_tab_row(app: &mut RustGisApp, ui: &mut Ui, t: &Tokens, follow: bool) -> if is { semibold(12.0) } else { regular(12.0) }, if is { t.text } else { t.text_dim }, ); - if tab_close(ui, t, tr, egui::Id::unique("modeltab_close"), is, true, tl!("Close ModelBuilder")) { - let _ = app.run("ui.modelBuilder", json!({"close": true})); + if tab_close(ui, t, tr, egui::Id::unique("modeltab_close"), is, true, tl!("Close Model Designer")) { + let _ = app.run("ui.modelDesigner", json!({"close": true})); } if resp.clicked() && !is { - let _ = app.run("ui.modelBuilder", Value::Null); + let _ = app.run("ui.modelDesigner", Value::Null); } } let layout = egui::DragAndDrop::payload::(ui.ctx()).is_some_and(|d| d.layout); diff --git a/crates/ui-egui/src/modelbuilder.rs b/crates/ui-egui/src/modeldesigner.rs similarity index 97% rename from crates/ui-egui/src/modelbuilder.rs rename to crates/ui-egui/src/modeldesigner.rs index 08888fd414..c471fbc836 100644 --- a/crates/ui-egui/src/modelbuilder.rs +++ b/crates/ui-egui/src/modeldesigner.rs @@ -1,4 +1,4 @@ -//! ModelBuilder: models drawn as graphs, in a view of their own beside the maps and layouts. +//! Model Designer: models drawn as graphs, in a view of their own beside the maps and layouts. //! //! A tool palette on the left (drag a tool onto the canvas, or click it), the canvas in the //! middle (input layers, tools and outputs joined by wires drawn from an output port to an input @@ -54,12 +54,12 @@ pub enum LogKind { } #[derive(Default)] -pub struct ModelBuilder { +pub struct ModelDesigner { /// The view's tab is in the tab strip. pub open: bool, /// The view is shown (rather than a map or a layout). pub active: bool, - /// The map and layout in view when ModelBuilder was shown: another one coming into view + /// The map and layout in view when Model Designer was shown: another one coming into view /// (a command, the ribbon) hides it. view_key: (usize, Option), /// The model's name in the name box. @@ -109,8 +109,8 @@ enum Pending { Close, } -impl ModelBuilder { - /// Whether ModelBuilder is in view. +impl ModelDesigner { + /// Whether Model Designer is in view. pub fn shown(&self) -> bool { self.open && self.active } @@ -311,7 +311,7 @@ fn kind_color(kind: ModelNodeKind, t: &Tokens) -> Color32 { } } -/// `ui.modelBuilder`: `{"name"?: model}` opens ModelBuilder (on that model); `{"close": true}` +/// `ui.modelDesigner`: `{"name"?: model}` opens Model Designer (on that model); `{"close": true}` /// closes it, asking first about unsaved changes. pub fn command(app: &mut RustGisApp, p: &Value) -> Result<(), String> { if p.get("close").and_then(Value::as_bool) == Some(true) { @@ -323,7 +323,7 @@ pub fn command(app: &mut RustGisApp, p: &Value) -> Result<(), String> { open(app, p.get("name").and_then(Value::as_str)) } -/// Opens ModelBuilder: on the model named (asking first if the canvas has unsaved changes), or +/// Opens Model Designer: on the model named (asking first if the canvas has unsaved changes), or /// as it was left. pub fn open(app: &mut RustGisApp, name: Option<&str>) -> Result<(), String> { forget_old_project(app); @@ -349,7 +349,7 @@ pub fn open(app: &mut RustGisApp, name: Option<&str>) -> Result<(), String> { Ok(()) } -/// Brings ModelBuilder into view. +/// Brings Model Designer into view. fn show_view(app: &mut RustGisApp) { app.mb.active = true; app.mb.view_key = (app.session.project.active_map, app.session.active_layout); @@ -594,7 +594,7 @@ fn request(app: &mut RustGisApp, p: Pending) { } } -/// ModelBuilder's keys, before the app's own: Delete (or Backspace) deletes the selection, +/// Model Designer's keys, before the app's own: Delete (or Backspace) deletes the selection, /// Ctrl+D duplicates the selected node, Ctrl+Z and Ctrl+Y undo and redo canvas edits. With the /// layer list in use, Delete and Backspace are left for it. pub fn shortcuts(app: &mut RustGisApp, ctx: &egui::Context) { @@ -774,7 +774,7 @@ fn toolbar(app: &mut RustGisApp, ui: &mut Ui, t: &Tokens, problems: &[model::Pro } }); ui.with_layout(egui::Layout::right_to_left(egui::Align::Center), |ui| { - if crate::widgets::icon_button(ui, "close", tl!("Close ModelBuilder")).clicked() { + if crate::widgets::icon_button(ui, "close", tl!("Close Model Designer")).clicked() { request(app, Pending::Close); } if crate::widgets::icon_button(ui, "map", tl!("Back to the map")).clicked() { @@ -1236,7 +1236,7 @@ fn canvas_ui(app: &mut RustGisApp, ui: &mut Ui, rect: Rect, t: &Tokens, problems }); } -fn zoom_about(mb: &mut ModelBuilder, rect: Rect, f: f32) { +fn zoom_about(mb: &mut ModelDesigner, rect: Rect, f: f32) { let view = View { origin: rect.min, pan: mb.pan, zoom: mb.zoom }; let c = view.to_graph(rect.center()); mb.zoom = (mb.zoom * f).clamp(0.25, 2.5); @@ -1244,7 +1244,7 @@ fn zoom_about(mb: &mut ModelBuilder, rect: Rect, f: f32) { } /// Fits the whole graph into the canvas (no closer than 100%). -fn fit(mb: &mut ModelBuilder, rect: Rect) { +fn fit(mb: &mut ModelDesigner, rect: Rect) { let Some(bounds) = mb.graph.nodes.iter().map(node_rect).reduce(|a, b| a.union(b)) else { mb.zoom = 1.0; mb.pan = Vec2::ZERO; @@ -1335,7 +1335,7 @@ fn paint_node( } /// Adds an output for a tool's result, to its right, named after the tool. -fn keep_result(mb: &mut ModelBuilder, id: &str) { +fn keep_result(mb: &mut ModelDesigner, id: &str) { let Some(n) = mb.graph.nodes.iter().find(|n| n.id == id).cloned() else { return }; let kept = mb.graph.edges.iter().any(|e| e.from == id && mb.graph.nodes.iter().any(|m| m.id == e.to && m.kind == ModelNodeKind::Output)); @@ -1861,7 +1861,7 @@ fn confirm(app: &mut RustGisApp, ctx: &egui::Context) { fn forget_old_project(app: &mut RustGisApp) { if app.mb.project != app.session.project_starts { // The runs still to land stay, so each one's landing is still matched with its own. - app.mb = ModelBuilder { + app.mb = ModelDesigner { project: app.session.project_starts, search: std::mem::take(&mut app.mb.search), running: std::mem::take(&mut app.mb.running), @@ -1870,7 +1870,7 @@ fn forget_old_project(app: &mut RustGisApp) { } } -/// Hides ModelBuilder when another map or layout came into view, and closes it when another +/// Hides Model Designer when another map or layout came into view, and closes it when another /// project was opened. pub fn follow_view(app: &mut RustGisApp) { forget_old_project(app); @@ -1907,7 +1907,7 @@ mod tests { #[test] fn a_model_drawn_on_the_canvas_runs_and_saves() { let mut app = RustGisApp::with_sample(); - app.run("ui.modelBuilder", Value::Null).unwrap(); + app.run("ui.modelDesigner", Value::Null).unwrap(); assert!(app.mb.shown()); let input = app.mb.add(&Add::Input, pos2(0.0, 0.0)); app.mb.graph.nodes.iter_mut().find(|n| n.id == input).unwrap().layer = Some("Cities".into()); @@ -1979,10 +1979,10 @@ mod tests { assert_eq!(m.steps.len(), 2); } - /// ModelBuilder over the sample project, settled, with its palette on the left. + /// Model Designer over the sample project, settled, with its palette on the left. fn palette_harness() -> egui_kittest::Harness<'static, RustGisApp> { let mut app = RustGisApp::with_sample(); - app.run("ui.modelBuilder", Value::Null).unwrap(); + app.run("ui.modelDesigner", Value::Null).unwrap(); let mut h = harness(app); h.run_steps(6); h @@ -2097,11 +2097,11 @@ mod tests { } /// Delete removes the selected node with its wires, Ctrl+Z brings both back, Ctrl+D copies - /// it; a map tab clicked (or a map activated) hides ModelBuilder, its tab shows it again. + /// it; a map tab clicked (or a map activated) hides Model Designer, its tab shows it again. #[test] fn keys_edit_the_canvas_and_tabs_switch_views() { let mut app = RustGisApp::with_sample(); - app.run("ui.modelBuilder", Value::Null).unwrap(); + app.run("ui.modelDesigner", Value::Null).unwrap(); let a = app.mb.add(&Add::Input, pos2(0.0, 0.0)); let b = app.mb.add(&Add::Tool("buffer"), pos2(220.0, 0.0)); app.mb.connect(&a, &b, "input", false).unwrap(); @@ -2132,7 +2132,7 @@ mod tests { h.run_steps(2); assert!(!h.state().mb.shown(), "another map came into view"); assert!(h.state().mb.open, "the tab stays"); - h.state_mut().run("ui.modelBuilder", Value::Null).unwrap(); + h.state_mut().run("ui.modelDesigner", Value::Null).unwrap(); h.run_steps(2); assert!(h.state().mb.shown()); assert_eq!(h.state().mb.graph.nodes.len(), 3, "the canvas is kept"); @@ -2146,7 +2146,7 @@ mod tests { let mut app = RustGisApp::with_sample(); app.ui.right_open.clear(); app.ui.right = None; - app.run("ui.modelBuilder", Value::Null).unwrap(); + app.run("ui.modelDesigner", Value::Null).unwrap(); let node = app.mb.add(&Add::Input, pos2(0.0, 0.0)); app.mb.selected = Some(node); let layers = app.session.map().layers.len(); @@ -2187,24 +2187,38 @@ mod tests { assert_eq!(h.state().session.map().layers.len(), layers - 1); } + /// The old id, `ui.modelBuilder`, opens and closes Model Designer, and a key bound to either id + /// shows its name. + #[test] + fn the_old_command_id_still_works() { + let mut app = RustGisApp::with_sample(); + app.run("ui.modelBuilder", Value::Null).unwrap(); + assert!(app.mb.shown()); + app.run("ui.modelBuilder", json!({"close": true})).unwrap(); + assert!(!app.mb.open); + for id in ["ui.modelDesigner", "ui.modelBuilder"] { + assert_eq!(crate::keymap::label(&app, id, &Value::Null), "Model Designer"); + } + } + /// Closing with unsaved changes asks first; Discard closes, Cancel keeps the model open. #[test] fn closing_asks_about_unsaved_changes() { let mut app = RustGisApp::with_sample(); - app.run("ui.modelBuilder", Value::Null).unwrap(); + app.run("ui.modelDesigner", Value::Null).unwrap(); app.mb.add(&Add::Tool("buffer"), pos2(0.0, 0.0)); - app.run("ui.modelBuilder", json!({"close": true})).unwrap(); + app.run("ui.modelDesigner", json!({"close": true})).unwrap(); assert!(app.mb.open && app.mb.confirm.is_some()); app.mb.confirm = None; proceed(&mut app, Pending::Close); assert!(!app.mb.open && !app.mb.shown()); } - /// Opening another project closes ModelBuilder and drops its canvas. + /// Opening another project closes Model Designer and drops its canvas. #[test] fn another_project_drops_the_canvas() { let mut app = RustGisApp::with_sample(); - app.run("ui.modelBuilder", Value::Null).unwrap(); + app.run("ui.modelDesigner", Value::Null).unwrap(); app.mb.add(&Add::Tool("buffer"), pos2(0.0, 0.0)); app.mb.saved_as = Some("Old".into()); // A run under way when the project changes still lands after the reset. @@ -2246,7 +2260,7 @@ mod tests { ) .unwrap(); app.session.project.models.last_mut().unwrap().graph = None; - app.run("ui.modelBuilder", json!({"name": "Old"})).unwrap(); + app.run("ui.modelDesigner", json!({"name": "Old"})).unwrap(); assert_eq!(app.mb.graph.nodes.len(), 3); assert_eq!(app.mb.graph.edges.len(), 2); assert!(!app.mb.imported); @@ -2258,13 +2272,13 @@ mod tests { fn oversized_step_models_do_not_replace_the_canvas() { let mut app = RustGisApp::with_sample(); app.run("model.new", json!({"name": "Keep", "steps": [{"tool": "buffer", "params": {"input": "Cities"}}]})).unwrap(); - app.run("ui.modelBuilder", json!({"name": "Keep"})).unwrap(); + app.run("ui.modelDesigner", json!({"name": "Keep"})).unwrap(); let graph = app.mb.graph.clone(); let steps = vec![json!({"tool": "buffer", "params": {}}); 1001]; app.run("model.new", json!({"name": "Large", "steps": steps})).unwrap(); let models = app.session.project.models.clone(); - let error = app.run("ui.modelBuilder", json!({"name": "Large"})).unwrap_err(); + let error = app.run("ui.modelDesigner", json!({"name": "Large"})).unwrap_err(); assert!(error.contains("1001 steps") && error.contains("at most 1000"), "{error}"); for route in 0..2 { app.session.notices.clear(); @@ -2281,7 +2295,7 @@ mod tests { // With unsaved changes, it is refused before the user is asked to discard them. app.mb.name = "Keep edited".into(); assert!(app.mb.dirty()); - let error = app.run("ui.modelBuilder", json!({"name": "Large"})).unwrap_err(); + let error = app.run("ui.modelDesigner", json!({"name": "Large"})).unwrap_err(); assert!(error.contains("1001 steps"), "{error}"); assert!(app.mb.confirm.is_none(), "no discard prompt for a model that can't be opened"); } diff --git a/crates/ui-egui/src/readjob.rs b/crates/ui-egui/src/readjob.rs index bed6c31085..029e060a3c 100644 --- a/crates/ui-egui/src/readjob.rs +++ b/crates/ui-egui/src/readjob.rs @@ -90,7 +90,7 @@ struct Asked { relay: Option, } -/// What a caller does once the command lands (ModelBuilder shows its run). +/// What a caller does once the command lands (Model Designer shows its run). pub type Then = fn(&mut RustGisApp, Landed); #[derive(Clone, Copy)] diff --git a/crates/ui-egui/src/ribbon.rs b/crates/ui-egui/src/ribbon.rs index 4d0b65bcdb..ae1a89940e 100644 --- a/crates/ui-egui/src/ribbon.rs +++ b/crates/ui-egui/src/ribbon.rs @@ -1817,9 +1817,9 @@ fn analysis_groups(app: &mut RustGisApp, ui: &mut Ui) { ui, app, "modelbuilder", - "Model\nBuilder", + "Model\nDesigner", "Draw a model: chain tools from input layers to the results to keep.", - "ui.modelBuilder", + "ui.modelDesigner", Value::Null, app.mb.shown(), false, diff --git a/crates/ui-egui/src/workspacepanes.rs b/crates/ui-egui/src/workspacepanes.rs index 721ac3c47e..43a8047935 100644 --- a/crates/ui-egui/src/workspacepanes.rs +++ b/crates/ui-egui/src/workspacepanes.rs @@ -1077,7 +1077,7 @@ pub fn catalog_view(app: &mut RustGisApp, ui: &mut Ui, t: &Tokens) { items.push(("run", tk.name.clone(), "Task", None)); } for m in &p.models { - items.push(("modelbuilder", m.name.clone(), "Model", Some(json!({"cmd": "ui.modelBuilder", "name": m.name})))); + items.push(("modelbuilder", m.name.clone(), "Model", Some(json!({"cmd": "ui.modelDesigner", "name": m.name})))); } for f in &p.folders { items.push(("add_folder", f.clone(), "Folder", None)); diff --git a/crates/ui-egui/tests/integration/tool_field_lists.rs b/crates/ui-egui/tests/integration/tool_field_lists.rs index d4bd3b86a0..feb8e03d29 100644 --- a/crates/ui-egui/tests/integration/tool_field_lists.rs +++ b/crates/ui-egui/tests/integration/tool_field_lists.rs @@ -143,7 +143,7 @@ fn model_lists_accept_future_fields_and_undo_the_edit() { use rustgis_engine::project::{ModelNode, ModelNodeKind}; let mut h = harness("summaryStatistics", json!({})); h.state_mut().run("ui.pane.geoprocessing", json!({})).unwrap(); - h.state_mut().run("ui.modelBuilder", json!({})).unwrap(); + h.state_mut().run("ui.modelDesigner", json!({})).unwrap(); h.state_mut().mb.graph.nodes.push(ModelNode { id: "summary".into(), kind: ModelNodeKind::Tool, @@ -166,7 +166,7 @@ fn model_lists_accept_future_fields_and_undo_the_edit() { h.get_by_role_and_label(egui::accesskit::Role::Button, "Remove").click(); h.run_steps(3); assert_eq!(h.state().mb.graph.nodes[0].params["statistics"], json!([])); - // ModelBuilder owns its undo stack; the actual shortcut must restore the list. + // Model Designer owns its undo stack; the actual shortcut must restore the list. h.event(egui::Event::Key { key: egui::Key::Z, physical_key: None, pressed: true, repeat: false, modifiers: egui::Modifiers::COMMAND }); h.run_steps(3); assert_eq!(h.state().mb.graph.nodes[0].params["statistics"], json!([{"field":"future_amount","statistic":"P90"}])); @@ -204,7 +204,7 @@ fn model_merge_fields_follow_the_wired_join_input() { use rustgis_engine::project::{ModelEdge, ModelNode, ModelNodeKind}; let mut h = harness("spatialJoin", json!({})); h.state_mut().run("ui.pane.geoprocessing", json!({})).unwrap(); - h.state_mut().run("ui.modelBuilder", json!({})).unwrap(); + h.state_mut().run("ui.modelDesigner", json!({})).unwrap(); h.state_mut().mb.graph.nodes.extend([ ModelNode { id: "rows".into(), kind: ModelNodeKind::Input, layer: Some("Records".into()), ..Default::default() }, ModelNode { @@ -324,7 +324,7 @@ fn model_typed_statistic_runs_on_an_unrun_tools_new_field() { .dataset .push(Some(Geometry::Point(Coord::new(10.0, 20.0))), vec![Value::Text("point".into())]); h.state_mut().run("ui.pane.geoprocessing", json!({})).unwrap(); - h.state_mut().run("ui.modelBuilder", json!({})).unwrap(); + h.state_mut().run("ui.modelDesigner", json!({})).unwrap(); h.state_mut().mb.graph.nodes.extend([ ModelNode { id: "producer".into(), @@ -376,7 +376,7 @@ fn model_numeric_table_input_filters_statistics_by_its_own_fields() { vec![Field::new("wrong_layer_field", FieldType::Double)], )); h.state_mut().run("ui.pane.geoprocessing", json!({})).unwrap(); - h.state_mut().run("ui.modelBuilder", json!({})).unwrap(); + h.state_mut().run("ui.modelDesigner", json!({})).unwrap(); h.state_mut().mb.graph.nodes.push(ModelNode { id: "summary".into(), kind: ModelNodeKind::Tool, diff --git a/crates/ui-egui/tests/smoke.rs b/crates/ui-egui/tests/smoke.rs index e4f4e41d33..8237766b5c 100644 --- a/crates/ui-egui/tests/smoke.rs +++ b/crates/ui-egui/tests/smoke.rs @@ -1586,13 +1586,13 @@ fn the_active_view_tab_scrolls_into_view_however_it_is_activated() { h.state_mut().run("layout.activate", json!({"name": "Tab Layout 2"})).unwrap(); settle(&mut h); assert!(view_tab_in_sight(&h, "Tab Layout 2")); - // ModelBuilder's tab, after the layouts. + // Model Designer's tab, after the layouts. activate_world(&mut h); - h.state_mut().run("ui.modelBuilder", json!(null)).unwrap(); + h.state_mut().run("ui.modelDesigner", json!(null)).unwrap(); settle(&mut h); let model = h.state().mb.name.trim().to_string(); - assert!(!model.is_empty() && view_tab_in_sight(&h, &model), "ModelBuilder's tab {model:?}"); - h.state_mut().run("ui.modelBuilder", json!({"close": true})).unwrap(); + assert!(!model.is_empty() && view_tab_in_sight(&h, &model), "Model Designer's tab {model:?}"); + h.state_mut().run("ui.modelDesigner", json!({"close": true})).unwrap(); // A new map, and a copy of one, come into view. activate_world(&mut h); h.state_mut().run("map.new", json!({"name": "Tab Map 10"})).unwrap(); @@ -1716,7 +1716,7 @@ fn layout_names(h: &egui_kittest::Harness<'_, RustGisApp>) -> Vec { } /// Dragging a map or layout tab to another place changes the project's order in one undo step; -/// maps stay among maps and layouts among layouts, ModelBuilder's tab doesn't move, and a click +/// maps stay among maps and layouts among layouts, Model Designer's tab doesn't move, and a click /// still opens a tab (#2802). #[test] fn dragging_a_view_tab_reorders_maps_or_layouts_in_one_undo_step() { @@ -1762,8 +1762,8 @@ fn dragging_a_view_tab_reorders_maps_or_layouts_in_one_undo_step() { strip_tab(&h, "M2").click(); settle(&mut h); assert_eq!(active_view(&h), "M2"); - // ModelBuilder's tab doesn't move. - h.state_mut().run("ui.modelBuilder", json!(null)).unwrap(); + // Model Designer's tab doesn't move. + h.state_mut().run("ui.modelDesigner", json!(null)).unwrap(); settle(&mut h); let model = h.state().mb.name.clone(); let depth = h.state().session.undo_depth(); diff --git a/crates/ui-touch/src/assistant.rs b/crates/ui-touch/src/assistant.rs index bd4ccfe392..e3fbf1d6a7 100644 --- a/crates/ui-touch/src/assistant.rs +++ b/crates/ui-touch/src/assistant.rs @@ -851,8 +851,8 @@ mod tests { held.touch(&[corner]); assert_eq!(sheet(&held.ctx), Sheet::None); assert_eq!(held.app.session.map().camera, camera); - // ModelBuilder in the map's place has its own buttons there: Layers is on the bar then. - crate::run(&mut held.app, "ui.modelBuilder", json!({})); + // Model Designer in the map's place has its own buttons there: Layers is on the bar then. + crate::run(&mut held.app, "ui.modelDesigner", json!({})); assert_eq!(bar(&mut held), ["Layers", "Add Data", "Capture", "Assistant", "More"]); let back = held.find("Back to the map").unwrap().center(); held.touch(&[back]); diff --git a/crates/ui-touch/src/lib.rs b/crates/ui-touch/src/lib.rs index 529b3eadbc..5f0dab846b 100644 --- a/crates/ui-touch/src/lib.rs +++ b/crates/ui-touch/src/lib.rs @@ -237,7 +237,7 @@ pub fn chrome(app: &mut RustGisApp, ui: &mut Ui) { } egui::CentralPanel::default().frame(egui::Frame::NONE.fill(t.canvas)).show(ui, |ui| { let above = ui.available_rect_before_wrap(); - // ModelBuilder, when it is up in the map's place, takes its own taps. + // Model Designer, when it is up in the map's place, takes its own taps. let map = !app.mb.shown(); app.map_view(ui); // With a sheet up, a tap on the map above it lowers the sheet and does nothing to the @@ -249,7 +249,7 @@ pub fn chrome(app: &mut RustGisApp, ui: &mut Ui) { } } // Layers, at the map's top-right corner (where a desktop's zoom buttons are); on the bar - // while ModelBuilder, with its own buttons there, is in the map's place. + // while Model Designer, with its own buttons there, is in the map's place. // Not on a strip of map too short for it (a full sheet): it comes back as the sheet lowers. let room = above.height() >= TARGET + 16.0; if map && room && layers_button(ui, &t, above, shown == Sheet::Layers) { @@ -418,7 +418,7 @@ fn cross(painter: &egui::Painter, at: egui::Pos2, t: &Tokens) { } /// The bar's buttons, in order: Add Data, Capture, the Assistant once it is set up, and More, -/// with Layers first while ModelBuilder is in the place of the map, which has its button. +/// with Layers first while Model Designer is in the place of the map, which has its button. fn bar_buttons(app: &RustGisApp) -> Vec { let mut buttons = Vec::with_capacity(5); if app.mb.shown() { @@ -585,7 +585,7 @@ enum Row { Tile(usize), } -/// Whether the project has more than one view (maps, layouts and an open ModelBuilder) to switch +/// Whether the project has more than one view (maps, layouts and an open Model Designer) to switch /// between. fn has_views(app: &RustGisApp) -> bool { app.session.project.maps.len() + app.session.project.layouts.len() + usize::from(app.mb.open) > 1 @@ -595,19 +595,19 @@ fn has_views(app: &RustGisApp) -> bool { enum View { Map, Layout, - /// ModelBuilder, left open with its model (by Back to the map, say). + /// Model Designer, left open with its model (by Back to the map, say). Model, } /// The project's views, to switch between them where the desktop's tab strip isn't drawn: a chip -/// for each map, then each layout, then ModelBuilder while it is open, the one in view marked. -/// Nothing with one map, no layout and no ModelBuilder. +/// for each map, then each layout, then Model Designer while it is open, the one in view marked. +/// Nothing with one map, no layout and no Model Designer. fn views(app: &mut RustGisApp, ui: &mut Ui, t: &Tokens) { if !has_views(app) { return; } let (project, layout) = (&app.session.project, app.session.active_layout); - // ModelBuilder, when it is up, covers every view: none is in view, so any chip leaves it. + // Model Designer, when it is up, covers every view: none is in view, so any chip leaves it. let covered = app.mb.shown(); // Each view's name, what it is, and whether it is in view. Read first: a tap runs a command, // which changes them. @@ -621,7 +621,7 @@ fn views(app: &mut RustGisApp, ui: &mut Ui, t: &Tokens) { if app.mb.open { // As the desktop's tab names it. let model = if app.mb.name.trim().is_empty() { tl!("Untitled model").to_string() } else { app.mb.name.trim().to_string() }; - let name = rustgis_ui_egui::i18n::fmt("ModelBuilder: {name}", &[("name", &model)]); + let name = rustgis_ui_egui::i18n::fmt("Model Designer: {name}", &[("name", &model)]); views.push((name, View::Model, covered)); } egui::ScrollArea::horizontal().id_salt("touch_views").show(ui, |ui| { @@ -633,12 +633,12 @@ fn views(app: &mut RustGisApp, ui: &mut Ui, t: &Tokens) { if !ui.add(chip).clicked() || on { continue; } - // As the desktop's tab row does: the view chosen comes out from under ModelBuilder, - // and ModelBuilder's chip brings its model back as it was left, over the view now - // in sight (`ui.modelBuilder` with no name). + // As the desktop's tab row does: the view chosen comes out from under Model Designer, + // and Model Designer's chip brings its model back as it was left, over the view now + // in sight (`ui.modelDesigner` with no name). app.mb.active = false; match view { - View::Model => run(app, "ui.modelBuilder", Value::Null), + View::Model => run(app, "ui.modelDesigner", Value::Null), View::Layout => run(app, "layout.activate", json!({"name": name})), View::Map => { if app.session.active_layout.is_some() { @@ -2457,8 +2457,8 @@ mod tests { assert_eq!((held.app.session.project.active_map, held.app.session.active_layout), (map, layout), "{name}"); assert_eq!(sheet(&held.ctx), Sheet::Layers); } - // Over ModelBuilder, the map in view's own chip brings it back out. - run(&mut held.app, "ui.modelBuilder", json!({})); + // Over Model Designer, the map in view's own chip brings it back out. + run(&mut held.app, "ui.modelDesigner", json!({})); held.raise(Sheet::Layers, "Layers"); let chip = held.find("Second").unwrap().center(); held.touch(&[chip]); @@ -2509,11 +2509,11 @@ mod tests { } } - /// ModelBuilder, left open in the desktop interface, has no tab here: its own button leaves it. + /// Model Designer, left open in the desktop interface, has no tab here: its own button leaves it. #[test] - fn model_builder_is_left_for_the_map_by_a_button_in_sight() { + fn model_designer_is_left_for_the_map_by_a_button_in_sight() { let mut held = Held::new(); - run(&mut held.app, "ui.modelBuilder", json!({})); + run(&mut held.app, "ui.modelDesigner", json!({})); // A model on the canvas, never saved: every way back keeps it. held.app.mb.graph = serde_json::from_value(json!({"nodes": [{"id": "in", "kind": "input", "layer": "Cities"}]})).unwrap(); held.frame(Vec::new()); @@ -2524,7 +2524,7 @@ mod tests { assert!(held.find("France").is_some()); // Left open, its model is a view in the Layers sheet, which brings it back as it was. held.raise(Sheet::Layers, "Layers"); - let chip = held.find("ModelBuilder: Model").unwrap().center(); + let chip = held.find("Model Designer: Model").unwrap().center(); held.touch(&[chip]); assert!(held.app.mb.shown()); // With the sheet still up, Back to the map takes the first tap. @@ -2534,7 +2534,7 @@ mod tests { assert!(!held.app.mb.shown(), "one tap goes back to the map"); // Opened over a layout, it still goes back to the map. run(&mut held.app, "layout.new", json!({"name": "Sheet A"})); - run(&mut held.app, "ui.modelBuilder", json!({})); + run(&mut held.app, "ui.modelDesigner", json!({})); held.frame(Vec::new()); let back = held.find("Back to the map").unwrap(); held.touch(&[back.center()]); @@ -2542,7 +2542,7 @@ mod tests { assert!(held.find("France").is_some()); // The layout it was opened over is gone, and the chip still brings it back to stay. held.raise(Sheet::Layers, "Layers"); - let chip = held.find("ModelBuilder: Model").unwrap().center(); + let chip = held.find("Model Designer: Model").unwrap().center(); held.touch(&[chip]); held.frame(Vec::new()); held.frame(Vec::new()); diff --git a/docs/comparison/index.md b/docs/comparison/index.md index 0c35536a87..9534e8f9b3 100644 --- a/docs/comparison/index.md +++ b/docs/comparison/index.md @@ -82,7 +82,7 @@ machine; remote features, such as web data and AI providers, send requests over | **Vector analysis** | Geodesic buffer, clip, erase, intersect, dissolve, spatial join, summarize within, statistics, selection by location, A5 grids and aggregation; optional GeoLibre vector tools | Buffer, overlay, dissolve, joins, topology checks | Comprehensive | Comprehensive | Common tools | | **Raster analysis** | Raster functions, band math, indices, change detection, classification, viewshed, IDW and ordinary kriging; time-series summaries and trends; optional GeoLibre terrain and hydrology tools | Hillshade, slope, zonal stats, raster calculator, reclassify | Comprehensive (GDAL/GRASS/SAGA) | Comprehensive; Spatial Analyst | Limited | | **Query language** | SQL `WHERE` clauses for selection and definition queries; DuckDB Spatial queries over files, web addresses and databases in an SQL pane (desktop) | DuckDB Spatial, PGlite/PostGIS, Sedona, all in the browser | Virtual layers, PostGIS | SQL against geodatabases | — | -| **Model / batch chaining** | ModelBuilder (a node canvas; models from history), tasks, scripts | Visual Model Builder, batch runner | Graphical Model Designer | ModelBuilder | — | +| **Model / batch chaining** | Model Designer (a node canvas; models from history), tasks, scripts | Visual Model Builder, batch runner | Graphical Model Designer | ModelBuilder | — | | **Guided workflows** | Suitability, visibility, line of sight, IDW, shortest path on line networks, neighborhood, simulation; driving, cycling and walking directions through Valhalla | Isochrones, routing, Emerging Hot Spot Analysis | Plugins and processing providers | Extensions (Network, Spatial, Geostatistical Analyst) | Routing services (credits) | | **AI / ML** | Pixel classification (k-means, minimum distance, a trainable neural network) | AI Segmentation (SAM), ONNX object detection | Via plugins | Deep-learning toolset | Pretrained models (credits) | diff --git a/docs/comparison/qgis.md b/docs/comparison/qgis.md index 70596bbc49..52459e299f 100644 --- a/docs/comparison/qgis.md +++ b/docs/comparison/qgis.md @@ -171,7 +171,7 @@ Most QGIS ideas have a counterpart under a different name: | Layers panel | Layers pane (left) | | Browser panel, Data Source Manager | Browser pane, **Home › Add › Data Sources**, the Data Sources pane | | Processing Toolbox | Tools pane (**Analyze › Tools**), or Command Search (++ctrl+k++) | -| Graphical Modeler | ModelBuilder: a node canvas of inputs, tools and outputs, which can also build a model from your history | +| Graphical Modeler | Model Designer: a node canvas of inputs, tools and outputs, which can also build a model from your history | | `qgis_process` | `rustgis-cli run --cmd 'gp.run={…}'` | | Python console, PyQGIS | The Script pane and notebooks inside the app; the `rustgis` Python package outside it | | Layer Styling panel | **Style** tab and the Symbology pane | diff --git a/docs/geolibre-parity.md b/docs/geolibre-parity.md index 96508f7047..795328a22a 100644 --- a/docs/geolibre-parity.md +++ b/docs/geolibre-parity.md @@ -195,7 +195,7 @@ model-builder.md, segmentation.md, obia.md_ import): left to GeoLibre, which has SAM and ONNX models built in and an OBIA workbench with eCognition import. RustGIS has pixel classification. - [ ] **Visual Model Builder canvas**: a node graph with validation and export to code. Partial: - ModelBuilder with a node canvas and models from history. + Model Designer with a node canvas and models from history. - [x] **Re-run or copy history as code; batch runs over a folder**: history copied as code, batch runs over layers and folders (`gp.batch`). - [ ] **Viewshed from public terrain tiles (no DEM needed)**. Partial: needs a loaded elevation diff --git a/docs/index.md b/docs/index.md index 2c19c0b646..05cf2cb03f 100644 --- a/docs/index.md +++ b/docs/index.md @@ -47,7 +47,7 @@ Map operations are commands you can script from the command line, Python or the - **Analysis** Overlay and proximity tools, run in the background on several cores on the desktop; batch runs, - ModelBuilder, SQL selection, network service areas, imagery tools, kriging, zonal statistics, + Model Designer, SQL selection, network service areas, imagery tools, kriging, zonal statistics, data-cube trends, texture shading and elevation model checks, and over 1,000 tools through the optional GeoLibre/Whitebox suite. [Analysis](user-guide/analysis.md) · [Expressions](user-guide/expressions.md) @@ -108,8 +108,8 @@ Map operations are commands you can script from the command line, Python or the
- [![ModelBuilder: a model of buffer, clip and dissolve after a run](https://assets.rustgis.app/images/modelbuilder.webp)](https://assets.rustgis.app/images/modelbuilder.webp){ target="_blank" rel="noopener" title="Open the full-size image" } -
ModelBuilder. Chain tools on a node canvas and run them in one go.
+ [![Model Designer: a model of buffer, clip and dissolve after a run](https://assets.rustgis.app/images/modelbuilder.webp)](https://assets.rustgis.app/images/modelbuilder.webp){ target="_blank" rel="noopener" title="Open the full-size image" } +
Model Designer. Chain tools on a node canvas and run them in one go.
diff --git a/docs/user-guide/analysis.md b/docs/user-guide/analysis.md index 41b74ff103..d446e293b8 100644 --- a/docs/user-guide/analysis.md +++ b/docs/user-guide/analysis.md @@ -1028,7 +1028,7 @@ In the Tools pane, use **Add statistic** to pick each field and statistic. The s offers the operations supported by that field's type, including percentiles `P1` through `P99` for numeric fields. Use **Add field** under **Case Fields** to group by several fields. Move entries up or down to choose their output order, or remove them. Leaving Statistics empty keeps -the single **Statistics Field** shortcut. These lists are also available in ModelBuilder; for an +the single **Statistics Field** shortcut. These lists are also available in Model Designer; for an input produced by another tool, type its field names before running the model. | Statistic | What it is | @@ -1142,7 +1142,7 @@ gp.run={"tool":"pivotTable","params":{"input":"incomes","fields":"county","pivot | A | 10 | 11 | | | B | 20 | | 22 | -Use **Add field** under **Row Fields** in the Tools pane or ModelBuilder to choose several row +Use **Add field** under **Row Fields** in the Tools pane or Model Designer to choose several row fields and order them with **Move up** and **Move down**. Without `statistic`, each row and pivot value can have one record at most; the tool names the @@ -1980,14 +1980,14 @@ the box. Escape in the bar, or the close button, closes it and leaves the curren the box. Escape in the box closes it too, once no list or help is open over the box, and the cursor stays where it is. -## ModelBuilder +## Model Designer
- ![ModelBuilder after a run: Cities buffered by 300 km clip the Rivers into "Rivers near cities", and Countries are dissolved by continent; every node is ticked and the results are on the map](https://assets.rustgis.app/images/modelbuilder.webp) + ![Model Designer after a run: Cities buffered by 300 km clip the Rivers into "Rivers near cities", and Countries are dissolved by continent; every node is ticked and the results are on the map](https://assets.rustgis.app/images/modelbuilder.webp)
A model after its run: each node is ticked, and its outputs are layers on the map.
-**Analyze › Model Builder** opens a model in a view of its own, a tab beside the maps and +**Analyze › Model Designer** opens a model in a view of its own, a tab beside the maps and layouts. A model is a graph of three kinds of node: **inputs** (blue) name layers of the map, **tools** (amber) are geoprocessing tools, and **outputs** (green) keep a result as a layer of their name. @@ -2044,7 +2044,7 @@ canvas bounds, are refused before they can be changed. Repeated inputs stay inta model is saved or renamed. If import must trim, shorten or replace a model name, or make it unique, it reports the change with a notice. -Step files keep the existing 2,000-step limit. Converting steps to a ModelBuilder graph has a +Step files keep the existing 2,000-step limit. Converting steps to a Model Designer graph has a 1,000-step limit: opening, exporting or checking (`model.validate`) a larger model as a graph gives an error and leaves the original steps intact. References to a step that is not earlier in the model, or has no layer @@ -2053,7 +2053,7 @@ steps or be shared as a web tool. The Workflows pane's Models section lists the project's models, and New Model From History turns the geoprocessing you've run into one. Models made as steps (`model.new` with `steps`, where `%1` -stands for step 1's output) run as they always have until they are saved from ModelBuilder, which +stands for step 1's output) run as they always have until they are saved from Model Designer, which shows them as a graph and saves them as one. The `model.*` commands build, check (`model.validate`), save and run models without the canvas: diff --git a/docs/user-guide/index.md b/docs/user-guide/index.md index f2e40e3d07..130bdab94a 100644 --- a/docs/user-guide/index.md +++ b/docs/user-guide/index.md @@ -186,7 +186,7 @@ version and system; the diagnostics go when you paste them and submit. | **Style** | For the layer selected in Layers. A feature layer: Visibility Range, Effects, Drawing, Drawing Effects, Extrusion for polygons (with Faces and Light and Shadow once on) and Layer. A raster layer: Visibility Range, Effects, Compare, Raster Effects, Rendering, Enhancement and Layer. Both: Styles | | **Labeling** | For the feature layer selected in Layers: Labels (Label, Properties), Label Class (Class, Field), Text Symbol (Size, Color, Bold, Halo), Label Placement and Label Range. Whatever is selected: Map Labeling (Lock, Pause, View Unplaced, Convert) | | **Edit** | Manage Edits (Edit, Save, Undo, Redo, Status, Save to PostGIS and Discard PostGIS Edits on the desktop while a [PostGIS layer is loaded for editing](data.md#editing-postgis-tables), Settings, Templates, Topology), Snapping, Features (Create, Delete, Edit Vertices, Modify), Tools, Elevation, Corrections, Graphics, Graphics and Text, Clipboard | -| **Analyze** | Geoprocessing (History, Tools, Model Builder, Script, SQL, Environments), Tasks (the Tasks pane; Task: Record Task, New Task From History, Import Task, run a task), AI (AI Assistant), Portal (Feature Analysis, Raster Analysis), Workflows, Raster (Raster Functions, Function Editor, Process), Tools (the tool gallery), Selection, Notebook | +| **Analyze** | Geoprocessing (History, Tools, Model Designer, Script, SQL, Environments), Tasks (the Tasks pane; Task: Record Task, New Task From History, Import Task, run a task), AI (AI Assistant), Portal (Feature Analysis, Raster Analysis), Workflows, Raster (Raster Functions, Function Editor, Process), Tools (the tool gallery), Selection, Notebook | | **View** | Display (Graticule, GPU Rendering), View (Globe, Projection, Global; Local on the desktop), Effects, Scene, Windows, Navigation, Link, Workspace, Animation, Time (Time Slider), Profile (Profile; Time Series on the desktop) | | **Publish** | While a layout is open, its groups first (Page, Map Frames, Map Surrounds, Shapes, Text, Export); then Report, Presentation, Output (Export Map, Export Features, Print Map, Capture To Clipboard, Report, Presentation, Export To 3D), Package, Share As, Layout, Save As, Thumbnail | | **Plugins** | Plugins (Plugin Manager, Install From File, Browse Plugins), Extensions (the [Extensions](#extensions) window), plus a group for each enabled [plugin](../plugins.md) with commands or tools; a plugin with its own tab adds that tab instead | @@ -596,5 +596,5 @@ Layer** and **Paste Layer** in a layer's menu do: the copies go above the active top of its group. Copying layers puts their names on the clipboard as text, and Paste adds the layers while the clipboard still holds those names; features or text copied after that are what Paste takes next, in the Layers pane as on the map. Cut does nothing in the Layers pane: copy a -layer, then remove it with ++delete++. ++ctrl+a++ is left alone in a layout and in ModelBuilder, +layer, then remove it with ++delete++. ++ctrl+a++ is left alone in a layout and in Model Designer, where there are no features to select. diff --git a/schema/project.schema.json b/schema/project.schema.json index 840902116b..cac9792a1d 100644 --- a/schema/project.schema.json +++ b/schema/project.schema.json @@ -575,7 +575,7 @@ "type": "object" }, "Model": { - "description": "A model: geoprocessing steps run in order. A parameter value `%n` stands for the output layer\nof step n (1-based). A model drawn in ModelBuilder keeps its `graph` too, which is what runs;\n`steps` then holds the same tools in run order, for older versions and web tools.", + "description": "A model: geoprocessing steps run in order. A parameter value `%n` stands for the output layer\nof step n (1-based). A model drawn in Model Designer keeps its `graph` too, which is what runs;\n`steps` then holds the same tools in run order, for older versions and web tools.", "properties": { "graph": { "anyOf": [ @@ -628,7 +628,7 @@ "type": "object" }, "ModelGraph": { - "description": "A model as ModelBuilder draws it: input, tool and output nodes joined by edges from an output\nport to an input port (see `crate::model`).", + "description": "A model as Model Designer draws it: input, tool and output nodes joined by edges from an output\nport to an input port (see `crate::model`).", "properties": { "edges": { "default": [], From 65f751b11d193903eae89fa73f7adebaa8757f88 Mon Sep 17 00:00:00 2001 From: mavrick Date: Tue, 1 Dec 2026 11:04:40 -0600 Subject: [PATCH 2/4] fix(i18n): name Model Designer in Italian for the task, not a person --- crates/ui-egui/src/i18n/it.tsv | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/ui-egui/src/i18n/it.tsv b/crates/ui-egui/src/i18n/it.tsv index b9b1b63c05..2ab096f2fe 100644 --- a/crates/ui-egui/src/i18n/it.tsv +++ b/crates/ui-egui/src/i18n/it.tsv @@ -869,7 +869,7 @@ Close Chiudi Close (Esc) Chiudi (Esc) Close All Chiudi tutto Close all panes Chiudi tutti i pannelli -Close Model Designer Chiudi il progettista di modelli +Close Model Designer Chiudi Progettazione modelli Close Others Chiudi gli altri Close Table Chiudi tabella Close table Chiudi tabella @@ -2638,10 +2638,10 @@ Mod+X Mod+X Mod+Y Mod+Y Mod+Z Mod+Z Model Modello -Model\nDesigner Progettista\ndi modelli +Model\nDesigner Progettazione\nmodelli model id id del modello Model output Output del modello -Model Designer Progettista di modelli +Model Designer Progettazione modelli Models Modelli Modified Mann–Kendall (Hamed & Rao) Mann–Kendall modificato (Hamed & Rao) Modified Mann–Kendall (Yue & Wang) Mann–Kendall modificato (Yue & Wang) @@ -3007,12 +3007,12 @@ Open data catalogues searched by text. Files are added by their address (read in Open data products on Source Cooperative. GeoParquet, FlatGeobuf, cloud-optimised GeoTIFFs and PMTiles are read in place; other files are downloaded. Prodotti di dati aperti su Source Cooperative. GeoParquet, FlatGeobuf, GeoTIFF ottimizzati per il cloud e PMTiles vengono letti sul posto; gli altri file vengono scaricati. Open folder Apri cartella Open In Geoprocessing… Apri in Geoprocessing… -Open in Model Designer Apri nel progettista di modelli +Open in Model Designer Apri in Progettazione modelli Open in Script Pane Apri nel pannello Script Open in Tool Apri nello strumento Open Layout Apri layout Open Messages Apri messaggi -Open Model Designer Apri il progettista di modelli +Open Model Designer Apri Progettazione modelli Open Notebook Apri notebook Open Offline Map Apri mappa offline Open Presentation Apri presentazione From 70b1cb25be1822a3799d959ba0dcc04f84caa5c1 Mon Sep 17 00:00:00 2001 From: mavrick Date: Tue, 1 Dec 2026 11:46:44 -0600 Subject: [PATCH 3/4] fix(ui): settings that hold the old Model Designer id become the new one --- crates/ui-egui/src/chrome.rs | 2 +- crates/ui-egui/src/keymap.rs | 28 ++++++++++++++++++---------- crates/ui-egui/src/lib.rs | 12 +++++++++--- crates/ui-egui/src/modeldesigner.rs | 23 ++++++++++++++++++----- crates/ui-egui/src/ribbon.rs | 1 + crates/ui-egui/src/shortcutfile.rs | 1 + docs/user-guide/analysis.md | 2 ++ 7 files changed, 50 insertions(+), 19 deletions(-) diff --git a/crates/ui-egui/src/chrome.rs b/crates/ui-egui/src/chrome.rs index 63476f6f2b..edf3b6f64f 100644 --- a/crates/ui-egui/src/chrome.rs +++ b/crates/ui-egui/src/chrome.rs @@ -231,7 +231,7 @@ fn quick_access(ui: &mut Ui, app: &mut RustGisApp, right: f32, separate_search: (HISTORY, "history", "Undo History"), ]; items.extend(pinned.iter().map(|id| { - let label = crate::ribbon::QUICK.iter().find(|q| q.0 == id).map_or(id.as_str(), |q| q.1); + let label = crate::ribbon::QUICK.iter().find(|q| q.0 == id).map(|q| q.1).or_else(|| crate::keymap::ui_label(id)).unwrap_or(id); (id.as_str(), crate::ribbon::quick_icon(id), label) })); if !separate_search && !pinned.iter().any(|id| id == "ui.commandSearch") { diff --git a/crates/ui-egui/src/keymap.rs b/crates/ui-egui/src/keymap.rs index 46d135eee7..9b3f642976 100644 --- a/crates/ui-egui/src/keymap.rs +++ b/crates/ui-egui/src/keymap.rs @@ -77,7 +77,6 @@ pub const MAP_TOOLS: &[(&str, &str)] = &[ const UI_LABELS: &[(&str, &str)] = &[ ("ui.commandSearch", "Command Search"), ("ui.convertShape", "Convert Polygon to Shape…"), - ("ui.modelBuilder", "Model Designer"), ("ui.modelDesigner", "Model Designer"), ("ui.open", "Open Project…"), ("ui.save", "Save Project"), @@ -191,6 +190,20 @@ impl std::fmt::Display for Chord { } } +/// The id a command has now, for one a saved setting may hold under an older id. +pub(crate) fn current_id(id: &str) -> &str { + match id { + "ui.modelBuilder" => "ui.modelDesigner", + _ => id, + } +} + +/// The name of a `ui.*` command that has one, untranslated. +pub(crate) fn ui_label(id: &str) -> Option<&'static str> { + let names = UI_LABELS.iter().copied().chain(crate::chrome::UI_COMMANDS.iter().map(|&(id, label, _)| (id, label))); + names.into_iter().find(|(known, _)| *known == id).map(|(_, label)| label) +} + /// A key combination that runs a command. #[derive(Clone, Debug, PartialEq)] pub struct Binding { @@ -271,10 +284,11 @@ impl Keymap { } let mut readable = true; for record in changes { - let Ok(change) = serde_json::from_value::(record) else { + let Ok(mut change) = serde_json::from_value::(record) else { readable = false; continue; }; + change.command = current_id(&change.command).to_owned(); let Some(chord) = Chord::parse(&change.keys) else { readable = false; continue; @@ -318,7 +332,7 @@ impl Keymap { return false; } self.bindings.retain(|b| b.chord != chord); - self.bindings.push(Binding { chord, command: command.to_owned(), params }); + self.bindings.push(Binding { chord, command: current_id(command).to_owned(), params }); true } @@ -397,13 +411,7 @@ pub fn label(app: &RustGisApp, command: &str, params: &Value) -> String { if let Some(c) = rustgis_engine::plugins::command(command) { return c.plugin.manifest.translate(app.lang().code(), &c.decl.label).to_string(); } - let ui = UI_LABELS.iter().copied().chain(crate::chrome::UI_COMMANDS.iter().map(|&(id, label, _)| (id, label))); - for (id, label) in ui { - if id == command { - return tl!(label).to_string(); - } - } - command.to_string() + ui_label(command).map_or_else(|| command.to_string(), |label| tl!(label).to_string()) } #[cfg(test)] diff --git a/crates/ui-egui/src/lib.rs b/crates/ui-egui/src/lib.rs index 679c3f18b0..6408432adb 100644 --- a/crates/ui-egui/src/lib.rs +++ b/crates/ui-egui/src/lib.rs @@ -2242,7 +2242,12 @@ impl RustGisApp { // Which extensions are on, before the tabs they add are looked at. extensionsui::load(&mut self); self.ui.hidden_tabs = ribbon::current_hidden_tabs(list(self.services.load_pref.as_ref().and_then(|load| load("hidden_tabs")))); - self.ui.quick_access = list(self.services.load_pref.as_ref().and_then(|load| load("quick_access"))); + for id in list(self.services.load_pref.as_ref().and_then(|load| load("quick_access"))) { + let id = keymap::current_id(&id).to_string(); + if !self.ui.quick_access.contains(&id) { + self.ui.quick_access.push(id); + } + } // The browser's GeoLibre tools, loaded in an earlier visit: load them again (the runner // comes from the browser's cache). if self.services.load_pref.as_ref().and_then(|load| load("geolibre_web")).as_deref() == Some("on") { @@ -5691,7 +5696,7 @@ impl RustGisApp { "ui.taskShowMe" => { let st: rustgis_engine::project::TaskStep = serde_json::from_value(json!({ "title": p.get("title").cloned().unwrap_or(json!("")), - "command": p.get("command").cloned().unwrap_or(Value::Null), + "command": p.get("command").map_or(Value::Null, |c| c.as_str().map_or_else(|| c.clone(), |id| keymap::current_id(id).into())), "params": p.get("params").cloned().unwrap_or(Value::Null), })) .map_err(|e| format!("a step needs a command: {e}"))?; @@ -5891,7 +5896,8 @@ impl RustGisApp { } } "ui.quickAccess" => { - let id = p.get("command").and_then(Value::as_str).ok_or("command is required")?.to_string(); + let id = p.get("command").and_then(Value::as_str).ok_or("command is required")?; + let id = keymap::current_id(id).to_string(); if self.ui.quick_access.contains(&id) { self.ui.quick_access.retain(|c| *c != id); } else if self.session.registry.get(&id).is_some() || id.starts_with("ui.") { diff --git a/crates/ui-egui/src/modeldesigner.rs b/crates/ui-egui/src/modeldesigner.rs index c471fbc836..63a220f7ea 100644 --- a/crates/ui-egui/src/modeldesigner.rs +++ b/crates/ui-egui/src/modeldesigner.rs @@ -2187,8 +2187,8 @@ mod tests { assert_eq!(h.state().session.map().layers.len(), layers - 1); } - /// The old id, `ui.modelBuilder`, opens and closes Model Designer, and a key bound to either id - /// shows its name. + /// The old id, `ui.modelBuilder`, opens and closes Model Designer, and settings that hold it + /// become the new id: a shortcut its button shows, the one Quick Access pin, and Show Me. #[test] fn the_old_command_id_still_works() { let mut app = RustGisApp::with_sample(); @@ -2196,9 +2196,22 @@ mod tests { assert!(app.mb.shown()); app.run("ui.modelBuilder", json!({"close": true})).unwrap(); assert!(!app.mb.open); - for id in ["ui.modelDesigner", "ui.modelBuilder"] { - assert_eq!(crate::keymap::label(&app, id, &Value::Null), "Model Designer"); - } + + assert!(app.ui.keymap.apply_preferences(r#"[{"keys":"Mod+Alt+M","command":"ui.modelBuilder"}]"#)); + assert_eq!(app.ui.keymap.keys_for("ui.modelDesigner", &Value::Null).count(), 1); + assert_eq!(crate::keymap::label(&app, "ui.modelDesigner", &Value::Null), "Model Designer"); + + app.run("ui.quickAccess", json!({"command": "ui.modelBuilder"})).unwrap(); + assert_eq!(app.ui.quick_access, ["ui.modelDesigner"]); + app.run("ui.quickAccess", json!({"command": "ui.modelDesigner"})).unwrap(); + assert!(app.ui.quick_access.is_empty(), "one pin, whichever id is used"); + + let file = r#"{"rustgis_shortcuts":1,"bindings":[{"keys":"Mod+Alt+J","command":"ui.modelBuilder"}]}"#; + let seen = app.run("ui.shortcuts.import", json!({"text": file})).unwrap(); + assert_eq!(seen["unknown_commands"], 0, "{seen}"); + + app.run("ui.taskShowMe", json!({"command": "ui.modelBuilder"})).unwrap(); + assert_eq!(app.ui.show_me.as_ref().map(|s| s.id.as_str()), Some("ui.modelDesigner")); } /// Closing with unsaved changes asks first; Discard closes, Cancel keeps the model open. diff --git a/crates/ui-egui/src/ribbon.rs b/crates/ui-egui/src/ribbon.rs index ae1a89940e..e2b83c4176 100644 --- a/crates/ui-egui/src/ribbon.rs +++ b/crates/ui-egui/src/ribbon.rs @@ -1767,6 +1767,7 @@ pub fn quick_icon(id: &str) -> &'static str { "map.zoomFull" => "zoom_full", "select.clear" => "clear_sel", "ui.pane.geoprocessing" => "toolbox", + "ui.modelDesigner" => "modelbuilder", _ => "search", } } diff --git a/crates/ui-egui/src/shortcutfile.rs b/crates/ui-egui/src/shortcutfile.rs index 04d100cda8..4176d20ed9 100644 --- a/crates/ui-egui/src/shortcutfile.rs +++ b/crates/ui-egui/src/shortcutfile.rs @@ -173,6 +173,7 @@ fn known(app: &RustGisApp, id: &str) -> bool { | "ui.save" | "ui.saveAs" | "ui.ribbon" + | "ui.modelDesigner" | "ui.identify" | "ui.shortcuts.set" | "ui.shortcuts.reset" diff --git a/docs/user-guide/analysis.md b/docs/user-guide/analysis.md index d446e293b8..fd8c10f1f5 100644 --- a/docs/user-guide/analysis.md +++ b/docs/user-guide/analysis.md @@ -1980,6 +1980,8 @@ the box. Escape in the bar, or the close button, closes it and leaves the curren the box. Escape in the box closes it too, once no list or help is open over the box, and the cursor stays where it is. + + ## Model Designer
From 1ba3cc78ec42b1b68034407178ebc53107aeceab Mon Sep 17 00:00:00 2001 From: mavrick Date: Tue, 1 Dec 2026 11:51:54 -0600 Subject: [PATCH 4/4] fix(ui): Show Me and saved Quick Access pins take the old Model Designer id --- crates/ui-egui/src/lib.rs | 3 ++- crates/ui-egui/src/modeldesigner.rs | 17 +++++++++++++++-- crates/ui-egui/src/showme.rs | 4 ++-- 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/crates/ui-egui/src/lib.rs b/crates/ui-egui/src/lib.rs index 6408432adb..1a90c79249 100644 --- a/crates/ui-egui/src/lib.rs +++ b/crates/ui-egui/src/lib.rs @@ -2242,6 +2242,7 @@ impl RustGisApp { // Which extensions are on, before the tabs they add are looked at. extensionsui::load(&mut self); self.ui.hidden_tabs = ribbon::current_hidden_tabs(list(self.services.load_pref.as_ref().and_then(|load| load("hidden_tabs")))); + self.ui.quick_access.clear(); for id in list(self.services.load_pref.as_ref().and_then(|load| load("quick_access"))) { let id = keymap::current_id(&id).to_string(); if !self.ui.quick_access.contains(&id) { @@ -5696,7 +5697,7 @@ impl RustGisApp { "ui.taskShowMe" => { let st: rustgis_engine::project::TaskStep = serde_json::from_value(json!({ "title": p.get("title").cloned().unwrap_or(json!("")), - "command": p.get("command").map_or(Value::Null, |c| c.as_str().map_or_else(|| c.clone(), |id| keymap::current_id(id).into())), + "command": p.get("command").cloned().unwrap_or(Value::Null), "params": p.get("params").cloned().unwrap_or(Value::Null), })) .map_err(|e| format!("a step needs a command: {e}"))?; diff --git a/crates/ui-egui/src/modeldesigner.rs b/crates/ui-egui/src/modeldesigner.rs index 63a220f7ea..038c589aac 100644 --- a/crates/ui-egui/src/modeldesigner.rs +++ b/crates/ui-egui/src/modeldesigner.rs @@ -2210,8 +2210,21 @@ mod tests { let seen = app.run("ui.shortcuts.import", json!({"text": file})).unwrap(); assert_eq!(seen["unknown_commands"], 0, "{seen}"); - app.run("ui.taskShowMe", json!({"command": "ui.modelBuilder"})).unwrap(); - assert_eq!(app.ui.show_me.as_ref().map(|s| s.id.as_str()), Some("ui.modelDesigner")); + // The Tasks pane starts Show Me itself, not through `ui.taskShowMe`. + let step = json!({"title": "", "command": "ui.modelBuilder", "params": null}); + crate::showme::start(&mut app, &serde_json::from_value(step).unwrap()); + let shown = app.ui.show_me.as_ref().unwrap(); + assert_eq!((shown.id.as_str(), shown.label.as_str()), ("ui.modelDesigner", "Model Designer")); + + // Saved pins replace those there, the old id and the new as one. + let saved = |pins: &'static str| crate::Services { + load_pref: Some(Box::new(move |key| (key == "quick_access").then(|| pins.to_string()))), + ..Default::default() + }; + app = app.with_services(saved("ui.modelBuilder,ui.modelDesigner,map.zoomFull")); + assert_eq!(app.ui.quick_access, ["ui.modelDesigner", "map.zoomFull"]); + app = app.with_services(saved("")); + assert!(app.ui.quick_access.is_empty()); } /// Closing with unsaved changes asks first; Discard closes, Cancel keeps the model open. diff --git a/crates/ui-egui/src/showme.rs b/crates/ui-egui/src/showme.rs index 52573d955f..a8e84272a3 100644 --- a/crates/ui-egui/src/showme.rs +++ b/crates/ui-egui/src/showme.rs @@ -36,7 +36,7 @@ const DIALOGS: &[(&str, &str)] = /// Starts showing where a step's command is; returns what to tell the user. pub fn start(app: &mut RustGisApp, st: &TaskStep) -> String { - let id = st.command.as_str(); + let id = crate::keymap::current_id(&st.command); if matches!(id, "layer.color" | "layer.outline" | "layer.lineStrokes" | "layer.fillLayers" | "layer.symbology" | "layer.transparency") { // Making the step's layer the active one is what shows its symbology. It runs on the // session directly, so a recording doesn't keep it as a step. @@ -58,7 +58,7 @@ pub fn start(app: &mut RustGisApp, st: &TaskStep) -> String { return why; } let spec = app.session.registry.get(id); - let label = spec.map_or_else(|| id.to_string(), |c| tl!(c.label).to_string()); + let label = crate::keymap::label(app, id, &Value::Null); let (target, key, fallback) = match id { "gp.run" => { let Some(tool) = st.params.get("tool").filter(|t| t.is_string()).cloned() else {