forked from gonzoua/AudioBookBinder
/
AudioBinderWindowController.h
74 lines (63 loc) · 2.11 KB
/
AudioBinderWindowController.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
//
// AudioBinderWindowController.h
// AudioBookBinder
//
// Created by Oleksandr Tymoshenko on 2013-12-14.
// Copyright (c) 2013 Bluezbox Software. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "AudioFileList.h"
#import "AudioBinder.h"
#import "CoverImageView.h"
@interface AudioBinderWindowController : NSWindowController<NSSoundDelegate, NSTextFieldDelegate, AudioBinderDelegate, NSWindowDelegate> {
IBOutlet NSOutlineView *fileListView;
IBOutlet NSForm *form;
IBOutlet NSButton *bindButton;
IBOutlet NSProgressIndicator *fileProgress;
IBOutlet NSPanel *progressPanel;
IBOutlet NSTextField *currentFile;
IBOutlet NSTabView *tabs;
IBOutlet AudioFileList *fileList;
IBOutlet CoverImageView *coverImageView;
IBOutlet NSButton *playButton;
IBOutlet NSPopUpButton *genresButton;
IBOutlet NSTextField *genresField;
IBOutlet NSPanel *saveAsPanel;
IBOutlet NSTextField *saveAsFilename;
IBOutlet NSPopUpButton *saveAsFolderPopUp;
NSURL *_destURL;
NSMutableArray *knownGenres;
BOOL autocompleting;
BOOL _playing;
NSString *outFile;
AudioBinder *_binder;
NSSound *_sound;
NSString *_playingFile;
NSImage *_playImg, *_stopImg;
BOOL canPlay;
NSUInteger currentProgress;
BOOL _conversionResult;
NSMutableArray *currentColumns;
NSUInteger _currentFileProgress;
NSUInteger _totalBookProgress;
NSUInteger _totalBookDuration;
BOOL _converting;
}
@property (readwrite, assign) BOOL canPlay;
@property (atomic, assign) NSUInteger currentProgress;
- (IBAction) addFiles: (id)sender;
- (IBAction) delFiles: (id)sender;
- (IBAction) setCover: (id)sender;
- (IBAction) bind: (id)sender;
- (IBAction) cancel: (id)sender;
- (IBAction) toggleChapters: (id)sender;
- (IBAction) joinFiles: (id)sender;
- (IBAction) splitFiles: (id)sender;
- (IBAction) renumberChapters: (id)sender;
- (IBAction) playStop: (id)sender;
- (IBAction) saveAsOk:(id)sender;
- (IBAction) saveAsCancel:(id)sender;
- (IBAction) folderSheetShow: (id) sender;
- (void) playFailed;
- (void)sound:(NSSound *)sound didFinishPlaying:(BOOL)finishedPlaying;
@end