source: trunk/macosx/TorrentTableView.h @ 9283

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

move some #imports out of header files

  • Property svn:keywords set to Date Rev Author Id
File size: 3.1 KB
Line 
1/******************************************************************************
2 * $Id: TorrentTableView.h 9283 2009-10-11 02:22:38Z livings124 $
3 *
4 * Copyright (c) 2005-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 Controller;
30@class Torrent;
31@class TorrentCell;
32
33#define GROUP_SEPARATOR_HEIGHT 18.0
34
35#warning uncomment
36@interface TorrentTableView : NSOutlineView //<QLPreviewPanelDataSource, QLPreviewPanelDelegate>
37{
38    IBOutlet Controller * fController;
39   
40    TorrentCell * fTorrentCell;
41   
42    NSUserDefaults * fDefaults;
43   
44    NSMutableIndexSet * fCollapsedGroups;
45   
46    IBOutlet NSMenu * fContextRow, * fContextNoRow;
47   
48    NSInteger fMouseControlRow, fMouseRevealRow, fMouseActionRow, fActionPushedRow;
49    NSArray * fSelectedValues;
50   
51    IBOutlet NSMenu * fActionMenu, * fUploadMenu, * fDownloadMenu, * fRatioMenu, * fPriorityMenu;
52    IBOutlet NSMenuItem * fGlobalLimitItem;
53    Torrent * fMenuTorrent;
54   
55    CGFloat fPiecesBarPercent;
56    NSAnimation * fPiecesBarAnimation;
57   
58    #warning change to QLPreviewPanel
59    id fPreviewPanel;
60}
61
62- (BOOL) isGroupCollapsed: (NSInteger) value;
63- (void) removeCollapsedGroup: (NSInteger) value;
64- (void) removeAllCollapsedGroups;
65- (void) saveCollapsedGroups;
66
67- (void) removeButtonTrackingAreas;
68- (void) setControlButtonHover: (NSInteger) row;
69- (void) setRevealButtonHover: (NSInteger) row;
70- (void) setActionButtonHover: (NSInteger) row;
71
72- (void) selectValues: (NSArray *) values;
73- (NSArray *) selectedValues;
74- (NSArray *) selectedTorrents;
75
76- (NSRect) iconRectForRow: (NSInteger) row;
77
78- (void) paste: (id) sender;
79
80- (void) toggleControlForTorrent: (Torrent *) torrent;
81
82- (void) displayTorrentMenuForEvent: (NSEvent *) event;
83
84- (void) setQuickLimitMode: (id) sender;
85- (void) setQuickLimit: (id) sender;
86- (void) setGlobalLimit: (id) sender;
87
88- (void) setQuickRatioMode: (id) sender;
89- (void) setQuickRatio: (id) sender;
90
91- (void) setPriority: (id) sender;
92
93- (void) checkFile: (id) sender;
94
95- (void) togglePiecesBar;
96- (CGFloat) piecesBarPercent;
97
98@end
Note: See TracBrowser for help on using the repository browser.