From 8233cd0924cc8beb153f22e4037e279cc0482bb9 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Thu, 7 Sep 2017 09:40:50 +0200 Subject: MacGui: move the filters to a separate tab. --- macosx/HBController.m | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'macosx/HBController.m') diff --git a/macosx/HBController.m b/macosx/HBController.m index d29a10876..30fbc21d5 100644 --- a/macosx/HBController.m +++ b/macosx/HBController.m @@ -16,6 +16,7 @@ #import "HBMutablePreset.h" #import "HBPictureViewController.h" +#import "HBFiltersViewController.h" #import "HBVideoController.h" #import "HBAudioController.h" #import "HBSubtitlesController.h" @@ -38,6 +39,10 @@ HBPictureViewController * fPictureViewController; IBOutlet NSTabViewItem * fPictureTab; + // Filters controller + HBFiltersViewController * fFiltersViewController; + IBOutlet NSTabViewItem * fFiltersTab; + // Video view controller HBVideoController * fVideoController; IBOutlet NSTabViewItem * fVideoTab; @@ -261,6 +266,10 @@ fPictureViewController = [[HBPictureViewController alloc] init]; [fPictureTab setView:[fPictureViewController view]]; + // setup the filters view controller + fFiltersViewController = [[HBFiltersViewController alloc] init]; + [fFiltersTab setView:[fFiltersViewController view]]; + [[NSUserDefaultsController sharedUserDefaultsController] addObserver:self forKeyPath:@"values.HBShowAdvancedTab" options:NSKeyValueObservingOptionNew | NSKeyValueObservingOptionInitial @@ -787,7 +796,7 @@ // Set the jobs info to the view controllers fPictureViewController.picture = job.picture; - fPictureViewController.filters = job.filters; + fFiltersViewController.filters = job.filters; fVideoController.video = job.video; fAudioController.audio = job.audio; fSubtitlesViewController.subtitles = job.subtitles; -- cgit v1.2.3