combine pieces and piece size in inspector

This commit is contained in:
Mitchell Livingston 2006-11-23 03:23:41 +00:00
parent 096f550d4a
commit ab98c157c0
4 changed files with 6 additions and 8 deletions

View File

@ -35,7 +35,6 @@
fLeechersField = NSTextField; fLeechersField = NSTextField;
fNameField = NSTextField; fNameField = NSTextField;
fPeerTable = NSTableView; fPeerTable = NSTableView;
fPieceSizeField = NSTextField;
fPiecesField = NSTextField; fPiecesField = NSTextField;
fPiecesView = PiecesView; fPiecesView = PiecesView;
fRatioField = NSTextField; fRatioField = NSTextField;

View File

@ -37,7 +37,7 @@
IBOutlet NSImageView * fImageView; IBOutlet NSImageView * fImageView;
IBOutlet NSTextField * fNameField, * fSizeField, * fTrackerField, IBOutlet NSTextField * fNameField, * fSizeField, * fTrackerField,
* fAnnounceField, * fPieceSizeField, * fPiecesField, * fAnnounceField, * fPiecesField,
* fHashField, * fHashField,
* fTorrentLocationField, * fDataLocationField, * fTorrentLocationField, * fDataLocationField,
* fDateStartedField, * fDateStartedField,

View File

@ -39,10 +39,10 @@
#define TAB_OPTIONS_IDENT @"Options" #define TAB_OPTIONS_IDENT @"Options"
//15 spacing at the bottom of each tab //15 spacing at the bottom of each tab
#define TAB_INFO_HEIGHT 300.0 #define TAB_INFO_HEIGHT 284.0
#define TAB_ACTIVITY_HEIGHT 109.0 #define TAB_ACTIVITY_HEIGHT 109.0
#define TAB_PEERS_HEIGHT 300.0 #define TAB_PEERS_HEIGHT 284.0
#define TAB_FILES_HEIGHT 300.0 #define TAB_FILES_HEIGHT 284.0
#define TAB_OPTIONS_HEIGHT 83.0 #define TAB_OPTIONS_HEIGHT 83.0
#define INVALID -99 #define INVALID -99
@ -153,7 +153,6 @@
[fTrackerField setToolTip: nil]; [fTrackerField setToolTip: nil];
[fAnnounceField setStringValue: @""]; [fAnnounceField setStringValue: @""];
[fAnnounceField setToolTip: nil]; [fAnnounceField setToolTip: nil];
[fPieceSizeField setStringValue: @""];
[fPiecesField setStringValue: @""]; [fPiecesField setStringValue: @""];
[fHashField setStringValue: @""]; [fHashField setStringValue: @""];
[fHashField setToolTip: nil]; [fHashField setToolTip: nil];
@ -213,8 +212,8 @@
[fTrackerField setToolTip: tracker]; [fTrackerField setToolTip: tracker];
[fAnnounceField setStringValue: announce]; [fAnnounceField setStringValue: announce];
[fAnnounceField setToolTip: announce]; [fAnnounceField setToolTip: announce];
[fPieceSizeField setStringValue: [NSString stringForFileSize: [torrent pieceSize]]]; [fPiecesField setStringValue: [NSString stringWithFormat: @"%d, %@", [torrent pieceCount],
[fPiecesField setIntValue: [torrent pieceCount]]; [NSString stringForFileSize: [torrent pieceSize]]]];
[fHashField setStringValue: hashString]; [fHashField setStringValue: hashString];
[fHashField setToolTip: hashString]; [fHashField setToolTip: hashString];
[fCommentView setString: commentString]; [fCommentView setString: commentString];