forked from 1b-agent/opencadstudio-upstream
feat(dimstyle): add Annotative toggle to the Dimension Style editor
Adds the annotative property (DsField::Annotative) to the dim-style edit buffers, load/apply, and a checkbox on the Fit/Scale tab — consistent with the Text Style editor's annotative toggle. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
1 parent
52850947d2
commit
07a2a05975
4 files changed
+9
No files matched your search
@@ -390,6 +390,7 @@ pub(super) struct OpenCADStudio {
|
||||
ds_dimtm: String,
|
||||
ds_dimtdec: String,
|
||||
ds_dimtfac: String,
|
||||
ds_annotative: bool,
|
||||
}
|
||||
|
||||
/// What triggered the "unsaved changes" dialog.
|
||||
@@ -432,6 +433,7 @@ pub enum DsField {
|
||||
Dimtm,
|
||||
Dimtdec,
|
||||
Dimtfac,
|
||||
Annotative,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
@@ -1100,6 +1102,7 @@ impl OpenCADStudio {
|
||||
ds_dimtm: "0".to_string(),
|
||||
ds_dimtdec: "2".to_string(),
|
||||
ds_dimtfac: "1".to_string(),
|
||||
ds_annotative: false,
|
||||
};
|
||||
app.sync_ribbon_layers();
|
||||
app
|
||||
|
||||
Reference in new issue
Block a user