2013-01-22 00:09:48 +00:00
|
|
|
//
|
|
|
|
// 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
|
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
+ (void)presentSheetForTorrent:(Torrent*)torrent
|
|
|
|
modalForWindow:(NSWindow*)window
|
|
|
|
completionHandler:(void (^)(BOOL didRename))completionHandler;
|
|
|
|
+ (void)presentSheetForFileListNode:(FileListNode*)node
|
|
|
|
modalForWindow:(NSWindow*)window
|
|
|
|
completionHandler:(void (^)(BOOL didRename))completionHandler;
|
2013-01-22 00:09:48 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
@property(weak) IBOutlet NSTextField* labelField;
|
|
|
|
@property(weak) IBOutlet NSTextField* inputField;
|
|
|
|
@property(weak) IBOutlet NSButton* renameButton;
|
|
|
|
@property(weak) IBOutlet NSButton* cancelButton;
|
2013-01-22 00:09:48 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
- (IBAction)rename:(id)sender;
|
|
|
|
- (IBAction)cancelRename:(id)sender;
|
2013-01-22 00:09:48 +00:00
|
|
|
|
|
|
|
@end
|