C# Класс ACAT.Extensions.Default.FunctionalAgents.LaunchAppAgent.LaunchAppScanner

Наследование: System.Windows.Forms.Form, IScannerPanel, IExtension
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnFormClosing ( FormClosingEventArgs e ) : void

Invoked when the form is closing

Приватные методы

Метод Описание
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

Описание методов

CheckWidgetEnabled() публичный метод

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
Результат bool

ClearFilter() публичный метод

Clears the search filter
public ClearFilter ( ) : void
Результат void

Dispose() защищенный метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

GetInvoker() публичный метод

Returns the extension invoker object
public GetInvoker ( ) : ACAT.Lib.Core.Extensions.ExtensionInvoker
Результат ACAT.Lib.Core.Extensions.ExtensionInvoker

Initialize() публичный метод

Initialzes this class
public Initialize ( ACAT.Lib.Core.PanelManagement.StartupArg startupArg ) : bool
startupArg ACAT.Lib.Core.PanelManagement.StartupArg startup args
Результат bool

IsFilterEmpty() публичный метод

Returns if the filter string is empty
public IsFilterEmpty ( ) : bool
Результат bool

LaunchAppScanner() публичный метод

Initializes a new instance of the class.
public LaunchAppScanner ( ) : System
Результат System

OnFocusChanged() публичный метод

Not used
public OnFocusChanged ( ACAT.Lib.Core.Utility.WindowActivityMonitorInfo monitorInfo ) : void
monitorInfo ACAT.Lib.Core.Utility.WindowActivityMonitorInfo
Результат void

OnFormClosing() защищенный метод

Invoked when the form is closing
protected OnFormClosing ( FormClosingEventArgs e ) : void
e System.Windows.Forms.FormClosingEventArgs event args
Результат void

OnPause() публичный метод

Not used
public OnPause ( ) : void
Результат void

OnQueryPanelChange() публичный метод

Not used
public OnQueryPanelChange ( ACAT.Lib.Core.PanelManagement.PanelRequestEventArgs eventArg ) : bool
eventArg ACAT.Lib.Core.PanelManagement.PanelRequestEventArgs event arguments
Результат bool

OnResume() публичный метод

Not used
public OnResume ( ) : void
Результат void

OnRunCommand() публичный метод

not used
public OnRunCommand ( string command, bool &handled ) : void
command string
handled bool
Результат void

OnWidgetActuated() публичный метод

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?
Результат void

SetTargetControl() публичный метод

Not used
public SetTargetControl ( Form parent, ACAT.Lib.Core.WidgetManagement.Widget widget ) : void
parent System.Windows.Forms.Form
widget ACAT.Lib.Core.WidgetManagement.Widget
Результат void

createStatusBar() публичный метод

Creates a status bar for the scanner
public createStatusBar ( ) : void
Результат void