transmission/macosx/InfoWindowController.h

53 lines
1.5 KiB
C
Raw Normal View History

// 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>
#import <Quartz/Quartz.h>
2007-09-16 01:02:06 +00:00
@protocol InfoViewController;
@class InfoGeneralViewController;
@class InfoActivityViewController;
@class InfoTrackersViewController;
@class InfoPeersViewController;
@class InfoFileViewController;
@class InfoOptionsViewController;
@interface InfoWindowController : NSWindowController
2007-09-16 01:02:06 +00:00
{
NSArray* fTorrents;
CGFloat fMinWindowWidth;
NSViewController<InfoViewController>* fViewController;
NSInteger fCurrentTabTag;
IBOutlet NSSegmentedControl* fTabs;
InfoGeneralViewController* fGeneralViewController;
InfoActivityViewController* fActivityViewController;
InfoTrackersViewController* fTrackersViewController;
InfoPeersViewController* fPeersViewController;
InfoFileViewController* fFileViewController;
InfoOptionsViewController* fOptionsViewController;
2007-09-16 01:02:06 +00:00
IBOutlet NSImageView* fImageView;
IBOutlet NSTextField* fNameField;
IBOutlet NSTextField* fBasicInfoField;
IBOutlet NSTextField* fNoneSelectedField;
2007-09-16 01:02:06 +00:00
}
- (void)setInfoForTorrents:(NSArray*)torrents;
- (void)updateInfoStats;
- (void)updateOptions;
2007-09-16 01:02:06 +00:00
- (void)setTab:(id)sender;
- (void)setNextTab;
- (void)setPreviousTab;
2007-09-16 01:02:06 +00:00
@property(nonatomic, readonly) NSArray* quickLookURLs;
@property(nonatomic, readonly) BOOL canQuickLook;
- (NSRect)quickLookSourceFrameForPreviewItem:(id<QLPreviewItem>)item;
2007-09-16 01:02:06 +00:00
@end