Use properties instead of ivars (#2453)

This commit is contained in:
Dmitry Serov
2022-02-22 16:04:20 +00:00
committed by GitHub
parent 95e30768c4
commit 54d1a02e92
103 changed files with 3653 additions and 3917 deletions

View File

@@ -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;