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