summaryrefslogtreecommitdiffstats
path: root/macosx/HBController.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2017-09-07 09:40:50 +0200
committerDamiano Galassi <[email protected]>2017-09-07 09:40:50 +0200
commit8233cd0924cc8beb153f22e4037e279cc0482bb9 (patch)
treef5f946d43b6c6698961862424d84423973a8a841 /macosx/HBController.m
parentc5602f5988419b943b867b5d469451c59844b229 (diff)
MacGui: move the filters to a separate tab.
Diffstat (limited to 'macosx/HBController.m')
-rw-r--r--macosx/HBController.m11
1 files changed, 10 insertions, 1 deletions
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;