Cog/Preferences/General/PrefPaneController.m

62 lines
1.7 KiB
Mathematica
Raw Normal View History

2006-09-04 14:06:23 -04:00
//
// PreferencesController.m
// Preferences
//
// Created by Vincent Spader on 9/4/06.
// Copyright 2006 Vincent Spader. All rights reserved.
2006-09-04 14:06:23 -04: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];
return [NSArray arrayWithObjects:
[prefPaneController hotKeyPane],
[prefPaneController fileTreePane],
[prefPaneController remotePane],
[prefPaneController updatesPane],
[prefPaneController outputPane],
[prefPaneController scrobblerPane],
nil];
2006-09-04 14:06:23 -04:00
}
- (HotKeyPane *)hotKeyPane
{
return hotKeyPane;
}
- (PreferencePane *)fileTreePane
2006-09-04 14:06:23 -04:00
{
return [PreferencePane preferencePaneWithView:fileTreeView name:NSLocalizedStringFromTableInBundle(@"File Tree", nil, [NSBundle bundleForClass:[self class]], @"") icon:@"file_tree"];
2006-09-04 14:06:23 -04:00
}
- (OutputPane *)outputPane
{
return outputPane;
}
- (PreferencePane *)remotePane
{
return [PreferencePane preferencePaneWithView:remoteView name:NSLocalizedStringFromTableInBundle(@"Remote", nil, [NSBundle bundleForClass:[self class]], @"") icon:@"apple_remote"];
}
- (PreferencePane *)updatesPane
{
return [PreferencePane preferencePaneWithView:updatesView name:NSLocalizedStringFromTableInBundle(@"Updates", nil, [NSBundle bundleForClass:[self class]], @"") icon:@"updates"];
}
- (PreferencePane *)scrobblerPane
2007-02-24 23:23:48 -03:00
{
return [PreferencePane preferencePaneWithView:scrobblerView name:NSLocalizedStringFromTableInBundle(@"Last.fm", nil, [NSBundle bundleForClass:[self class]], @"") icon:@"lastfm"];
2007-02-24 23:23:48 -03:00
}
2006-09-04 14:06:23 -04:00
@end