1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-01-31 19:34:05 +00:00

rearrange activity and peers tab in inspector

This commit is contained in:
Mitchell Livingston 2006-09-25 20:00:45 +00:00
parent 0257761670
commit ef7d99d3dc
5 changed files with 9 additions and 10 deletions

View file

@ -323,7 +323,7 @@
4DAB87C40ABE1F730081CF7E /* http.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = http.c; path = libtransmission/http.c; sourceTree = "<group>"; };
4DCCBB3C09C3D71100D3CABF /* TorrentCell.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = TorrentCell.m; path = macosx/TorrentCell.m; sourceTree = "<group>"; };
4DCCBB3D09C3D71100D3CABF /* TorrentCell.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = TorrentCell.h; path = macosx/TorrentCell.h; sourceTree = "<group>"; };
4DDBB71909E16BAE00284745 /* transmissioncli */ = {isa = PBXFileReference; includeInIndex = 0; lastKnownFileType = "compiled.mach-o.executable"; path = transmissioncli; sourceTree = BUILT_PRODUCTS_DIR; };
4DDBB71909E16BAE00284745 /* transmissioncli */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = transmissioncli; sourceTree = BUILT_PRODUCTS_DIR; };
4DDBB71B09E16BF100284745 /* transmissioncli.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = transmissioncli.c; path = cli/transmissioncli.c; sourceTree = "<group>"; };
4DDFDD20099A5D8E00189D81 /* DownloadBadge.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = DownloadBadge.png; path = macosx/Images/DownloadBadge.png; sourceTree = "<group>"; };
4DDFDD21099A5D8E00189D81 /* UploadBadge.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = UploadBadge.png; path = macosx/Images/UploadBadge.png; sourceTree = "<group>"; };

View file

@ -26,7 +26,6 @@
fLeechersField = NSTextField;
fNameField = NSTextField;
fPeerTable = NSTableView;
fPeerTableStatusField = NSTextField;
fPieceSizeField = NSTextField;
fPiecesField = NSTextField;
fRatioField = NSTextField;

View file

@ -41,11 +41,11 @@
* fTorrentLocationField, * fDataLocationField,
* fDateStartedField, * fStateField,
* fDownloadedValidField, * fDownloadedTotalField, * fUploadedTotalField,
* fRatioField, * fSeedersField, * fLeechersField,
* fConnectedPeersField, * fDownloadingFromField, * fUploadingToField, * fSwarmSpeedField;
* fRatioField, * fSwarmSpeedField;
IBOutlet NSTableView * fPeerTable;
IBOutlet NSTextField * fPeerTableStatusField;
IBOutlet NSTextField * fSeedersField, * fLeechersField, * fConnectedPeersField,
* fDownloadingFromField, * fUploadingToField;
IBOutlet NSTableView * fFileTable;
IBOutlet NSTextField * fFileTableStatusField;

View file

@ -40,8 +40,8 @@
//15 spacing at the bottom of each tab
#define TAB_INFO_HEIGHT 182.0
#define TAB_ACTIVITY_HEIGHT 230.0
#define TAB_PEERS_HEIGHT 255.0
#define TAB_ACTIVITY_HEIGHT 109.0
#define TAB_PEERS_HEIGHT 236.0
#define TAB_FILES_HEIGHT 255.0
#define TAB_OPTIONS_HEIGHT 83.0
@ -169,7 +169,6 @@
[fPeers removeAllObjects];
[fPeerTable reloadData];
[fPeerTableStatusField setStringValue: @"info not available"];
}
else
{
@ -351,8 +350,9 @@
[fPeers sortUsingDescriptors: [self peerSortDescriptors]];
[fPeerTable reloadData];
[fPeerTableStatusField setStringValue: [NSString stringWithFormat: @"%d of %d connected",
[torrent totalPeers], [fPeers count]]];
#warning use [fpeers count]
//[fPeerTableStatusField setStringValue: [NSString stringWithFormat: @"%d of %d connected",
// [torrent totalPeers], [fPeers count]]];
}
- (BOOL) validateMenuItem: (NSMenuItem *) menuItem