transmission/macosx/TorrentTableView.h

70 lines
2.5 KiB
C
Raw Normal View History

2006-07-16 19:39:23 +00:00
/******************************************************************************
* $Id$
*
2007-04-03 02:22:25 +00:00
* Copyright (c) 2005-2007 Transmission authors and contributors
2006-07-16 19:39:23 +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>
2007-08-08 13:36:27 +00:00
#import <Controller.h>
2006-07-16 19:39:23 +00:00
//button layout (from end of bar) is: button, padding, button, padding
2007-08-08 01:03:34 +00:00
#define BUTTON_WIDTH 14.0
#define BUTTONS_TOTAL_WIDTH 36.0
2006-07-16 19:39:23 +00:00
2007-08-08 01:03:34 +00:00
#define ACTION_BUTTON_HEIGHT 12.0
#define ACTION_BUTTON_WIDTH 28.0
2006-07-16 19:39:23 +00:00
@interface TorrentTableView : NSTableView
{
IBOutlet Controller * fController;
2007-08-08 13:36:27 +00:00
NSArray * fTorrents;
2007-08-08 13:36:27 +00:00
NSPoint fClickPoint;
BOOL fClickIn;
2006-07-16 19:39:23 +00:00
2007-08-08 13:36:27 +00:00
NSUserDefaults * fDefaults;
2006-07-16 19:39:23 +00:00
2007-08-08 13:36:27 +00:00
IBOutlet NSMenu * fContextRow, * fContextNoRow;
NSImage * fResumeOnIcon, * fResumeOffIcon, * fPauseOnIcon, * fPauseOffIcon,
* fResumeNoWaitOnIcon, * fResumeNoWaitOffIcon, * fRevealOnIcon, * fRevealOffIcon,
* fActionOnIcon, * fActionOffIcon;
2007-08-08 13:36:27 +00:00
NSMutableArray * fKeyStrokes;
2006-07-26 02:54:36 +00:00
IBOutlet NSMenu * fActionMenu, * fUploadMenu, * fDownloadMenu, * fRatioMenu;
2007-08-08 13:36:27 +00:00
Torrent * fMenuTorrent;
2006-07-16 19:39:23 +00:00
}
2007-08-08 01:03:34 +00:00
2006-07-16 19:39:23 +00:00
- (void) setTorrents: (NSArray *) torrents;
2007-08-08 01:03:34 +00:00
- (void) displayTorrentMenuForEvent: (NSEvent *) event;
- (void) setQuickLimitMode: (id) sender;
- (void) setQuickLimit: (id) sender;
- (void) setQuickRatioMode: (id) sender;
- (void) setQuickRatio: (id) sender;
2007-08-08 01:03:34 +00:00
- (void) checkFile: (id) sender;
2006-07-16 19:39:23 +00:00
@end