C# Class ACAT.Extensions.Default.FunctionalAgents.AbbreviationsAgent.AbbreviationsScanner

Afficher le fichier Open project: brlima94/acat-localization Class Usage Examples

Méthodes publiques

Méthode Description
AbbreviationsScanner ( ) : System

Initializes a new instance of the class.

CheckWidgetEnabled ( CheckEnabledArgs arg ) : bool

Invoked to check if a scanner button should be enabled. Uses context to determine the 'enabled' state.

ClearFilter ( ) : void

Clears the search filter

GetInvoker ( ) : ExtensionInvoker

Returns the extension invoker object

Initialize ( StartupArg startupArg ) : bool

Initializes the form. Sets the position, initializes the scannercommon object

IsFilterEmpty ( ) : bool

Checks if the search filter is empty

LoadAbbreviations ( ) : void

Get the list of abbreviations and populates the list

OnFocusChanged ( WindowActivityMonitorInfo monitorInfo ) : void

Not used

OnPause ( ) : void

Pauses animation

OnQueryPanelChange ( PanelRequestEventArgs eventArg ) : bool

Show we allow deactivation?

OnResume ( ) : void

Resumes animation

OnRunCommand ( string command, bool &handled ) : void

Not used

OnWidgetActuated ( Widget widget, bool &handled ) : void

Called when a widget on the scanner is activated

Pause ( ) : void

Temporary disable keypress, pause animation

Resume ( ) : void

Resume key press handlers, resume animation

SetTargetControl ( Form parent, Widget widget ) : void

Not used

createStatusBar ( ) : void

Creates a status bar for the scanner

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnFormClosing ( FormClosingEventArgs e ) : void

Invoked when the form is closing. Release resources

Private Methods

Méthode Description
AbbreviationsScanner_FormClosing ( object sender, FormClosingEventArgs e ) : void

Release resources and stop threads/timers

AbbreviationsScanner_KeyDown ( object sender, KeyEventArgs e ) : void

Key down event handler

AbbreviationsScanner_Load ( object sender, EventArgs e ) : void

Initilaze. Load the abbreviations, populate list and display the abbreviations.

AbbreviationsScanner_LocationChanged ( object sender, EventArgs e ) : void

Event handler for when location of the form changes. Disallow this and redock the form

AbbreviationsScanner_Shown ( object sender, EventArgs e ) : void

Invoked when the form is shown. Make it the active window with focus

InitializeComponent ( ) : void

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

Instance_EvtScannerClosed ( object sender, ScannerCloseEventArg arg ) : void

Event handler for when a scanner closes. Reposition this scanner to its default position

Instance_EvtScannerShow ( object sender, ScannerShowEventArg arg ) : void

Displayed when the alphaet scanner is displayed. Dock this form with the currently active scanner

SearchFilter_TextChanged ( object sender, EventArgs e ) : void

User typed something in the search filter. Do a search to find matches in the list and display only those

SortOrderIcon_Click ( object sender, EventArgs e ) : void

User clicked on the sort order button. Switch the sort order

WndProc ( Message &m ) : void
_keyboardActuator_EvtKeyPress ( object sender, KeyPressEventArgs e ) : void

Key press handler

actuateWidget ( Widget widget, bool &handled ) : void

Handles actuation of a widget

dockToScanner ( Form scanner ) : void

Docks this form to the active scanner

enableWatchdogs ( ) : void

Enable watchdogs to see tha the form stays active

filterAbbreviations ( IEnumerable abbrList, String filter ) : List

If there is a search filter, show only abbrs that match the filter

gotoNextPage ( ) : void

Show the next pageful of entries

gotoPreviousPage ( ) : void

Show the previous pageful of entries

handleAddNewAbbreviation ( ) : void

User wants to add a new abbreviation

handleEditAbbreviation ( Abbreviation abbr ) : void

User wants to edit or delete an abbr

handleWidgetSelection ( Widget widget, bool &handled ) : void

Handles actuation of a widget

highlightOff ( ) : void

Turn highlight off on everything

includeAbbr ( Abbreviation abbr, String filter ) : bool

Matchs the abbr with the filter and tells whether there is a match or not. Checks only the mnemonic

refreshAbbreviationsList ( ) : void

Refreshes the list of abbreviations and displays the current pageful of abbreviations in the UI.

removeWatchdogs ( ) : void

Disable watchdogs

setFormStyles ( CreateParams createParams ) : CreateParams

Set the style of the form

sort ( List list, SortOrder order ) : List

Sorts the input list based on the sort order

switchSortOrder ( ) : void

Switch the sort order and refresh the abbreviations list

updateButtonBar ( ) : void

Updates the status bar with page number info, sort order etc.

updateStatusBar ( ) : void

Updates the status bar

Method Details

AbbreviationsScanner() public méthode

Initializes a new instance of the class.
public AbbreviationsScanner ( ) : System
Résultat System

CheckWidgetEnabled() public méthode

Invoked to check if a scanner button should be enabled. Uses context to determine the 'enabled' state.
public CheckWidgetEnabled ( CheckEnabledArgs arg ) : bool
arg CheckEnabledArgs info about the scanner button
Résultat bool

ClearFilter() public méthode

Clears the search filter
public ClearFilter ( ) : void
Résultat void

Dispose() protected méthode

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

GetInvoker() public méthode

Returns the extension invoker object
public GetInvoker ( ) : ExtensionInvoker
Résultat ExtensionInvoker

Initialize() public méthode

Initializes the form. Sets the position, initializes the scannercommon object
public Initialize ( StartupArg startupArg ) : bool
startupArg StartupArg args
Résultat bool

IsFilterEmpty() public méthode

Checks if the search filter is empty
public IsFilterEmpty ( ) : bool
Résultat bool

LoadAbbreviations() public méthode

Get the list of abbreviations and populates the list
public LoadAbbreviations ( ) : void
Résultat void

OnFocusChanged() public méthode

Not used
public OnFocusChanged ( WindowActivityMonitorInfo monitorInfo ) : void
monitorInfo WindowActivityMonitorInfo
Résultat void

OnFormClosing() protected méthode

Invoked when the form is closing. Release resources
protected OnFormClosing ( FormClosingEventArgs e ) : void
e FormClosingEventArgs event arg
Résultat void

OnPause() public méthode

Pauses animation
public OnPause ( ) : void
Résultat void

OnQueryPanelChange() public méthode

Show we allow deactivation?
public OnQueryPanelChange ( PanelRequestEventArgs eventArg ) : bool
eventArg PanelRequestEventArgs event arg
Résultat bool

OnResume() public méthode

Resumes animation
public OnResume ( ) : void
Résultat void

OnRunCommand() public méthode

Not used
public OnRunCommand ( string command, bool &handled ) : void
command string
handled bool
Résultat void

OnWidgetActuated() public méthode

Called when a widget on the scanner is activated
public OnWidgetActuated ( Widget widget, bool &handled ) : void
widget Widget widget activated
handled bool true if handled
Résultat void

Pause() public méthode

Temporary disable keypress, pause animation
public Pause ( ) : void
Résultat void

Resume() public méthode

Resume key press handlers, resume animation
public Resume ( ) : void
Résultat void

SetTargetControl() public méthode

Not used
public SetTargetControl ( Form parent, Widget widget ) : void
parent Form
widget Widget
Résultat void

createStatusBar() public méthode

Creates a status bar for the scanner
public createStatusBar ( ) : void
Résultat void