2023-11-01 21:11:11 +00:00
|
|
|
// This file Copyright © Transmission authors and contributors.
|
2022-01-20 18:27:56 +00:00
|
|
|
// It may be used under the MIT (SPDX: MIT) license.
|
|
|
|
// License text can be found in the licenses/ folder.
|
|
|
|
// Created by Mitchell Livingston on 1/20/13.
|
2013-01-22 00:09:48 +00:00
|
|
|
|
2022-06-29 00:15:52 +00:00
|
|
|
#import <AppKit/AppKit.h>
|
2013-01-22 00:09:48 +00:00
|
|
|
|
|
|
|
@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
|
|
|
- (IBAction)rename:(id)sender;
|
|
|
|
- (IBAction)cancelRename:(id)sender;
|
2013-01-22 00:09:48 +00:00
|
|
|
|
|
|
|
@end
|