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

Mostra file Open project: brlima94/acat-localization

Public Methods

Method Description
GeneralSettingsForm ( ) : System

Initializes a new instance of the class.

OnButtonActuated ( Widget widget ) : void

Triggered when a widget is triggered. This handles all the buttons on the form - OK, cancel and restore defaults

OnPause ( ) : void

Pauses animation

OnResume ( ) : void

Resumes animation

OnRunCommand ( string command, bool &handled ) : void

Invoked when there is a need to run a command. The command comes from the animation file

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnFormClosing ( FormClosingEventArgs e ) : void

Form is closing. Release resources

Private Methods

Method Description
GeneralSettingsForm_FormClosing ( object sender, FormClosingEventArgs e ) : void

Form is closing. Release resources

GeneralSettingsForm_Load ( object sender, EventArgs e ) : void

Form has been loaded. Initialize the form

InitializeComponent ( ) : void

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

WndProc ( Message &m ) : void
getAppPreferencesFromUI ( ) : ACATPreferences

Gets the settings with the current state of widgets in the form and returns a ACATPreferences object that can be presisted.

initWidgetSettings ( ACATPreferences prefs ) : void

Initializes the state of all the widgets in the form with values from the settings.

loadDefaultSettings ( ) : void

Restores default settings from the settings file for ACAT

quit ( ) : void

Confirms whether to quit and close the form

saveSettingsAndQuit ( ) : void

Saves changes and closes the dialog

subscribeToEvents ( ) : void

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

widget_EvtValueChanged ( object sender, WidgetEventArgs e ) : void

User changed some setting 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

GeneralSettingsForm() public method

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

OnButtonActuated() public method

Triggered when a widget is triggered. This handles all the buttons on the form - OK, cancel and restore defaults
public OnButtonActuated ( Widget widget ) : void
widget Widget Which one triggered?
return void

OnFormClosing() protected method

Form is closing. Release resources
protected OnFormClosing ( FormClosingEventArgs e ) : void
e FormClosingEventArgs event args
return void

OnPause() public method

Pauses animation
public OnPause ( ) : void
return void

OnResume() public method

Resumes animation
public OnResume ( ) : void
return void

OnRunCommand() public method

Invoked when there is a need to run a command. The command comes from the animation file
public OnRunCommand ( string command, bool &handled ) : void
command string the command to run
handled bool wast it handled?
return void