2022-01-20 18:27:56 +00:00
|
|
|
// This file Copyright © 2007-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>
|
2018-09-30 10:37:30 +00:00
|
|
|
|
|
|
|
#include <libtransmission/transmission.h>
|
|
|
|
#include <libtransmission/makemeta.h>
|
2007-09-16 01:02:06 +00:00
|
|
|
|
|
|
|
@interface CreatorWindowController : NSWindowController
|
|
|
|
{
|
2021-08-15 09:41:48 +00:00
|
|
|
IBOutlet NSImageView* fIconView;
|
|
|
|
IBOutlet NSTextField* fNameField;
|
|
|
|
IBOutlet NSTextField* fStatusField;
|
|
|
|
IBOutlet NSTextField* fPiecesField;
|
|
|
|
IBOutlet NSTextField* fLocationField;
|
|
|
|
IBOutlet NSTableView* fTrackerTable;
|
|
|
|
IBOutlet NSSegmentedControl* fTrackerAddRemoveControl;
|
|
|
|
IBOutlet NSTextView* fCommentView;
|
|
|
|
IBOutlet NSButton* fPrivateCheck;
|
|
|
|
IBOutlet NSButton* fOpenCheck;
|
2021-10-18 23:05:39 +00:00
|
|
|
IBOutlet NSTextField* fSource;
|
2017-01-24 17:53:16 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
IBOutlet NSView* fProgressView;
|
|
|
|
IBOutlet NSProgressIndicator* fProgressIndicator;
|
2017-01-24 17:53:16 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
tr_metainfo_builder* fInfo;
|
|
|
|
NSURL* fPath;
|
|
|
|
NSURL* fLocation;
|
|
|
|
NSMutableArray* fTrackers;
|
2017-01-24 17:53:16 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
NSTimer* fTimer;
|
|
|
|
BOOL fStarted;
|
|
|
|
BOOL fOpenWhenCreated;
|
2017-01-24 17:53:16 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
NSUserDefaults* fDefaults;
|
2007-09-16 01:02:06 +00:00
|
|
|
}
|
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
+ (CreatorWindowController*)createTorrentFile:(tr_session*)handle;
|
|
|
|
+ (CreatorWindowController*)createTorrentFile:(tr_session*)handle forFile:(NSURL*)file;
|
2007-09-16 01:02:06 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
- (instancetype)initWithHandle:(tr_session*)handle path:(NSURL*)path;
|
2007-09-16 01:02:06 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
- (IBAction)setLocation:(id)sender;
|
|
|
|
- (IBAction)create:(id)sender;
|
|
|
|
- (IBAction)cancelCreateWindow:(id)sender;
|
|
|
|
- (IBAction)cancelCreateProgress:(id)sender;
|
2007-09-16 01:02:06 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
- (IBAction)addRemoveTracker:(id)sender;
|
2008-06-04 20:55:38 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
- (void)copy:(id)sender;
|
|
|
|
- (void)paste:(id)sender;
|
2010-04-23 02:05:34 +00:00
|
|
|
|
2007-09-16 01:02:06 +00:00
|
|
|
@end
|