source: trunk/macosx/InfoWindowController.h @ 6076

Last change on this file since 6076 was 6076, checked in by livings124, 14 years ago

update the peer inspector tab to show web seeders

  • Property svn:keywords set to Date Rev Author Id
File size: 4.3 KB
Line 
1/******************************************************************************
2 * $Id: InfoWindowController.h 6076 2008-06-07 23:38:05Z livings124 $
3 *
4 * Copyright (c) 2006-2008 Transmission authors and contributors
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"),
8 * to deal in the Software without restriction, including without limitation
9 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 * and/or sell copies of the Software, and to permit persons to whom the
11 * Software is furnished to do so, subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included in
14 * all copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 * DEALINGS IN THE SOFTWARE.
23 *****************************************************************************/
24
25#import <Cocoa/Cocoa.h>
26#import "Torrent.h"
27#import "FileOutlineController.h"
28#import "PiecesView.h"
29#import <transmission.h>
30
31@class TrackerTableView;
32
33@interface InfoWindowController : NSWindowController
34{
35    NSArray * fTorrents;
36    NSMutableArray * fTrackers;
37   
38    IBOutlet NSView * fInfoView, * fActivityView, * fTrackerView, * fPeersView, * fFilesView, * fOptionsView;
39    int fCurrentTabTag;
40    IBOutlet NSMatrix * fTabMatrix;
41
42    IBOutlet NSImageView * fImageView;
43    IBOutlet NSTextField * fNameField, * fBasicInfoField;
44   
45    IBOutlet NSTextField * fTrackerField, * fPiecesField, * fHashField, * fSecureField,
46                        * fTorrentLocationField, * fDataLocationField,
47                        * fDateAddedField, * fDateCompletedField, * fDateActivityField,
48                        * fCreatorField, * fDateCreatedField,
49                        * fStateField, * fProgressField,
50                        * fHaveField, * fDownloadedTotalField, * fUploadedTotalField, * fFailedHashField,
51                        * fRatioField, * fSwarmSpeedField;
52    IBOutlet NSTextView * fCommentView;
53    IBOutlet NSButton * fRevealDataButton, * fRevealTorrentButton;
54   
55    IBOutlet TrackerTableView * fTrackerTable;
56    IBOutlet NSSegmentedControl * fTrackerAddRemoveControl;
57    IBOutlet NSTextField * fAnnounceAddressField, * fAnnounceLastField, * fAnnounceResponseField, * fAnnounceNextField,
58                            * fScrapeAddressField, * fScrapeLastField, * fScrapeResponseField, * fScrapeNextField;
59   
60    NSArray * fPeers, * fWebSeeds;
61    IBOutlet NSTableView * fPeerTable, * fWebSeedTable;
62    IBOutlet NSTextField * fConnectedPeersField, * fDownloadingFromField, * fUploadingToField, * fKnownField,
63                            * fSeedersField, * fLeechersField, * fCompletedFromTrackerField;
64    IBOutlet NSTextView * fErrorMessageView;
65    IBOutlet PiecesView * fPiecesView;
66    IBOutlet NSSegmentedControl * fPiecesControl;
67   
68    IBOutlet FileOutlineController * fFileController;
69   
70    IBOutlet NSPopUpButton * fRatioPopUp, * fUploadLimitPopUp, * fDownloadLimitPopUp;
71    IBOutlet NSTextField * fUploadLimitField, * fDownloadLimitField, * fRatioLimitField, * fPeersConnectField,
72                        * fUploadLimitLabel, * fDownloadLimitLabel;
73   
74    NSString * fInitialString;
75}
76
77- (void) setInfoForTorrents: (NSArray *) torrents;
78- (void) updateInfoStats;
79- (void) updateOptions;
80
81- (void) setTab: (id) sender;
82
83- (void) setNextTab;
84- (void) setPreviousTab;
85
86- (void) addRemoveTracker: (id) sender;
87
88- (BOOL) shouldQuickLookFileView;
89- (NSArray *) quickLookURLs;
90- (BOOL) canQuickLook;
91- (NSRect) quickLookFrameWithURL: (NSURL*) url;
92
93- (void) setPiecesView: (id) sender;
94- (void) setPiecesViewForAvailable: (BOOL) available;
95
96- (void) revealTorrentFile: (id) sender;
97- (void) revealDataFile: (id) sender;
98
99- (void) setSpeedMode: (id) sender;
100- (void) setSpeedLimit: (id) sender;
101
102- (void) setRatioSetting: (id) sender;
103- (void) setRatioLimit: (id) sender;
104
105- (void) setPeersConnectLimit: (id) sender;
106
107@end
Note: See TracBrowser for help on using the repository browser.