forked from 1b-agent/opencadstudio-upstream
WIP count feature
This commit is contained in:
1 parent
b8def31145
commit
e29b408bda
26 files changed
+1887
-44
No files matched your search
@@ -0,0 +1,11 @@
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/data_extract.svg"));
|
||||
/// View › Palettes › Count: opens or closes the Count palette.
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef {
|
||||
id: "COUNTLIST",
|
||||
label: "Count",
|
||||
icon: ICON,
|
||||
event: ModuleEvent::Command("_COUNTLISTTOGGLE".to_string()),
|
||||
}
|
||||
}
|
||||
@@ -12,6 +12,7 @@ pub mod plot_window;
|
||||
pub mod quick_print;
|
||||
mod properties_palette;
|
||||
mod sheetset;
|
||||
mod count_palette;
|
||||
mod tile_horiz;
|
||||
mod tile_vert;
|
||||
pub mod visual_style;
|
||||
@@ -120,6 +121,7 @@ impl CadModule for ViewModule {
|
||||
tools: vec![
|
||||
RibbonItem::LargeTool(tool_palettes::tool()),
|
||||
RibbonItem::LargeTool(properties_palette::tool()),
|
||||
RibbonItem::LargeTool(count_palette::tool()),
|
||||
RibbonItem::LargeTool(sheetset::tool()),
|
||||
],
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user