Removed some fields from the info window that are duplicate with the

main window
This commit is contained in:
Eric Petit 2006-06-19 23:16:07 +00:00
parent 2c8b4c80ee
commit b111bb7cd7
4 changed files with 13 additions and 7 deletions

View File

@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>IBDocumentLocation</key>
<string>69 61 356 240 0 0 1152 842 </string>
<string>94 65 356 240 0 0 1440 878 </string>
<key>IBEditorPositions</key>
<dict>
<key>549</key>
@ -19,11 +19,7 @@
<array>
<integer>332</integer>
</array>
<key>IBOpenObjects</key>
<array>
<integer>5</integer>
</array>
<key>IBSystem Version</key>
<string>8I127</string>
<string>8I1119</string>
</dict>
</plist>

View File

@ -38,8 +38,10 @@
* fHashField,
* fTorrentLocationField, * fDataLocationField,
* fDateStartedField,
#if 0
* fStateField, * fPercentField,
* fDownloadRateField, * fUploadRateField,
#endif
* fDownloadedValidField, * fDownloadedTotalField, * fUploadedTotalField,
* fRatioField, * fSeedersField, * fLeechersField,
* fConnectedPeersField, * fDownloadingFromField, * fUploadingToField;

View File

@ -36,7 +36,7 @@
//15 spacing at the bottom of each tab
#define TAB_INFO_HEIGHT 196.0
#define TAB_STATUS_HEIGHT 262.0
#define TAB_STATUS_HEIGHT 199.0
#define TAB_OPTIONS_HEIGHT 82.0
#define TAB_FILES_HEIGHT 250.0
@ -103,8 +103,10 @@
[fNameField setStringValue: @"No Torrents Selected"];
[fSizeField setStringValue: @""];
#if 0
[fDownloadRateField setStringValue: @""];
[fUploadRateField setStringValue: @""];
#endif
[fDownloadedValidField setStringValue: @""];
[fDownloadedTotalField setStringValue: @""];
@ -129,8 +131,10 @@
[fDataLocationField setToolTip: nil];
[fDateStartedField setStringValue: @""];
#if 0
[fStateField setStringValue: @""];
[fPercentField setStringValue: @""];
#endif
[fRatioField setStringValue: @""];
[fSeedersField setStringValue: @""];
@ -252,8 +256,10 @@
uploadedTotal += [torrent uploadedTotal];
}
#if 0
[fDownloadRateField setStringValue: [NSString stringForSpeed: downloadRate]];
[fUploadRateField setStringValue: [NSString stringForSpeed: uploadRate]];
#endif
[fDownloadedValidField setStringValue: [NSString stringForFileSize: downloadedValid]];
[fDownloadedTotalField setStringValue: [NSString stringForFileSize: downloadedTotal]];
@ -263,9 +269,11 @@
{
torrent = [fTorrents objectAtIndex: 0];
#if 0
[fStateField setStringValue: [torrent state]];
[fPercentField setStringValue: [NSString stringWithFormat:
@"%.2f%%", 100.0 * [torrent progress]]];
#endif
int seeders = [torrent seeders], leechers = [torrent leechers];
[fSeedersField setStringValue: seeders < 0 ?