C# 클래스 ACAT.Extensions.Default.FunctionalAgents.SwitchWindowsAgent.SwitchWindowsScanner

상속: System.Windows.Forms.Form, IScannerPanel, IExtension
파일 보기 프로젝트 열기: brlima94/acat-localization 1 사용 예제들

공개 메소드들

메소드 설명
CheckWidgetEnabled ( ACAT.Lib.Core.AgentManagement.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 box

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

Gets the extension invoker object

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

Initialize this class

IsFilterEmpty ( ) : bool

Returns if the filter is empty

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

Widget was actuated

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

Not used

SwitchWindowsScanner ( ) : System

Initializes a new instance of the class.

createStatusBar ( ) : void

Creates a status bar for the scanner

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnFormClosing ( FormClosingEventArgs e ) : void

Release resources

비공개 메소드들

메소드 설명
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. This event is raised by the Panel Manager

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

Invoked by the Panel Manager when a scanner is shown Dock this form to the scanner

OnLocationChanged ( object sender, EventArgs eventArgs ) : void

Don't let the window move. Re-dock it to the companian scanner

SearchFilter_TextChanged ( object sender, EventArgs e ) : void

Search filter text changed. Reload the list and display only those windows that match

SortOrderIcon_Click ( object sender, EventArgs e ) : void

Change the sort order

SwitchWindowsScanner_FormClosing ( object sender, FormClosingEventArgs e ) : void

Release resources and stop threads/timers

SwitchWindowsScanner_KeyDown ( object sender, KeyEventArgs e ) : void

Key down event handler

SwitchWindowsScanner_Load ( object sender, EventArgs e ) : void

Initialze the form

SwitchWindowsScanner_Shown ( object sender, EventArgs e ) : void

Set focus to this form

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

Key press event handler

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 this form to the companian scanner

enableWatchdogs ( ) : void

Enable watchdogs to keep this window in focus

filterWindows ( IEnumerable windowList, String filter ) : List

Filters the list by the specified filter and returns only those entries that match

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

getWindowList ( SortOrder order ) : List

Gets a list of active windows sorted on the indcated sort order

gotoNextPage ( ) : void

Show the next pageful of entries in the window list

gotoPreviousPage ( ) : void

Show the previous pageful of entries in the window list

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

Perform the operation - page through the list, activate a window etc

handleWindowSelect ( ACAT.Lib.Core.Utility.EnumWindows wInfo ) : void

User selected a window to switch to. Trigger an event to indicate this.

highlightOff ( ) : void

Turn highlight off for all widgets

loadWindowList ( ) : void

Get a list of active windows and display it in the list

refreshWindowList ( ) : void

Refresh the list of windows in the UI

removeWatchdogs ( ) : void

Remove all the watchdogs

setFormStyles ( CreateParams createParams ) : CreateParams

Set the sytle of this form

sortWindowList ( List windowsList, SortOrder order ) : List

Sort the list by the word order

switchSortOrder ( ) : void

Switch the sort order and re-display the list of windows

updateButtonBar ( ) : void

Update status bar with page number and sort order info

updateStatusBar ( ) : void

Updates the status bar with sort order info

메소드 상세

CheckWidgetEnabled() 공개 메소드

Invoked to check if a scanner button should be enabled. Uses context to determine the 'enabled' state.
public CheckWidgetEnabled ( ACAT.Lib.Core.AgentManagement.CheckEnabledArgs arg ) : bool
arg ACAT.Lib.Core.AgentManagement.CheckEnabledArgs info about the scanner button
리턴 bool

ClearFilter() 공개 메소드

Clears the search filter box
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() 공개 메소드

Gets the extension invoker object
public GetInvoker ( ) : ACAT.Lib.Core.Extensions.ExtensionInvoker
리턴 ACAT.Lib.Core.Extensions.ExtensionInvoker

Initialize() 공개 메소드

Initialize this class
public Initialize ( ACAT.Lib.Core.PanelManagement.StartupArg startupArg ) : bool
startupArg ACAT.Lib.Core.PanelManagement.StartupArg startup argument
리턴 bool

IsFilterEmpty() 공개 메소드

Returns if the filter is empty
public IsFilterEmpty ( ) : bool
리턴 bool

OnFocusChanged() 공개 메소드

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

OnFormClosing() 보호된 메소드

Release resources
protected OnFormClosing ( FormClosingEventArgs e ) : void
e System.Windows.Forms.FormClosingEventArgs 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
리턴 bool

OnResume() 공개 메소드

Not used
public OnResume ( ) : void
리턴 void

OnRunCommand() 공개 메소드

Not used
public OnRunCommand ( string command, bool &handled ) : void
command string command to run
handled bool was this handled?
리턴 void

OnWidgetActuated() 공개 메소드

Widget was actuated
public OnWidgetActuated ( ACAT.Lib.Core.WidgetManagement.Widget widget, bool &handled ) : void
widget ACAT.Lib.Core.WidgetManagement.Widget widget that was actuated
handled bool was it handled?
리턴 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

SwitchWindowsScanner() 공개 메소드

Initializes a new instance of the class.
public SwitchWindowsScanner ( ) : System
리턴 System

createStatusBar() 공개 메소드

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