1 /* $Id: HBSubtitles.h,v 1.35 2005/08/01 14:29:50 titer Exp $
3 This file is part of the HandBrake source code.
4 Homepage: <http://handbrake.fr/>.
5 It may be used under the terms of the GNU General Public License. */
7 #import <Cocoa/Cocoa.h>
13 @interface HBSubtitles : NSObject {
16 NSMutableArray *subtitleArray; // contains the output subtitle track info
17 NSMutableArray *subtitleSourceArray;// contains the source subtitle track info
18 NSMutableArray *languagesArray; // array of languages taken from lang.c
19 int languagesArrayDefIndex;
20 NSMutableArray *charCodeArray; // array of character codes
21 int charCodeArrayDefIndex;
26 // Trigger a refresh of data
27 - (void)resetWithTitle:(hb_title_t *)title;
29 // Create new subtitle track
30 - (void)addSubtitleTrack;
31 - (NSDictionary *)createSubtitleTrack;
32 - (NSMutableArray*) getSubtitleArray;
34 - (void)createSubtitleSrtTrack:(NSString *)filePath;
36 - (void)containerChanged:(int) newContainer;
38 - (void)setNewSubtitles:(NSMutableArray*) newSubtitleArray;
40 // Table View Delegates
41 - (int)numberOfRowsInTableView:(NSTableView *)aTableView;
43 - (id)tableView:(NSTableView *)aTableView
44 objectValueForTableColumn:(NSTableColumn *)aTableColumn
45 row:(NSInteger)rowIndex;
47 - (void)tableView:(NSTableView *)aTableView
48 setObjectValue:(id)anObject
49 forTableColumn:(NSTableColumn *)aTableColumn
50 row:(NSInteger)rowIndex;
52 - (void)tableView:(NSTableView *)aTableView
53 willDisplayCell:(id)aCell
54 forTableColumn:(NSTableColumn *)aTableColumn
55 row:(NSInteger)rowIndex;