2005-06-02 18:16:43 +00:00
|
|
|
/* AppController */
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
|
|
|
#import "PlaylistController.h"
|
|
|
|
|
|
|
|
@interface AppController : NSObject
|
|
|
|
{
|
|
|
|
IBOutlet PlaylistController *playlistController;
|
2005-09-20 05:13:38 +00:00
|
|
|
IBOutlet NSPanel *mainWindow;
|
2005-06-05 18:52:35 +00:00
|
|
|
|
|
|
|
IBOutlet NSButton *playButton;
|
|
|
|
IBOutlet NSButton *stopButton;
|
|
|
|
IBOutlet NSButton *prevButton;
|
|
|
|
IBOutlet NSButton *nextButton;
|
|
|
|
IBOutlet NSButton *addButton;
|
|
|
|
IBOutlet NSButton *remButton;
|
|
|
|
IBOutlet NSButton *infoButton;
|
|
|
|
IBOutlet NSButton *shuffleButton;
|
|
|
|
IBOutlet NSButton *repeatButton;
|
2006-04-04 01:08:21 +00:00
|
|
|
|
|
|
|
IBOutlet NSDrawer *infoDrawer;
|
2005-06-02 18:16:43 +00:00
|
|
|
}
|
2005-06-07 19:28:44 +00:00
|
|
|
|
2005-06-02 18:16:43 +00:00
|
|
|
- (IBAction)addFiles:(id)sender;
|
|
|
|
- (IBAction)delEntries:(id)sender;
|
|
|
|
- (IBAction)savePlaylist:(id)sender;
|
|
|
|
- (IBAction)savePlaylistAs:(id)sender;
|
|
|
|
- (IBAction)loadPlaylist:(id)sender;
|
|
|
|
|
|
|
|
- (void)openPanelDidEnd:(NSOpenPanel *)panel returnCode:(int)returnCode contextInfo:(void *)contextInfo;
|
|
|
|
|
2006-04-30 13:01:33 +00:00
|
|
|
- (IBAction)sortByPath:(id)sender;
|
|
|
|
- (IBAction)shufflePlaylist:(id)sender;
|
|
|
|
|
2006-04-04 01:08:21 +00:00
|
|
|
- (IBAction)donate:(id)sender;
|
|
|
|
|
|
|
|
- (IBAction)toggleInfoDrawer:(id)sender;
|
|
|
|
- (void)drawerDidOpen:(NSNotification *)notification;
|
|
|
|
- (void)drawerDidClose:(NSNotification *)notification;
|
|
|
|
|
2006-04-13 03:20:31 +00:00
|
|
|
//Fun stuff
|
2005-06-02 18:16:43 +00:00
|
|
|
- (BOOL)applicationShouldHandleReopen:(NSApplication *)theApplication hasVisibleWindows:(BOOL)flag;
|
|
|
|
- (BOOL)application:(NSApplication *)theApplication openFile:(NSString *)filename;
|
|
|
|
- (void)application:(NSApplication *)theApplication openFiles:(NSArray *)filenames;
|
|
|
|
|
|
|
|
@end
|