2009-08-05 08:59:46 +00:00
|
|
|
/*
|
2015-01-03 21:30:57 +00:00
|
|
|
Copyright 2015 Hardcoded Software (http://www.hardcoded.net)
|
2009-08-05 08:59:46 +00:00
|
|
|
|
2015-01-03 21:33:16 +00:00
|
|
|
This software is licensed under the "GPLv3" 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
|
2015-01-03 21:33:16 +00:00
|
|
|
http://www.gnu.org/licenses/gpl-3.0.html
|
2009-08-05 08:59:46 +00:00
|
|
|
*/
|
|
|
|
|
2009-06-01 09:55:11 +00:00
|
|
|
#import "DirectoryPanel.h"
|
|
|
|
|
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-08-01 20:34:12 +00:00
|
|
|
NSMenuItem *mi = [m insertItemWithTitle:NSLocalizedString(@"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
|