Changeset 1119
- Timestamp:
- Nov 23, 2006, 1:38:18 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/metainfo.c
r1101 r1119 191 191 } 192 192 snprintf( inf->trackerAnnounce, MAX_PATH_LENGTH, "%s", s2 ); 193 194 /* Comment info */ 195 if( ( val = tr_bencDictFind( &meta, "comment" ) ) ) 196 { 197 strcatUTF8( inf->comment, val->val.s.s ); 198 } 199 200 /* Creator info */ 201 if( ( val = tr_bencDictFind( &meta, "created by" ) ) ) 202 { 203 strcatUTF8( inf->creator, val->val.s.s ); 204 } 205 206 /* Date created */ 207 if( ( val = tr_bencDictFind( &meta, "creation date" ) ) ) 208 { 209 inf->dateCreated = val->val.i; 210 } 193 211 194 212 /* Piece length */ -
trunk/libtransmission/transmission.h
r1064 r1119 319 319 int trackerPort; 320 320 char trackerAnnounce[MAX_PATH_LENGTH]; 321 322 /* Torrent info */ 323 char comment[MAX_PATH_LENGTH]; 324 char creator[MAX_PATH_LENGTH]; 325 int dateCreated; 321 326 322 327 /* Pieces info */ -
trunk/macosx/Controller.h
r1102 r1119 95 95 96 96 NSMutableArray * fAutoImportedNames; 97 NSMutableDictionary* fPendingTorrentDownloads;97 NSMutableDictionary * fPendingTorrentDownloads; 98 98 } 99 99 -
trunk/macosx/English.lproj/InfoWindow.nib/classes.nib
r1010 r1119 20 20 OUTLETS = { 21 21 fAnnounceField = NSTextField; 22 fCommentField = NSTextField; 22 23 fConnectedPeersField = NSTextField; 24 fCreatorField = NSTextField; 23 25 fDataLocationField = NSTextField; 26 fDateCreatedField = NSTextField; 24 27 fDateStartedField = NSTextField; 25 28 fDownloadedTotalField = NSTextField; -
trunk/macosx/English.lproj/InfoWindow.nib/info.nib
r1054 r1119 4 4 <dict> 5 5 <key>IBDocumentLocation</key> 6 <string> 69 61 356 240 0 0 1152 842</string>6 <string>58 51 356 240 0 0 1024 746 </string> 7 7 <key>IBEditorPositions</key> 8 8 <dict> -
trunk/macosx/InfoWindowController.h
r1010 r1119 39 39 IBOutlet NSTextField * fNameField, * fSizeField, * fTrackerField, 40 40 * fAnnounceField, * fPieceSizeField, * fPiecesField, 41 * fHashField, 41 * fHashField, * fCommentField, 42 42 * fTorrentLocationField, * fDataLocationField, 43 * fDateStartedField, * fStateField, 43 * fDateStartedField, 44 * fCreatorField, * fDateCreatedField, 45 * fStateField, 44 46 * fDownloadedValidField, * fDownloadedTotalField, * fUploadedTotalField, 45 47 * fRatioField, * fSwarmSpeedField; -
trunk/macosx/InfoWindowController.m
r1066 r1119 40 40 41 41 //15 spacing at the bottom of each tab 42 #define TAB_INFO_HEIGHT 182.042 #define TAB_INFO_HEIGHT 255.0 43 43 #define TAB_ACTIVITY_HEIGHT 109.0 44 44 #define TAB_PEERS_HEIGHT 260.0 … … 158 158 [fHashField setStringValue: @""]; 159 159 [fHashField setToolTip: nil]; 160 [fCommentField setStringValue: @""]; 161 [fCommentField setToolTip: @""]; 162 163 [fCreatorField setStringValue: @""]; 164 [fDateCreatedField setStringValue: @""]; 160 165 161 166 [fTorrentLocationField setStringValue: @""]; … … 172 177 [fAnnounceField setSelectable: NO]; 173 178 [fHashField setSelectable: NO]; 179 [fCommentField setSelectable: NO]; 180 [fCreatorField setSelectable: NO]; 174 181 [fTorrentLocationField setSelectable: NO]; 175 182 [fDataLocationField setSelectable: NO]; … … 203 210 NSString * tracker = [torrent tracker], 204 211 * announce = [torrent announce], 205 * hashString = [torrent hashString]; 212 * hashString = [torrent hashString], 213 * commentString = [torrent comment]; 206 214 [fTrackerField setStringValue: tracker]; 207 215 [fTrackerField setToolTip: tracker]; … … 212 220 [fHashField setStringValue: hashString]; 213 221 [fHashField setToolTip: hashString]; 222 [fCommentField setStringValue: commentString]; 223 [fCommentField setToolTip: commentString]; 224 225 [fCreatorField setStringValue: [torrent creator]]; 226 [fDateCreatedField setObjectValue: [torrent dateCreated]]; 214 227 215 228 BOOL publicTorrent = [torrent publicTorrent]; … … 232 245 [fAnnounceField setSelectable: YES]; 233 246 [fHashField setSelectable: YES]; 247 [fCommentField setSelectable: YES]; 248 [fCreatorField setSelectable: YES]; 234 249 [fTorrentLocationField setSelectable: YES]; 235 250 [fDataLocationField setSelectable: YES]; -
trunk/macosx/Torrent.h
r1094 r1119 108 108 - (NSString *) tracker; 109 109 - (NSString *) announce; 110 111 - (NSString *) comment; 112 - (NSString *) creator; 113 - (NSDate *) dateCreated; 114 110 115 - (int) pieceSize; 111 116 - (int) pieceCount; -
trunk/macosx/Torrent.m
r1102 r1119 713 713 } 714 714 715 - (NSString *) comment 716 { 717 return [NSString stringWithUTF8String: fInfo->comment]; 718 } 719 720 - (NSString *) creator 721 { 722 return [NSString stringWithUTF8String: fInfo->creator]; 723 } 724 725 - (NSDate *) dateCreated 726 { 727 int date = fInfo->dateCreated; 728 return date > 0 ? [NSDate dateWithTimeIntervalSince1970: fInfo->dateCreated] : nil; 729 } 730 715 731 - (int) pieceSize 716 732 {
Note: See TracChangeset
for help on using the changeset viewer.