-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathMPPatchWindow.h
31 lines (27 loc) · 872 Bytes
/
MPPatchWindow.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
#import <Cocoa/Cocoa.h>
#include "mbFlipWindow.h"
#include "MPFileTextField.h"
typedef enum PatchTypes{
UNKNOWNPAT, UPSPAT, XDELTAPAT, IPSPAT, PPFPAT, BSDIFFPAT, BPSPAT, BPSDELTA, RUPPAT
} PatchFormat;
@interface MPPatchWindow : NSWindow{
IBOutlet MPFileTextField *txtPatchPath;
IBOutlet MPFileTextField *txtRomPath;
IBOutlet NSTextField *txtOutputPath;
IBOutlet id lblPatchFormat;
IBOutlet NSWindow *wndCreator;
IBOutlet id pnlPatching;
IBOutlet id barProgress;
IBOutlet id btnApply;
IBOutlet NSTextField *lblStatus;
PatchFormat currentFormat;
NSString* romFormat;
}
- (IBAction)btnApply:(id)sender;
- (IBAction)btnSelectPatch:(id)sender;
- (IBAction)btnSelectOriginal:(id)sender;
- (IBAction)btnSelectOutput:(id)sender;
+ (PatchFormat)detectPatchFormat:(NSString*)patchPath;
- (IBAction)btnCreatePatch:(id)sender;
+ (mbFlipWindow*)flipper;
@end