OSDN Git Service

MacGui: Use libdvdnav by default.
[handbrake-jp/handbrake-jp-git.git] / macosx / HBSubtitles.h
1 /* $Id: HBSubtitles.h,v 1.35 2005/08/01 14:29:50 titer Exp $
2
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. */
6
7 #import <Cocoa/Cocoa.h>
8 #include "hb.h"
9
10
11
12
13 @interface HBSubtitles : NSObject {
14 hb_title_t                   *fTitle;
15
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;
22 int                           container;
23
24 }
25
26 // Trigger a refresh of data
27 - (void)resetWithTitle:(hb_title_t *)title;
28
29 // Create new subtitle track
30 - (void)addSubtitleTrack;
31 - (NSDictionary *)createSubtitleTrack;
32 - (NSMutableArray*) getSubtitleArray: (NSMutableArray *) subtitlesArray ;
33 // Add an srt file
34 - (void)createSubtitleSrtTrack:(NSString *)filePath;
35
36 - (void)containerChanged:(int) newContainer;
37
38 // Table View Delegates
39 - (int)numberOfRowsInTableView:(NSTableView *)aTableView;
40
41 - (id)tableView:(NSTableView *)aTableView
42       objectValueForTableColumn:(NSTableColumn *)aTableColumn
43       row:(NSInteger)rowIndex;
44       
45 - (void)tableView:(NSTableView *)aTableView
46         setObjectValue:(id)anObject
47         forTableColumn:(NSTableColumn *)aTableColumn
48         row:(NSInteger)rowIndex;
49
50 - (void)tableView:(NSTableView *)aTableView
51         willDisplayCell:(id)aCell
52         forTableColumn:(NSTableColumn *)aTableColumn
53         row:(NSInteger)rowIndex;
54
55 @end