2007-09-16 01:02:06 +00:00
|
|
|
/******************************************************************************
|
|
|
|
* $Id$
|
|
|
|
*
|
2011-01-01 20:42:14 +00:00
|
|
|
* Copyright (c) 2006-2011 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>
|
|
|
|
|
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;
|
2007-09-16 01:02:06 +00:00
|
|
|
|
2010-03-14 01:42:49 +00:00
|
|
|
NSViewController <InfoViewController> * fViewController;
|
|
|
|
NSInteger fCurrentTabTag;
|
|
|
|
IBOutlet NSMatrix * fTabMatrix;
|
|
|
|
|
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;
|
|
|
|
- (NSRect) quickLookSourceFrameForPreviewItem: (id /*<QLPreviewItem>*/) item;
|
|
|
|
|
2007-09-16 01:02:06 +00:00
|
|
|
@end
|