X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/fcbc4baf73d5054212eb69f728ef9c303e1c62a5..ea3dc416d45e5e72dc83a757a2031a2a763bbe51:/MenuTunes.h diff --git a/MenuTunes.h b/MenuTunes.h index e31a663..cde1eff 100755 --- a/MenuTunes.h +++ b/MenuTunes.h @@ -1,23 +1,38 @@ -/* MenuTunes */ +/* + * MenuTunes + * MenuTunes + * App Controller Class + * + * Original Author : Kent Sutherland + * Responsibility : Kent Sutherland + * + * Copyright (c) 2002 iThink Software. + * All Rights Reserved + * + */ + #import #import +#import -@class MenuTunesView, PreferencesController, StatusWindowController; +//@class MenuTunesView; +@class PreferencesController, StatusWindowController; @interface MenuTunes : NSObject { - NSStatusItem *statusItem; + ITStatusItem *statusItem; NSMenu *menu; - MenuTunesView *view; + ComponentInstance asComponent; //Used in updating the menu automatically NSTimer *refreshTimer; - int curTrackIndex; + int curTrackIndex, curPlaylistIndex; int trackInfoIndex; + bool isPlayingRadio; ProcessSerialNumber iTunesPSN; - bool didHaveAlbumName; //Helper variable for creating the menu + bool didHaveAlbumName, didHaveArtistName; //Helper variable for creating the menu //For upcoming songs NSMenuItem *upcomingSongsItem; @@ -36,23 +51,10 @@ PreferencesController *prefsController; StatusWindowController *statusController; //Shows track info and upcoming songs. } - +- (void)registerDefaultsIfNeeded; - (void)rebuildMenu; -- (void)updateMenu; -- (void)rebuildUpcomingSongsMenu; -- (void)rebuildPlaylistMenu; -- (void)rebuildEQPresetsMenu; - - (void)clearHotKeys; -- (void)setupHotKeys; - -- (NSString *)runScriptAndReturnResult:(NSString *)script; -- (void)timerUpdate; - - (ProcessSerialNumber)iTunesPSN; - -- (void)sendAEWithEventClass:(AEEventClass)eventClass andEventID:(AEEventID)eventID; - - (void)closePreferences; @end