Méthode | Description | |
---|---|---|
CheckDisposed ( ) : void | ||
SetConfigDlgInfo ( XmlNode configurationParameters, FdoCache cache, FwStyleSheet styleSheet, IMainWindowDelegateCallbacks mainWindowDelegateCallbacks, Mediator mediator, string sLayoutPropertyName ) : void |
Initialize the dialog after creating it.
|
|
XmlDocConfigureDlg ( ) : System |
Méthode | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Clean up any resources being used.
|
|
OnClosing ( CancelEventArgs e ) : void |
Save the location and size for next time.
|
|
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.
|
Méthode | Description | |
---|---|---|
AddChildNodes ( XmlNode layout, LayoutTreeNode ltnParent, int iStart ) : void | ||
AddUnspecifiedTypes ( bool fstemBased, int cvarTypes, LayoutTreeNode ltn ) : void | ||
AdjustAttributeValue ( XmlNode node, string sAttrName, string suffixCode ) : void | ||
AdjustLayoutName ( string sName, string suffixCode ) : string | ||
BuildLayoutTree ( XmlNode xnLayoutType ) : List |
||
BuildMainLayout ( XmlNode config ) : LayoutTreeNode | ||
CheckNodeAndChildren ( TreeNode node, bool val ) : void | ||
ChildNodesMatch ( XmlNodeList firstNodeList, XmlNodeList secondNodeList ) : bool |
This method should sort the node lists and call NodesMatch with each pair.
|
|
ComparePossibilitiesByName ( ICmPossibility x, ICmPossibility y ) : int | ||
CopyAndRenameLayout ( string className, string layoutName, string suffixCode ) : void | ||
CopyConfiguration ( XmlNode xnBaseConfig, string code, string label ) : void | ||
CreateComboAndTreeItems ( string sLayoutType ) : void | ||
CreateConfigurationCopies ( IEnumerable |
||
CreateWsSpecficLayoutType ( XmlNode xnLayoutType, string sWsLabel, string sWsLayout, string sWsTag ) : XmlNode | ||
DeleteUnwantedConfigurations ( IEnumerable |
||
DetermineStateOfContextControls ( ) : void | ||
DisplayBeforeStyleControls ( bool fEnabled ) : void | ||
DisplayComplexFormConfigControls ( bool fEnabled ) : void | ||
DisplayContextControls ( bool fEnabled ) : void | ||
DisplayControlsForAnyNode ( bool fEnabled ) : void | ||
DisplayCurrentNodeDetails ( ) : void | ||
DisplayDetailsForAParentNode ( bool fEnabled ) : void | ||
DisplayDetailsForLeafNode ( bool fEnabled ) : void | ||
DisplayDetailsForRecursiveNode ( bool fEnabled ) : void | ||
DisplayDetailsForTopLevelNode ( ) : void | ||
DisplayGramInfoConfigControls ( bool fEnabled ) : void | ||
DisplaySenseConfigControls ( bool fEnabled ) : void | ||
DisplayStyleControls ( bool fEnabled ) : void | ||
DisplayTypeControls ( bool fEnabled ) : void | ||
DisplayWritingSystemControls ( bool fEnabled ) : void | ||
DuplicateLayout ( XmlNode xnLayout, string suffixCode, List |
Fix the cloned layout for use as a duplicate.
|
|
DuplicateLayoutSubtree ( int iDup ) : LayoutTreeNode | ||
EnableMoveDownButton ( ) : bool |
The MoveDown button is enabled only when the current node is not the last child of its parent tree node, and the following node comes from the same actual layout. (Remember, the parts from a sublayout node appear as children of the the same tree node as any parts from the layout containing the sublayout.)
|
|
EnableMoveUpButton ( ) : bool |
The MoveUp button is enabled only when the current node is not the first child of its parent tree node, and the preceding node comes from the same actual layout. (Remember, the parts from a sublayout node appear as children of the the same tree node as any parts from the sublayout node appear as children of the the same tree node as any parts from the layout containing the sublayout.)
|
|
EnableSenseConfigControls ( bool fEnabled ) : void | ||
FindMatchingLayoutInMap ( string layoutId, LayoutTypeComboItem>.Dictionary |
Gets the layout item matching a given code from the Manage Views dialog.
|
|
FindMatchingNode ( LayoutTreeNode ltn, XmlNode node ) : LayoutTreeNode | ||
FixEntryTypeList ( LayoutTreeNode ltn, string parentLayoutName ) : void | ||
FixLexRelationTypeList ( LayoutTreeNode ltn ) : void | ||
FlattenPossibilityList ( IEnumerable |
||
From96dpiX ( int input ) : int |
Convert a distance that is right at 96 dpi to the current screen dpi
|
|
From96dpiY ( int input ) : int |
Convert a distance that is right at 96 dpi to the current screen dpi
|
|
GenerateNumStyleFromCheckBoxes ( ) : string | ||
GenerateWsLabelFromListView ( ) : string | ||
GetBaseLabel ( IList nodes, List |
||
GetConfigFilePath ( XmlNode xnConfig, string configDir ) : string | ||
GetIndexToMoveTypeDown ( ListView sic ) : int | ||
GetIndexToMoveTypeUp ( ListView sic ) : int | ||
GetIndexToMoveWsDown ( ListView sic ) : int | ||
GetIndexToMoveWsUp ( ListView sic ) : int | ||
GetSortedFlattenedComplexFormTypeList ( ) : List |
||
GetSortedFlattenedVariantTypeList ( ) : List |
||
GetUnspecifiedItemName ( ItemTypeInfo info ) : string | ||
HandleStylesBtn ( ComboBox combo, Action fixCombo, string defaultStyle ) : void |
Returns the name of the style the user would like to select (null or empty if canceled).
|
|
HideComplexFormConfigControls ( ) : void | ||
HideGramInfoConfigControls ( ) : void | ||
HideSenseConfigControls ( ) : void | ||
HideStyleControls ( ) : void | ||
InitializeComplexFormTypeList ( ) : void | ||
InitializeComponent ( ) : void | ||
InitializeMinorEntryTypeList ( ) : void | ||
InitializeRelationList ( ) : void | ||
InitializeVariantTypeList ( ) : void | ||
InitializeWsListView ( ) : void | ||
IsDirty ( ) : bool |
Return true if any changes have been made to the layout configuration.
|
|
IsUnspecifiedPossibility ( ItemTypeInfo info ) : bool | ||
ListContainsGuid ( IList |
Searches a list of ItemTypeInfo items for a specific Guid (usually representing an unspecified type 'possibility'. Out variable gives the index at which the Guid is found in the list, or -1 if not found.
|
|
LoadLayoutMapFromComboBox ( ) : LayoutTypeComboItem>.Dictionary |
||
MakeDivInParaChildNotVisible ( LayoutTreeNode ltn, object sender ) : void | ||
MakeParentParaIfDivInParaVisible ( LayoutTreeNode ltn ) : void | ||
MakeSuffixLayout ( string code, string layoutName, string className ) : string | ||
MarkLayoutTreeNodesAsNew ( IEnumerable |
||
MoveControlVertically ( Control ctl, int dy ) : void | ||
MoveEntryTypeListItem ( int idx, int idxNew ) : void | ||
MoveListItem ( int idx, int newIndex ) : void | ||
MoveRelationTypeListItem ( int idx, int idxNew ) : void | ||
NodesMatch ( XmlNode first, XmlNode second ) : bool | ||
OnDuplicateClick ( object sender, EventArgs e ) : void | ||
OnItemTypeItemCheck ( ItemCheckEventArgs e ) : void |
We need to enforce one rule: at least one item must always be checked.
|
|
OnListItemsItemCheck ( object sender, ItemCheckEventArgs e ) : void | ||
OnListItemsSelectedIndexChanged ( object sender, EventArgs e ) : void | ||
OnMoveItemDownClick ( object sender, EventArgs e ) : void | ||
OnMoveItemUpClick ( object sender, EventArgs e ) : void | ||
OnWritingSystemsItemCheck ( ItemCheckEventArgs e ) : void |
We need to enforce two rules: 1. At least one item must always be checked. 2. If a magic ("Default Analysis" etc) item is checked, then it is the only one that can be checked.
|
|
PlaceContextControls ( Control belowThis ) : void |
Adjust the position of the context controls. If they need to go below a particular control, pass it as belowThis. To restore the original position pass null.
|
|
ProcessChildNodes ( XmlNodeList xmlNodeList, string className, LayoutTreeNode ltn ) : void |
Walk the tree of child nodes, storing information for each <obj> or <seq> node.
|
|
ProcessPartChildForDuplication ( string className, XmlNode xnCaller, XmlNode xnField, string suffixCode, List |
||
ProcessPartChildrenForDuplication ( string className, XmlNode xnCaller, XmlNodeList xmlNodeList, string suffixCode, List |
Processes any part children for duplication purposes, does nothing on empty xmlNodeLists
|
|
ProcessXMLConfigChanges ( IDictConfigManager presenter ) : void | ||
RenameConfigurations ( string>.IEnumerable |
||
RewriteComboBoxItemsAfterDelete ( LayoutTypeComboItem>.Dictionary |
||
RewriteComboBoxItemsAfterRename ( LayoutTypeComboItem>.Dictionary |
||
SaveModifiedLayouts ( ) : void | ||
SelectAllDefaultWritingSystems ( ) : void | ||
SelectDefaultWss ( int wsDefault, int wsDefault2 ) : void | ||
SetActiveNode ( LayoutTreeNode ltn, string className, string layoutName, string partRef ) : void | ||
SetActiveNode ( string nodePath ) : void |
Set the active node, based on a string generated by XmlVc.NodeIdentifier, which makes 3-part strings class:layoutName:partRef.
|
|
SetCharacterStyles ( ) : void | ||
SetDefaultWritingSystem ( int wsWanted ) : void | ||
SetItemListLocations ( ) : void | ||
SetNewActiveConfiguration ( string newActiveConfig ) : void | ||
SetNumStyleCheckStates ( ) : void | ||
SetParagraphStyles ( ) : void | ||
SetStylesLists ( ) : void | ||
ShowComplexFormRelatedControls ( bool fChecked ) : void | ||
ShowSenseConfigControls ( ) : void | ||
StoreChildNodeInfo ( XmlNode xn, string className, LayoutTreeNode ltn ) : void | ||
StoreComplexFormData ( LayoutTreeNode ltn ) : void | ||
StoreGramInfoData ( LayoutTreeNode ltn ) : void | ||
StoreNodeData ( LayoutTreeNode ltn ) : void | ||
StoreSenseConfigData ( LayoutTreeNode ltn ) : void | ||
UpdateLayoutName ( XmlNode node, string attrName, string code ) : void | ||
XmlDocConfigureDlg_FormClosed ( object sender, FormClosedEventArgs e ) : void | ||
generateChooserHelpTopicID ( string fromStr ) : string |
Generates a possible help topic id from an identifying string, but does NOT check it for validity!
|
|
m_btnBeforeStyles_Click ( object sender, EventArgs e ) : void |
Fire up the Styles dialog, and if necessary, reload the related combobox.
|
|
m_btnHelp_Click ( object sender, EventArgs e ) : void | ||
m_btnMoveDown_Click ( object sender, EventArgs e ) : void | ||
m_btnMoveUp_Click ( object sender, EventArgs e ) : void | ||
m_btnOK_Click ( object sender, EventArgs e ) : void | ||
m_btnRemove_Click ( object sender, EventArgs e ) : void | ||
m_btnRestoreDefaults_Click ( object sender, EventArgs e ) : void | ||
m_btnSetAll_Click ( object sender, EventArgs e ) : void | ||
m_btnStyles_Click ( object sender, EventArgs e ) : void |
Fire up the Styles dialog, and if necessary, reload the related combobox.
|
|
m_cbDictType_SelectedIndexChanged ( object sender, EventArgs e ) : void | ||
m_cfgSenses_SensesBtnClicked ( object sender, EventArgs e ) : void | ||
m_cfgSenses_SizeChanged ( object sender, System e ) : void | ||
m_chkComplexFormsAsParagraphs_CheckedChanged ( object sender, EventArgs e ) : void | ||
m_chkDisplayData_CheckedChanged ( object sender, EventArgs e ) : void |
Tie the "Display Data" checkbox to the corresponding checkbox in the treeview.
|
|
m_displaySenseInParaChecked ( object sender, EventArgs e ) : void | ||
m_linkConfigureHomograph_LinkClicked ( object sender, LinkLabelLinkClickedEventArgs e ) : void | ||
m_linkManageViews_LinkClicked ( object sender, LinkLabelLinkClickedEventArgs e ) : void |
Call the Dictionary Configuration Manager dialog when this "Manage Views" link text is clicked.
|
|
m_lnkConfigureNow_LinkClicked ( object sender, LinkLabelLinkClickedEventArgs e ) : void |
Move to the first child node when this "Configure Now" link text is clicked.
|
|
m_tbAfter_GotFocus ( object sender, EventArgs e ) : void | ||
m_tbAfter_LostFocus ( object sender, EventArgs e ) : void | ||
m_tbBefore_GotFocus ( object sender, EventArgs e ) : void |
When the focus returns, it's probably more useful to select at the end rather than selecting everything.
|
|
m_tbBefore_LostFocus ( object sender, EventArgs e ) : void |
Users want to see visible spaces. The only way to do this is to select everything, and show the selection when the focus leaves for elsewhere.
|
|
m_tbBetween_GotFocus ( object sender, EventArgs e ) : void | ||
m_tbBetween_LostFocus ( object sender, EventArgs e ) : void | ||
m_tb_TextChanged ( object sender, EventArgs e ) : void |
Certain characters are not allowed in XML, even escaped, including 0x0 through 0x1F. Prevent these characters from being entered. (actually, tabs and linebreaks are in that range and legal, but they cause other problems, so we remove them, too)
|
|
m_tvParts_AfterCheck ( object sender, TreeViewEventArgs e ) : void |
Don't allow the top-level nodes to be unchecked! Also, tie the check boxes in the tree view to the "Display Data" checkbox if the user clicks on the tree view while that node is the current one displayed in detail. LT-10472 says that not to restrict checkmarks for level 0. |
|
m_tvParts_AfterSelect ( object sender, TreeViewEventArgs e ) : void |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | true if managed resources should be disposed; otherwise, false. |
Résultat | void |
protected OnClosing ( CancelEventArgs e ) : void | ||
e | CancelEventArgs | |
Résultat | void |
public SetConfigDlgInfo ( XmlNode configurationParameters, FdoCache cache, FwStyleSheet styleSheet, IMainWindowDelegateCallbacks mainWindowDelegateCallbacks, Mediator mediator, string sLayoutPropertyName ) : void | ||
configurationParameters | XmlNode | |
cache | FdoCache | |
styleSheet | FwStyleSheet | |
mainWindowDelegateCallbacks | IMainWindowDelegateCallbacks | |
mediator | Mediator | |
sLayoutPropertyName | string | |
Résultat | void |