1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
//! PMI (Product & Manufacturing Information) — a COMMAND SET, not a workbench.
//!
//! PMI annotates the model being worked on, so it has no workbench of its own:
//! the workbenches in [`HOSTS`] (Modeling, Sheet Metal, Assembly — and All,
//! which sees everything) each claim the one PMI panel and show the one "PMI"
//! ribbon tab ([`TAB`]). This file is the single declaration of that set:
//!
//! - [`PANEL_ID`], the shared PMI side panel every host claims;
//! - [`BUTTONS`], the **Capture view** button, carried by every row
//! ([`super::shared_buttons`]) and offered wherever the panel is shown;
//! - [`group_of`], which ribbon group each annotation type's button sits in.
//! The buttons themselves are derived from the kernel's annotation table
//! (`workbench/commands.rs`), one per type, under the same panel gate.
//!
//! A view being active is the editing mode: activating one applies its camera,
//! visibility and wireframe, and deactivating it — or switching to a workbench
//! that shows no PMI panel — restores the modeling state (`app.rs` drives the
//! engine's `pmi_enter_workbench` / `pmi_leave_workbench` off the panel's
//! visibility). Switching between hosts keeps the active view.
//!
//! Drawing sheets, which PLACE the views captured here, are the Drawing
//! workbench's (`workbench/drawing.rs`).
use ;
/// The PMI panel's id (claim + registration key).
pub const PANEL_ID: &str = "pmi";
/// The ribbon tab every PMI command sits under.
pub const TAB: &str = "PMI";
/// The workbenches that claim the PMI panel and so show the PMI tab.
pub const HOSTS: = ;
/// The id the retired PMI workbench had. A stored settings value naming it is
/// rewritten to Modeling where it is read (`RenderSettings::apply_json`).
pub const RETIRED_WORKBENCH_ID: &str = "pmi";
/// The Capture-view toolbar button id.
pub const CAPTURE_BUTTON_ID: &str = "pmi.capture_view";
/// Whether the active workbench shows the PMI panel: the one gate every PMI
/// command is offered under.
/// The PMI buttons that are not annotation types.
pub static BUTTONS: & = &;
/// The PMI tab's group for annotation type `type_id`. A type the table below
/// does not name lands in "Annotations", so a plugin's or a new kernel type's
/// button is still on the tab; the built-in table is held total by a test.
/// Group name, then the annotation types in it. Group names carry no `/`
/// (a ribbon path is `Tab/Group/Label`).
pub const GROUPS: & = &;