2009-08-05 08:59:46 +00:00
|
|
|
/*
|
2011-04-12 08:04:01 +00:00
|
|
|
Copyright 2011 Hardcoded Software (http://www.hardcoded.net)
|
2009-08-05 08:59:46 +00:00
|
|
|
|
2010-09-30 10:17:41 +00:00
|
|
|
This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
2009-08-05 08:59:46 +00:00
|
|
|
which should be included with this package. The terms are also available at
|
2010-09-30 10:17:41 +00:00
|
|
|
http://www.hardcoded.net/licenses/bsd_license
|
2009-08-05 08:59:46 +00:00
|
|
|
*/
|
|
|
|
|
2009-06-01 09:55:11 +00:00
|
|
|
#import "DirectoryPanel.h"
|
2011-01-18 14:35:14 +00:00
|
|
|
#import "Consts.h"
|
2009-06-01 09:55:11 +00:00
|
|
|
|
2010-02-05 16:05:00 +00:00
|
|
|
@implementation DirectoryPanelME
|
2011-01-14 14:07:11 +00:00
|
|
|
- (id)initWithParentApp:(id)aParentApp
|
2009-06-01 09:55:11 +00:00
|
|
|
{
|
2011-01-14 14:07:11 +00:00
|
|
|
self = [super initWithParentApp:aParentApp];
|
|
|
|
_alwaysShowPopUp = YES;
|
|
|
|
return self;
|
2009-06-01 09:55:11 +00:00
|
|
|
}
|
|
|
|
|
2011-01-14 14:07:11 +00:00
|
|
|
- (void)fillPopUpMenu
|
2009-06-01 09:55:11 +00:00
|
|
|
{
|
2011-01-14 14:07:11 +00:00
|
|
|
[super fillPopUpMenu];
|
2009-06-01 09:55:11 +00:00
|
|
|
NSMenu *m = [addButtonPopUp menu];
|
2012-02-21 15:23:23 +00:00
|
|
|
NSMenuItem *mi = [m insertItemWithTitle:TR(@"Add iTunes Library") action:@selector(addiTunes:)
|
2011-01-14 14:07:11 +00:00
|
|
|
keyEquivalent:@"" atIndex:1];
|
2009-06-01 09:55:11 +00:00
|
|
|
[mi setTarget:self];
|
2011-01-14 14:07:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- (IBAction)addiTunes:(id)sender
|
|
|
|
{
|
2012-02-21 15:23:23 +00:00
|
|
|
[self addDirectory:@"iTunes Library"];
|
2009-06-01 09:55:11 +00:00
|
|
|
}
|
|
|
|
@end
|