source: trunk/macosx/InfoWindowController.h @ 9298

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

phase one of moving quicklook into the controller - it's not as pretty code-wise but the behavior is a lot more consistent

  • Property svn:keywords set to Date Rev Author Id
File size: 4.3 KB
Line 
1/******************************************************************************
2 * $Id: InfoWindowController.h 9298 2009-10-11 23:16:46Z 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
28@class Torrent;
29@class TrackerTableView;
30@class TrackerCell;
31@class FileOutlineController;
32@class PiecesView;
33
34@interface InfoWindowController : NSWindowController
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    NSMutableArray * fTrackers;
56    IBOutlet TrackerTableView * fTrackerTable;
57    TrackerCell * fTrackerCell;
58    IBOutlet NSSegmentedControl * fTrackerAddRemoveControl;
59   
60    NSArray * fPeers, * fWebSeeds;
61    IBOutlet NSTableView * fPeerTable, * fWebSeedTable;
62    IBOutlet NSTextField * fConnectedPeersField, * fDownloadingFromField, * fUploadingToField, * fKnownField;
63    IBOutlet NSTextView * fErrorMessageView;
64    IBOutlet PiecesView * fPiecesView;
65    IBOutlet NSSegmentedControl * fPiecesControl;
66    CGFloat fWebSeedTableHeight, fSpaceBetweenWebSeedAndPeer;
67    NSViewAnimation * fWebSeedTableAnimation;
68   
69    IBOutlet FileOutlineController * fFileController;
70    IBOutlet NSSearchField * fFileFilterField;
71   
72    IBOutlet NSPopUpButton * fPriorityPopUp, * fRatioPopUp;
73    IBOutlet NSButton * fUploadLimitCheck, * fDownloadLimitCheck, * fGlobalLimitCheck;
74    IBOutlet NSTextField * fUploadLimitField, * fDownloadLimitField, * fRatioLimitField,
75                        * fUploadLimitLabel, * fDownloadLimitLabel, * fPeersConnectLabel,
76                        * fPeersConnectField;
77   
78    NSString * fInitialString;
79   
80    #warning change to QLPreviewPanel
81    id fPreviewPanel;
82}
83
84- (void) setInfoForTorrents: (NSArray *) torrents;
85- (void) updateInfoStats;
86- (void) updateOptions;
87
88- (void) setTab: (id) sender;
89
90- (void) setNextTab;
91- (void) setPreviousTab;
92
93- (void) addRemoveTracker: (id) sender;
94
95- (NSArray *) quickLookURLs;
96- (BOOL) canQuickLook;
97- (NSRect) quickLookSourceFrameForPreviewItem: (id /*<QLPreviewItem>*/) item;
98
99- (void) setPiecesView: (id) sender;
100- (void) setPiecesViewForAvailable: (BOOL) available;
101
102- (void) revealDataFile: (id) sender;
103
104- (void) setFileFilterText: (id) sender;
105
106- (void) setUseSpeedLimit: (id) sender;
107- (void) setSpeedLimit: (id) sender;
108- (void) setUseGlobalSpeedLimit: (id) sender;
109
110- (void) setRatioSetting: (id) sender;
111- (void) setRatioLimit: (id) sender;
112
113- (void) setPriority: (id) sender;
114
115- (void) setPeersConnectLimit: (id) sender;
116
117@end
Note: See TracBrowser for help on using the repository browser.