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

Afficher le fichier Open project: brlima94/acat-localization

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnFormClosing ( FormClosingEventArgs e ) : void

Form is closing. Release resources

Private Methods

Méthode 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 méthode

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Résultat void

GeneralSettingsForm() public méthode

Initializes a new instance of the class.
public GeneralSettingsForm ( ) : System
Résultat System

OnButtonActuated() public méthode

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?
Résultat void

OnFormClosing() protected méthode

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

OnPause() public méthode

Pauses animation
public OnPause ( ) : void
Résultat void

OnResume() public méthode

Resumes animation
public OnResume ( ) : void
Résultat void

OnRunCommand() public méthode

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?
Résultat void