forked from 1b-agent/opencadstudio-upstream
first commit
This commit is contained in:
1 parent
d52c6440ff
commit
d2fdac7f1e
274 files changed
+89330
No files matched your search
@@ -0,0 +1,13 @@
|
||||
// Color tool — ribbon definition.
|
||||
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef {
|
||||
id: "COLOR",
|
||||
label: "Color",
|
||||
icon: IconKind::Glyph("🎨"),
|
||||
event: ModuleEvent::Command("COLOR".to_string()),
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef {
|
||||
id: "LAYFRZ",
|
||||
label: "Layer Freeze",
|
||||
icon: IconKind::Svg(include_bytes!("../../../../assets/icons/layers/layfrz.svg")),
|
||||
event: ModuleEvent::Command("LAYFRZ".to_string()),
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef {
|
||||
id: "LAYLCK",
|
||||
label: "Layer Lock",
|
||||
icon: IconKind::Svg(include_bytes!("../../../../assets/icons/layers/laylck.svg")),
|
||||
event: ModuleEvent::Command("LAYLCK".to_string()),
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef {
|
||||
id: "LAYOFF",
|
||||
label: "Layer Off",
|
||||
icon: IconKind::Svg(include_bytes!("../../../../assets/icons/layers/layoff.svg")),
|
||||
event: ModuleEvent::Command("LAYOFF".to_string()),
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef {
|
||||
id: "LAYON",
|
||||
label: "Turn All Layers On",
|
||||
icon: IconKind::Svg(include_bytes!("../../../../assets/icons/layers/layon.svg")),
|
||||
event: ModuleEvent::Command("LAYON".to_string()),
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef {
|
||||
id: "LAYTHW",
|
||||
label: "Thaw All Layers",
|
||||
icon: IconKind::Svg(include_bytes!("../../../../assets/icons/layers/laythw.svg")),
|
||||
event: ModuleEvent::Command("LAYTHW".to_string()),
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef {
|
||||
id: "LAYULK",
|
||||
label: "Layer Unlock",
|
||||
icon: IconKind::Svg(include_bytes!("../../../../assets/icons/layers/layulk.svg")),
|
||||
event: ModuleEvent::Command("LAYULK".to_string()),
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef {
|
||||
id: "LAYMCUR",
|
||||
label: "Make Current",
|
||||
icon: IconKind::Svg(include_bytes!("../../../../assets/icons/layers/laymcur.svg")),
|
||||
event: ModuleEvent::Command("LAYMCUR".to_string()),
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef {
|
||||
id: "LAYMATCH",
|
||||
label: "Match Layer",
|
||||
icon: IconKind::Svg(include_bytes!("../../../../assets/icons/layers/laymatch.svg")),
|
||||
event: ModuleEvent::Command("LAYMATCH".to_string()),
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
pub(super) mod color;
|
||||
pub(super) mod layfrz;
|
||||
pub(super) mod laylck;
|
||||
pub(super) mod layoff;
|
||||
pub(super) mod layon;
|
||||
pub(super) mod laythw;
|
||||
pub(super) mod layulk;
|
||||
pub(super) mod make_current;
|
||||
pub(super) mod match_layer;
|
||||
pub(super) mod panel;
|
||||
@@ -0,0 +1,12 @@
|
||||
// Layers panel toggle — ribbon definition.
|
||||
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef {
|
||||
id: "LAYERS",
|
||||
label: "Layers",
|
||||
icon: IconKind::Svg(include_bytes!("../../../../assets/icons/layers/panel.svg")),
|
||||
event: ModuleEvent::ToggleLayers,
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user