mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
Use properties instead of ivars (#2453)
This commit is contained in:
@@ -4,43 +4,15 @@
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
#import "Torrent.h"
|
||||
|
||||
@class Controller;
|
||||
@class Torrent;
|
||||
|
||||
@interface AddMagnetWindowController : NSWindowController
|
||||
{
|
||||
IBOutlet NSImageView* fLocationImageView;
|
||||
IBOutlet NSTextField* fNameField;
|
||||
IBOutlet NSTextField* fLocationField;
|
||||
IBOutlet NSButton* fStartCheck;
|
||||
IBOutlet NSPopUpButton* fGroupPopUp;
|
||||
IBOutlet NSPopUpButton* fPriorityPopUp;
|
||||
|
||||
//remove these when switching to auto layout
|
||||
IBOutlet NSTextField* fMagnetLinkLabel;
|
||||
IBOutlet NSTextField* fDownloadToLabel;
|
||||
IBOutlet NSTextField* fGroupLabel;
|
||||
IBOutlet NSTextField* fPriorityLabel;
|
||||
IBOutlet NSButton* fChangeDestinationButton;
|
||||
IBOutlet NSBox* fDownloadToBox;
|
||||
IBOutlet NSButton* fAddButton;
|
||||
IBOutlet NSButton* fCancelButton;
|
||||
|
||||
Controller* fController;
|
||||
|
||||
Torrent* fTorrent;
|
||||
NSString* fDestination;
|
||||
|
||||
NSInteger fGroupValue;
|
||||
TorrentDeterminationType fGroupDeterminationType;
|
||||
}
|
||||
|
||||
- (instancetype)initWithTorrent:(Torrent*)torrent destination:(NSString*)path controller:(Controller*)controller;
|
||||
|
||||
@property(nonatomic, readonly) Torrent* torrent;
|
||||
|
||||
- (instancetype)initWithTorrent:(Torrent*)torrent destination:(NSString*)path controller:(Controller*)controller;
|
||||
|
||||
- (void)setDestination:(id)sender;
|
||||
|
||||
- (void)add:(id)sender;
|
||||
|
||||
Reference in New Issue
Block a user