forked from 1b-agent/opencadstudio-upstream
Merge pull request #1549 from MarcelP102/codex/graphic-attributes-cleanup
[UX] Introducing graphic attributes panel # Conflicts: # locales/ar-SA/opencadstudio.ftl # locales/bg-BG/opencadstudio.ftl # locales/cs-CZ/opencadstudio.ftl # locales/de-DE/opencadstudio.ftl # locales/el-GR/opencadstudio.ftl # locales/en-US/opencadstudio.ftl # locales/es-ES/opencadstudio.ftl # locales/fi-FI/opencadstudio.ftl # locales/fr-FR/opencadstudio.ftl # locales/hi-IN/opencadstudio.ftl # locales/hu-HU/opencadstudio.ftl # locales/it-IT/opencadstudio.ftl # locales/ja-JP/opencadstudio.ftl # locales/ko-KR/opencadstudio.ftl # locales/lo-LA/opencadstudio.ftl # locales/nl-NL/opencadstudio.ftl # locales/pl-PL/opencadstudio.ftl # locales/pt-BR/opencadstudio.ftl # locales/ru-RU/opencadstudio.ftl # locales/tr-TR/opencadstudio.ftl # locales/zh-CN/opencadstudio.ftl # locales/zh-TW/opencadstudio.ftl # src/app/mod.rs # src/app/update/dialog.rs # src/app/view/mod.rs # src/locale_catalog.rs # src/ui/dock.rs
This commit is contained in:
commit
1333efcad2
68 files changed
+6178
-173
No files matched your search
@@ -253,6 +253,13 @@ impl HatchCommand {
|
||||
self
|
||||
}
|
||||
|
||||
pub fn with_pattern(mut self, name: impl Into<String>, pattern: HatchPattern) -> Self {
|
||||
self.pattern_override = Some((name.into(), pattern));
|
||||
self
|
||||
}
|
||||
|
||||
pub fn finish_selected(mut self) -> CmdResult { self.on_enter() }
|
||||
|
||||
fn set_object_selection(&mut self, handles: Vec<Handle>) {
|
||||
let mut segments = Vec::new();
|
||||
for handle in &handles {
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
|
||||
pub const ICON: IconKind = IconKind::Svg(include_bytes!(
|
||||
"../../../assets/icons/graphic_attributes.svg"
|
||||
));
|
||||
|
||||
pub fn tool() -> ToolDef {
|
||||
ToolDef {
|
||||
id: "GRAPHICATTRIBUTES",
|
||||
label: "Graphic Attributes",
|
||||
icon: ICON,
|
||||
event: ModuleEvent::Command("GRAPHICATTRIBUTES".to_string()),
|
||||
}
|
||||
}
|
||||
@@ -3,6 +3,7 @@
|
||||
mod cascade;
|
||||
mod count_palette;
|
||||
mod file_tabs;
|
||||
mod graphic_attributes_palette;
|
||||
mod layout_tabs;
|
||||
pub mod limits;
|
||||
mod orbit;
|
||||
@@ -123,6 +124,7 @@ impl CadModule for ViewModule {
|
||||
RibbonItem::LargeTool(tool_palettes::tool()),
|
||||
RibbonItem::LargeTool(properties_palette::tool()),
|
||||
RibbonItem::LargeTool(count_palette::tool()),
|
||||
RibbonItem::LargeTool(graphic_attributes_palette::tool()),
|
||||
RibbonItem::LargeTool(sheetset::tool()),
|
||||
],
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user