source: trunk/macosx/InfoWindowController.h @ 9267

Last change on this file since 9267 was 9267, checked in by livings124, 13 years ago

attempt number one of fixing 10.5 support

  • Property svn:keywords set to Date Rev Author Id
File size: 4.3 KB
Line 
1/******************************************************************************
2 * $Id: InfoWindowController.h 9267 2009-10-10 13:21: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 TrackerCell;
32@class FileOutlineController;
33@class PiecesView;
34
35#warning uncomment
36@interface InfoWindowController : NSWindowController //<QLPreviewPanelDataSource, QLPreviewPanelDelegate>
37{
38    NSArray * fTorrents;
39   
40    IBOutlet NSView * fInfoView, * fActivityView, * fTrackerView, * fPeersView, * fFilesView, * fOptionsView;
41    NSInteger fCurrentTabTag;
42    IBOutlet NSMatrix * fTabMatrix;
43
44    IBOutlet NSImageView * fImageView;
45    IBOutlet NSTextField * fNameField, * fBasicInfoField;
46   
47    IBOutlet NSTextField * fPiecesField, * fHashField, * fSecureField,
48                        * fDataLocationField,
49                        * fDateAddedField, * fDateCompletedField, * fDateActivityField,
50                        * fCreatorField, * fDateCreatedField,
51                        * fStateField, * fProgressField,
52                        * fHaveField, * fDownloadedTotalField, * fUploadedTotalField, * fFailedHashField,
53                        * fRatioField, * fSwarmSpeedField;
54    IBOutlet NSTextView * fCommentView;
55    IBOutlet NSButton * fRevealDataButton;
56   
57    NSMutableArray * fTrackers;
58    IBOutlet TrackerTableView * fTrackerTable;
59    TrackerCell * fTrackerCell;
60    IBOutlet NSSegmentedControl * fTrackerAddRemoveControl;
61   
62    NSArray * fPeers, * fWebSeeds;
63    IBOutlet NSTableView * fPeerTable, * fWebSeedTable;
64    IBOutlet NSTextField * fConnectedPeersField, * fDownloadingFromField, * fUploadingToField, * fKnownField;
65    IBOutlet NSTextView * fErrorMessageView;
66    IBOutlet PiecesView * fPiecesView;
67    IBOutlet NSSegmentedControl * fPiecesControl;
68    CGFloat fWebSeedTableHeight, fSpaceBetweenWebSeedAndPeer;
69    NSViewAnimation * fWebSeedTableAnimation;
70   
71    IBOutlet FileOutlineController * fFileController;
72    IBOutlet NSSearchField * fFileFilterField;
73   
74    IBOutlet NSPopUpButton * fPriorityPopUp, * fRatioPopUp;
75    IBOutlet NSButton * fUploadLimitCheck, * fDownloadLimitCheck, * fGlobalLimitCheck;
76    IBOutlet NSTextField * fUploadLimitField, * fDownloadLimitField, * fRatioLimitField,
77                        * fUploadLimitLabel, * fDownloadLimitLabel, * fPeersConnectLabel,
78                        * fPeersConnectField;
79   
80    NSString * fInitialString;
81   
82    #warning change to QLPreviewPanel
83    id fPreviewPanel;
84}
85
86- (void) setInfoForTorrents: (NSArray *) torrents;
87- (void) updateInfoStats;
88- (void) updateOptions;
89
90- (void) setTab: (id) sender;
91
92- (void) setNextTab;
93- (void) setPreviousTab;
94
95- (void) addRemoveTracker: (id) sender;
96
97- (void) setPiecesView: (id) sender;
98- (void) setPiecesViewForAvailable: (BOOL) available;
99
100- (void) revealDataFile: (id) sender;
101
102- (void) setFileFilterText: (id) sender;
103
104- (void) setUseSpeedLimit: (id) sender;
105- (void) setSpeedLimit: (id) sender;
106- (void) setUseGlobalSpeedLimit: (id) sender;
107
108- (void) setRatioSetting: (id) sender;
109- (void) setRatioLimit: (id) sender;
110
111- (void) setPriority: (id) sender;
112
113- (void) setPeersConnectLimit: (id) sender;
114
115@end
Note: See TracBrowser for help on using the repository browser.