2007-09-16 01:02:06 +00:00
|
|
|
/******************************************************************************
|
2012-01-14 17:12:04 +00:00
|
|
|
* Copyright (c) 2006-2012 Transmission authors and contributors
|
2007-09-16 01:02:06 +00:00
|
|
|
*
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
|
|
* copy of this software and associated documentation files (the "Software"),
|
|
|
|
* to deal in the Software without restriction, including without limitation
|
|
|
|
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
|
|
* and/or sell copies of the Software, and to permit persons to whom the
|
|
|
|
* Software is furnished to do so, subject to the following conditions:
|
|
|
|
*
|
|
|
|
* The above copyright notice and this permission notice shall be included in
|
|
|
|
* all copies or substantial portions of the Software.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
|
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
|
|
* DEALINGS IN THE SOFTWARE.
|
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
#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
|
|
|
{
|
2008-06-07 23:38:05 +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
|
|
|
|
2010-03-14 01:42:49 +00:00
|
|
|
NSViewController <InfoViewController> * fViewController;
|
|
|
|
NSInteger fCurrentTabTag;
|
|
|
|
IBOutlet NSMatrix * fTabMatrix;
|
2017-01-24 17:53:16 +00:00
|
|
|
|
2010-03-06 23:12:30 +00:00
|
|
|
InfoGeneralViewController * fGeneralViewController;
|
|
|
|
InfoActivityViewController * fActivityViewController;
|
|
|
|
InfoTrackersViewController * fTrackersViewController;
|
|
|
|
InfoPeersViewController * fPeersViewController;
|
|
|
|
InfoFileViewController * fFileViewController;
|
|
|
|
InfoOptionsViewController * fOptionsViewController;
|
2007-09-16 01:02:06 +00:00
|
|
|
|
|
|
|
IBOutlet NSImageView * fImageView;
|
2011-02-12 03:53:23 +00:00
|
|
|
IBOutlet NSTextField * fNameField, * fBasicInfoField, * fNoneSelectedField;
|
2007-09-16 01:02:06 +00:00
|
|
|
}
|
|
|
|
|
2007-10-29 18:07:09 +00:00
|
|
|
- (void) setInfoForTorrents: (NSArray *) torrents;
|
2007-09-16 01:02:06 +00:00
|
|
|
- (void) updateInfoStats;
|
2007-10-29 18:07:09 +00:00
|
|
|
- (void) updateOptions;
|
2007-09-16 01:02:06 +00:00
|
|
|
|
2007-10-06 22:23:44 +00:00
|
|
|
- (void) setTab: (id) sender;
|
|
|
|
|
2007-09-16 01:02:06 +00:00
|
|
|
- (void) setNextTab;
|
|
|
|
- (void) setPreviousTab;
|
|
|
|
|
2009-10-11 23:16:46 +00:00
|
|
|
- (NSArray *) quickLookURLs;
|
|
|
|
- (BOOL) canQuickLook;
|
2011-10-06 00:30:40 +00:00
|
|
|
- (NSRect) quickLookSourceFrameForPreviewItem: (id <QLPreviewItem>) item;
|
2009-10-11 23:16:46 +00:00
|
|
|
|
2007-09-16 01:02:06 +00:00
|
|
|
@end
|