mirror of
https://github.com/transmission/transmission
synced 2025-02-23 14:40:43 +00:00
28 lines
909 B
C
28 lines
909 B
C
|
//
|
||
|
// FileRenameSheetController.h
|
||
|
// Transmission
|
||
|
//
|
||
|
// Created by Mitchell Livingston on 1/20/13.
|
||
|
// Copyright (c) 2013 The Transmission Project. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import <Cocoa/Cocoa.h>
|
||
|
|
||
|
@class FileListNode;
|
||
|
@class Torrent;
|
||
|
|
||
|
@interface FileRenameSheetController : NSWindowController
|
||
|
|
||
|
+ (void) presentSheetForTorrent: (Torrent *) torrent modalForWindow: (NSWindow *) window completionHandler: (void (^)(BOOL didRename)) completionHandler;
|
||
|
+ (void) presentSheetForFileListNode: (FileListNode *) node modalForWindow: (NSWindow *) window completionHandler: (void (^)(BOOL didRename)) completionHandler;
|
||
|
|
||
|
@property (assign) IBOutlet NSTextField * labelField;
|
||
|
@property (assign) IBOutlet NSTextField * inputField;
|
||
|
@property (assign) IBOutlet NSButton * renameButton;
|
||
|
@property (assign) IBOutlet NSButton * cancelButton;
|
||
|
|
||
|
- (IBAction) rename: (id) sender;
|
||
|
- (IBAction) cancelRename: (id) sender;
|
||
|
|
||
|
@end
|