Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@
</part>
<part ref="DescriptionAllA">
</part>
<part ref="ShowInGloss" label="Use Abbreviation as label" abbr="sig"/>
<part ref="ShowInGloss" label="Use Abbreviation for value" abbr="sig"/>
</layout>

<layout class="FsClosedFeature" type="detail" name="Edit">
Expand All @@ -311,7 +311,7 @@
</part>
<part ref="DescriptionAllA">
</part>
<part ref="ShowInGloss" label="Use Abbreviation as label" abbr="sig"/>
<part ref="ShowInGloss" label="Use Abbreviation for value" abbr="sig"/>
</layout>

<layout class="FsClosedFeature" type="detail" name="PhonEdit">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1980,6 +1980,9 @@
<part id="FsFeatDefn-Detail-ShowInGloss" type="Detail">
<slice field="ShowInGloss" label="ShowInGloss" editor="Checkbox" tooltip="When displaying the values for this feature, include a label (the Feature Abbreviation) as well"/>
</part>
<part id="FsSymFeatVal-Detail-ShowInGloss" type="Detail">
<slice field="ShowInGloss" label="ShowInGloss" editor="Checkbox" tooltip="Display this feature value as its Abbreviation (instead of as its Name)"/>
</part>
</bin>
<bin class="FsComplexFeature">
<part id="FsComplexFeature-Jt-SpecialNote" type="jtview">
Expand Down
5 changes: 5 additions & 0 deletions Src/FdoUi/FdoUiCore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,11 @@ internal static CmObjectUi DefaultCreateNewUiObject(Mediator mediator, int class
{
int newHvo = cache.DomainDataByFlid.MakeNewObject(classId, hvoOwner, flid, insertionPosition);
newUiObj = MakeUi(cache, newHvo, classId);
if (newUiObj?.Object is IFsSymFeatVal featVal)
{
// Default to Use Abbreviation for value.
featVal.ShowInGloss = true;
}
});
return newUiObj;
}
Expand Down
Loading