-
Notifications
You must be signed in to change notification settings - Fork 0
/
MySvnOperationController.h
47 lines (35 loc) · 1.43 KB
/
MySvnOperationController.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/* MySvnOperationController */
#import <Cocoa/Cocoa.h>
@class MyRepository, MySvnRepositoryBrowserView, RepoItem;
typedef enum SvnOperation { kSvnCopy = 0, kSvnMove, kSvnDelete, kSvnMkdir, kSvnDiff } SvnOperation;
// Manages the sheets of svn operations. Meant to be the owner of svnCopy.nib, svnMkdir.nib,
// svnDelete.nib (repository operations) or svnFileMerge.nib (working copy operations).
@interface MySvnOperationController : NSObject
{
IBOutlet NSObjectController* objectController;
IBOutlet NSArrayController* arrayController; // to manage list of items (svn mkdir)
IBOutlet NSWindow* svnSheet;
IBOutlet MySvnRepositoryBrowserView* targetBrowser;
IBOutlet NSTextField* targetName;
IBOutlet NSTextView* commitMessage;
NSInvocation* svnOptionsInvocation;
SvnOperation svnOperation;
}
- (IBAction) validate: (id) sender;
- (IBAction) addDirectory: (id) sender;
- (IBAction) addItems: (id) sender;
+ (void) runSheet: (SvnOperation) operation
repository: (MyRepository*) repository
url: (NSURL*) url
sourceItem: (RepoItem*) sourceItem;
+ (void) runSheet: (SvnOperation) operation
repository: (MyRepository*) repository
url: (NSURL*) url
revision: (NSString*) revision;
- (NSString*) getTargetPath;
- (NSURL*) getTargetUrl;
- (NSString*) getCommitMessage;
- (NSArray*) getTargets;
- (void) finished;
- (SvnOperation) operation;
@end