summaryrefslogtreecommitdiffstats
path: root/macosx/HBSubtitles.h
diff options
context:
space:
mode:
authordynaflash <[email protected]>2009-06-13 19:50:12 +0000
committerdynaflash <[email protected]>2009-06-13 19:50:12 +0000
commit61ee3250a66a273d3bf7b7594b5b8656993bc33f (patch)
tree42e0d9d05d691c2fc094169d2030e1dc472be5a6 /macosx/HBSubtitles.h
parent4c719cadc9a4158de14434236701721afd505396 (diff)
MacGui: Multiple subtitle tracks initial implementation
- Subtitles now get their own tab - "None" track is an empty track, add a new subtitle track by switching it to a valid source track. - First track allows for "Foreign Language Search" which replaces the old "Auto Select". - Remove a previously selected track by setting it back to "None" - Sanity Checks: -- Allow only one Burned In track. -- Text tracks do not allow burned in to be set. -- MP4 specific: --- Allow only one VobSub and force burned in to be set. ---- Trying to set more than one vobsub in mp4 results in a warning, and the first vobsub track is retained. - Presets: Currently subtitles are not recorded into presets (which they never have been). - Live Preview: -- Foreign Language Search is borked for live preview, so is ignored -- Burned in subtitles work for both mp4 and mkv -- Text subtitles work for mp4 if set to default (preview has no way to turn soft subs on/off) -- Text subtitles do not show up in preview window even if checked as default. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2530 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBSubtitles.h')
-rw-r--r--macosx/HBSubtitles.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/macosx/HBSubtitles.h b/macosx/HBSubtitles.h
new file mode 100644
index 000000000..990492db2
--- /dev/null
+++ b/macosx/HBSubtitles.h
@@ -0,0 +1,44 @@
+/* $Id: HBSubtitles.h,v 1.35 2005/08/01 14:29:50 titer Exp $
+
+ This file is part of the HandBrake source code.
+ Homepage: <http://handbrake.fr/>.
+ It may be used under the terms of the GNU General Public License. */
+
+#import <Cocoa/Cocoa.h>
+#include "hb.h"
+
+@interface HBSubtitles : NSObject {
+hb_title_t *fTitle;
+
+NSMutableArray *subtitleArray;
+int container;
+}
+
+// Trigger a refresh of data
+- (void)resetWithTitle:(hb_title_t *)title;
+
+// Create new subtitle track
+- (void)addSubtitleTrack;
+- (NSDictionary *)createSubtitleTrack;
+- (NSMutableArray*) getSubtitleArray: (NSMutableArray *) subtitlesArray ;
+
+- (void)containerChanged:(int) newContainer;
+
+// Table View Delegates
+- (int)numberOfRowsInTableView:(NSTableView *)aTableView;
+
+- (id)tableView:(NSTableView *)aTableView
+ objectValueForTableColumn:(NSTableColumn *)aTableColumn
+ row:(NSInteger)rowIndex;
+
+- (void)tableView:(NSTableView *)aTableView
+ setObjectValue:(id)anObject
+ forTableColumn:(NSTableColumn *)aTableColumn
+ row:(NSInteger)rowIndex;
+
+- (void)tableView:(NSTableView *)aTableView
+ willDisplayCell:(id)aCell
+ forTableColumn:(NSTableColumn *)aTableColumn
+ row:(NSInteger)rowIndex;
+
+@end