Added audioscrobbler preferences.

CQTexperiment
vspader 2007-02-25 02:23:48 +00:00
parent 8e8e49c657
commit 629587d47d
11 changed files with 66 additions and 15 deletions

View File

@ -46,6 +46,7 @@
hotKeyPane = HotKeyPane;
outputPane = OutputPane;
remotePane = RemotePane;
scrobblerPane = ScrobblerPane;
updatesPane = UpdatesPane;
};
SUPERCLASS = NSObject;
@ -63,6 +64,7 @@
OUTLETS = {onlyOnActive = NSButton; };
SUPERCLASS = PreferencePane;
},
{CLASS = ScrobblerPane; LANGUAGE = ObjC; SUPERCLASS = PreferencePane; },
{CLASS = UpdatesPane; LANGUAGE = ObjC; SUPERCLASS = PreferencePane; }
);
IBVersion = 1;

View File

@ -11,21 +11,24 @@
<key>11</key>
<string>703 634 273 151 0 0 1680 1028 </string>
<key>43</key>
<string>671 662 337 96 0 0 1680 1028 </string>
<string>516 528 337 116 0 0 1680 1028 </string>
<key>50</key>
<string>662 662 355 96 0 0 1680 1028 </string>
<key>58</key>
<string>634 659 411 101 0 0 1680 1028 </string>
<key>85</key>
<string>614 652 452 116 0 0 1680 1028 </string>
</dict>
<key>IBFramework Version</key>
<string>446.1</string>
<key>IBOpenObjects</key>
<array>
<integer>11</integer>
<integer>10</integer>
<integer>58</integer>
<integer>50</integer>
<integer>85</integer>
<integer>43</integer>
<integer>50</integer>
<integer>11</integer>
</array>
<key>IBSystem Version</key>
<string>8L2127</string>

View File

