forked from 1b-agent/opencadstudio-upstream
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:
1 parent
c8991bcc5a
commit
e3bce16545
38 files changed
+354
-19
No files matched your search
@@ -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()),
|
||||
}
|
||||
}
|
||||
@@ -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()),
|
||||
}
|
||||
}
|
||||
@@ -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(),
|
||||
],
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user