2007-09-16 01:02:06 +00:00
|
|
|
/******************************************************************************
|
|
|
|
* $Id$
|
|
|
|
*
|
2008-01-02 16:55:05 +00:00
|
|
|
* Copyright (c) 2005-2008 Transmission authors and contributors
|
2007-09-16 01:02:06 +00:00
|
|
|
*
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
|
|
* copy of this software and associated documentation files (the "Software"),
|
|
|
|
* to deal in the Software without restriction, including without limitation
|
|
|
|
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
|
|
* and/or sell copies of the Software, and to permit persons to whom the
|
|
|
|
* Software is furnished to do so, subject to the following conditions:
|
|
|
|
*
|
|
|
|
* The above copyright notice and this permission notice shall be included in
|
|
|
|
* all copies or substantial portions of the Software.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
|
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
|
|
* DEALINGS IN THE SOFTWARE.
|
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
#import <transmission.h>
|
|
|
|
#import <Controller.h>
|
|
|
|
|
2008-01-15 03:33:44 +00:00
|
|
|
@class TorrentCell;
|
|
|
|
|
2008-02-19 02:10:20 +00:00
|
|
|
#define GROUP_SEPARATOR_HEIGHT 18.0
|
2008-02-06 23:45:44 +00:00
|
|
|
|
|
|
|
@interface TorrentTableView : NSOutlineView
|
2007-09-16 01:02:06 +00:00
|
|
|
{
|
|
|
|
IBOutlet Controller * fController;
|
|
|
|
|
2008-01-24 01:05:00 +00:00
|
|
|
TorrentCell * fTorrentCell;
|
|
|
|
|
2007-09-16 01:02:06 +00:00
|
|
|
NSUserDefaults * fDefaults;
|
|
|
|
|
2008-02-07 16:23:22 +00:00
|
|
|
NSMutableIndexSet * fCollapsedGroups;
|
|
|
|
|
2007-09-16 01:02:06 +00:00
|
|
|
IBOutlet NSMenu * fContextRow, * fContextNoRow;
|
|
|
|
|
2008-01-20 18:51:53 +00:00
|
|
|
int fMouseControlRow, fMouseRevealRow, fMouseActionRow, fActionPushedRow;
|
2008-01-23 02:51:58 +00:00
|
|
|
NSArray * fSelectedValues;
|
2008-01-15 03:33:44 +00:00
|
|
|
|
2007-09-16 01:02:06 +00:00
|
|
|
IBOutlet NSMenu * fActionMenu, * fUploadMenu, * fDownloadMenu, * fRatioMenu;
|
|
|
|
Torrent * fMenuTorrent;
|
2008-01-16 15:56:40 +00:00
|
|
|
|
|
|
|
float fPiecesBarPercent;
|
|
|
|
NSTimer * fPiecesBarTimer;
|
2007-09-16 01:02:06 +00:00
|
|
|
}
|
|
|
|
|
2008-02-07 16:20:24 +00:00
|
|
|
- (BOOL) isGroupCollapsed: (int) value;
|
2008-02-07 02:11:26 +00:00
|
|
|
- (void) removeCollapsedGroup: (int) value;
|
2008-02-07 02:15:24 +00:00
|
|
|
- (void) removeAllCollapsedGroups;
|
2008-02-07 21:26:04 +00:00
|
|
|
- (void) saveCollapsedGroups;
|
2008-02-07 01:26:12 +00:00
|
|
|
|
2008-01-15 16:19:16 +00:00
|
|
|
- (void) removeButtonTrackingAreas;
|
2008-01-15 19:48:19 +00:00
|
|
|
- (void) setControlButtonHover: (int) row;
|
|
|
|
- (void) setRevealButtonHover: (int) row;
|
2008-01-15 23:48:03 +00:00
|
|
|
- (void) setActionButtonHover: (int) row;
|
2008-01-15 16:19:16 +00:00
|
|
|
|
2008-01-23 02:51:58 +00:00
|
|
|
- (void) selectValues: (NSArray *) values;
|
|
|
|
- (NSArray *) selectedValues;
|
2008-01-22 23:48:14 +00:00
|
|
|
- (NSArray *) selectedTorrents;
|
2008-01-20 18:28:28 +00:00
|
|
|
|
2008-01-14 18:02:08 +00:00
|
|
|
- (void) toggleControlForTorrent: (Torrent *) torrent;
|
|
|
|
|
2007-09-16 01:02:06 +00:00
|
|
|
- (void) displayTorrentMenuForEvent: (NSEvent *) event;
|
|
|
|
|
|
|
|
- (void) setQuickLimitMode: (id) sender;
|
|
|
|
- (void) setQuickLimit: (id) sender;
|
|
|
|
|
|
|
|
- (void) setQuickRatioMode: (id) sender;
|
|
|
|
- (void) setQuickRatio: (id) sender;
|
|
|
|
|
|
|
|
- (void) checkFile: (id) sender;
|
|
|
|
|
2008-01-16 19:30:12 +00:00
|
|
|
- (void) togglePiecesBar;
|
|
|
|
- (float) piecesBarPercent;
|
2008-01-16 15:56:40 +00:00
|
|
|
|
2007-09-16 01:02:06 +00:00
|
|
|
@end
|