C# Class Handbrake.Controls.x264Panel

The x264 Panel
Inheritance: System.Windows.Forms.UserControl
Show file Open project: golgol7777/HandBrakeWinSource

Public Methods

Method Description
Reset2Defaults ( ) : void

Reset all components to defaults and clears the x264 rtf box

SetCurrentSettingsInPanel ( ) : void

Resets the GUI widgets to the contents of the option string.

StandardizeOptString ( ) : void

Iterate over every x264 option, standardize it, write the full string to the x264 rtf box

x264Panel ( ) : System

Initializes a new instance of the x264Panel class. Initializes a new instance of the x264 panel user control

Private Methods

Method Description
Animate ( string sender ) : void

Shows and hides controls based on the values of other controls.

HasNoOptions ( IEquatable optNameToChange ) : void

Add's an option to the x264 query string. Handles 2 cases. 1 Where rtf_x264Query.Text is empty, and one where there is an option with no value, e.g no-fast-pskip

HasOptions ( string currentOptString, string optNameToChange ) : void

Called when the current x264 option string contains multiple (or a single) item(s) in it seperated by : it updates the current option that the widget corrosponds to, if it is already in thes string.

OnX264WidgetChange ( string sender ) : void

This function will update the X264 Query when one of the GUI widgets changes.

StandardizeOptName ( string cleanOptNameString ) : string

Take a single option and standardize it. Returns as a String Input: String. - Single X264 Option. Name only Output: String - Single X264 Option. Name only. Changed to standard format

btn_reset_Click ( object sender, EventArgs e ) : void
rtf_x264Query_TextChanged ( object sender, EventArgs e ) : void
widgetControlChanged ( object sender, EventArgs e ) : void

Method Details

Reset2Defaults() public method

Reset all components to defaults and clears the x264 rtf box
public Reset2Defaults ( ) : void
return void

SetCurrentSettingsInPanel() public method

Resets the GUI widgets to the contents of the option string.
public SetCurrentSettingsInPanel ( ) : void
return void

StandardizeOptString() public method

Iterate over every x264 option, standardize it, write the full string to the x264 rtf box
public StandardizeOptString ( ) : void
return void

x264Panel() public method

Initializes a new instance of the x264Panel class. Initializes a new instance of the x264 panel user control
public x264Panel ( ) : System
return System