cog/AppController.h

62 lines
1.7 KiB
C
Raw Normal View History

2005-06-02 18:16:43 +00:00
/* AppController */
#import <Cocoa/Cocoa.h>
#import "PlaylistController.h"
2006-09-02 16:09:20 +00:00
#import "FileTreeController.h"
2006-09-10 21:27:20 +00:00
#import "NDHotKeyEvent.h"
2005-06-02 18:16:43 +00:00
@interface AppController : NSObject
{
IBOutlet PlaylistController *playlistController;
IBOutlet NSPanel *mainWindow;
IBOutlet NSButton *playButton;
IBOutlet NSButton *stopButton;
IBOutlet NSButton *prevButton;
IBOutlet NSButton *nextButton;
IBOutlet NSButton *addButton;
IBOutlet NSButton *remButton;
IBOutlet NSButton *infoButton;
2006-09-02 16:09:20 +00:00
IBOutlet NSButton *fileButton;
IBOutlet NSButton *shuffleButton;
IBOutlet NSButton *repeatButton;
2006-04-04 01:08:21 +00:00
IBOutlet NSDrawer *infoDrawer;
2006-09-02 16:09:20 +00:00
IBOutlet NSDrawer *fileDrawer;
IBOutlet FileTreeController *fileTreeController;
2006-09-10 21:27:20 +00:00
NDHotKeyEvent *playHotKey;
NDHotKeyEvent *prevHotKey;
NDHotKeyEvent *nextHotKey;
2005-06-02 18:16:43 +00:00
}
2005-06-07 19:28:44 +00:00
2006-09-02 16:09:20 +00:00
- (IBAction)openFiles:(id)sender;
2005-06-02 18:16:43 +00:00
- (IBAction)delEntries:(id)sender;
- (IBAction)savePlaylist:(id)sender;
- (IBAction)savePlaylistAs:(id)sender;
- (IBAction)loadPlaylist:(id)sender;
2006-09-02 16:09:20 +00:00
- (IBAction)addFiles:(id)sender;
2005-06-02 18:16:43 +00:00
- (void)openPanelDidEnd:(NSOpenPanel *)panel returnCode:(int)returnCode contextInfo:(void *)contextInfo;
2006-04-04 01:08:21 +00:00
- (IBAction)donate:(id)sender;
- (IBAction)toggleInfoDrawer:(id)sender;
2006-09-02 16:09:20 +00:00
- (IBAction)toggleFileDrawer:(id)sender;
2006-04-04 01:08:21 +00:00
- (void)drawerDidOpen:(NSNotification *)notification;
- (void)drawerDidClose:(NSNotification *)notification;
//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;
2006-09-02 16:09:20 +00:00
- (void)registerHotKeys;
OSStatus handleHotKey(EventHandlerCallRef nextHandler,EventRef theEvent,void *userData);
2005-06-02 18:16:43 +00:00
@end