forked from 1b-agent/opencadstudio-upstream
cargo fmt
This commit is contained in:
1 parent
468cbde5e1
commit
ca07268c7c
204 files changed
+13997
-5525
No files matched your search
@@ -1,5 +1,10 @@
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/cascade.svg"));
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef { id: "CASCADE", label: "Cascade", icon: ICON, event: ModuleEvent::Command("CASCADE".to_string()) }
|
||||
ToolDef {
|
||||
id: "CASCADE",
|
||||
label: "Cascade",
|
||||
icon: ICON,
|
||||
event: ModuleEvent::Command("CASCADE".to_string()),
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,10 @@
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/file_tabs.svg"));
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef { id: "FILETAB", label: "File\nTabs", icon: ICON, event: ModuleEvent::Command("FILETAB".to_string()) }
|
||||
ToolDef {
|
||||
id: "FILETAB",
|
||||
label: "File\nTabs",
|
||||
icon: ICON,
|
||||
event: ModuleEvent::Command("FILETAB".to_string()),
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,10 @@
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/hidden.svg"));
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef { id: "HIDDENLINE", label: "Hidden", icon: ICON, event: ModuleEvent::Command("HIDDENLINE".to_string()) }
|
||||
ToolDef {
|
||||
id: "HIDDENLINE",
|
||||
label: "Hidden",
|
||||
icon: ICON,
|
||||
event: ModuleEvent::Command("HIDDENLINE".to_string()),
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,10 @@
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/layout_tabs.svg"));
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef { id: "LAYOUTTAB", label: "Layout\nTabs", icon: ICON, event: ModuleEvent::Command("LAYOUTTAB".to_string()) }
|
||||
ToolDef {
|
||||
id: "LAYOUTTAB",
|
||||
label: "Layout\nTabs",
|
||||
icon: ICON,
|
||||
event: ModuleEvent::Command("LAYOUTTAB".to_string()),
|
||||
}
|
||||
}
|
||||
+14
-16
@@ -9,6 +9,7 @@ mod orbit;
|
||||
mod ortho;
|
||||
mod pan;
|
||||
mod persp;
|
||||
pub mod plot_window;
|
||||
mod properties_palette;
|
||||
mod sheetset;
|
||||
mod solid;
|
||||
@@ -16,11 +17,11 @@ mod tile_horiz;
|
||||
mod tile_vert;
|
||||
mod tool_palettes;
|
||||
mod ucs_icon;
|
||||
mod viewcube;
|
||||
mod view_front;
|
||||
mod view_iso;
|
||||
mod view_right;
|
||||
mod view_top;
|
||||
mod viewcube;
|
||||
mod vports_config;
|
||||
mod vports_join;
|
||||
mod vports_named;
|
||||
@@ -30,7 +31,6 @@ mod xray;
|
||||
mod zoom_ext;
|
||||
mod zoom_in;
|
||||
mod zoom_out;
|
||||
pub mod plot_window;
|
||||
pub mod zoom_window;
|
||||
|
||||
use crate::modules::{CadModule, RibbonGroup, RibbonItem};
|
||||
@@ -82,20 +82,18 @@ impl CadModule for ViewModule {
|
||||
// WIREFRAME and SOLID ids are special-cased in ribbon.rs
|
||||
// for toggle-state highlighting based on Ribbon::wireframe.
|
||||
title: "Visual Style",
|
||||
tools: vec![
|
||||
RibbonItem::LargeDropdown {
|
||||
id: "VISUAL_STYLE",
|
||||
label: "Visual\nStyle",
|
||||
icon: wireframe::tool().icon,
|
||||
items: vec![
|
||||
("WIREFRAME", "Wireframe", wireframe::tool().icon),
|
||||
("SOLID", "Shaded", solid::tool().icon),
|
||||
("HIDDEN", "Hidden", hidden::tool().icon),
|
||||
("XRAY", "X-Ray", xray::tool().icon),
|
||||
],
|
||||
default: "WIREFRAME",
|
||||
},
|
||||
],
|
||||
tools: vec![RibbonItem::LargeDropdown {
|
||||
id: "VISUAL_STYLE",
|
||||
label: "Visual\nStyle",
|
||||
icon: wireframe::tool().icon,
|
||||
items: vec![
|
||||
("WIREFRAME", "Wireframe", wireframe::tool().icon),
|
||||
("SOLID", "Shaded", solid::tool().icon),
|
||||
("HIDDEN", "Hidden", hidden::tool().icon),
|
||||
("XRAY", "X-Ray", xray::tool().icon),
|
||||
],
|
||||
default: "WIREFRAME",
|
||||
}],
|
||||
},
|
||||
// ── Projection ────────────────────────────────────────────────────
|
||||
RibbonGroup {
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/navbar.svg"));
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef { id: "NAVBAR", label: "Navigation\nBar", icon: ICON, event: ModuleEvent::Command("NAVBAR".to_string()) }
|
||||
ToolDef {
|
||||
id: "NAVBAR",
|
||||
label: "Navigation\nBar",
|
||||
icon: ICON,
|
||||
event: ModuleEvent::Command("NAVBAR".to_string()),
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,10 @@
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/orbit.svg"));
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef { id: "3DORBIT", label: "3D Orbit", icon: ICON, event: ModuleEvent::Command("3DORBIT".to_string()) }
|
||||
ToolDef {
|
||||
id: "3DORBIT",
|
||||
label: "3D Orbit",
|
||||
icon: ICON,
|
||||
event: ModuleEvent::Command("3DORBIT".to_string()),
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,10 @@
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/ortho.svg"));
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef { id: "ORTHO", label: "Ortho", icon: ICON, event: ModuleEvent::Command("ORTHO".into()) }
|
||||
ToolDef {
|
||||
id: "ORTHO",
|
||||
label: "Ortho",
|
||||
icon: ICON,
|
||||
event: ModuleEvent::Command("ORTHO".into()),
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,10 @@
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/pan.svg"));
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef { id: "PAN", label: "Pan", icon: ICON, event: ModuleEvent::Command("PAN".to_string()) }
|
||||
ToolDef {
|
||||
id: "PAN",
|
||||
label: "Pan",
|
||||
icon: ICON,
|
||||
event: ModuleEvent::Command("PAN".to_string()),
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,10 @@
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/persp.svg"));
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef { id: "PERSP", label: "Persp", icon: ICON, event: ModuleEvent::Command("PERSP".into()) }
|
||||
ToolDef {
|
||||
id: "PERSP",
|
||||
label: "Persp",
|
||||
icon: ICON,
|
||||
event: ModuleEvent::Command("PERSP".into()),
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,9 @@ impl PlotWindowCommand {
|
||||
}
|
||||
|
||||
impl CadCommand for PlotWindowCommand {
|
||||
fn name(&self) -> &'static str { "PLOTWINDOW" }
|
||||
fn name(&self) -> &'static str {
|
||||
"PLOTWINDOW"
|
||||
}
|
||||
|
||||
fn prompt(&self) -> String {
|
||||
if self.p1.is_none() {
|
||||
@@ -48,10 +50,14 @@ impl CadCommand for PlotWindowCommand {
|
||||
Some(WireModel {
|
||||
name: "plotwindow_preview".into(),
|
||||
points: vec![
|
||||
[p1.x, p1.y, p1.z], [pt.x, p1.y, p1.z],
|
||||
[pt.x, p1.y, p1.z], [pt.x, pt.y, pt.z],
|
||||
[pt.x, pt.y, pt.z], [p1.x, pt.y, pt.z],
|
||||
[p1.x, pt.y, pt.z], [p1.x, p1.y, p1.z],
|
||||
[p1.x, p1.y, p1.z],
|
||||
[pt.x, p1.y, p1.z],
|
||||
[pt.x, p1.y, p1.z],
|
||||
[pt.x, pt.y, pt.z],
|
||||
[pt.x, pt.y, pt.z],
|
||||
[p1.x, pt.y, pt.z],
|
||||
[p1.x, pt.y, pt.z],
|
||||
[p1.x, p1.y, p1.z],
|
||||
],
|
||||
color: WireModel::CYAN,
|
||||
selected: false,
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/properties.svg"));
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef { id: "PROPERTIES", label: "Properties", icon: ICON, event: ModuleEvent::Command("PROPERTIES".to_string()) }
|
||||
ToolDef {
|
||||
id: "PROPERTIES",
|
||||
label: "Properties",
|
||||
icon: ICON,
|
||||
event: ModuleEvent::Command("PROPERTIES".to_string()),
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,10 @@
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/sheetset.svg"));
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef { id: "SHEETSET", label: "Sheet Set\nManager", icon: ICON, event: ModuleEvent::Command("SHEETSET".to_string()) }
|
||||
ToolDef {
|
||||
id: "SHEETSET",
|
||||
label: "Sheet Set\nManager",
|
||||
icon: ICON,
|
||||
event: ModuleEvent::Command("SHEETSET".to_string()),
|
||||
}
|
||||
}
|
||||
@@ -4,5 +4,10 @@
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/solid.svg"));
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef { id: "SOLID", label: "Solid", icon: ICON, event: ModuleEvent::SetWireframe(false) }
|
||||
ToolDef {
|
||||
id: "SOLID",
|
||||
label: "Solid",
|
||||
icon: ICON,
|
||||
event: ModuleEvent::SetWireframe(false),
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,10 @@
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/tile_horiz.svg"));
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef { id: "HORIZONTAL", label: "Tile\nHoriz.", icon: ICON, event: ModuleEvent::Command("HORIZONTAL".to_string()) }
|
||||
ToolDef {
|
||||
id: "HORIZONTAL",
|
||||
label: "Tile\nHoriz.",
|
||||
icon: ICON,
|
||||
event: ModuleEvent::Command("HORIZONTAL".to_string()),
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,10 @@
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/tile_vert.svg"));
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef { id: "VERTICAL", label: "Tile\nVert.", icon: ICON, event: ModuleEvent::Command("VERTICAL".to_string()) }
|
||||
ToolDef {
|
||||
id: "VERTICAL",
|
||||
label: "Tile\nVert.",
|
||||
icon: ICON,
|
||||
event: ModuleEvent::Command("VERTICAL".to_string()),
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,10 @@
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/tool_palettes.svg"));
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef { id: "TOOLPALETTES", label: "Tool\nPalettes", icon: ICON, event: ModuleEvent::Command("TOOLPALETTES".to_string()) }
|
||||
ToolDef {
|
||||
id: "TOOLPALETTES",
|
||||
label: "Tool\nPalettes",
|
||||
icon: ICON,
|
||||
event: ModuleEvent::Command("TOOLPALETTES".to_string()),
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,10 @@
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/ucs_icon.svg"));
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef { id: "UCSICON", label: "UCS\nIcon", icon: ICON, event: ModuleEvent::Command("UCSICON".to_string()) }
|
||||
ToolDef {
|
||||
id: "UCSICON",
|
||||
label: "UCS\nIcon",
|
||||
icon: ICON,
|
||||
event: ModuleEvent::Command("UCSICON".to_string()),
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,10 @@
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/view_front.svg"));
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef { id: "VIEW_FRONT", label: "Front", icon: ICON, event: ModuleEvent::Command("VIEW FRONT".to_string()) }
|
||||
ToolDef {
|
||||
id: "VIEW_FRONT",
|
||||
label: "Front",
|
||||
icon: ICON,
|
||||
event: ModuleEvent::Command("VIEW FRONT".to_string()),
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,10 @@
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/view_iso.svg"));
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef { id: "VIEW_ISO", label: "Iso", icon: ICON, event: ModuleEvent::Command("VIEW ISO".to_string()) }
|
||||
ToolDef {
|
||||
id: "VIEW_ISO",
|
||||
label: "Iso",
|
||||
icon: ICON,
|
||||
event: ModuleEvent::Command("VIEW ISO".to_string()),
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,10 @@
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/view_right.svg"));
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef { id: "VIEW_RIGHT", label: "Right", icon: ICON, event: ModuleEvent::Command("VIEW RIGHT".to_string()) }
|
||||
ToolDef {
|
||||
id: "VIEW_RIGHT",
|
||||
label: "Right",
|
||||
icon: ICON,
|
||||
event: ModuleEvent::Command("VIEW RIGHT".to_string()),
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,10 @@
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/view_top.svg"));
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef { id: "VIEW_TOP", label: "Top", icon: ICON, event: ModuleEvent::Command("VIEW TOP".to_string()) }
|
||||
ToolDef {
|
||||
id: "VIEW_TOP",
|
||||
label: "Top",
|
||||
icon: ICON,
|
||||
event: ModuleEvent::Command("VIEW TOP".to_string()),
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,10 @@
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/viewcube.svg"));
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef { id: "NAVVCUBE", label: "View\nCube", icon: ICON, event: ModuleEvent::Command("NAVVCUBE".to_string()) }
|
||||
ToolDef {
|
||||
id: "NAVVCUBE",
|
||||
label: "View\nCube",
|
||||
icon: ICON,
|
||||
event: ModuleEvent::Command("NAVVCUBE".to_string()),
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,10 @@
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/vports_config.svg"));
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef { id: "VPORTS", label: "Viewport\nConfiguration", icon: ICON, event: ModuleEvent::Command("VPORTS".to_string()) }
|
||||
ToolDef {
|
||||
id: "VPORTS",
|
||||
label: "Viewport\nConfiguration",
|
||||
icon: ICON,
|
||||
event: ModuleEvent::Command("VPORTS".to_string()),
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,10 @@
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/vports_join.svg"));
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef { id: "VPJOIN", label: "Join", icon: ICON, event: ModuleEvent::Command("VPJOIN".to_string()) }
|
||||
ToolDef {
|
||||
id: "VPJOIN",
|
||||
label: "Join",
|
||||
icon: ICON,
|
||||
event: ModuleEvent::Command("VPJOIN".to_string()),
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,10 @@
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/vports_named.svg"));
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef { id: "VPORTS_NAMED", label: "Named", icon: ICON, event: ModuleEvent::Command("VPORTS".to_string()) }
|
||||
ToolDef {
|
||||
id: "VPORTS_NAMED",
|
||||
label: "Named",
|
||||
icon: ICON,
|
||||
event: ModuleEvent::Command("VPORTS".to_string()),
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,11 @@
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/vports_restore.svg"));
|
||||
pub const ICON: IconKind =
|
||||
IconKind::Svg(include_bytes!("../../../assets/icons/vports_restore.svg"));
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef { id: "VPORTS_RESTORE", label: "Restore", icon: ICON, event: ModuleEvent::Command("VPORTS".to_string()) }
|
||||
ToolDef {
|
||||
id: "VPORTS_RESTORE",
|
||||
label: "Restore",
|
||||
icon: ICON,
|
||||
event: ModuleEvent::Command("VPORTS".to_string()),
|
||||
}
|
||||
}
|
||||
@@ -4,5 +4,10 @@
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/wireframe.svg"));
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef { id: "WIREFRAME", label: "Wireframe", icon: ICON, event: ModuleEvent::SetWireframe(true) }
|
||||
ToolDef {
|
||||
id: "WIREFRAME",
|
||||
label: "Wireframe",
|
||||
icon: ICON,
|
||||
event: ModuleEvent::SetWireframe(true),
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,10 @@
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/xray.svg"));
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef { id: "XRAY", label: "X-Ray", icon: ICON, event: ModuleEvent::Command("XRAY".to_string()) }
|
||||
ToolDef {
|
||||
id: "XRAY",
|
||||
label: "X-Ray",
|
||||
icon: ICON,
|
||||
event: ModuleEvent::Command("XRAY".to_string()),
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,10 @@
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/zoom_ext.svg"));
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef { id: "ZOOM_EXT", label: "Zoom\nExtents", icon: ICON, event: ModuleEvent::Command("ZOOM EXTENTS".to_string()) }
|
||||
ToolDef {
|
||||
id: "ZOOM_EXT",
|
||||
label: "Zoom\nExtents",
|
||||
icon: ICON,
|
||||
event: ModuleEvent::Command("ZOOM EXTENTS".to_string()),
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,10 @@
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/zoom_in.svg"));
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef { id: "ZOOM_IN", label: "Zoom In", icon: ICON, event: ModuleEvent::Command("ZOOM IN".to_string()) }
|
||||
ToolDef {
|
||||
id: "ZOOM_IN",
|
||||
label: "Zoom In",
|
||||
icon: ICON,
|
||||
event: ModuleEvent::Command("ZOOM IN".to_string()),
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,10 @@
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/zoom_out.svg"));
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef { id: "ZOOM_OUT", label: "Zoom Out", icon: ICON, event: ModuleEvent::Command("ZOOM OUT".to_string()) }
|
||||
ToolDef {
|
||||
id: "ZOOM_OUT",
|
||||
label: "Zoom Out",
|
||||
icon: ICON,
|
||||
event: ModuleEvent::Command("ZOOM OUT".to_string()),
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user