@ -9,6 +9,8 @@
/* Begin PBXBuildFile section */
172D72480B891FEF00D095BB /* RemotePane.m in Sources */ = {isa = PBXBuildFile; fileRef = 172D72470B891FEF00D095BB /* RemotePane.m */; };
172D72AD0B8926CA00D095BB /* apple_remote.png in Resources */ = {isa = PBXBuildFile; fileRef = 172D72AC0B8926CA00D095BB /* apple_remote.png */; };
1766C73D0B9126E7004A7AE4 /* ScrobblerPane.m in Sources */ = {isa = PBXBuildFile; fileRef = 1766C73C0B9126E7004A7AE4 /* ScrobblerPane.m */; };
1766C7A80B912A71004A7AE4 /* lastfm.png in Resources */ = {isa = PBXBuildFile; fileRef = 1766C7A70B912A71004A7AE4 /* lastfm.png */; };
17C643380B8A77CC00C53518 /* OutputsArrayController.m in Sources */ = {isa = PBXBuildFile; fileRef = 17C643360B8A77CC00C53518 /* OutputsArrayController.m */; };
17C6433F0B8A783F00C53518 /* OutputPane.m in Sources */ = {isa = PBXBuildFile; fileRef = 17C6433E0B8A783F00C53518 /* OutputPane.m */; };
17C643690B8A788000C53518 /* output.png in Resources */ = {isa = PBXBuildFile; fileRef = 17C643680B8A788000C53518 /* output.png */; };
@ -38,6 +40,9 @@
172D72460B891FEF00D095BB /* RemotePane.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = RemotePane.h; sourceTree = "<group>"; };
172D72470B891FEF00D095BB /* RemotePane.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = RemotePane.m; sourceTree = "<group>"; };
172D72AC0B8926CA00D095BB /* apple_remote.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = apple_remote.png; path = Icons/apple_remote.png; sourceTree = "<group>"; };
1766C73B0B9126E7004A7AE4 /* ScrobblerPane.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ScrobblerPane.h; sourceTree = "<group>"; };
1766C73C0B9126E7004A7AE4 /* ScrobblerPane.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = ScrobblerPane.m; sourceTree = "<group>"; };
1766C7A70B912A71004A7AE4 /* lastfm.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = lastfm.png; path = Icons/lastfm.png; sourceTree = "<group>"; };
17C643360B8A77CC00C53518 /* OutputsArrayController.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = OutputsArrayController.m; sourceTree = "<group>"; };
17C643370B8A77CC00C53518 /* OutputsArrayController.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = OutputsArrayController.h; sourceTree = "<group>"; };
17C6433D0B8A783F00C53518 /* OutputPane.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = OutputPane.h; sourceTree = "<group>"; };
@ -163,6 +168,8 @@
8E15A8350B8944C4006DC802 /* UpdatesPane.m */,
17C6433D0B8A783F00C53518 /* OutputPane.h */,
17C6433E0B8A783F00C53518 /* OutputPane.m */,
1766C73B0B9126E7004A7AE4 /* ScrobblerPane.h */,
1766C73C0B9126E7004A7AE4 /* ScrobblerPane.m */,
);
name = Panes;
sourceTree = "<group>";
@ -201,6 +208,7 @@
8E07ABD90AAC95AF00A4B32F /* Icons */ = {
isa = PBXGroup;
children = (
1766C7A70B912A71004A7AE4 /* lastfm.png */,
17C643680B8A788000C53518 /* output.png */,
8E15A86B0B894768006DC802 /* updates.png */,
172D72AC0B8926CA00D095BB /* apple_remote.png */,
@ -258,6 +266,7 @@
172D72AD0B8926CA00D095BB /* apple_remote.png in Resources */,
8E15A86C0B894768006DC802 /* updates.png in Resources */,
17C643690B8A788000C53518 /* output.png in Resources */,
1766C7A80B912A71004A7AE4 /* lastfm.png in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@ -279,6 +288,7 @@
8E15A8360B8944C4006DC802 /* UpdatesPane.m in Sources */,
17C643380B8A77CC00C53518 /* OutputsArrayController.m in Sources */,
17C6433F0B8A783F00C53518 /* OutputPane.m in Sources */,
1766C73D0B9126E7004A7AE4 /* ScrobblerPane.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

View File

@ -14,6 +14,7 @@
#import "RemotePane.h"
#import "UpdatesPane.h"
#import "OutputPane.h"
#import "ScrobblerPane.h"
@interface PrefPaneController : NSObject <SS_PreferencePaneProtocol> {
IBOutlet HotKeyPane *hotKeyPane;
@ -21,12 +22,14 @@
IBOutlet RemotePane *remotePane;
IBOutlet UpdatesPane *updatesPane;
IBOutlet OutputPane *outputPane;
IBOutlet ScrobblerPane *scrobblerPane;
}
- (HotKeyPane *)hotKeyPane;
- (FileDrawerPane *)fileDrawerPane;
- (RemotePane *)remotePane;
- (UpdatesPane *)updatesPane;
- (UpdatesPane *)outputPane;
- (OutputPane *)outputPane;
- (ScrobblerPane *)scrobblerPane;
@end

View File

@ -18,7 +18,7 @@
PrefPaneController *prefPaneController = [[PrefPaneController alloc] init];
loaded = [NSBundle loadNibNamed:@"Preferences" owner:prefPaneController];
return [NSArray arrayWithObjects: [prefPaneController hotKeyPane], [prefPaneController fileDrawerPane], [prefPaneController remotePane], [prefPaneController updatesPane], [prefPaneController outputPane], nil];
return [NSArray arrayWithObjects: [prefPaneController hotKeyPane], [prefPaneController fileDrawerPane], [prefPaneController remotePane], [prefPaneController updatesPane], [prefPaneController outputPane], [prefPaneController scrobblerPane], nil];
}
- (HotKeyPane *)hotKeyPane
@ -46,4 +46,9 @@
return outputPane;
}
- (ScrobblerPane *)scrobblerPane
{
return scrobblerPane;
}
@end

View File

@ -11,9 +11,7 @@
@interface RemotePane : PreferencePane {
IBOutlet NSButton *onlyOnActive;
}
- (IBAction)takeBool:(id)sender;
@end

View File

@ -15,13 +15,6 @@
{
[self setName:@"Remote"];
[self setIcon:@"apple_remote"];
[onlyOnActive setState:[[[[NSUserDefaultsController sharedUserDefaultsController] defaults] objectForKey:@"remoteOnlyOnActive"] boolValue]];
}
- (IBAction)takeBool:(id)sender
{
[[NSUserDefaults standardUserDefaults] setObject:[NSNumber numberWithBool:[onlyOnActive state]] forKey:@"remoteOnlyOnActive"];
}
@end

View File

@ -0,0 +1,17 @@
//
// FileDrawerPane.h
// Preferences
//
// Created by Vincent Spader on 9/4/06.
// Copyright 2006 Vincent Spader. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "PreferencePane.h"
@interface ScrobblerPane : PreferencePane {
}
@end

View File

@ -0,0 +1,20 @@
//
// FileDrawerPane.m
// Preferences
//
// Created by Vincent Spader on 9/4/06.
// Copyright 2006 Vincent Spader. All rights reserved.
//
#import "ScrobblerPane.h"
@implementation ScrobblerPane
- (void)awakeFromNib
{
[self setName:@"Last.fm"];
[self setIcon:@"lastfm"];
}
@end