Skip to content

Conversation

@jtmaxwell3
Copy link
Collaborator

@jtmaxwell3 jtmaxwell3 commented Dec 19, 2025

This implements https://jira.sil.org/browse/LT-22331 based on code originally written for https://jira.sil.org/browse/LT-22093. It adds "Edit Lexical Entry..." to the sandbox combo handler to open a popup window to edit the current lexical entry. It also repurposes the retry button in InsertEntryDlg to create a new entry and then open a popup window to edit it. The Lexicon Edit Popup tool is defined in toolConfiguration.xml. PopupToolWindow implements popup tools.


This change is Reviewable

IWfiMorphBundle bundle = m_caches.RealObject(m_hvoMorph) as IWfiMorphBundle;
if (bundle?.MorphRA?.Owner != null)
return bundle.MorphRA.Owner as ILexEntry;
return null;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These three lines could be replaced with

return bundle?.MorphRA?.Owner as ILexEntry;

private ListBox.ObjectCollection m_MGAGlossListBoxItems;

private Button m_btnOK;
private Button m_btnRetry;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think m_btnCreateAndEdit would be a clearer name (matching the Text rather than the DialogResult).

mainControl.SuspendLayout();
m_mainContentControl = mainControl;
m_mainContentControl.Dock = DockStyle.Fill;
m_mainContentControl.AccessibleDescription = "XXXXXXXXXXXX";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this line is necessary, contentClass would be a more useful value.

@jtmaxwell3 jtmaxwell3 enabled auto-merge (squash) December 19, 2025 17:34
@jtmaxwell3 jtmaxwell3 merged commit 0b29d7f into release/9.3 Dec 19, 2025
4 of 5 checks passed
@jtmaxwell3 jtmaxwell3 deleted the LT-22093-popup branch December 19, 2025 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants