Changeset 3660


Ignore:
Timestamp:
Oct 30, 2007, 8:19:22 PM (15 years ago)
Author:
livings124
Message:

phase 2 of updating menu items to remove bindings

Location:
trunk/macosx
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.h

    r3391 r3660  
    187187- (void) switchFilter: (id) sender;
    188188
    189 - (void) applySpeedLimit: (id) sender;
    190189- (void) toggleSpeedLimit: (id) sender;
    191190- (void) autoSpeedLimitChange: (NSNotification *) notification;
  • trunk/macosx/Controller.m

    r3655 r3660  
    20262026}
    20272027
    2028 #warning look into
    2029 - (void) applySpeedLimit: (id) sender
    2030 {
     2028- (void) toggleSpeedLimit: (id) sender
     2029{
     2030    [fDefaults setBool: ![fDefaults boolForKey: @"SpeedLimit"] forKey: @"SpeedLimit"];
    20312031    [fPrefsController applySpeedSettings: nil];
    2032 }
    2033 
    2034 - (void) toggleSpeedLimit: (id) sender
    2035 {
    2036     [fDefaults setBool: ![fDefaults boolForKey: @"SpeedLimit"] forKey: @"SpeedLimit"];
    2037     [self applySpeedLimit: nil];
    20382032}
    20392033
     
    28492843{
    28502844    SEL action = [menuItem action];
     2845   
     2846    if (action == @selector(toggleSpeedLimit:))
     2847    {
     2848        [menuItem setState: [fDefaults boolForKey: @"SpeedLimit"] ? NSOnState : NSOffState];
     2849        return YES;
     2850    }
    28512851   
    28522852    //only enable some items if it is in a context menu or the window is useable
  • trunk/macosx/English.lproj/MainMenu.nib/classes.nib

    r3655 r3660  
    7171                                <string>id</string>
    7272                                <key>applyFilter</key>
    73                                 <string>id</string>
    74                                 <key>applySpeedLimit</key>
    7573                                <string>id</string>
    7674                                <key>copyTorrentFiles</key>
  • trunk/macosx/English.lproj/MainMenu.nib/info.nib

    r3655 r3660  
    1111        <key>IBOpenObjects</key>
    1212        <array>
    13                 <integer>1639</integer>
     13                <integer>1326</integer>
    1414        </array>
    1515        <key>IBSystem Version</key>
Note: See TracChangeset for help on using the changeset viewer.