forked from 1b-agent/opencadstudio-upstream
Merge pull request #1263 from ramox81/codex/annotation-menu
This commit is contained in:
commit
801e00e940
1 file changed
+39
-1
@@ -42,7 +42,7 @@ impl CadModule for AnnotateModule {
|
||||
}
|
||||
|
||||
fn ribbon_groups(&self) -> &[RibbonGroup] {
|
||||
use crate::modules::draw::draw::{revcloud, wipeout};
|
||||
use crate::modules::draw::draw::{centerline, dimcenter, revcloud, wipeout};
|
||||
|
||||
static GROUPS: std::sync::OnceLock<Vec<RibbonGroup>> = std::sync::OnceLock::new();
|
||||
GROUPS.get_or_init(|| {
|
||||
@@ -148,6 +148,44 @@ impl CadModule for AnnotateModule {
|
||||
},
|
||||
],
|
||||
},
|
||||
// ── Centerlines ───────────────────────────────────────────────
|
||||
RibbonGroup {
|
||||
title: "Centerlines",
|
||||
tools: vec![
|
||||
RibbonItem::LargeTool(dimcenter::tool()),
|
||||
RibbonItem::LargeTool(centerline::tool()),
|
||||
RibbonItem::Dropdown {
|
||||
id: "ANNOTATE_CENTER_ASSOCIATIVITY",
|
||||
icon: crate::modules::IconKind::Svg(include_bytes!(
|
||||
"../../../assets/icons/line.svg"
|
||||
)),
|
||||
items: vec![
|
||||
(
|
||||
"CENTERREASSOCIATE",
|
||||
"Reassociate Center Object",
|
||||
crate::modules::IconKind::Svg(include_bytes!(
|
||||
"../../../assets/icons/line.svg"
|
||||
)),
|
||||
),
|
||||
(
|
||||
"CENTERDISASSOCIATE",
|
||||
"Disassociate Center Object",
|
||||
crate::modules::IconKind::Svg(include_bytes!(
|
||||
"../../../assets/icons/line.svg"
|
||||
)),
|
||||
),
|
||||
(
|
||||
"CENTERRESET",
|
||||
"Reset Center Object",
|
||||
crate::modules::IconKind::Svg(include_bytes!(
|
||||
"../../../assets/icons/line.svg"
|
||||
)),
|
||||
),
|
||||
],
|
||||
default: "CENTERREASSOCIATE",
|
||||
},
|
||||
],
|
||||
},
|
||||
// ── Leaders ──────────────────────────────────────────────────
|
||||
RibbonGroup {
|
||||
title: "Leaders",
|
||||
|
||||
Reference in new issue
Block a user