2026-03-22 14:56:27 +03:00
|
|
|
/// Single source of truth for UI row height (px).
|
|
|
|
|
/// Change this to scale the ribbon, layer manager rows, and property panel rows uniformly.
|
|
|
|
|
pub const ROW_H: f32 = 26.0;
|
|
|
|
|
|
2026-04-22 22:22:33 +03:00
|
|
|
pub mod about;
|
2026-03-22 14:56:27 +03:00
|
|
|
pub mod app_menu;
|
2026-06-14 10:42:39 +03:00
|
|
|
pub mod color_select;
|
2026-03-22 14:56:27 +03:00
|
|
|
pub mod command_line;
|
2026-06-18 12:29:32 +03:00
|
|
|
pub mod icons;
|
2026-03-22 14:56:27 +03:00
|
|
|
pub mod layers;
|
2026-04-08 22:56:51 +03:00
|
|
|
pub mod layout_manager;
|
2026-06-16 18:59:13 +03:00
|
|
|
pub mod modal;
|
2026-05-13 09:59:07 +03:00
|
|
|
pub mod open_progress;
|
2026-03-22 14:56:27 +03:00
|
|
|
pub mod overlay;
|
2026-04-08 22:56:51 +03:00
|
|
|
pub mod page_setup;
|
2026-06-15 01:46:09 +03:00
|
|
|
pub mod plugin_manager;
|
refactor: group ui/ style+popup dirs, rename cmd_result driver
- Group the flat src/ui/ dir: move the 9 style editors into ui/style/
(dimstyle, mleaderstyle, mlstyle, plotstyle, textstyle, tablestyle,
point_style, style_list, style_manager) and the 6 popups into
ui/popup/ (cycle, isolate, scale, selection_filter, snap, units).
Call sites repointed to crate::ui::style::/crate::ui::popup::; no
compat re-exports. ui/ root drops from 36 to 21 files.
- Rename app/cmd_result.rs -> app/command_driver.rs: the file is the
StepInput->feed_command driver, not the CmdResult type (which lives
in command.rs). Name now matches contents.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-26 23:34:10 +03:00
|
|
|
pub mod popup;
|
2026-03-22 14:56:27 +03:00
|
|
|
pub mod properties;
|
|
|
|
|
pub mod ribbon;
|
2026-06-12 02:07:26 +03:00
|
|
|
pub mod side_toolbar;
|
2026-05-12 10:36:15 +03:00
|
|
|
pub mod shortcuts;
|
2026-03-22 14:56:27 +03:00
|
|
|
pub mod statusbar;
|
2026-06-04 19:14:04 +03:00
|
|
|
pub mod statusbar_config;
|
|
|
|
|
pub mod statusbar_menu;
|
refactor: group ui/ style+popup dirs, rename cmd_result driver
- Group the flat src/ui/ dir: move the 9 style editors into ui/style/
(dimstyle, mleaderstyle, mlstyle, plotstyle, textstyle, tablestyle,
point_style, style_list, style_manager) and the 6 popups into
ui/popup/ (cycle, isolate, scale, selection_filter, snap, units).
Call sites repointed to crate::ui::style::/crate::ui::popup::; no
compat re-exports. ui/ root drops from 36 to 21 files.
- Rename app/cmd_result.rs -> app/command_driver.rs: the file is the
StepInput->feed_command driver, not the CmdResult type (which lives
in command.rs). Name now matches contents.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-26 23:34:10 +03:00
|
|
|
pub mod style;
|
2026-06-09 19:04:18 +03:00
|
|
|
pub mod text_util;
|
feat(styles): unify the five style managers behind a shared frame
The text/dimension/table/multileader/multiline managers were hand-copied,
so their list CRUD kept drifting and breaking: Dimension's New created
nothing (#73), new text styles never reached the ribbon dropdown (#74),
and several were added with a NULL handle (dropped on DWG save, #67).
Collapse the duplicated parts into three shared pieces and leave only the
per-manager property editor bespoke:
- app/style_ops.rs: one StyleKind-dispatched CRUD layer (new / copy /
delete / rename) handling handle allocation, ribbon sync, Table re-key
and name-reference rewrites in a single place.
- ui/style_manager.rs: the window scaffold — uniform toolbar (New / Copy /
Delete on the left, Set Current + Apply on the right), style list and
chrome. Each manager now only builds its editor.
- ui/style_list.rs: the list row — single click selects, double click
starts an inline rename.
New capabilities, now consistent across all five:
- Copy duplicates the selected style.
- Double-click a name to rename it inline.
- Right side is always Set Current + Apply (added Table set-current;
MLine apply is a documented placeholder until its editor is editable).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-10 15:03:34 +03:00
|
|
|
pub mod update_notice;
|
2026-03-22 14:56:27 +03:00
|
|
|
|
|
|
|
|
pub use app_menu::AppMenu;
|
|
|
|
|
pub use command_line::CommandLine;
|
|
|
|
|
pub use layers::LayerPanel;
|
|
|
|
|
pub use properties::PropertiesPanel;
|
|
|
|
|
pub use ribbon::Ribbon;
|
|
|
|
|
pub use statusbar::StatusBar;
|