transmission/macosx/TorrentTableView.h

52 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>
2009-10-11 02:22:38 +00:00
@class Torrent;
extern const CGFloat kGroupSeparatorHeight;
@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
2022-11-15 16:50:16 +00:00
- (IBAction)setQuickLimitMode:(id)sender;
- (void)setQuickLimit:(id)sender;
2022-11-15 16:50:16 +00:00
- (IBAction)setGlobalLimit:(id)sender;
2007-09-16 01:02:06 +00:00
2022-11-15 16:50:16 +00:00
- (IBAction)setQuickRatioMode:(id)sender;
- (void)setQuickRatio:(id)sender;
2007-09-16 01:02:06 +00:00
2022-11-15 16:50:16 +00:00
- (IBAction)setPriority:(id)sender;
- (void)togglePiecesBar;
@property(nonatomic, readonly) CGFloat piecesBarPercent;
- (void)selectAndScrollToRow:(NSInteger)row;
2007-09-16 01:02:06 +00:00
@end