-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMenuController.h
More file actions
executable file
·58 lines (51 loc) · 1.42 KB
/
MenuController.h
File metadata and controls
executable file
·58 lines (51 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
* MenuTunes
* MenuController.h
*
* Copyright (c) 2003 iThink Software
*
*/
#import <Cocoa/Cocoa.h>
// Internal: To be used with NSMenuItems as their tag, for use with the NSMenuValidation stuff.
// Also will be used in supplying the controller with the layout to use for the MenuItems, unless
// we have the controller read the prefs itself.
typedef enum {
MTMenuSeperator = -1,
MTMenuTrackInfoHeader,
MTMenuTrackInfoTitle,
MTMenuTrackInfoAlbum,
MTMenuTrackInfoArtist,
MTMenuTrackInfoTrackTime,
MTMenuTrackInfoTrackNumber,
MTMenuTrackInfoRating,
MTMenuRatingMenu,
MTMenuPlaylistMenu,
MTMenuEqualizerMenu,
MTMenuUpcomingSongsMenu,
// MTMenuBrowseMenu,
// MTMenuVolumeMenu,
// MTMenuSourceMenu,
MTMenuPlayPauseItem,
MTMenuFastForwardItem,
MTMenuRewindItem,
MTMenuPreviousTrackItem,
MTMenuNextTrackItem,
MTMenuShowPlayerItem,
MTMenuPreferencesItem,
MTMenuAboutItem,
MTMenuQuitItem
} MTMenuItemTag;
@interface MenuController : NSObject
{
NSMutableArray *_menuLayout;
NSMenu *_currentMenu;
NSMenu *_ratingMenu, *_upcomingSongsMenu, *_eqMenu, *_playlistsMenu, *_artistsMenu, *_albumsMenu; //Submenus
int _currentPlaylist, _currentTrack;
BOOL _playingRadio, _continue;
}
- (NSMenu *)menu;
- (NSMenu *)menuForNoPlayer;
- (BOOL)rebuildSubmenus;
// - (NSArray *)menuLayout;
// - (void)setMenuLayout:(NSArray *)newLayoutArray;
@end