feat: redesign View tab and fix Annotate/tab order

- Redesign View ribbon tab with 8 groups matching AutoCAD layout:
  Viewport Tools (UCS Icon, ViewCube, Navigation Bar),
  Navigate, Model Viewports (Viewport Configuration, Named, Join, Restore),
  Visual Style (dropdown), Projection, Preset,
  Palettes (Tool Palettes, Properties, Sheet Set Manager),
  Interface (File Tabs, Layout Tabs, Tile Horiz/Vert, Cascade)
- Add Extract Data and Link Data tools to Annotate → Tables group
- Fix tab order to Home → Insert → Annotate → View → Manage via build.rs PRIORITY list
- Add 17 new SVG icons for all new commands

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Hakan SevenandClaude Sonnet 4.6 committed 2026-04-09 12:25:15 +03:00
1 parent c8991bcc5a
commit e3bce16545
38 files changed
+354 -19

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
// DATAEXTRACTION command — launches the Data Extraction wizard.
use crate::modules::{IconKind, ModuleEvent, ToolDef};
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/data_extract.svg"));
pub fn tool() -> ToolDef {
ToolDef {
id: "DATAEXTRACTION",
label: "Extract\nData",
icon: ICON,
event: ModuleEvent::Command("DATAEXTRACTION".to_string()),
}
}
+14
View File
@@ -0,0 +1,14 @@
// DATALINK command — manages data links to external spreadsheets.
use crate::modules::{IconKind, ModuleEvent, ToolDef};
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/data_link.svg"));
pub fn tool() -> ToolDef {
ToolDef {
id: "DATALINK",
label: "Link\nData",
icon: ICON,
event: ModuleEvent::Command("DATALINK".to_string()),
}
}
+8 -1
View File
@@ -1,6 +1,8 @@
// Annotate module — dimension, text, leader, table, and markup tools.
pub mod aligned_dim;
pub mod data_extract;
pub mod data_link;
pub mod angular_dim;
pub mod ddedit;
pub mod diameter_dim;
@@ -152,7 +154,12 @@ impl CadModule for AnnotateModule {
style_key: StyleKey::TableStyle,
combo_id: "TABLE_STYLE_COMBO",
manager_cmd: Some("TABLESTYLE"),
rows: vec![],
rows: vec![
vec![
data_extract::tool(),
data_link::tool(),
],
],
},
],
},