C# Class ACAT.Extensions.Default.UI.Dialogs.MouseGridSettingsForm

Inheritance: System.Windows.Forms.Form, IDialogPanel
显示文件 Open project: brlima94/acat-localization

Public Methods

Method Description
MouseGridSettingsForm ( ) : System

Initializes a new instance of the class.

OnButtonActuated ( ACAT.Lib.Core.WidgetManagement.Widget widget ) : void

Invoked when a widget is actuated

OnPause ( ) : void

Pauses the scanner

OnResume ( ) : void

Resumes paused scanner

OnRunCommand ( string command, bool &handled ) : void

Not used

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnFormClosing ( FormClosingEventArgs e ) : void

Form closing. Release resources

Private Methods

Method Description
InitializeComponent ( ) : void

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

MouseGridSettingsForm_FormClosing ( object sender, FormClosingEventArgs e ) : void

Form is closing. Release resources

MouseGridSettingsForm_Load ( object sender, EventArgs e ) : void

Form has been loaded. Initialize

WndProc ( Message &m ) : void
getSettingsFromUI ( ) : ACAT.Lib.Extension.ACATPreferences

Updates settings based on the values set by the user in the form. Returns a ACATPreferences object with the new values.

initWidgetSettings ( ACAT.Lib.Extension.ACATPreferences prefs ) : void

Sets the state of all the controls based on the settings in the prefs parameter

loadDefaultSettings ( ) : void

Restores default settings from the preferences file

quit ( ) : void

If dirty, confirm with user and then quit

saveSettingsAndQuit ( ) : void

Saves settings and close the dialog. Confirms with the user first

subscribeToEvents ( ) : void

Subscribes to all the events triggered by the widgets and the interpreter

widget_EvtValueChanged ( object sender, WidgetEventArgs e ) : void

User changed something on the form. Sets the dirty flag

Method Details

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

MouseGridSettingsForm() public method

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

OnButtonActuated() public method

Invoked when a widget is actuated
public OnButtonActuated ( ACAT.Lib.Core.WidgetManagement.Widget widget ) : void
widget ACAT.Lib.Core.WidgetManagement.Widget Which one triggered?
return void

OnFormClosing() protected method

Form closing. Release resources
protected OnFormClosing ( FormClosingEventArgs e ) : void
e System.Windows.Forms.FormClosingEventArgs eent arg
return void

OnPause() public method

Pauses the scanner
public OnPause ( ) : void
return void

OnResume() public method

Resumes paused scanner
public OnResume ( ) : void
return void

OnRunCommand() public method

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