use super::{FeatureInfo, Workbench, WorkbenchButton};
pub const PANEL_ID: &str = "cam";
pub const NEW_SETUP_BUTTON_ID: &str = "cam.new_setup";
pub const NEW_TOOL_BUTTON_ID: &str = "cam.new_tool";
pub const NEW_OPERATION_BUTTON_ID: &str = "cam.new_operation";
pub const GENERATE_BUTTON_ID: &str = "cam.generate";
fn includes(_feature: &FeatureInfo<'_>) -> bool {
false
}
static BUTTONS: &[WorkbenchButton] = &[
WorkbenchButton {
id: NEW_SETUP_BUTTON_ID,
glyph: "\u{E0C8}",
ribbon_path: "Home/CAM/New setup", size: crate::workbench::CommandSize::Large, tooltip: "New setup: a work coordinate system, stock and heights for the model",
when: None,
pressed: None,
disabled: None,
caption: None,
menu: &[],
},
WorkbenchButton {
id: NEW_TOOL_BUTTON_ID,
glyph: "\u{E0C9}",
ribbon_path: "Home/CAM/New tool", size: crate::workbench::CommandSize::Large, tooltip: "New tool: add a cutter to the document's tool library",
when: None,
pressed: None,
disabled: None,
caption: None,
menu: &[],
},
WorkbenchButton {
id: NEW_OPERATION_BUTTON_ID,
glyph: "\u{E0CA}",
ribbon_path: "Home/CAM/New operation", size: crate::workbench::CommandSize::Large, tooltip: "New operation: a machining strategy against picked geometry, in the selected setup",
when: None,
pressed: None,
disabled: None,
caption: None,
menu: &[],
},
WorkbenchButton {
id: GENERATE_BUTTON_ID,
glyph: "\u{E0CB}",
ribbon_path: "Home/CAM/Generate", size: crate::workbench::CommandSize::Large, tooltip: "Generate: compute the toolpaths of every operation that needs it, in the background",
when: None,
pressed: None,
disabled: None,
caption: None,
menu: &[],
},
];
static PANELS: &[&str] = &[PANEL_ID];
pub static CAM: Workbench = Workbench {
id: "cam",
label: "CAM",
glyph: "\u{E0C7}",
includes,
buttons: BUTTONS,
panels: PANELS,
};