summaryrefslogtreecommitdiffstats
path: root/macosx/Controller.mm
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/Controller.mm')
-rw-r--r--macosx/Controller.mm24
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