-
Notifications
You must be signed in to change notification settings - Fork 2
/
AppController.h
59 lines (47 loc) · 1.74 KB
/
AppController.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//
// AppController.h
// spgw4ffmpeg
//
// Created by Patrick on 04.05.09.
// Copyright 2009 Patrick Mosby. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface AppController : NSObject {
IBOutlet NSTextField *inputFileField;
IBOutlet NSTextField *outputFileField;
IBOutlet NSTextField *startTimeCodeField;
IBOutlet NSTextField *durationTimeCodeField;
IBOutlet NSButton *inputChooseButton;
IBOutlet NSButton *outputChooseButton;
IBOutlet NSButton *startTranscodeButton;
IBOutlet NSMatrix *qualityRadioGroup;
IBOutlet NSPanel *progressSheet;
IBOutlet NSWindow *mainWindow;
IBOutlet NSWindow *logWindow;
IBOutlet NSProgressIndicator *progressIndicator;
IBOutlet NSTextView *logView;
NSTask *task;
NSPipe *pipe;
NSString *inputFilePath;
NSString *outputFilePath;
NSArray *allowedFileTypes;
NSString *moviesDirectory;
NSBundle *bundle;
NSString *ffmpegPath;
BOOL conversionSuccessful;
}
@property(readwrite, copy) NSString *inputFilePath;
@property(readwrite, copy) NSString *outputFilePath;
@property(readwrite, copy) NSString *moviesDirectory;
@property(readwrite, copy) NSString *ffmpegPath;
@property(nonatomic, retain) NSArray *allowedFileTypes;
-(void)playSound:(BOOL)success;
-(void)clear:(NSString *)which;
-(void)reset;
-(IBAction)startTranscode:(id)sender;
-(IBAction)showInputChooserPanel:(id)sender;
-(IBAction)showOutputChooserPanel:(id)sender;
-(IBAction)cancelTranscode:(id)sender;
-(IBAction)showLogWindow:(id)sender;
-(IBAction)openHelp:(id)sender;
@end