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:
parent
0257761670
commit
ef7d99d3dc
5 changed files with 9 additions and 10 deletions
|
@ -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>"; };
|
||||
|
|
1
macosx/English.lproj/InfoWindow.nib/classes.nib
generated
1
macosx/English.lproj/InfoWindow.nib/classes.nib
generated
|
@ -26,7 +26,6 @@
|
|||
fLeechersField = NSTextField;
|
||||
fNameField = NSTextField;
|
||||
fPeerTable = NSTableView;
|
||||
fPeerTableStatusField = NSTextField;
|
||||
fPieceSizeField = NSTextField;
|
||||
fPiecesField = NSTextField;
|
||||
fRatioField = NSTextField;
|
||||
|
|
BIN
macosx/English.lproj/InfoWindow.nib/keyedobjects.nib
generated
BIN
macosx/English.lproj/InfoWindow.nib/keyedobjects.nib
generated
Binary file not shown.
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue