2022-01-20 18:27:56 +00:00
|
|
|
// This file Copyright © 2006-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 <Cocoa/Cocoa.h>
|
2011-10-06 00:30:40 +00:00
|
|
|
#import <Quartz/Quartz.h>
|
2007-09-16 01:02:06 +00:00
|
|
|
|
2010-03-14 01:42:49 +00:00
|
|
|
@protocol InfoViewController;
|
2010-03-06 23:12:30 +00:00
|
|
|
@class InfoGeneralViewController;
|
|
|
|
@class InfoActivityViewController;
|
|
|
|
@class InfoTrackersViewController;
|
|
|
|
@class InfoPeersViewController;
|
|
|
|
@class InfoFileViewController;
|
|
|
|
@class InfoOptionsViewController;
|
2008-05-23 19:31:57 +00:00
|
|
|
|
2009-10-11 23:16:46 +00:00
|
|
|
@interface InfoWindowController : NSWindowController
|
2007-09-16 01:02:06 +00:00
|
|
|
{
|
2021-08-15 09:41:48 +00:00
|
|
|
NSArray* fTorrents;
|
2017-01-24 17:53:16 +00:00
|
|
|
|
2016-02-27 20:29:57 +00:00
|
|
|
CGFloat fMinWindowWidth;
|
2017-01-24 17:53:16 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
NSViewController<InfoViewController>* fViewController;
|
2010-03-14 01:42:49 +00:00
|
|
|
NSInteger fCurrentTabTag;
|
2021-12-05 23:42:54 +00:00
|
|
|
IBOutlet NSSegmentedControl* fTabs;
|
2017-01-24 17:53:16 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
InfoGeneralViewController* fGeneralViewController;
|
|
|
|
InfoActivityViewController* fActivityViewController;
|
|
|
|
InfoTrackersViewController* fTrackersViewController;
|
|
|
|
InfoPeersViewController* fPeersViewController;
|
|
|
|
InfoFileViewController* fFileViewController;
|
|
|
|
InfoOptionsViewController* fOptionsViewController;
|
2007-09-16 01:02:06 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
IBOutlet NSImageView* fImageView;
|
|
|
|
IBOutlet NSTextField* fNameField;
|
|
|
|
IBOutlet NSTextField* fBasicInfoField;
|
|
|
|
IBOutlet NSTextField* fNoneSelectedField;
|
2007-09-16 01:02:06 +00:00
|
|
|
}
|
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
- (void)setInfoForTorrents:(NSArray*)torrents;
|
|
|
|
- (void)updateInfoStats;
|
|
|
|
- (void)updateOptions;
|
2007-09-16 01:02:06 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
- (void)setTab:(id)sender;
|
2007-10-06 22:23:44 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
- (void)setNextTab;
|
|
|
|
- (void)setPreviousTab;
|
2007-09-16 01:02:06 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
@property(nonatomic, readonly) NSArray* quickLookURLs;
|
|
|
|
@property(nonatomic, readonly) BOOL canQuickLook;
|
|
|
|
- (NSRect)quickLookSourceFrameForPreviewItem:(id<QLPreviewItem>)item;
|
2009-10-11 23:16:46 +00:00
|
|
|
|
2007-09-16 01:02:06 +00:00
|
|
|
@end
|