summaryrefslogtreecommitdiff
path: root/macosx/CheatController.h
blob: e581886aa8d382b50737c34f5c8de609fbf5b740 (plain) (blame)
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
//
//  CheatController.h
//  Pcsxr
//

#import <Cocoa/Cocoa.h>
#import "ARCBridge.h"

@class PcsxrHexadecimalFormatter;

@interface CheatController : NSWindowController <NSWindowDelegate, NSTableViewDelegate>
{
    IBOutlet NSTableView *cheatView;
	
	IBOutlet NSWindow *editCheatWindow;
	IBOutlet NSTableView *editCheatView;
	IBOutlet PcsxrHexadecimalFormatter *addressFormatter;
	IBOutlet PcsxrHexadecimalFormatter *valueFormatter;
	NSMutableArray *tempCheatCodes;
	NSMutableArray *cheats;
}
@property (readwrite, arcretain) NSMutableArray *tempCheatCodes;
@property (readwrite, arcretain) NSMutableArray *cheats;

- (void)refresh;

- (IBAction)saveCheats:(id)sender;
- (IBAction)loadCheats:(id)sender;
- (IBAction)clear:(id)sender;
- (IBAction)editCheat:(id)sender;
- (IBAction)addCheat:(id)sender;
- (IBAction)applyCheats:(id)sender;
- (IBAction)removeCheats:(id)sender;
- (IBAction)changeCheat:(id)sender;

- (IBAction)closeCheatEdit:(id)sender;
- (IBAction)removeCheatValue:(id)sender;
- (IBAction)addCheatValue:(id)sender;

@end