Changeset 1002


Ignore:
Timestamp:
Oct 13, 2006, 1:47:52 PM (15 years ago)
Author:
livings124
Message:

Clicking on the pieces view will toggle between piece progress view and availability view (a tooltip clarifies which view is current).

Location:
trunk
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Transmission.xcodeproj/project.pbxproj

    r981 r1002  
    143143                A2A306600AAD24A80049E2AC /* UKKQueue.m in Sources */ = {isa = PBXBuildFile; fileRef = A2A306580AAD24A80049E2AC /* UKKQueue.m */; };
    144144                A2A306620AAD24A80049E2AC /* UKMainThreadProxy.m in Sources */ = {isa = PBXBuildFile; fileRef = A2A3065A0AAD24A80049E2AC /* UKMainThreadProxy.m */; };
     145                A2AA579C0ADFCAB400CA59F6 /* PiecesImageView.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = A2AA579A0ADFCAB400CA59F6 /* PiecesImageView.h */; };
     146                A2AA579D0ADFCAB400CA59F6 /* PiecesImageView.m in Sources */ = {isa = PBXBuildFile; fileRef = A2AA579B0ADFCAB400CA59F6 /* PiecesImageView.m */; };
    145147                A2AF1C390A3D0F6200F1575D /* FileTableView.m in Sources */ = {isa = PBXBuildFile; fileRef = A2AF1C370A3D0F6200F1575D /* FileTableView.m */; };
    146148                A2BD40070A09BBEA008CCE96 /* bencode.h in Headers */ = {isa = PBXBuildFile; fileRef = 4D1838B709DEC0430047D688 /* bencode.h */; };
     
    180182                                A261F1E40A69A1B10002815A /* Growl.framework in CopyFiles */,
    181183                                A24F19210A3A796800C9C145 /* Sparkle.framework in CopyFiles */,
     184                                A2AA579C0ADFCAB400CA59F6 /* PiecesImageView.h in CopyFiles */,
    182185                        );
    183186                        runOnlyForDeploymentPostprocessing = 0;
     
    286289                4DCCBB3C09C3D71100D3CABF /* TorrentCell.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = TorrentCell.m; path = macosx/TorrentCell.m; sourceTree = "<group>"; };
    287290                4DCCBB3D09C3D71100D3CABF /* TorrentCell.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = TorrentCell.h; path = macosx/TorrentCell.h; sourceTree = "<group>"; };
    288                 4DDBB71909E16BAE00284745 /* transmissioncli */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = transmissioncli; sourceTree = BUILT_PRODUCTS_DIR; };
     291                4DDBB71909E16BAE00284745 /* transmissioncli */ = {isa = PBXFileReference; includeInIndex = 0; lastKnownFileType = "compiled.mach-o.executable"; path = transmissioncli; sourceTree = BUILT_PRODUCTS_DIR; };
    289292                4DDBB71B09E16BF100284745 /* transmissioncli.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = transmissioncli.c; path = cli/transmissioncli.c; sourceTree = "<group>"; };
    290293                4DDFDD20099A5D8E00189D81 /* DownloadBadge.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = DownloadBadge.png; path = macosx/Images/DownloadBadge.png; sourceTree = "<group>"; };
     
    374377                A2A3065A0AAD24A80049E2AC /* UKMainThreadProxy.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = UKMainThreadProxy.m; path = macosx/UKKQueue/UKMainThreadProxy.m; sourceTree = "<group>"; };
    375378                A2A84AD20A04FCDC00C898D4 /* BottomBorder.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = BottomBorder.png; path = macosx/Images/BottomBorder.png; sourceTree = "<group>"; };
     379                A2AA579A0ADFCAB400CA59F6 /* PiecesImageView.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = PiecesImageView.h; path = macosx/PiecesImageView.h; sourceTree = "<group>"; };
     380                A2AA579B0ADFCAB400CA59F6 /* PiecesImageView.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = PiecesImageView.m; path = macosx/PiecesImageView.m; sourceTree = "<group>"; };
    376381                A2AF1C360A3D0F6200F1575D /* FileTableView.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = FileTableView.h; path = macosx/FileTableView.h; sourceTree = "<group>"; };
    377382                A2AF1C370A3D0F6200F1575D /* FileTableView.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = FileTableView.m; path = macosx/FileTableView.m; sourceTree = "<group>"; };
     
    462467                                A2710E740A86796000CE4F7D /* PrefsWindow.h */,
    463468                                A2710E750A86796000CE4F7D /* PrefsWindow.m */,
     469                                A2AA579A0ADFCAB400CA59F6 /* PiecesImageView.h */,
     470                                A2AA579B0ADFCAB400CA59F6 /* PiecesImageView.m */,
    464471                        );
    465472                        name = Sources;
     
    913920                                A291DAAF0AC8BEB6003385E9 /* PiecesView.m in Sources */,
    914921                                A29C8B370ACC6EB3000ED9F9 /* PortChecker.m in Sources */,
     922                                A2AA579D0ADFCAB400CA59F6 /* PiecesImageView.m in Sources */,
    915923                        );
    916924                        runOnlyForDeploymentPostprocessing = 0;
  • trunk/macosx/English.lproj/InfoWindow.nib/classes.nib

    r923 r1002  
    4747        {CLASS = NSSegmentedControl; LANGUAGE = ObjC; SUPERCLASS = NSControl; },
    4848        {
     49            CLASS = PiecesImageView;
     50            LANGUAGE = ObjC;
     51            OUTLETS = {fPiecesView = PiecesView; };
     52            SUPERCLASS = NSImageView;
     53        },
     54        {
    4955            CLASS = PiecesView;
    5056            LANGUAGE = ObjC;
  • trunk/macosx/PiecesView.h

    r995 r1002  
    4242- (void) setTorrent: (Torrent *) torrent;
    4343- (void) updateView: (BOOL) first;
     44- (void) toggleView;
    4445
    4546@end
  • trunk/macosx/PiecesView.m

    r999 r1002  
    135135        [fBluePiece unlockFocus];
    136136       
     137        [fImageView setToolTip: [[NSUserDefaults standardUserDefaults] boolForKey: @"PiecesViewShowAvailability"]
     138                            ? @"Piece Availability" : @"Piece Progress"];
     139       
    137140        //actually draw the box
    138141        [self setTorrent: nil];
     
    378381}
    379382
    380 /*- (void) toggleView: (id) sender
     383- (void) toggleView
    381384{
    382385    NSUserDefaults * defaults = [NSUserDefaults standardUserDefaults];
    383     [defaults setBool: ![defaults boolForKey: @"PiecesViewShowAvailability"]
    384                 forKey: @"PiecesViewShowAvailability"];
     386    BOOL showAvailability = ![defaults boolForKey: @"PiecesViewShowAvailability"];
     387   
     388    [defaults setBool: showAvailability forKey: @"PiecesViewShowAvailability"];
     389   
     390    [fImageView setToolTip: showAvailability ? @"Piece Availability" : @"Piece Progress"];
    385391   
    386392    [self updateView: YES];
    387 }*/
     393}
    388394
    389395@end
Note: See TracChangeset for help on using the changeset viewer.