Merge pull request #1491 from ramox81/codex/insert-attach-buttons

Insert Reference panel: separate Attach XREF and Attach PDF buttons
This commit is contained in:
Hakan Seven committed 2026-09-25 22:27:32 +03:00
commit 460a4c9cc5
4 files changed
+18 -4

No files matched your search

+13
View File
@@ -21,6 +21,19 @@ use glam::DVec3;
use crate::command::{CadCommand, CmdOption, CmdResult, InputKind, WorkingPlane};
use crate::scene::model::wire_model::WireModel;
use crate::modules::{IconKind, ModuleEvent, ToolDef};
pub const ICON: IconKind =
IconKind::Svg(include_bytes!("../../../assets/icons/underlay_layers.svg"));
pub fn tool() -> ToolDef {
ToolDef {
id: "PDFATTACH",
label: "Attach PDF",
icon: ICON,
event: ModuleEvent::Command("PDFATTACH".to_string()),
}
}
/// Units the Unit option offers: keyword, the name the prompt shows.
const UNITS: [(&str, &str); 9] = [