2006-09-04 18:06:23 +00:00
|
|
|
//
|
|
|
|
// PreferencesController.m
|
|
|
|
// Preferences
|
|
|
|
//
|
2006-09-04 18:46:18 +00:00
|
|
|
// Created by Vincent Spader on 9/4/06.
|
|
|
|
// Copyright 2006 Vincent Spader. All rights reserved.
|
2006-09-04 18:06:23 +00:00
|
|
|
//
|
|
|
|
|
|
|
|
#import "PrefPaneController.h"
|
|
|
|
#import "SS_PreferencePaneProtocol.h"
|
|
|
|
|
|
|
|
@implementation PrefPaneController
|
|
|
|
|
|
|
|
+ (NSArray *)preferencePanes
|
|
|
|
{
|
|
|
|
BOOL loaded;
|
|
|
|
|
|
|
|
PrefPaneController *prefPaneController = [[PrefPaneController alloc] init];
|
|
|
|
loaded = [NSBundle loadNibNamed:@"Preferences" owner:prefPaneController];
|
|
|
|
|
2008-02-17 19:27:29 +00:00
|
|
|
return [NSArray arrayWithObjects: [prefPaneController hotKeyPane], [prefPaneController fileTreePane], [prefPaneController remotePane], [prefPaneController updatesPane], [prefPaneController outputPane], [prefPaneController scrobblerPane], nil];
|
2006-09-04 18:06:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- (HotKeyPane *)hotKeyPane
|
|
|
|
{
|
|
|
|
return hotKeyPane;
|
|
|
|
}
|
|
|
|
|
2008-02-17 19:27:29 +00:00
|
|
|
- (FileTreePane *)fileTreePane
|
2006-09-04 18:06:23 +00:00
|
|
|
{
|
2008-02-17 19:27:29 +00:00
|
|
|
return fileTreePane;
|
2006-09-04 18:06:23 +00:00
|
|
|
}
|
|
|
|
|
2007-02-28 00:35:27 +00:00
|
|
|
- (OutputPane *)outputPane
|
2007-02-19 00:42:12 +00:00
|
|
|
{
|
2007-02-28 00:35:27 +00:00
|
|
|
return outputPane;
|
2007-02-19 00:42:12 +00:00
|
|
|
}
|
|
|
|
|
2007-02-28 00:35:27 +00:00
|
|
|
- (PreferencePane *)remotePane
|
2007-02-19 02:55:34 +00:00
|
|
|
{
|
2007-07-08 00:13:03 +00:00
|
|
|
return [PreferencePane preferencePaneWithView:remoteView name:NSLocalizedStringFromTableInBundle(@"Remote", nil, [NSBundle bundleForClass:[self class]], @"") icon:@"apple_remote"];
|
2007-02-19 02:55:34 +00:00
|
|
|
}
|
|
|
|
|
2007-02-28 00:35:27 +00:00
|
|
|
- (PreferencePane *)updatesPane
|
2007-02-20 01:02:23 +00:00
|
|
|
{
|
2007-07-08 00:13:03 +00:00
|
|
|
return [PreferencePane preferencePaneWithView:updatesView name:NSLocalizedStringFromTableInBundle(@"Updates", nil, [NSBundle bundleForClass:[self class]], @"") icon:@"updates"];
|
2007-02-20 01:02:23 +00:00
|
|
|
}
|
|
|
|
|
2007-02-28 00:35:27 +00:00
|
|
|
- (PreferencePane *)scrobblerPane
|
2007-02-25 02:23:48 +00:00
|
|
|
{
|
2007-07-08 00:13:03 +00:00
|
|
|
return [PreferencePane preferencePaneWithView:scrobblerView name:NSLocalizedStringFromTableInBundle(@"Last.fm", nil, [NSBundle bundleForClass:[self class]], @"") icon:@"lastfm"];
|
2007-02-25 02:23:48 +00:00
|
|
|
}
|
|
|
|
|
2006-09-04 18:06:23 +00:00
|
|
|
@end
|