C# Класс SIL.FieldWorks.LexText.Controls.BaseGoDlg

Summary description for BaseGoDlg.
Наследование: System.Windows.Forms.Form, IFWDisposable
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
m_analHvos HashSet
m_btnClose System.Windows.Forms.Button
m_btnHelp System.Windows.Forms.Button
m_btnInsert System.Windows.Forms.Button
m_btnOK System.Windows.Forms.Button
m_cache SIL.FieldWorks.FDO.FdoCache
m_cbWritingSystems SIL.FieldWorks.Common.Controls.FwOverrideComboBox
m_formLabel Label
m_fwTextBoxBottomMsg FwTextBox
m_hasBeenActivated bool
m_helpProvider HelpProvider
m_helpTopic string
m_helpTopicProvider IHelpTopicProvider
m_matchingObjectsBrowser MatchingObjectsBrowser
m_mediator Mediator
m_objectsLabel Label
m_oldSearchKey string
m_panel1 Panel
m_searchAnimation SearchingAnimation
m_selObject ICmObject
m_skipCheck bool
m_tbForm FwTextBox
m_tsf ITsStrFactory
m_vernHvos HashSet
m_wsLabel Label

Открытые методы

Метод Описание
BaseGoDlg ( ) : System

Constructor.

CheckDisposed ( ) : void

Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.

SetDlgInfo ( SIL.FieldWorks.FDO.FdoCache cache, SIL.FieldWorks.LexText.Controls.WindowParams wp, XCore.Mediator mediator ) : void

Set up the dlg in preparation to showing it.

SetDlgInfo ( SIL.FieldWorks.FDO.FdoCache cache, SIL.FieldWorks.LexText.Controls.WindowParams wp, XCore.Mediator mediator, ITsString tssform ) : void

SetDlgInfo ( SIL.FieldWorks.FDO.FdoCache cache, SIL.FieldWorks.LexText.Controls.WindowParams wp, XCore.Mediator mediator, string form ) : void

Set up the dlg in preparation to showing it.

SetHelpTopic ( string helpTopic ) : void

Sets the help topic ID for the window. This is used in both the Help button and when the user hits F1

SetOkButtonText ( string text ) : void

Set the text for the OK button.

Защищенные методы

Метод Описание
AdjustText ( int &addToSelection ) : string
Dispose ( bool disposing ) : void

Clean up any resources being used.

FocusTbFormTheFirstTime ( ) : void

The first time it becomes possible, focus m_tbForm. Depending for some obscure reason on the DPI, events occur in different orders, and it may not be possible to focus this control at various points where we would like to. Do it (once) as soon as we can. Not more than that, lest we move the focus back here from somewhere else the user put it.

HandleMatchingSelectionChanged ( ) : void
HandleMatchingSelectionChanged ( FwObjectSelectionEventArgs e ) : void
InitializeMatchingObjects ( SIL.FieldWorks.FDO.FdoCache cache, XCore.Mediator mediator ) : void
LoadWritingSystemCombo ( ) : void
OnLoad ( EventArgs e ) : void

Overridden to defeat the standard .NET behavior of adjusting size by screen resolution. That is bad for this dialog because we remember the size, and if we remember the enlarged size, it just keeps growing. If we defeat it, it may look a bit small the first time at high resolution, but at least it will stay the size the user sets. This also ensures that m_tbForm has the focus when the dialog box first comes up, even for 120dpi fonts.

OnShown ( EventArgs e ) : void
ResetForm ( ) : void
ResetMatches ( string searchKey ) : void

Reset the list of matching items. This is not abstract so that this form can be opened in the Windows Forms Designer.

SetBottomMessage ( ) : void

Subclasses should override this, if they have special behavior for messages.

SetCbWritingSystemsSize ( ) : void

Increase the width of the writing systems combobox if needed to display the names. (This fixes FWNX-795.)

SetDlgInfo ( SIL.FieldWorks.FDO.FdoCache cache, SIL.FieldWorks.LexText.Controls.WindowParams wp, XCore.Mediator mediator, int ws ) : void
SetDlgInfo ( SIL.FieldWorks.FDO.FdoCache cache, SIL.FieldWorks.LexText.Controls.WindowParams wp, XCore.Mediator mediator, string form, int ws ) : void
SetupBottomMsg ( ) : int

Sets various proerties on the m_fwTextBoxBottomMsg control.

ShowControlsBasedOnPanel1Position ( ) : void
StartSearchAnimation ( ) : void
m_btnHelp_Click ( object sender, EventArgs e ) : void

Display help for this dialog.

m_btnInsert_Click ( object sender, EventArgs e ) : void
m_cbWritingSystems_SelectedIndexChanged ( object sender, EventArgs e ) : void
m_tbForm_KeyDown ( object sender, KeyEventArgs e ) : void

translate up and down arrow keys in the Find textbox into moving the selection in the matching entries list view.

m_tbForm_TextChanged ( object sender, EventArgs e ) : void

Приватные методы

