transmission/macosx/TorrentTableView.h

54 lines
1.5 KiB
C
Raw Normal View History

// This file Copyright © 2005-2022 Transmission authors and contributors.
// It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder.
2007-09-16 01:02:06 +00:00
#import <AppKit/AppKit.h>
#include <libtransmission/transmission.h>
2007-09-16 01:02:06 +00:00
2009-10-11 02:22:38 +00:00
@class Torrent;
2008-02-19 02:10:20 +00:00
#define GROUP_SEPARATOR_HEIGHT 18.0
@interface TorrentTableView : NSOutlineView<NSOutlineViewDelegate, NSAnimationDelegate, NSPopoverDelegate>
2007-09-16 01:02:06 +00:00
- (BOOL)isGroupCollapsed:(NSInteger)value;
- (void)removeCollapsedGroup:(NSInteger)value;
- (void)removeAllCollapsedGroups;
- (void)saveCollapsedGroups;
- (void)removeTrackingAreas;
@property(nonatomic) NSInteger hoverRow;
@property(nonatomic) NSInteger controlButtonHoverRow;
@property(nonatomic) NSInteger revealButtonHoverRow;
@property(nonatomic) NSInteger actionButtonHoverRow;
- (void)selectValues:(NSArray*)values;
@property(nonatomic, readonly) NSArray* selectedValues;
2022-04-29 22:51:40 +00:00
@property(nonatomic, readonly) NSArray<Torrent*>* selectedTorrents;
- (NSRect)iconRectForRow:(NSInteger)row;
2022-05-16 17:08:20 +00:00
- (void)copy:(id)sender;
- (void)paste:(id)sender;
- (void)toggleControlForTorrent:(Torrent*)torrent;
- (void)displayTorrentActionPopoverForEvent:(NSEvent*)event;
2007-09-16 01:02:06 +00:00
- (void)setQuickLimitMode:(id)sender;
- (void)setQuickLimit:(id)sender;
- (void)setGlobalLimit:(id)sender;
2007-09-16 01:02:06 +00:00
- (void)setQuickRatioMode:(id)sender;
- (void)setQuickRatio:(id)sender;
2007-09-16 01:02:06 +00:00
- (void)setPriority:(id)sender;
- (void)togglePiecesBar;
@property(nonatomic, readonly) CGFloat piecesBarPercent;
- (void)selectAndScrollToRow:(NSInteger)row;
2007-09-16 01:02:06 +00:00
@end