C# Class ACAT.Extensions.Default.FunctionalAgents.LaunchAppAgent.LaunchAppScanner

Inheritance: System.Windows.Forms.Form, IScannerPanel, IExtension
Datei anzeigen Open project: brlima94/acat-localization Class Usage Examples

Public Methods

Method Description
CheckWidgetEnabled ( ACAT.Lib.Core.AgentManagement.CheckEnabledArgs arg ) : bool

Sets the states of the buttons in the button bar and in the companion scanner (if any) depending on the current state.

ClearFilter ( ) : void

Clears the search filter

GetInvoker ( ) : ACAT.Lib.Core.Extensions.ExtensionInvoker

Returns the extension invoker object

Initialize ( ACAT.Lib.Core.PanelManagement.StartupArg startupArg ) : bool

Initialzes this class

IsFilterEmpty ( ) : bool

Returns if the filter string is empty

LaunchAppScanner ( ) : System

Initializes a new instance of the class.

OnFocusChanged ( ACAT.Lib.Core.Utility.WindowActivityMonitorInfo monitorInfo ) : void

Not used

OnPause ( ) : void

Not used

OnQueryPanelChange ( ACAT.Lib.Core.PanelManagement.PanelRequestEventArgs eventArg ) : bool

Not used

OnResume ( ) : void

Not used

OnRunCommand ( string command, bool &handled ) : void

not used

OnWidgetActuated ( ACAT.Lib.Core.WidgetManagement.Widget widget, bool &handled ) : void

Called when widget is actuated

SetTargetControl ( Form parent, ACAT.Lib.Core.WidgetManagement.Widget widget ) : void

Not used

createStatusBar ( ) : void

Creates a status bar for the scanner

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnFormClosing ( FormClosingEventArgs e ) : void

Invoked when the form is closing

Private Methods

Method Description
InitializeComponent ( ) : void

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

Instance_EvtScannerClosed ( object sender, ACAT.Lib.Core.PanelManagement.ScannerCloseEventArg arg ) : void

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

Instance_EvtScannerShow ( object sender, ACAT.Lib.Core.PanelManagement.ScannerShowEventArg arg ) : void

Invoked when companian scanner is displayed. Dock to it

LauncAppScanner_Load ( object sender, EventArgs e ) : void

The form has loaded. Initialize

LaunchAppScanner_FormClosing ( object sender, FormClosingEventArgs e ) : void

Release resources and stop threads/timers

LaunchAppScanner_KeyDown ( object sender, KeyEventArgs e ) : void

Key down handler

LaunchAppScanner_LocationChanged ( object sender, EventArgs e ) : void

Don't allow window to be moved. Re-dock

LaunchAppScanner_Shown ( object sender, EventArgs e ) : void

Set focus to this form

SearchFilter_TextChanged ( object sender, EventArgs e ) : void

Search filter text changed

SortOrderIcon_Click ( object sender, EventArgs e ) : void

Change the sort order

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

Key press event handler. Process the ESC key and quit if it is pressed

actuateWidget ( ACAT.Lib.Core.WidgetManagement.Widget widget, bool &handled ) : void

Find the widget that was actuated and act on it

dockToScanner ( Form scanner ) : void

Docks to the companian scanner

enableWatchdogs ( ) : void

Enables watchdogs

filterApps ( List list, String filter ) : List

Selects apps whose names match with the specified filter

getAppList ( SortOrder order ) : List

Returns a sorted list based on the sort order

getMeasuredString ( Graphics graphics, Font font, int width, String inputString ) : String

Returns string that graphically fits into the specified width. If it doesn't, curtails the string and adds ellipses

getWidgets ( ) : void

Stores widget objects from the form

gotoNextPage ( ) : void

Display next pageful of entries in the list

gotoPreviousPage ( ) : void

Display previous pageful of entries in the list

