WIP count feature

This commit is contained in:
ramox81 committed 2026-10-02 17:52:13 +03:00
1 parent b8def31145
commit e29b408bda
26 files changed
+1887 -44

No files matched your search

+9
View File
@@ -155,6 +155,15 @@ impl OpenCADStudio {
);
}
FieldDialogMsg::PlotScale(k) => state.plot_scale = k,
FieldDialogMsg::CountExpression(v) => state.count_expression = v,
FieldDialogMsg::ShowCountInstances => {
// The dialog closes and count mode shows what the expression counts.
let json = state.count_expression.clone();
self.field_dialog = None;
self.close_active_modal();
self.show_count_instances(i, &json);
return Task::none();
}
FieldDialogMsg::SelectObject => {
// The dialog waits while one object is picked.
self.active_modal = None;