Changeset 75

Show
Ignore:
Timestamp:
06/28/07 19:13:36 (1 year ago)
Author:
pmerrill
Message:

Added Settings menu option for fast menu switching (loading cached meta data)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/SapphireBrowser.m

    r74 r75  
    235235- (void) wasBuriedByPushingController: (BRLayerController *) controller 
    236236{ 
    237     // The user chose an option and this controller os no longer on screen 
     237    // The user chose an option and this controller is no longer on screen 
    238238     
    239239    // always call super 
     
    342342                [result setLeftIcon:[[SapphireTheme sharedTheme] blueGemForScene:[self scene]]]; 
    343343        else if(favorite)[result setLeftIcon:[[SapphireTheme sharedTheme] yellowGemForScene:[self scene]]]; 
     344        else [result setLeftIcon:[[SapphireTheme sharedTheme] redGemForScene:[self scene]]]; 
    344345                         
    345346        // add text 
  • trunk/SapphireSettings.m

    r68 r75  
    2727#define HIDE_SPOILERS_KEY       @"HideSpoilers" 
    2828#define HIDE_UI_QUIT_KEY        @"HideUIQuit" 
     29#define ENABLE_FAST_SWITCHING_KEY       @"EnableFastSwitching" 
    2930#define DISABLE_ANON_KEY        @"DisableAnonymousReporting" 
    3031 
     
    5455/*                                                                                              @"   Hide Show Spoilers",*/ 
    5556                                                                                                @"   Hide UI Quit", 
     57                                                                                                @"   Fast Directory Switching", 
    5658                                                                                                @"   Disable Anonymous Reporting", nil]; 
    57         keys = [[NSArray alloc] initWithObjects:@"", HIDE_FAVORITE_KEY, /*HIDE_TOP_SHOWS_KEY, */HIDE_UNWATCHED_KEY,  /*HIDE_SPOILERS_KEY, */HIDE_UI_QUIT_KEY, DISABLE_ANON_KEY, nil]; 
     59         
     60        keys = [[NSArray alloc] initWithObjects:                @"",  
     61                                                                                                        HIDE_FAVORITE_KEY,  
     62                                                                                                        /*HIDE_TOP_SHOWS_KEY, */ 
     63                                                                                                        HIDE_UNWATCHED_KEY,   
     64                                                                                                        /*HIDE_SPOILERS_KEY, */ 
     65                                                                                                        HIDE_UI_QUIT_KEY, 
     66                                                                                                        ENABLE_FAST_SWITCHING_KEY,  
     67                                                                                                        DISABLE_ANON_KEY, nil]; 
     68         
    5869        path = [dictionaryPath retain]; 
    5970        options = [[NSDictionary dictionaryWithContentsOfFile:dictionaryPath] mutableCopy]; 
     
    6475                [NSNumber numberWithBool:NO], HIDE_SPOILERS_KEY, 
    6576                [NSNumber numberWithBool:YES], HIDE_UI_QUIT_KEY, 
     77                [NSNumber numberWithBool:YES], ENABLE_FAST_SWITCHING_KEY, 
    6678                [NSNumber numberWithBool:NO], DISABLE_ANON_KEY, 
    6779                nil]; 
     
    128140{ 
    129141        return [self boolForKey:DISABLE_ANON_KEY]; 
     142} 
     143 
     144- (BOOL)fastSwitching 
     145{ 
     146        return [self boolForKey:ENABLE_FAST_SWITCHING_KEY]; 
     147 
    130148} 
    131149 
     
    222240/*      if(row==2)[result setRightIcon:[[SapphireTheme sharedTheme] greenGemForScene:[self scene]]];*/ 
    223241        if(row==2)[result setRightIcon:[[SapphireTheme sharedTheme] blueGemForScene:[self scene]]]; 
    224 /*      if(row==4)[result setRightIcon:[[SapphireTheme sharedTheme] redGemForScene:[self scene]]];*/ 
    225         if(row==3)[result setRightIcon:[[SapphireTheme sharedTheme] coneGemForScene:[self scene]]]; 
     242/*      if(row==3)[result setRightIcon:[[SapphireTheme sharedTheme] redGemForScene:[self scene]]];*/ 
     243        if(row==4)[result setRightIcon:[[SapphireTheme sharedTheme] coneGemForScene:[self scene]]]; 
     244        if(row==5)[result setRightIcon:[[SapphireTheme sharedTheme] coneGemForScene:[self scene]]]; 
    226245 
    227246