handleAppSelect ( ACAT.Extensions.Default.FunctionalAgents.LaunchAppAgent.AppInfo appInfo ) : void

Confirms if the user wants to launch the selected app. If so, triggers an event to indicate that the user wants to launch the app.

handleWidgetSelection ( ACAT.Lib.Core.WidgetManagement.Widget widget, bool &handled ) : void

Handle the selection - navigate, launch app etc

highlightOff ( ) : void

Turn highlight off for all widgets

loadAppsList ( ) : void

Loads a list of apps to launch and refreshes the UI

refreshAppList ( ) : void

Refreshes the window list with a list of apps

removeWatchdogs ( ) : void

Disables watchdogs

setFormStyles ( CreateParams createParams ) : CreateParams

Sets the style of this form

sortFiles ( List list, SortOrder order ) : List

Sorts the list by the sort order

subscribeToEvents ( ) : void

Subscribes to the various events

switchSortOrder ( ) : void

Switch the sort order and reload the list

updateButtonBar ( ) : void

Updates the buttons on the button bar depending on the current state

updateStatusBar ( ) : void

Updates the status bar with sort order info

Method Details

CheckWidgetEnabled() public method

Sets the states of the buttons in the button bar and in the companion scanner (if any) depending on the current state.
public CheckWidgetEnabled ( ACAT.Lib.Core.AgentManagement.CheckEnabledArgs arg ) : bool
arg ACAT.Lib.Core.AgentManagement.CheckEnabledArgs widget information
return bool

ClearFilter() public method

Clears the search filter
public ClearFilter ( ) : void
return void

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

GetInvoker() public method

Returns the extension invoker object
public GetInvoker ( ) : ACAT.Lib.Core.Extensions.ExtensionInvoker
return ACAT.Lib.Core.Extensions.ExtensionInvoker

Initialize() public method

Initialzes this class
public Initialize ( ACAT.Lib.Core.PanelManagement.StartupArg startupArg ) : bool
startupArg ACAT.Lib.Core.PanelManagement.StartupArg startup args
return bool

IsFilterEmpty() public method

Returns if the filter string is empty
public IsFilterEmpty ( ) : bool
return bool

LaunchAppScanner() public method

Initializes a new instance of the class.
public LaunchAppScanner ( ) : System
return System

OnFocusChanged() public method

Not used
public OnFocusChanged ( ACAT.Lib.Core.Utility.WindowActivityMonitorInfo monitorInfo ) : void
monitorInfo ACAT.Lib.Core.Utility.WindowActivityMonitorInfo
return void

OnFormClosing() protected method

Invoked when the form is closing
protected OnFormClosing ( FormClosingEventArgs e ) : void
e System.Windows.Forms.FormClosingEventArgs event args
return void

OnPause() public method

Not used
public OnPause ( ) : void
return void

OnQueryPanelChange() public method

Not used
public OnQueryPanelChange ( ACAT.Lib.Core.PanelManagement.PanelRequestEventArgs eventArg ) : bool
eventArg ACAT.Lib.Core.PanelManagement.PanelRequestEventArgs event arguments
return bool

OnResume() public method

Not used
public OnResume ( ) : void
return void

OnRunCommand() public method

not used
public OnRunCommand ( string command, bool &handled ) : void
command string
handled bool
return void

OnWidgetActuated() public method

Called when widget is actuated
public OnWidgetActuated ( ACAT.Lib.Core.WidgetManagement.Widget widget, bool &handled ) : void
widget ACAT.Lib.Core.WidgetManagement.Widget which one
handled bool are we handling it?
return void

SetTargetControl() public method

Not used
public SetTargetControl ( Form parent, ACAT.Lib.Core.WidgetManagement.Widget widget ) : void
parent System.Windows.Forms.Form
widget ACAT.Lib.Core.WidgetManagement.Widget
return void

createStatusBar() public method

Creates a status bar for the scanner
public createStatusBar ( ) : void
return void