Метод Описание
AdjustControlsToTextResize ( ) : void
BaseGoDlg_Activated ( object sender, EventArgs e ) : void
BaseGoDlg_Closed ( object sender, EventArgs e ) : void
GrowDialogAndAdjustControls ( int delta, Control grower ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

SetHelpButtonEnabled ( ) : void
SetupBasicTextProperties ( SIL.FieldWorks.LexText.Controls.WindowParams wp ) : void
m_matchingObjectsBrowser_SearchCompleted ( object sender, EventArgs e ) : void
m_matchingObjectsBrowser_SelectionMade ( object sender, FwObjectSelectionEventArgs e ) : void
m_matchingObjects_SelectionChanged ( object sender, FwObjectSelectionEventArgs e ) : void

Описание методов

AdjustText() защищенный Метод

protected AdjustText ( int &addToSelection ) : string
addToSelection int
Результат string

BaseGoDlg() публичный Метод

Constructor.
public BaseGoDlg ( ) : System
Результат System

CheckDisposed() публичный Метод

Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.
public CheckDisposed ( ) : void
Результат void

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
Результат void

FocusTbFormTheFirstTime() защищенный Метод

The first time it becomes possible, focus m_tbForm. Depending for some obscure reason on the DPI, events occur in different orders, and it may not be possible to focus this control at various points where we would like to. Do it (once) as soon as we can. Not more than that, lest we move the focus back here from somewhere else the user put it.
protected FocusTbFormTheFirstTime ( ) : void
Результат void

HandleMatchingSelectionChanged() защищенный Метод

protected HandleMatchingSelectionChanged ( ) : void
Результат void

HandleMatchingSelectionChanged() защищенный Метод

protected HandleMatchingSelectionChanged ( FwObjectSelectionEventArgs e ) : void
e FwObjectSelectionEventArgs
Результат void

InitializeMatchingObjects() защищенный Метод

protected InitializeMatchingObjects ( SIL.FieldWorks.FDO.FdoCache cache, XCore.Mediator mediator ) : void
cache SIL.FieldWorks.FDO.FdoCache
mediator XCore.Mediator
Результат void

LoadWritingSystemCombo() защищенный Метод

protected LoadWritingSystemCombo ( ) : void
Результат void

OnLoad() защищенный Метод

Overridden to defeat the standard .NET behavior of adjusting size by screen resolution. That is bad for this dialog because we remember the size, and if we remember the enlarged size, it just keeps growing. If we defeat it, it may look a bit small the first time at high resolution, but at least it will stay the size the user sets. This also ensures that m_tbForm has the focus when the dialog box first comes up, even for 120dpi fonts.
protected OnLoad ( EventArgs e ) : void
e System.EventArgs
Результат void

OnShown() защищенный Метод

protected OnShown ( EventArgs e ) : void
e System.EventArgs
Результат void

ResetForm() защищенный Метод

protected ResetForm ( ) : void
Результат void

ResetMatches() защищенный Метод

Reset the list of matching items. This is not abstract so that this form can be opened in the Windows Forms Designer.
protected ResetMatches ( string searchKey ) : void
searchKey string
Результат void

SetBottomMessage() защищенный Метод

Subclasses should override this, if they have special behavior for messages.
protected SetBottomMessage ( ) : void
Результат void

SetCbWritingSystemsSize() защищенный Метод

Increase the width of the writing systems combobox if needed to display the names. (This fixes FWNX-795.)
protected SetCbWritingSystemsSize ( ) : void
Результат void

SetDlgInfo() публичный Метод

Set up the dlg in preparation to showing it.
public SetDlgInfo ( SIL.FieldWorks.FDO.FdoCache cache, SIL.FieldWorks.LexText.Controls.WindowParams wp, XCore.Mediator mediator ) : void
cache SIL.FieldWorks.FDO.FdoCache FDO cache.
wp SIL.FieldWorks.LexText.Controls.WindowParams Strings used for various items in this dialog.
mediator XCore.Mediator
Результат void

SetDlgInfo() публичный Метод

public SetDlgInfo ( SIL.FieldWorks.FDO.FdoCache cache, SIL.FieldWorks.LexText.Controls.WindowParams wp, XCore.Mediator mediator, ITsString tssform ) : void
cache SIL.FieldWorks.FDO.FdoCache
wp SIL.FieldWorks.LexText.Controls.WindowParams
mediator XCore.Mediator
tssform ITsString establishes the ws of the dialog.
Результат void

SetDlgInfo() защищенный Метод

protected SetDlgInfo ( SIL.FieldWorks.FDO.FdoCache cache, SIL.FieldWorks.LexText.Controls.WindowParams wp, XCore.Mediator mediator, int ws ) : void
cache SIL.FieldWorks.FDO.FdoCache
wp SIL.FieldWorks.LexText.Controls.WindowParams
mediator XCore.Mediator
ws int
Результат void

SetDlgInfo() публичный Метод

Set up the dlg in preparation to showing it.
public SetDlgInfo ( SIL.FieldWorks.FDO.FdoCache cache, SIL.FieldWorks.LexText.Controls.WindowParams wp, XCore.Mediator mediator, string form ) : void
cache SIL.FieldWorks.FDO.FdoCache FDO cache.
wp SIL.FieldWorks.LexText.Controls.WindowParams Strings used for various items in this dialog.
mediator XCore.Mediator
form string Form to use in main text edit box.
Результат void

SetDlgInfo() защищенный Метод

protected SetDlgInfo ( SIL.FieldWorks.FDO.FdoCache cache, SIL.FieldWorks.LexText.Controls.WindowParams wp, XCore.Mediator mediator, string form, int ws ) : void
cache SIL.FieldWorks.FDO.FdoCache
wp SIL.FieldWorks.LexText.Controls.WindowParams
mediator XCore.Mediator
form string
ws int
Результат void

SetHelpTopic() публичный Метод

Sets the help topic ID for the window. This is used in both the Help button and when the user hits F1
public SetHelpTopic ( string helpTopic ) : void
helpTopic string
Результат void

SetOkButtonText() публичный Метод

Set the text for the OK button.
public SetOkButtonText ( string text ) : void
text string
Результат void

SetupBottomMsg() защищенный Метод

Sets various proerties on the m_fwTextBoxBottomMsg control.
protected SetupBottomMsg ( ) : int
Результат int

ShowControlsBasedOnPanel1Position() защищенный Метод

protected ShowControlsBasedOnPanel1Position ( ) : void
Результат void

StartSearchAnimation() защищенный Метод

protected StartSearchAnimation ( ) : void
Результат void

m_btnHelp_Click() защищенный Метод

Display help for this dialog.
protected m_btnHelp_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void

m_btnInsert_Click() защищенный Метод

protected m_btnInsert_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void

m_cbWritingSystems_SelectedIndexChanged() защищенный Метод

protected m_cbWritingSystems_SelectedIndexChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void

m_tbForm_KeyDown() защищенный Метод

translate up and down arrow keys in the Find textbox into moving the selection in the matching entries list view.
protected m_tbForm_KeyDown ( object sender, KeyEventArgs e ) : void
sender object
e KeyEventArgs
Результат void

m_tbForm_TextChanged() защищенный Метод

protected m_tbForm_TextChanged ( object sender, EventArgs e ) : void
sender object
e EventArgs
Результат void

Описание свойств

m_analHvos защищенное свойство

protected HashSet m_analHvos
Результат HashSet

m_btnClose защищенное свойство

protected Button,System.Windows.Forms m_btnClose
Результат System.Windows.Forms.Button

m_btnHelp защищенное свойство

protected Button,System.Windows.Forms m_btnHelp
Результат System.Windows.Forms.Button

m_btnInsert защищенное свойство

protected Button,System.Windows.Forms m_btnInsert
Результат System.Windows.Forms.Button

m_btnOK защищенное свойство

protected Button,System.Windows.Forms m_btnOK
Результат System.Windows.Forms.Button

m_cache защищенное свойство

protected FdoCache,SIL.FieldWorks.FDO m_cache
Результат SIL.FieldWorks.FDO.FdoCache

m_cbWritingSystems защищенное свойство

protected FwOverrideComboBox,SIL.FieldWorks.Common.Controls m_cbWritingSystems
Результат SIL.FieldWorks.Common.Controls.FwOverrideComboBox

m_formLabel защищенное свойство

protected Label m_formLabel
Результат Label

m_fwTextBoxBottomMsg защищенное свойство

protected FwTextBox m_fwTextBoxBottomMsg
Результат FwTextBox

m_hasBeenActivated защищенное свойство

protected bool m_hasBeenActivated
Результат bool

m_helpProvider защищенное свойство

protected HelpProvider m_helpProvider
Результат HelpProvider

m_helpTopic защищенное свойство

protected string m_helpTopic
Результат string

m_helpTopicProvider защищенное свойство

protected IHelpTopicProvider m_helpTopicProvider
Результат IHelpTopicProvider

m_matchingObjectsBrowser защищенное свойство

protected MatchingObjectsBrowser m_matchingObjectsBrowser
Результат MatchingObjectsBrowser

m_mediator защищенное свойство

protected Mediator m_mediator
Результат Mediator

m_objectsLabel защищенное свойство

protected Label m_objectsLabel
Результат Label

m_oldSearchKey защищенное свойство

protected string m_oldSearchKey
Результат string

m_panel1 защищенное свойство

protected Panel m_panel1
Результат Panel

m_searchAnimation защищенное свойство

protected SearchingAnimation m_searchAnimation
Результат SearchingAnimation

m_selObject защищенное свойство

protected ICmObject m_selObject
Результат ICmObject

m_skipCheck защищенное свойство

Optional configuration parameters.
protected bool m_skipCheck
Результат bool

m_tbForm защищенное свойство

protected FwTextBox m_tbForm
Результат FwTextBox

m_tsf защищенное свойство

protected ITsStrFactory m_tsf
Результат ITsStrFactory

m_vernHvos защищенное свойство

protected HashSet m_vernHvos
Результат HashSet

m_wsLabel защищенное свойство

protected Label m_wsLabel
Результат Label