forked from 1b-agent/opencadstudio-upstream
feat(ribbon): add measurement dropdown
This commit is contained in:
1 parent
e355f524e2
commit
863dd555c1
5 files changed
+172
-2
No files matched your search
@@ -43,6 +43,7 @@ impl CadModule for DrawModule {
|
||||
array, copy, delete, explode, fillet, mirror, offset, rotate, scale, stretch,
|
||||
translate, trim,
|
||||
};
|
||||
use inquiry::{area, dist};
|
||||
use properties::match_prop;
|
||||
|
||||
static GROUPS: std::sync::OnceLock<Vec<RibbonGroup>> = std::sync::OnceLock::new();
|
||||
@@ -231,6 +232,21 @@ impl CadModule for DrawModule {
|
||||
cut::tool().into(),
|
||||
],
|
||||
},
|
||||
RibbonGroup {
|
||||
title: "Measure",
|
||||
tools: vec![
|
||||
RibbonItem::LargeDropdown {
|
||||
id: "MEASURE_MENU",
|
||||
label: "Measure",
|
||||
icon: dist::ICON,
|
||||
items: vec![
|
||||
("DIST", "Distance", dist::ICON),
|
||||
("AREA", "Area", area::ICON),
|
||||
],
|
||||
default: "DIST",
|
||||
},
|
||||
],
|
||||
},
|
||||
// Support group lives on the Start tab now (see view.rs:
|
||||
// start_page_view). Removed from the Draw ribbon to declutter.
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user