-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathCueSheetDocument.h
124 lines (91 loc) · 3.15 KB
/
CueSheetDocument.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
/*
* Copyright (C) 2005 - 2020 Stephen F. Booth <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#import <Cocoa/Cocoa.h>
#import "CueSheetTrack.h"
@interface CueSheetDocument : NSDocument
{
IBOutlet NSArrayController *_trackController;
IBOutlet NSPanel *_metadataPanel;
IBOutlet NSTableView *_trackTable;
IBOutlet NSTextField *_discNumberTextField;
IBOutlet NSTextField *_discTotalTextField;
// Disc information
NSString *_title;
NSString *_artist;
NSString *_date;
NSString *_genre;
NSString *_composer;
NSString *_comment;
NSImage *_albumArt;
// Other disc info
NSNumber *_discNumber;
NSNumber *_discTotal;
NSNumber *_compilation;
NSString *_MCN;
// Array of audio tracks
NSMutableArray *_tracks;
}
- (NSArray *) genres;
// State
- (BOOL) encodeAllowed;
- (BOOL) queryMusicBrainzAllowed;
- (BOOL) emptySelection;
// Action methods
- (IBAction) selectAll:(id)sender;
- (IBAction) selectNone:(id)sender;
- (IBAction) encode:(id)sender;
- (IBAction) queryMusicBrainz:(id)sender;
- (void) queryMusicBrainzNonInteractive;
- (IBAction) toggleMetadataInspectorPanel:(id)sender;
- (IBAction) selectNextTrack:(id)sender;
- (IBAction) selectPreviousTrack:(id)sender;
- (IBAction) downloadAlbumArt:(id)sender;
- (IBAction) selectAlbumArt:(id)sender;
// Miscellaneous
- (NSArray *) selectedTracks;
// Metadata
- (NSString *) title;
- (void) setTitle:(NSString *)title;
- (NSString *) artist;
- (void) setArtist:(NSString *)artist;
- (NSString *) date;
- (void) setDate:(NSString *)date;
- (NSString *) genre;
- (void) setGenre:(NSString *)genre;
- (NSString *) composer;
- (void) setComposer:(NSString *)composer;
- (NSString *) comment;
- (void) setComment:(NSString *)comment;
- (NSImage *) albumArt;
- (void) setAlbumArt:(NSImage *)albumArt;
- (NSNumber *) discNumber;
- (void) setDiscNumber:(NSNumber *)discNumber;
- (NSNumber *) discTotal;
- (void) setDiscTotal:(NSNumber *)discTotal;
- (NSNumber *) compilation;
- (void) setCompilation:(NSNumber *)compilation;
- (NSString *) MCN;
- (void) setMCN:(NSString *)MCN;
// Calculate a MusicBrainz disc ID for this cue sheet
- (NSString *) discID;
// KVC methods
- (NSUInteger) countOfTracks;
- (CueSheetTrack *) objectInTracksAtIndex:(NSUInteger)index;
- (void) insertObject:(CueSheetTrack *)track inTracksAtIndex:(NSUInteger)index;
- (void) removeObjectFromTracksAtIndex:(NSUInteger)index;
@end