source: trunk/macosx/InfoWindowController.h @ 9186

Last change on this file since 9186 was 9186, checked in by livings124, 8 years ago

show tracker icons on 10.5

  • Property svn:keywords set to Date Rev Author Id
File size: 4.4 KB
Line 
1/******************************************************************************
2 * $Id: InfoWindowController.h 9186 2009-09-26 17:04:27Z livings124 $
3 *
4 * Copyright (c) 2006-2009 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 <transmission.h>
27#import <Quartz/Quartz.h>
28
29@class Torrent;
30@class TrackerTableView;
31@class FileOutlineController;
32@class PiecesView;
33
34@interface InfoWindowController : NSWindowController <QLPreviewPanelDataSource, QLPreviewPanelDelegate>
35{
36    NSArray * fTorrents;
37   
38    IBOutlet NSView * fInfoView, * fActivityView, * fTrackerView, * fPeersView, * fFilesView, * fOptionsView;
39    NSInteger fCurrentTabTag;
40    IBOutlet NSMatrix * fTabMatrix;
41
42    IBOutlet NSImageView * fImageView;
43    IBOutlet NSTextField * fNameField, * fBasicInfoField;
44   
45    IBOutlet NSTextField * fPiecesField, * fHashField, * fSecureField,
46                        * 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;
54   
55    IBOutlet TrackerTableView * fTrackerTable;
56    IBOutlet NSSegmentedControl * fTrackerAddRemoveControl;
57   
58    NSArray * fPeers, * fWebSeeds;
59    IBOutlet NSTableView * fPeerTable, * fWebSeedTable;
60    IBOutlet NSTextField * fConnectedPeersField, * fDownloadingFromField, * fUploadingToField, * fKnownField,
61                            * fSeedersField, * fLeechersField, * fCompletedFromTrackerField;
62    IBOutlet NSTextView * fErrorMessageView;
63    IBOutlet PiecesView * fPiecesView;
64    IBOutlet NSSegmentedControl * fPiecesControl;
65    CGFloat fWebSeedTableHeight, fSpaceBetweenWebSeedAndPeer;
66    NSViewAnimation * fWebSeedTableAnimation;
67   
68    IBOutlet FileOutlineController * fFileController;
69    IBOutlet NSSearchField * fFileFilterField;
70   
71    IBOutlet NSPopUpButton * fPriorityPopUp, * fRatioPopUp;
72    IBOutlet NSButton * fUploadLimitCheck, * fDownloadLimitCheck, * fGlobalLimitCheck;
73    IBOutlet NSTextField * fUploadLimitField, * fDownloadLimitField, * fRatioLimitField,
74                        * fUploadLimitLabel, * fDownloadLimitLabel, * fPeersConnectLabel,
75                        * fPeersConnectField;
76   
77    NSArray * fTrackers;
78    NSCache * fTrackerIconCache;
79    NSMutableDictionary * fTrackerIconCacheLeopard;
80    NSMutableSet * fTrackerIconLoading;
81   
82    NSString * fInitialString;
83   
84    QLPreviewPanel * fPreviewPanel;
85}
86
87- (void) setInfoForTorrents: (NSArray *) torrents;
88- (void) updateInfoStats;
89- (void) updateOptions;
90
91- (void) setTab: (id) sender;
92
93- (void) setNextTab;
94- (void) setPreviousTab;
95
96- (void) addRemoveTracker: (id) sender;
97
98- (void) setPiecesView: (id) sender;
99- (void) setPiecesViewForAvailable: (BOOL) available;
100
101- (void) revealDataFile: (id) sender;
102
103- (void) setFileFilterText: (id) sender;
104
105- (void) setUseSpeedLimit: (id) sender;
106- (void) setSpeedLimit: (id) sender;
107- (void) setUseGlobalSpeedLimit: (id) sender;
108
109- (void) setRatioSetting: (id) sender;
110- (void) setRatioLimit: (id) sender;
111
112- (void) setPriority: (id) sender;
113
114- (void) setPeersConnectLimit: (id) sender;
115
116@end
Note: See TracBrowser for help on using the repository browser.