2005-06-02 14:16:43 -04:00
|
|
|
/* AppController */
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
2022-06-30 19:57:51 -04:00
|
|
|
@class FileTreeViewController;
|
2007-03-08 22:16:06 -03:00
|
|
|
@class PlaybackController;
|
|
|
|
@class PlaylistController;
|
|
|
|
@class PlaylistView;
|
|
|
|
@class PlaylistLoader;
|
2022-06-24 03:29:50 -04:00
|
|
|
@class PreferencesController;
|
2005-06-02 14:16:43 -04:00
|
|
|
|
2022-02-07 02:49:27 -03:00
|
|
|
@interface AppController : NSObject {
|
|
|
|
IBOutlet NSObjectController *currentEntryController;
|
|
|
|
|
2007-02-18 20:41:44 -03:00
|
|
|
IBOutlet PlaybackController *playbackController;
|
2007-03-08 22:16:06 -03:00
|
|
|
|
2022-02-07 02:49:27 -03:00
|
|
|
IBOutlet PlaylistController *playlistController;
|
2007-03-08 22:16:06 -03:00
|
|
|
IBOutlet PlaylistLoader *playlistLoader;
|
2022-02-07 02:49:27 -03:00
|
|
|
|
2007-11-24 17:16:27 -03:00
|
|
|
IBOutlet NSWindow *mainWindow;
|
2022-02-07 02:49:27 -03:00
|
|
|
IBOutlet NSWindow *miniWindow;
|
2022-06-30 19:57:51 -04:00
|
|
|
IBOutlet NSSplitView *mainView;
|
2022-02-07 02:49:27 -03:00
|
|
|
|
2008-01-23 00:03:46 -03:00
|
|
|
IBOutlet NSSegmentedControl *playbackButtons;
|
2006-09-02 12:09:20 -04:00
|
|
|
IBOutlet NSButton *fileButton;
|
2005-06-05 14:52:35 -04:00
|
|
|
IBOutlet NSButton *shuffleButton;
|
|
|
|
IBOutlet NSButton *repeatButton;
|
2022-02-07 02:49:27 -03:00
|
|
|
IBOutlet NSButton *randomizeButton;
|
2007-11-24 17:16:27 -03:00
|
|
|
|
|
|
|
IBOutlet NSTextField *totalTimeField;
|
2006-09-02 12:09:20 -04:00
|
|
|
|
2007-02-17 16:33:31 -03:00
|
|
|
IBOutlet PlaylistView *playlistView;
|
2022-02-07 02:49:27 -03:00
|
|
|
|
2007-02-17 16:33:31 -03:00
|
|
|
IBOutlet NSMenuItem *showIndexColumn;
|
|
|
|
IBOutlet NSMenuItem *showTitleColumn;
|
2022-02-07 02:49:27 -03:00
|
|
|
IBOutlet NSMenuItem *showAlbumArtistColumn;
|
2007-02-17 16:33:31 -03:00
|
|
|
IBOutlet NSMenuItem *showArtistColumn;
|
|
|
|
IBOutlet NSMenuItem *showAlbumColumn;
|
|
|
|
IBOutlet NSMenuItem *showGenreColumn;
|
2025-01-15 04:37:17 -03:00
|
|
|
IBOutlet NSMenuItem *showPlayCountColumn;
|
2007-02-17 16:33:31 -03:00
|
|
|
IBOutlet NSMenuItem *showLengthColumn;
|
|
|
|
IBOutlet NSMenuItem *showTrackColumn;
|
|
|
|
IBOutlet NSMenuItem *showYearColumn;
|
2022-02-07 02:49:27 -03:00
|
|
|
|
|
|
|
IBOutlet NSMenu *dockMenu;
|
|
|
|
IBOutlet NSMenuItem *currentArtistItem;
|
|
|
|
|
|
|
|
IBOutlet NSWindowController *spotlightWindowController;
|
|
|
|
|
2022-06-30 19:57:51 -04:00
|
|
|
IBOutlet FileTreeViewController *fileTreeViewController;
|
|
|
|
|
2022-06-24 03:29:50 -04:00
|
|
|
IBOutlet PreferencesController *preferencesController;
|
|
|
|
|
2022-02-07 02:49:27 -03:00
|
|
|
NSOperationQueue *queue; // Since we are the app delegate, we take care of the op queue
|
|
|
|
|
|
|
|
NSMutableSet *expandedNodes;
|
|
|
|
|
|
|
|
BOOL miniMode;
|
2005-06-02 14:16:43 -04:00
|
|
|
}
|
2005-06-07 15:28:44 -04:00
|
|
|
|
2022-02-07 02:49:27 -03:00
|
|
|
@property(strong) IBOutlet NSButton *infoButton;
|
|
|
|
@property(strong) IBOutlet NSButton *infoButtonMini;
|
2021-02-18 19:02:10 -03:00
|
|
|
|
2007-05-26 10:43:31 -04:00
|
|
|
- (IBAction)openURL:(id)sender;
|
2007-03-01 22:36:52 -03:00
|
|
|
|
2006-09-02 12:09:20 -04:00
|
|
|
- (IBAction)openFiles:(id)sender;
|
2005-06-02 14:16:43 -04:00
|
|
|
- (IBAction)delEntries:(id)sender;
|
|
|
|
- (IBAction)savePlaylist:(id)sender;
|
2020-11-24 21:03:49 -03:00
|
|
|
|
2022-06-21 22:30:30 -04:00
|
|
|
- (IBAction)privacyPolicy:(id)sender;
|
|
|
|
|
2019-11-16 19:49:30 -03:00
|
|
|
- (IBAction)feedback:(id)sender;
|
2006-04-03 21:08:21 -04:00
|
|
|
|
2008-02-14 18:09:07 -03:00
|
|
|
- (void)initDefaults;
|
|
|
|
|
2022-02-07 02:49:27 -03:00
|
|
|
// Fun stuff
|
2005-06-02 14:16:43 -04: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 12:09:20 -04:00
|
|
|
- (void)registerHotKeys;
|
2007-10-03 18:26:39 -04:00
|
|
|
|
|
|
|
- (void)clickPlay;
|
2019-11-14 00:13:59 -03:00
|
|
|
- (void)clickPause;
|
|
|
|
- (void)clickStop;
|
2007-10-03 18:26:39 -04:00
|
|
|
- (void)clickPrev;
|
|
|
|
- (void)clickNext;
|
2013-10-04 08:16:09 -03:00
|
|
|
- (void)clickSpam;
|
2022-02-07 02:49:27 -03:00
|
|
|
- (void)clickSeek:(NSTimeInterval)position;
|
2007-10-03 18:26:39 -04:00
|
|
|
|
2008-02-15 12:27:34 -03:00
|
|
|
- (IBAction)increaseFontSize:(id)sender;
|
|
|
|
- (IBAction)decreaseFontSize:(id)sender;
|
|
|
|
- (void)changeFontSize:(float)size;
|
|
|
|
|
2022-02-07 02:49:27 -03:00
|
|
|
- (void)nodeExpanded:(NSNotification *)notification;
|
|
|
|
- (void)nodeCollapsed:(NSNotification *)notification;
|
2013-10-11 07:03:23 -03:00
|
|
|
|
2013-10-11 16:02:05 -03:00
|
|
|
- (IBAction)toggleMiniMode:(id)sender;
|
2021-02-06 19:12:19 -03:00
|
|
|
- (IBAction)toggleToolbarStyle:(id)sender;
|
2013-10-11 16:02:05 -03:00
|
|
|
|
2022-06-29 01:58:13 -04:00
|
|
|
- (BOOL)pathSuggesterEmpty;
|
|
|
|
+ (BOOL)globalPathSuggesterEmpty;
|
2022-06-24 03:29:50 -04:00
|
|
|
- (void)showPathSuggester;
|
|
|
|
+ (void)globalShowPathSuggester;
|
|
|
|
|
2022-02-07 02:49:27 -03:00
|
|
|
@property NSWindow *mainWindow;
|
|
|
|
@property NSWindow *miniWindow;
|
2022-01-16 12:32:47 -03:00
|
|
|
|
2013-10-11 16:02:05 -03:00
|
|
|
@property BOOL miniMode;
|
|
|
|
|
2022-02-07 02:49:27 -03:00
|
|
|
@property(nonatomic) BOOL floatingMiniWindow;
|
2021-03-02 18:04:59 -03:00
|
|
|
|
2005-06-02 14:16:43 -04:00
|
|
|
@end
|