source: trunk/macosx/InfoWindowController.h @ 2448

Last change on this file since 2448 was 2448, checked in by livings124, 15 years ago

warnings--

  • Property svn:keywords set to Date Rev Author Id
File size: 3.9 KB
Line 
1/******************************************************************************
2 * $Id: InfoWindowController.h 2448 2007-07-20 21:04:43Z livings124 $
3 *
4 * Copyright (c) 2006-2007 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 "FileOutlineView.h"
28#import "PiecesView.h"
29#import <transmission.h>
30
31@interface InfoWindowController : NSWindowController
32{
33    NSArray * fTorrents, * fPeers, * fFiles;
34    NSImage * fAppIcon, * fDotGreen, * fDotRed;
35   
36    IBOutlet NSTabView * fTabView;
37
38    IBOutlet NSImageView * fImageView;
39    IBOutlet NSTextField * fNameField, * fSizeField, * fTrackerField,
40                        * fPiecesField, * fHashField, * fSecureField,
41                        * fTorrentLocationField, * fDataLocationField,
42                        * fDateAddedField, * fDateCompletedField, * fDateActivityField,
43                        * fCreatorField, * fDateCreatedField,
44                        * fStateField, * fProgressField,
45                        * fDownloadedValidField, * fDownloadedTotalField, * fUploadedTotalField,
46                        * fRatioField, * fSwarmSpeedField;
47    IBOutlet NSTextView * fCommentView;
48    IBOutlet NSButton * fRevealDataButton, * fRevealTorrentButton;
49
50    IBOutlet NSTableView * fPeerTable;
51    IBOutlet NSTextField * fSeedersField, * fLeechersField, * fConnectedPeersField,
52                        * fDownloadingFromField, * fUploadingToField, * fCompletedFromTrackerField;
53    IBOutlet NSTextView * fErrorMessageView;
54    IBOutlet PiecesView * fPiecesView;
55    IBOutlet NSSegmentedControl * fPiecesControl;
56   
57    IBOutlet FileOutlineView * fFileOutline;
58    IBOutlet NSTextField * fFileTableStatusField;
59    IBOutlet NSMenuItem * fFileCheckItem, * fFileUncheckItem,
60                        * fFilePriorityNormal, * fFilePriorityHigh, * fFilePriorityLow;
61   
62    IBOutlet NSPopUpButton * fRatioPopUp, * fUploadLimitPopUp, * fDownloadLimitPopUp;
63    IBOutlet NSTextField * fUploadLimitField, * fDownloadLimitField, * fRatioLimitField,
64                        * fUploadLimitLabel, * fDownloadLimitLabel;
65    IBOutlet NSButton * fPexCheck;
66}
67
68- (void) updateInfoForTorrents: (NSArray *) torrents;
69- (Torrent *) selectedTorrent;
70- (void) updateInfoStats;
71
72- (void) updateRatioForTorrent: (Torrent *) torrent;
73
74- (void) setNextTab;
75- (void) setPreviousTab;
76
77- (void) setFileOutlineHoverRowForEvent: (NSEvent *) event;
78
79- (void) setPiecesView: (id) sender;
80- (void) setPiecesViewForAvailable: (BOOL) available;
81
82- (void) revealTorrentFile: (id) sender;
83- (void) revealDataFile: (id) sender;
84- (void) revealFile: (id) sender;
85
86- (void) setCheck: (id) sender;
87- (void) setOnlySelectedCheck: (id) sender;
88- (void) setPriority: (id) sender;
89
90- (void) setSpeedMode: (id) sender;
91- (void) setSpeedLimit: (id) sender;
92
93- (void) setRatioSetting: (id) sender;
94- (void) setRatioLimit: (id) sender;
95
96- (void) setPex: (id) sender;
97
98@end
Note: See TracBrowser for help on using the repository browser.