2023-02-11 20:49:42 +00:00
|
|
|
// This file Copyright © 2005-2023 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
|
|
|
|
2022-10-19 19:28:21 +00:00
|
|
|
extern const CGFloat 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-06-27 19:40:44 +00:00
|
|
|
- (void)restoreSelectionIndexes;
|
2008-01-15 16:19:16 +00:00
|
|
|
|
2022-04-29 22:51:40 +00:00
|
|
|
@property(nonatomic, readonly) 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
|
|
|
|
2022-11-15 16:50:16 +00:00
|
|
|
- (IBAction)setQuickLimitMode:(id)sender;
|
2021-08-15 09:41:48 +00:00
|
|
|
- (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;
|
2021-08-15 09:41:48 +00:00
|
|
|
- (void)setQuickRatio:(id)sender;
|
2007-09-16 01:02:06 +00:00
|
|
|
|
2022-11-15 16:50:16 +00:00
|
|
|
- (IBAction)setPriority:(id)sender;
|
2009-04-20 03:36:35 +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
|