-
-
Notifications
You must be signed in to change notification settings - Fork 41
LT-22331: Pop-up Lexicon Edit pane in Interlinear view #596
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… into LT-22093-popup
| IWfiMorphBundle bundle = m_caches.RealObject(m_hvoMorph) as IWfiMorphBundle; | ||
| if (bundle?.MorphRA?.Owner != null) | ||
| return bundle.MorphRA.Owner as ILexEntry; | ||
| return null; |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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).
Src/xWorks/PopupToolWindow.cs
Outdated
| mainControl.SuspendLayout(); | ||
| m_mainContentControl = mainControl; | ||
| m_mainContentControl.Dock = DockStyle.Fill; | ||
| m_mainContentControl.AccessibleDescription = "XXXXXXXXXXXX"; |
There was a problem hiding this comment.
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.
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