phase 2 of updating menu items to remove bindings

This commit is contained in:
Mitchell Livingston 2007-10-30 20:19:22 +00:00
parent 4cde721475
commit 4584417bf0
5 changed files with 8 additions and 11 deletions

View File

@ -186,7 +186,6 @@
- (void) setFilterSearchType: (id) sender;
- (void) switchFilter: (id) sender;
- (void) applySpeedLimit: (id) sender;
- (void) toggleSpeedLimit: (id) sender;
- (void) autoSpeedLimitChange: (NSNotification *) notification;
- (void) autoSpeedLimit;

View File

@ -2025,16 +2025,10 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
? [NSImage imageNamed: @"SpeedLimitButtonGraphite.png"] : [NSImage imageNamed: @"SpeedLimitButtonBlue.png"]];
}
#warning look into
- (void) applySpeedLimit: (id) sender
{
[fPrefsController applySpeedSettings: nil];
}
- (void) toggleSpeedLimit: (id) sender
{
[fDefaults setBool: ![fDefaults boolForKey: @"SpeedLimit"] forKey: @"SpeedLimit"];
[self applySpeedLimit: nil];
[fPrefsController applySpeedSettings: nil];
}
- (void) autoSpeedLimitChange: (NSNotification *) notification
@ -2849,6 +2843,12 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
{
SEL action = [menuItem action];
if (action == @selector(toggleSpeedLimit:))
{
[menuItem setState: [fDefaults boolForKey: @"SpeedLimit"] ? NSOnState : NSOffState];
return YES;
}
//only enable some items if it is in a context menu or the window is useable
BOOL canUseTable = [fWindow isKeyWindow] || [[menuItem menu] supermenu] != [NSApp mainMenu];

View File

@ -71,8 +71,6 @@
<string>id</string>
<key>applyFilter</key>
<string>id</string>
<key>applySpeedLimit</key>
<string>id</string>
<key>copyTorrentFiles</key>
<string>id</string>
<key>createFile</key>

View File

@ -10,7 +10,7 @@
<integer>5</integer>
<key>IBOpenObjects</key>
<array>
<integer>1639</integer>
<integer>1326</integer>
</array>
<key>IBSystem Version</key>
<string>9A581</string>

Binary file not shown.