OSDN Git Service

MacGui: Remove Target Size as a rate control option as it doesn't really work correct...
[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;
33 // Add an srt file
34 - (void)createSubtitleSrtTrack:(NSString *)filePath;
35
36 - (void)containerChanged:(int) newContainer;
37
38 - (void)setNewSubtitles:(NSMutableArray*) newSubtitleArray;
39
40 // Table View Delegates
41 - (int)numberOfRowsInTableView:(NSTableView *)aTableView;
42
43 - (id)tableView:(NSTableView *)aTableView
44       objectValueForTableColumn:(NSTableColumn *)aTableColumn
45       row:(NSInteger)rowIndex;
46       
47 - (void)tableView:(NSTableView *)aTableView
48         setObjectValue:(id)anObject
49         forTableColumn:(NSTableColumn *)aTableColumn
50         row:(NSInteger)rowIndex;
51
52 - (void)tableView:(NSTableView *)aTableView
53         willDisplayCell:(id)aCell
54         forTableColumn:(NSTableColumn *)aTableColumn
55         row:(NSInteger)rowIndex;
56
57 @end