diff options
author | cleaner <[email protected]> | 2007-06-06 17:12:12 +0000 |
---|---|---|
committer | cleaner <[email protected]> | 2007-06-06 17:12:12 +0000 |
commit | c28fb996414514bc90ab6a9ac103afe428fb102c (patch) | |
tree | 9bc5b9fe278c666fafb3b61f157fc679e4316f5a /macosx/Controller.mm | |
parent | 98d438e568256d1815c374651c41090111b0db45 (diff) |
- Moved preferences window from MainMenu.nib to Preferences.nib
- Moved languages from PrefsController.m to Preferences.nib
- Renamed PrefsController to HBPreferencesController
- Implemented bindings in Preferences.nib
- Enabled autocomplete in audio language combobox
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@601 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/Controller.mm')
-rw-r--r-- | macosx/Controller.mm | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/macosx/Controller.mm b/macosx/Controller.mm index e2fac51ab..9584f169a 100644 --- a/macosx/Controller.mm +++ b/macosx/Controller.mm @@ -7,14 +7,10 @@ #include "Controller.h" #include "a52dec/a52.h" #import "HBOutputPanelController.h" -#import "PrefsController.h" +#import "HBPreferencesController.h" #define _(a) NSLocalizedString(a,NULL) - - - - static int FormatSettings[3][4] = { { HB_MUX_MP4 | HB_VCODEC_FFMPEG | HB_ACODEC_FAAC, HB_MUX_MP4 | HB_VCODEC_X264 | HB_ACODEC_FAAC, @@ -37,7 +33,7 @@ static int FormatSettings[3][4] = - init { self = [super init]; - [PrefsController registerUserDefaults]; + [HBPreferencesController registerUserDefaults]; fHandle = NULL; outputPanel = [[HBOutputPanelController alloc] init]; return self; @@ -3387,9 +3383,23 @@ id theRecord, theValue; URLWithString:@"http://handbrake.m0k.org/trac/wiki/HandBrakeGuide"]]; } +/** + * Shows debug output window. + */ - (IBAction)showDebugOutputPanel:(id)sender { - [outputPanel showOutputPanel:nil]; + [outputPanel showOutputPanel:sender]; +} + +/** + * Creates preferences controller, shows preferences window modally, and + * releases the controller after user has closed the window. + */ +- (IBAction)showPreferencesWindow:(id)sender +{ + HBPreferencesController *controller = [[HBPreferencesController alloc] init]; + [controller runModal:nil]; + [controller release]; } @end |