diff options
Diffstat (limited to 'macosx/HBSubtitlesController.m')
-rw-r--r-- | macosx/HBSubtitlesController.m | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/macosx/HBSubtitlesController.m b/macosx/HBSubtitlesController.m index 58767d7e3..ea4061f2a 100644 --- a/macosx/HBSubtitlesController.m +++ b/macosx/HBSubtitlesController.m @@ -6,13 +6,14 @@ #import "HBSubtitlesController.h" #import "HBSubtitlesDefaultsController.h" +#import "HBTrackTitleViewController.h" @import HandBrakeKit; @interface HBSubtitlesController () -// Defaults @property (nonatomic, readwrite, strong) HBSubtitlesDefaultsController *defaultsController; +@property (nonatomic, weak) IBOutlet NSTableView *table; @end @@ -70,6 +71,17 @@ }]; } +- (IBAction)showAdditionalSettingsPopOver:(id)sender +{ + HBTrackTitleViewController *controller = [[HBTrackTitleViewController alloc] init]; + NSInteger index = [self.table rowForView:sender]; + if (index != -1) + { + controller.track = [self.subtitles objectInTracksAtIndex:index]; + [self presentViewController:controller asPopoverRelativeToRect:[sender bounds] ofView:sender preferredEdge:NSRectEdgeMinX behavior:NSPopoverBehaviorTransient]; + } +} + #pragma mark - External subtitles import /** |