Co-locate CadCommand impls with their ribbon toolbar modules
Each command implementation is now in the same file as its ribbon tool definition. Groups moved to a dedicated groups/ toolbar folder. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
bdde862597
commit
468633c1fe
18 changed files with 264 additions and 275 deletions
|
|
@ -1,12 +1,14 @@
|
|||
// Home module — Draw, Modify, Annotation and Layer tools.
|
||||
|
||||
mod clipboard;
|
||||
pub mod clipboard;
|
||||
pub mod defaults;
|
||||
mod donate;
|
||||
pub mod draw;
|
||||
mod layers;
|
||||
pub mod groups;
|
||||
pub mod layers;
|
||||
pub mod modify;
|
||||
mod properties;
|
||||
pub mod properties;
|
||||
pub mod select;
|
||||
|
||||
use crate::modules::{CadModule, RibbonGroup, RibbonItem};
|
||||
|
||||
|
|
@ -27,9 +29,10 @@ impl CadModule for HomeModule {
|
|||
use donate;
|
||||
use draw::{arc, circle, ellipse, hatch, line, polyline, shapes};
|
||||
use layers::{layfrz, laylck, layoff, layon, laythw, layulk, make_current, match_layer, panel};
|
||||
use groups::{group, ungroup};
|
||||
use modify::{
|
||||
array, copy, delete, explode, fillet, group, mirror, offset, rotate, scale, stretch,
|
||||
translate, trim, ungroup,
|
||||
array, copy, delete, explode, fillet, mirror, offset, rotate, scale, stretch,
|
||||
translate, trim,
|
||||
};
|
||||
use properties::match_prop;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue