Changeset 600


Ignore:
Timestamp:
Jul 16, 2006, 4:55:02 AM (16 years ago)
Author:
livings124
Message:

Remove useless code that should've been removed a while ago.

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/BarButton.h

    r591 r600  
    2929    NSImage * fButtonNormal, * fButtonOver, * fButtonPressed, * fButtonSelected;
    3030
    31     NSString * fPrefString, * fPrefKey;
    3231    BOOL fEnabled;
    33    
    3432    NSTrackingRectTag fTrackingTag;
    3533}
  • trunk/macosx/BarButton.m

    r599 r600  
    4141        fButtonSelected = [[NSImage alloc] initWithSize: buttonSize];
    4242       
    43         //create shape
    44         NSBezierPath * rect = [NSBezierPath bezierPath];
    45         float ovalDiamater = 20.0;
    46         [rect appendBezierPathWithOvalInRect:
    47                 NSMakeRect(0, 0, ovalDiamater, buttonSize.height)];
    48         [rect appendBezierPathWithOvalInRect:
    49                 NSMakeRect(buttonSize.width - ovalDiamater, 0, ovalDiamater, buttonSize.height)];
    50         [rect appendBezierPathWithRect:
    51                 NSMakeRect(ovalDiamater * 0.5, 0, buttonSize.width - ovalDiamater, buttonSize.height)];
    52        
    53         //create rolled over button
     43        //rolled over button
    5444        NSImage * leftOver = [NSImage imageNamed: @"FilterButtonOverLeft.png"],
    5545                * rightOver = [NSImage imageNamed: @"FilterButtonOverRight.png"],
     
    7262        [fButtonOver unlockFocus];
    7363       
    74         //create pressed button
     64        //pressed button
    7565        NSImage * leftPressed = [NSImage imageNamed: @"FilterButtonPressedLeft.png"],
    7666                * rightPressed = [NSImage imageNamed: @"FilterButtonPressedRight.png"],
     
    8676        [fButtonPressed unlockFocus];
    8777       
    88         //create selected button
     78        //selected button
    8979        NSImage * leftSelected = [NSImage imageNamed: @"FilterButtonSelectedLeft.png"],
    9080                * rightSelected = [NSImage imageNamed: @"FilterButtonSelectedRight.png"],
     
    116106}
    117107
    118 //call only once to avoid overlap
     108//call only once to avoid overlapping text
    119109- (void) setText: (NSString *) text
    120110{
     
    139129            (buttonSize.height - textSize.height) * 0.5 + 1.5, textSize.width, textSize.height);
    140130   
    141     //create normal button
     131    //normal button
    142132    [fButtonNormal lockFocus];
    143133    [text drawInRect: textRect withAttributes: normalAttributes];
    144134    [fButtonNormal unlockFocus];
    145135   
    146     //create rolled over button
     136    //rolled over button
    147137    [fButtonOver lockFocus];
    148138    [text drawInRect: textRect withAttributes: highlightedAttributes];
    149139    [fButtonOver unlockFocus];
    150140   
    151     //create pressed button
     141    //pressed button
    152142    [fButtonPressed lockFocus];
    153143    [text drawInRect: textRect withAttributes: highlightedAttributes];
    154144    [fButtonPressed unlockFocus];
    155145   
    156     //create selected button
     146    //selected button
    157147    [fButtonSelected lockFocus];
    158148    [text drawInRect: textRect withAttributes: highlightedAttributes];
Note: See TracChangeset for help on using the changeset viewer.