X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/0f0fcccca7516fef317716f61356ebb6bb07c084..6b8a2b55809e875bb0aadc3ab9cbab181014d1a9:/OldMainController.h diff --git a/OldMainController.h b/OldMainController.h index 252ae3a..85b4c54 100755 --- a/OldMainController.h +++ b/OldMainController.h @@ -17,10 +17,8 @@ #import #import #import -#import - -//@class MenuTunesView; -@class PreferencesController, StatusWindow; +#import "PreferencesController.h" +#import "StatusWindow.h" @interface MainController : NSObject { @@ -32,8 +30,10 @@ //Used in updating the menu automatically NSTimer *refreshTimer; int trackInfoIndex; - int lastSongIndex; + int lastPlaylistIndex; + NSString *lastSongIdentifier; + int lastSongRating; BOOL isPlayingRadio; ITMTRemotePlayerRunningState isAppRunning; @@ -53,28 +53,20 @@ NSMenu *eqMenu; //For song ratings - NSMenuItem *songRatingMenuItem; + NSMenuItem *ratingItem; NSMenu *ratingMenu; - NSMenuItem *playPauseMenuItem; //Toggle between 'Play' and 'Pause' + NSMenuItem *playPauseItem; //Toggle between 'Play' and 'Pause' - PreferencesController *prefsController; StatusWindow *statusWindow; //Shows track info and upcoming songs. } -- (void)remotePlayerLaunched:(NSNotification *)note; -- (void)remotePlayerTerminated:(NSNotification *)note; +- (void)applicationLaunched:(NSNotification *)note; +- (void)applicationTerminated:(NSNotification *)note; -- (void)registerDefaultsIfNeeded; - (void)rebuildMenu; -- (void)runTimerInNewThread; - -- (void)setSongRating:(id)sender; - - (void)clearHotKeys; - (void)closePreferences; -- (void)showPlayer; - @end