Свойство | Тип | Описание | |
---|---|---|---|
btnAdd | |||
btnCancel | |||
btnCopy | |||
btnModifyEthnologueInfo | |||
btnOk | |||
cbEncodingConverter | SIL.FieldWorks.Common.Controls.FwOverrideComboBox | ||
m_LanguageCode | |||
m_ShortWsName | |||
m_defaultFontsControl | SIL.FieldWorks.FwCoreDlgControls.DefaultFontsControl | ||
m_deleteButton | |||
m_listBoxRelatedWSs | |||
m_regionVariantControl | |||
m_sortLanguageComboBox | |||
m_sortRulesTextBox | |||
m_sortUsingComboBox | |||
m_tbLanguageName | |||
m_wsManager | IWritingSystemManager | ||
rbRightToLeft | |||
tabControl |
Метод | Описание | |
---|---|---|
AddNewWsForLanguage ( ) : void |
Adds a new writing system based on the selected language.
|
|
CheckDisposed ( ) : void |
Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.
|
|
SetupDialog ( IWritingSystem selectedWs, bool displayRelatedWss ) : void |
Set writing system and initialize some values for the dialog
|
|
SetupDialog ( LanguageSubtag languageSubtag, bool displayRelatedWss ) : void |
Setups the dialog.
|
|
ShowModifyDialog ( |
Shows the modify writing system properties dialog.
|
|
ShowNewDialog ( |
Shows the new writing system properties dialog.
|
|
SwitchTab ( int index ) : void |
handles cases for tabControl.SelectedIndex = index, and allows tests to override so that it can trigger events tabControl_Deselecting() and tabControl_SelectedIndexChanged() since for some reason those events aren't getting triggered in the tests.
|
|
WritingSystemPropertiesDialog ( SIL.FieldWorks.FDO.FdoCache cache, IWritingSystemManager wsManager, IWritingSystemContainer wsContainer, IHelpTopicProvider helpTopicProvider, IApp app, IVwStylesheet stylesheet ) : System |
Initializes a new instance of the T:WritingSystemPropertiesDialog class.
|
Метод | Описание | |
---|---|---|
CallShowDialog ( SIL.FieldWorks.FwCoreDlgs.LanguageSelectionDlg dlg ) : DialogResult |
Calls the ShowDialog of the LanguageSelectionDlg. Used for tests.
|
|
CheckOkToChangeContext ( ) : bool |
some user actions (e.g. Add ("Define New...") involve switching tabs to a context (e.g. General tab)that will allow the user the opportunity to make it Ok to change context. In that case, m_fSkipCheckOkToChangeContext should be set to true, so that switching tabs does not prematurely detect we're in an invalid state.
|
|
Dispose ( bool disposing ) : void | ||
LoadAvailableConverters ( ) : void |
Load the Available Encoding Converters.
|
|
SaveChanges ( ) : void |
Saves the changes to the writing system manager.
|
|
ShowMsgBoxCantCreateDuplicateWs ( IWritingSystem tempWs, IWritingSystem origWs ) : void |
Shows the "cannnot create duplicate writing system" message.
|
|
ShowMsgCantChangeUserWs ( IWritingSystem tempWs, IWritingSystem origWs ) : void |
Shows the "cannot change user writing system" message.
|
|
btnAddWsItemClicked ( object sender, |
Handles the Click event of the add writing system menu item.
|
|
btnCopy_Click ( object sender, |
Handles the Click event of the btnCopy control.
|
|
btnModifyEthnologueInfo_Click ( object sender, |
Handles the Click event of the btnModifyEthnologueInfo control.
|
|
btnNewWsItemClicked ( object sender, |
Handles the Click event of the new writing system menu item.
|
|
m_deleteButton_Click ( object sender, |
Handles the Click event of the btnRemove control.
|
|
tabControl_Deselecting ( object sender, System.Windows.Forms.TabControlCancelEventArgs e ) : void |
Handles the Deselecting event of the tabControl control.
|
|
tabControl_SelectedIndexChanged ( object sender, |
Handles the SelectedIndexChanged event of the tabControl control.
|
Метод | Описание | |
---|---|---|
AddWritingSystem ( IWritingSystem tempWs, IWritingSystem origWs, bool fSwitchToGeneralTab ) : void | ||
CheckEncodingConverter ( ) : bool | ||
CheckIfSortingIsOK ( ) : bool | ||
CheckWsIdChange ( ) : bool |
Checks to see if the user writing system identifier is being changed, or if a writing system is using an identifier that already exists.
|
|
GetDictionaryName ( String languageId ) : string | ||
InitializeComponent ( ) : void | ||
IsNew ( IWritingSystem ws ) : bool | ||
IsWritingSystemHidden ( IWritingSystem ws ) : bool | ||
LoadShortWsNameFromCurrentWritingSystem ( ) : void | ||
LoadSortLanguageComboBox ( ) : void | ||
LoadSortUsingComboBox ( ) : void | ||
OnOk ( object sender, |
User clicked the OK button - persist the changes
|
|
PopulateRelatedWSsListBox ( IWritingSystem selectedWs ) : void |
Display WS's that are related to the 'ws' parameter of SetupDialog()
|
|
PopulateSpellingDictionaryComboBox ( ) : void |
Load the Spelling Dictionaries ComboBox
|
|
SelectWritingSystem ( IWritingSystem ws ) : void |
ListBox.SelectedItem actually selects the item by finding the index of the item in the Items collection and then setting the SelectedIndex. It searches through the Items collection using the the Equals() method. Writing systems implement the Equals() method to perform a value equality check instead of a reference equality check. Because of this, it is possible for the wrong item to be selected if there are multiple writing systems in the ListBox that have the same property values. This method avoids that problem by searching through the Items collection using reference equality and then setting the selected index.
|
|
Select_cbEncodingConverter ( ) : void |
Select the encoding converty for the currently selected writing system.
|
|
SetFullNameLabels ( string fullName ) : void | ||
SetLabelParams ( |
||
SetLanguageCodeLabels ( String str ) : void | ||
SetLanguageNameLabels ( ) : void | ||
Set_regionVariantControl ( IWritingSystem ws ) : void | ||
Set_tbLanguageName ( string languageName ) : void |
When changing the text of m_tbLanguageName we need to set a flag so that the TextChanged event handler will return without performing any changes.
|
|
SetupDialog ( IWritingSystem tempWs, IWritingSystem origWs, bool displayRelatedWss ) : void | ||
SetupDialogFromCurrentWritingSystem ( ) : void | ||
SetupEthnologueCode ( IWritingSystem ws ) : void | ||
SetupSortTab ( IWritingSystem ws ) : void | ||
UpdateDialogWithChangesToLanguageName ( ) : void | ||
UpdateLanguageNameAndWSsFromTextBox ( ) : void | ||
UpdateListBoxButtons ( ) : void | ||
WritingSystemPropertiesDialog ( ) : System |
Initializes a new instance of the T:WritingSystemPropertiesDialog class.
|
|
btnAdd_Click ( object sender, |
||
btnEncodingConverter_Click ( object sender, |
||
btnHelp_Click ( object sender, |
Open the appropriate Help file for selected tab (Name or Attributes).
|
|
btnPunctuation_Click ( object sender, |
||
btnValidChars_Click ( object sender, |
||
cbDictionaries_SelectedIndexChanged ( object sender, |
||
cbEncodingConverter_SelectedIndexChanged ( object sender, |
||
linkToEthnologue_LinkClicked ( object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e ) : void | ||
m_ShortWsName_TextChanged ( object sender, |
||
m_ampersandButton_Click ( object sender, |
||
m_angleBracketButton_Click ( object sender, |
||
m_listBoxRelatedWSs_DrawItem ( object sender, |
||
m_listBoxRelatedWSs_SelectedIndexChanged ( object sender, |
||
m_regionVariantControl_ScriptRegionVariantChanged ( object sender, |
||
m_similarWsButton_LocaleSelected ( object sender, |
||
m_sortLanguageComboBox_SelectedIndexChanged ( object sender, |
||
m_sortRulesTextBox_TextChanged ( object sender, |
||
m_sortUsingComboBox_SelectedIndexChanged ( object sender, |
||
m_tbLanguageName_TextChanged ( object sender, |
||
rbLeftToRight_CheckedChanged ( object sender, |
protected CallShowDialog ( SIL.FieldWorks.FwCoreDlgs.LanguageSelectionDlg dlg ) : DialogResult | ||
dlg | SIL.FieldWorks.FwCoreDlgs.LanguageSelectionDlg | The language selection dialog. |
Результат | DialogResult |
protected CheckOkToChangeContext ( ) : bool | ||
Результат | bool |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | |
Результат | void |
protected LoadAvailableConverters ( ) : void | ||
Результат | void |
public SetupDialog ( IWritingSystem selectedWs, bool displayRelatedWss ) : void | ||
selectedWs | IWritingSystem | The writing system. |
displayRelatedWss | bool | if set to |
Результат | void |
public SetupDialog ( LanguageSubtag languageSubtag, bool displayRelatedWss ) : void | ||
languageSubtag | LanguageSubtag | The language subtag. |
displayRelatedWss | bool | if set to |
Результат | void |
public static ShowModifyDialog ( |
||
owner | The owner. | |
selectedWs | IWritingSystem | The selected writing system. |
addNewForLangOfSelectedWs | bool | if set to |
cache | SIL.FieldWorks.FDO.FdoCache | The cache. |
wsContainer | IWritingSystemContainer | The ws container. |
helpTopicProvider | IHelpTopicProvider | The help topic provider. |
app | IApp | The app. |
stylesheet | IVwStylesheet | The stylesheet. |
newWritingSystems | IEnumerable |
The new writing systems. |
Результат | bool |
protected ShowMsgBoxCantCreateDuplicateWs ( IWritingSystem tempWs, IWritingSystem origWs ) : void | ||
tempWs | IWritingSystem | The temp writing system. |
origWs | IWritingSystem | The original writing system. |
Результат | void |
protected ShowMsgCantChangeUserWs ( IWritingSystem tempWs, IWritingSystem origWs ) : void | ||
tempWs | IWritingSystem | The temp writing system. |
origWs | IWritingSystem | The original writing system. |
Результат | void |
public static ShowNewDialog ( |
||
owner | The owner. | |
cache | SIL.FieldWorks.FDO.FdoCache | The cache. |
wsManager | IWritingSystemManager | The ws manager. |
wsContainer | IWritingSystemContainer | The ws container. |
helpTopicProvider | IHelpTopicProvider | The help topic provider. |
app | IApp | The app. |
stylesheet | IVwStylesheet | The stylesheet. |
displayRelatedWss | bool | if set to |
defaultName | string | The default language name for the new writing system. |
newWritingSystems | IEnumerable |
The new writing systems. |
Результат | bool |
public SwitchTab ( int index ) : void | ||
index | int | The index. |
Результат | void |
public WritingSystemPropertiesDialog ( SIL.FieldWorks.FDO.FdoCache cache, IWritingSystemManager wsManager, IWritingSystemContainer wsContainer, IHelpTopicProvider helpTopicProvider, IApp app, IVwStylesheet stylesheet ) : System | ||
cache | SIL.FieldWorks.FDO.FdoCache | The cache. |
wsManager | IWritingSystemManager | The ws manager. |
wsContainer | IWritingSystemContainer | The ws container. |
helpTopicProvider | IHelpTopicProvider | The help topic provider. |
app | IApp | The app. |
stylesheet | IVwStylesheet | The stylesheet. |
Результат | System |
protected btnAddWsItemClicked ( object sender, |
||
sender | object | The sender. |
e | The |
|
Результат | void |
protected btnCopy_Click ( object sender, |
||
sender | object | The source of the event. |
e | The |
|
Результат | void |
protected btnModifyEthnologueInfo_Click ( object sender, |
||
sender | object | The source of the event. |
e | The |
|
Результат | void |
protected btnNewWsItemClicked ( object sender, |
||
sender | object | The sender. |
e | The |
|
Результат | void |
protected m_deleteButton_Click ( object sender, |
||
sender | object | The source of the event. |
e | The |
|
Результат | void |
protected tabControl_Deselecting ( object sender, System.Windows.Forms.TabControlCancelEventArgs e ) : void | ||
sender | object | The source of the event. |
e | System.Windows.Forms.TabControlCancelEventArgs | The |
Результат | void |
protected tabControl_SelectedIndexChanged ( object sender, |
||
sender | object | The source of the event. |
e | The |
|
Результат | void |
protected Button,System.Windows.Forms btnAdd | ||
Результат |
protected Button,System.Windows.Forms btnCancel | ||
Результат |
protected Button,System.Windows.Forms btnCopy | ||
Результат |
protected Button,System.Windows.Forms btnModifyEthnologueInfo | ||
Результат |
protected Button,System.Windows.Forms btnOk | ||
Результат |
protected FwOverrideComboBox,SIL.FieldWorks.Common.Controls cbEncodingConverter | ||
Результат | SIL.FieldWorks.Common.Controls.FwOverrideComboBox |
protected Label,System.Windows.Forms m_LanguageCode | ||
Результат |
protected TextBox,System.Windows.Forms m_ShortWsName | ||
Результат |
protected DefaultFontsControl,SIL.FieldWorks.FwCoreDlgControls m_defaultFontsControl | ||
Результат | SIL.FieldWorks.FwCoreDlgControls.DefaultFontsControl |
protected Button,System.Windows.Forms m_deleteButton | ||
Результат |
protected ListBox,System.Windows.Forms m_listBoxRelatedWSs | ||
Результат |
protected RegionVariantControl,SIL.FieldWorks.FwCoreDlgControls m_regionVariantControl | ||
Результат |
protected ComboBox,System.Windows.Forms m_sortLanguageComboBox | ||
Результат |
protected FwTextBox,SIL.FieldWorks.Common.Widgets m_sortRulesTextBox | ||
Результат |
protected ComboBox,System.Windows.Forms m_sortUsingComboBox | ||
Результат |
protected TextBox,System.Windows.Forms m_tbLanguageName | ||
Результат |
protected IWritingSystemManager m_wsManager | ||
Результат | IWritingSystemManager |
protected RadioButton,System.Windows.Forms rbRightToLeft | ||
Результат |