C# Class SIL.FieldWorks.FwCoreDlgs.CharContextCtrl

Class to support displaying the context(s) for a character string.
Inheritance: System.Windows.Forms.UserControl
ファイルを表示 Open project: sillsdev/FieldWorks Class Usage Examples

Private Properties

Property Type Description
AdjustContextGridColumnWidths void
CreateScrCharInventoryBldr IScrCheckInventory
GetTokenSubstrings List
GetTokensSubStrings void
HandleRowHeightInfoNeeded void
InitializeComponent void
LoadException void
NormalizeFileData void
ReadFile List
ReadTEScripture List
btnScan_Click void
cmnuScanFile_Click void
cmnuScanScripture_Click void
gridContext_CellPainting void
gridContext_CellValueNeeded void
gridContext_ClientSizeChanged void
m_tokenGrid_RowEnter void
scrDataSource_LoadException void

Public Methods

Method Description
AddContextInfo ( ContextInfo contextInfo ) : void

CharContextCtrl ( ) : System

Creates a new instance of the CharContextCtrl.

Initialize ( SIL.FieldWorks.FDO.FdoCache cache, IWritingSystemContainer wsContainer, IWritingSystem ws, IApp app, Font contextFont, System.Windows.Forms.DataGridView tokenGrid ) : void

Initializes this CharContextCtrl

RefreshContextGrid ( ) : void

ResetContextLists ( ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
AdjustContextGridColumnWidths ( ) : void

Adjusts the column widths in the context grid.

CreateScrCharInventoryBldr ( string checksDll, IChecksDataSource scrDataSource, string checkType ) : IScrCheckInventory
GetTokenSubstrings ( IScrCheckInventory inventory, List tokens ) : List

Gets the token substrings.

GetTokensSubStrings ( string fileName ) : void

Get the text token substrings from the data source and fire the event telling subscribers a list of text tokens is available.

HandleRowHeightInfoNeeded ( object sender, System.Windows.Forms.DataGridViewRowHeightInfoNeededEventArgs e ) : void

Handles the RowHeightInfoNeeded event of the gridCharInventory and gridContext grids.

InitializeComponent ( ) : void
LoadException ( ArgumentException e ) : void

Reports a load exception in the scrDataSource.

NormalizeFileData ( ) : void

Normalizes the strings read from the file into D (compatible decomposed).

ReadFile ( string fileName ) : List

Reads a file for text tokens.

ReadTEScripture ( ) : List

Reads the current TE scripture project.

btnScan_Click ( object sender, EventArgs e ) : void

cmnuScanFile_Click ( object sender, EventArgs e ) : void

cmnuScanScripture_Click ( object sender, EventArgs e ) : void

gridContext_CellPainting ( object sender, System.Windows.Forms.DataGridViewCellPaintingEventArgs e ) : void

Handles the CellPainting event of the gridContext control.

gridContext_CellValueNeeded ( object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e ) : void

gridContext_ClientSizeChanged ( object sender, EventArgs e ) : void

Adjust the width of the columns so they just fit inside the client area of the grid.

m_tokenGrid_RowEnter ( object sender, System.Windows.Forms.DataGridViewCellEventArgs e ) : void

scrDataSource_LoadException ( ArgumentException e ) : void

Reports a load exception in the scrDataSource.

Method Details

AddContextInfo() public method

public AddContextInfo ( ContextInfo contextInfo ) : void
contextInfo ContextInfo
return void

CharContextCtrl() public method

Creates a new instance of the CharContextCtrl.
public CharContextCtrl ( ) : System
return System

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

Initialize() public method

Initializes this CharContextCtrl
public Initialize ( SIL.FieldWorks.FDO.FdoCache cache, IWritingSystemContainer wsContainer, IWritingSystem ws, IApp app, Font contextFont, System.Windows.Forms.DataGridView tokenGrid ) : void
cache SIL.FieldWorks.FDO.FdoCache The cache.
wsContainer IWritingSystemContainer The writing system container.
ws IWritingSystem The language definition.
app IApp The application.
contextFont System.Drawing.Font The context font.
tokenGrid System.Windows.Forms.DataGridView The token grid.
return void

RefreshContextGrid() public method

public RefreshContextGrid ( ) : void
return void

ResetContextLists() public method

public ResetContextLists ( ) : void
return void