forked from 1b-agent/opencadstudio-upstream
feat(attedit): show attribute prompts in the editor
Each row in the attribute editor now shows the attribute's prompt — the text defined on the block's ATTDEF — falling back to the tag when the block defines no prompt. The prompt is read from the block definition, since attribute instances carry only tag + value. Bumps the acadrust pin to pull the matching reader fix: its DWG object reader was discarding the ATTDEF prompt, so every prompt came back empty. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
1 parent
86a59d6c7e
commit
0eb347bf47
5 files changed
+71
-35
No files matched your search
+5
-3
@@ -361,9 +361,11 @@ pub(super) struct OpenCADStudio {
|
||||
attr_editor_handle: Option<acadrust::Handle>,
|
||||
/// Block name shown in the editor's title bar.
|
||||
attr_editor_block: String,
|
||||
/// Working copy of the block's attributes as `(tag, value)`, in the same
|
||||
/// order as `Insert::attributes`. Edited live; written back on OK.
|
||||
attr_editor_fields: Vec<(String, String)>,
|
||||
/// Working copy of the block's attributes as `(tag, prompt, value)`, in the
|
||||
/// same order as `Insert::attributes`. The prompt is read from the block's
|
||||
/// matching ATTDEF (blank if none). Only the value is edited; the whole row
|
||||
/// is written back on OK.
|
||||
attr_editor_fields: Vec<(String, String, String)>,
|
||||
/// Plugin ids the user turned off in the Plugin Manager. Disabled plugins
|
||||
/// keep their manifest listed but drop their ribbon tab and command
|
||||
/// dispatch. Persisted via [`settings::UserSettings::disabled_plugins`].
|
||||
|
||||
Reference in new issue
Block a user