2023-11-01 21:11:11 +00:00
|
|
|
// This file Copyright © Transmission authors and contributors.
|
2022-01-20 18:27:56 +00:00
|
|
|
// 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
|
|
|
|
2022-06-29 00:15:52 +00:00
|
|
|
#import <AppKit/AppKit.h>
|
2018-09-30 10:37:30 +00:00
|
|
|
|
2009-10-11 02:22:38 +00:00
|
|
|
@class Torrent;
|
2008-01-15 03:33:44 +00:00
|
|
|
|
2023-10-01 23:45:52 +00:00
|
|
|
extern CGFloat const kGroupSeparatorHeight;
|
2008-02-06 23:45:44 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
@interface TorrentTableView : NSOutlineView<NSOutlineViewDelegate, NSAnimationDelegate, NSPopoverDelegate>
|
2007-09-16 01:02:06 +00:00
|
|
|
|
2023-06-27 19:40:44 +00:00
|
|
|
- (void)reloadVisibleRows;
|
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
- (BOOL)isGroupCollapsed:(NSInteger)value;
|
|
|
|
- (void)removeCollapsedGroup:(NSInteger)value;
|
|
|
|
- (void)removeAllCollapsedGroups;
|
|
|
|
- (void)saveCollapsedGroups;
|
2008-02-07 01:26:12 +00:00
|
|
|
|
2023-09-11 02:39:01 +00:00
|
|
|
@property(nonatomic) NSArray<Torrent*>* selectedTorrents;
|
2008-01-20 18:28:28 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
- (NSRect)iconRectForRow:(NSInteger)row;
|
2008-05-21 22:09:05 +00:00
|
|
|
|
2022-05-16 17:08:20 +00:00
|
|
|
- (void)copy:(id)sender;
|
2021-08-15 09:41:48 +00:00
|
|
|
- (void)paste:(id)sender;
|
2008-05-01 02:20:53 +00:00
|
|
|
|
2023-06-27 19:40:44 +00:00
|
|
|
- (void)hoverEventBeganForView:(id)view;
|
|
|
|
- (void)hoverEventEndedForView:(id)view;
|
|
|
|
|
|
|
|
- (void)toggleGroupRowRatio;
|
|
|
|
|
|
|
|
- (IBAction)toggleControlForTorrent:(id)sender;
|
2008-01-14 18:02:08 +00:00
|
|
|
|
2023-06-27 19:40:44 +00:00
|
|
|
- (IBAction)displayTorrentActionPopover:(id)sender;
|
2007-09-16 01:02:06 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
- (void)togglePiecesBar;
|
|
|
|
@property(nonatomic, readonly) CGFloat piecesBarPercent;
|
2008-01-16 15:56:40 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
- (void)selectAndScrollToRow:(NSInteger)row;
|
2016-03-03 17:57:08 +00:00
|
|
|
|
2007-09-16 01:02:06 +00:00
|
|
|
@end
|