Skip to content

Commit e408947

Browse files
Merge branch 'release/9.3' into bugfix/flextextImport
2 parents a38c4d2 + c531282 commit e408947

3 files changed

Lines changed: 20 additions & 15 deletions

File tree

DistFiles/Language Explorer/Configuration/Parts/MorphologyParts.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2669,7 +2669,13 @@
26692669
<part id="PhNaturalClass-Detail-DescriptionAllA" type="Detail">
26702670
<slice field="Description" label="Description" editor="multistring" ws="all analysis"/>
26712671
</part>
2672-
</bin>
2672+
<!-- The following is a hack to keep the Phoneme/Features column from disappearing (LT-22171).
2673+
The Segments field is technically part of PhNCSegments, but the display code is expecting PhNaturalClass.
2674+
-->
2675+
<part id="PhNaturalClass-Jt-Segments" type="JtView">
2676+
<seq field="Segments" layout="shortname" />
2677+
</part>
2678+
</bin>
26732679
<bin class="PhNCSegments">
26742680
<part id="PhNCSegments-Detail-Segments" type="Detail">
26752681
<slice field="Segments" label="Phonemes" editor="defaultVectorReference">

Src/LexText/Interlinear/ChooseAnalysisHandler.cs

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@
33
// (http://www.gnu.org/licenses/lgpl-2.1.html)
44

55
using System;
6-
using System.Windows.Forms;
76
using System.Drawing;
8-
using SIL.LCModel;
7+
using System.Linq;
8+
using System.Windows.Forms;
99
using SIL.FieldWorks.Common.ViewsInterfaces;
10-
using SIL.LCModel.DomainServices;
11-
using SIL.FieldWorks.FdoUi;
12-
using SIL.LCModel.Utils;
1310
using SIL.FieldWorks.Common.Widgets;
14-
using SIL.LCModel.Core.Text;
11+
using SIL.FieldWorks.FdoUi;
12+
using SIL.LCModel;
1513
using SIL.LCModel.Core.KernelInterfaces;
14+
using SIL.LCModel.Core.Text;
15+
using SIL.LCModel.DomainServices;
16+
using SIL.LCModel.Utils;
1617

1718

1819
namespace SIL.FieldWorks.IText
@@ -311,9 +312,7 @@ void AddAnalysisItems(IWfiAnalysis wa)
311312
{
312313
AddItem(wa,
313314
MakeAnalysisStringRep(wa, m_cache, StyleSheet != null, (m_owner as SandboxBase).RawWordformWs), true);
314-
var guess_services = new AnalysisGuessServices(m_cache, IsParsingDevMode());
315-
var sorted_glosses = guess_services.GetSortedGlossGuesses(wa, m_occurrence);
316-
foreach (var gloss in sorted_glosses)
315+
foreach (var gloss in wa.MeaningsOC.ToList())
317316
{
318317
AddItem(gloss, MakeGlossStringRep(gloss, m_cache, StyleSheet != null), true);
319318
}

Src/xWorks/RecordClerk.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2864,15 +2864,15 @@ public void UpdateParsingDevStatusBarPanel()
28642864
var b = m_propertyTable.GetValue<StatusBarTextBox>("ParsingDev");
28652865
if (b == null) //Other xworks apps may not have this panel
28662866
return;
2867-
if (!m_propertyTable.GetBoolProperty("ParsingDevMode", false, PropertyTable.SettingsGroup.LocalSettings))
2867+
if (Id == "interlinearTexts" && m_propertyTable.GetBoolProperty("ParsingDevMode", false, PropertyTable.SettingsGroup.LocalSettings))
28682868
{
2869-
b.BackBrush = System.Drawing.Brushes.Transparent;
2870-
b.TextForReal = "";
2869+
b.BackBrush = System.Drawing.Brushes.Tan;
2870+
b.TextForReal = xWorksStrings.ParsingDev;
28712871
}
28722872
else
28732873
{
2874-
b.BackBrush = System.Drawing.Brushes.Tan;
2875-
b.TextForReal = xWorksStrings.ParsingDev;
2874+
b.BackBrush = System.Drawing.Brushes.Transparent;
2875+
b.TextForReal = "";
28762876
}
28772877
}
28782878

0 commit comments

Comments
 (0)