diff options
author | dynaflash <[email protected]> | 2007-05-08 17:16:20 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2007-05-08 17:16:20 +0000 |
commit | 1e9a05078d0c874d978c1a4660fd75b2d91ebc5e (patch) | |
tree | c562c1dfaae2c7983a6ae847b365b1c2c5421264 /macosx/Controller.h | |
parent | 1b1c0f9ceaa8b712d5b43056276d7d2f83ca395b (diff) |
macGui: Advanced Tab - Initial Implementation
- add gui "widgets" to control the x264 advanced option string.
- Not all options are "widgetized" yet.
- Modifies those it has widgets for, leaves the rest of the string intact.
- This rev, only sets opts that have an integer value.
- Adding widgets requires adding values to controller.h as well as these methods in controller.mm:
-X264AdvancedOptionsSet: adds the actual values for the given outlet in the nib
-X264AdvancedOptionsStandardizeOptNames: standardizes the opt names that have multiple connotations
-X264AdvancedOptionsSetCurrentSettings: Reads and sets the widgets according to the current string whether pasted in by user, set by preset, or set by field in preferences
-X264AdvancedOptionsChanged: Changes the string based on the widget used, including "Unspecified" which just removes it from the string altogether.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@571 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/Controller.h')
-rw-r--r-- | macosx/Controller.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/macosx/Controller.h b/macosx/Controller.h index 8c7847167..1ed6f1697 100644 --- a/macosx/Controller.h +++ b/macosx/Controller.h @@ -135,6 +135,14 @@ IBOutlet NSButton * fPauseButton; IBOutlet NSButton * fRipButton; + /* Advanced Tab for opts */ + IBOutlet NSPopUpButton * fX264optBframesPopUp; + IBOutlet NSPopUpButton * fX264optRefPopUp; + IBOutlet NSPopUpButton * fX264optNfpskipPopUp; + IBOutlet NSPopUpButton * fX264optNodctdcmtPopUp; + IBOutlet NSPopUpButton * fX264optSubmePopUp; + IBOutlet NSPopUpButton * fX264optTrellisPopUp; + /* User Preset variables here fPresetNewPicSettingsApply*/ IBOutlet NSDrawer * fPresetDrawer; @@ -219,6 +227,13 @@ - (IBAction) OpenForums: (id) sender; - (IBAction) OpenUserGuide: (id) sender; +// x264 Advanced Panel Methods +- (IBAction) X264AdvancedOptionsSet: (id) sender; +- (IBAction) X264AdvancedOptionsStandardizeOptString: (id) sender; +- (IBAction) X264AdvancedOptionsSetCurrentSettings: (id) sender; +- (NSString *) X264AdvancedOptionsStandardizeOptNames:(NSString *) cleanOptNameString; +- (IBAction) X264AdvancedOptionsChanged: (id) sender; + // Preset Methods Here - (IBAction) CustomSettingUsed: (id) sender; - (IBAction) ShowAddPresetPanel: (id) sender; |