cog/Application/AppController.h

102 lines
2.7 KiB
C
Raw Normal View History

2005-06-02 18:16:43 +00:00
/* AppController */
#import <Cocoa/Cocoa.h>
@class FileTreeViewController;
@class PlaybackController;
@class PlaylistController;
@class PlaylistView;
@class PlaylistLoader;
2005-06-02 18:16:43 +00:00
@interface AppController : NSObject
{
IBOutlet NSObjectController *currentEntryController;
IBOutlet PlaybackController *playbackController;
IBOutlet PlaylistController *playlistController;
IBOutlet PlaylistLoader *playlistLoader;
IBOutlet NSWindow *mainWindow;
IBOutlet NSWindow *miniWindow;
IBOutlet NSSplitView *mainView;
2008-01-23 03:03:46 +00:00
IBOutlet NSSegmentedControl *playbackButtons;
2006-09-02 16:09:20 +00:00
IBOutlet NSButton *fileButton;
IBOutlet NSButton *shuffleButton;
IBOutlet NSButton *repeatButton;
IBOutlet NSButton *randomizeButton;
IBOutlet NSTextField *totalTimeField;
2006-09-02 16:09:20 +00:00
IBOutlet PlaylistView *playlistView;
IBOutlet NSMenuItem *showIndexColumn;
IBOutlet NSMenuItem *showTitleColumn;
IBOutlet NSMenuItem *showAlbumArtistColumn;
IBOutlet NSMenuItem *showArtistColumn;
IBOutlet NSMenuItem *showAlbumColumn;
IBOutlet NSMenuItem *showGenreColumn;
IBOutlet NSMenuItem *showLengthColumn;
IBOutlet NSMenuItem *showTrackColumn;
IBOutlet NSMenuItem *showYearColumn;
IBOutlet NSWindowController *spotlightWindowController;
IBOutlet FileTreeViewController *fileTreeViewController;
2021-02-19 04:32:33 +00:00
NSOperationQueue *queue; // Since we are the app delegate, we take care of the op queue
NSMutableSet* expandedNodes;
BOOL miniMode;
2005-06-02 18:16:43 +00:00
}
2005-06-07 19:28:44 +00:00
@property (strong) IBOutlet NSButton *infoButton;
@property (strong) IBOutlet NSButton *infoButtonMini;
- (IBAction)openURL:(id)sender;
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;
2020-11-25 00:03:49 +00:00
- (IBAction)openLiberapayPage:(id)sender;
- (IBAction)openPaypalPage:(id)sender;
- (IBAction)openKofiPage:(id)sender;
- (IBAction)feedback:(id)sender;
2006-04-04 01:08:21 +00:00
- (void)initDefaults;
//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;
- (void)clickPlay;
- (void)clickPause;
- (void)clickStop;
- (void)clickPrev;
- (void)clickNext;
- (void)clickSpam;
- (void)clickSeek: (NSTimeInterval)position;
- (IBAction)increaseFontSize:(id)sender;
- (IBAction)decreaseFontSize:(id)sender;
- (void)changeFontSize:(float)size;
- (void)nodeExpanded:(NSNotification*)notification;
- (void)nodeCollapsed:(NSNotification*)notification;
- (IBAction)toggleMiniMode:(id)sender;
- (IBAction)toggleToolbarStyle:(id)sender;
@property BOOL miniMode;
@property (nonatomic) BOOL floatingMiniWindow;
2005-06-02 18:16:43 +00:00
@end