From d6942932d64a02aa92b1e04e91f6126f33fdb05e Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Sun, 20 Jul 2014 05:09:43 +0000 Subject: OS X: Move source files to their own folder. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@90999 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- macosx/Source/CheatController.h | 53 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 macosx/Source/CheatController.h (limited to 'macosx/Source/CheatController.h') diff --git a/macosx/Source/CheatController.h b/macosx/Source/CheatController.h new file mode 100644 index 00000000..c56f2a68 --- /dev/null +++ b/macosx/Source/CheatController.h @@ -0,0 +1,53 @@ +// +// CheatController.h +// Pcsxr +// + +#import +#import "PcsxrHexadecimalFormatter.h" +#include "psxcommon.h" +#include "cheat.h" + +@interface PcsxrCheatTempObject : NSObject +@property (readwrite) uint32_t cheatAddress; +@property (readwrite) uint16_t cheatValue; + +- (instancetype)initWithAddress:(uint32_t)add value:(uint16_t)val; +- (instancetype)initWithCheatCode:(CheatCode *)theCheat; +@end + +@interface PcsxrCheatTemp : NSObject +@property (readwrite, strong) NSMutableArray *cheatValues; +@property (readwrite, strong) NSString *cheatName; +@property (readwrite, getter = isEnabled) BOOL enabled; + +- (instancetype)initWithCheat:(Cheat *)theCheat; +@end + +@interface CheatController : NSWindowController + +@property (weak) IBOutlet NSTableView *cheatView; +@property (weak) IBOutlet NSWindow *editCheatWindow; +@property (weak) IBOutlet NSTableView *editCheatView; +@property (weak) IBOutlet PcsxrHexadecimalFormatter *addressFormatter; +@property (weak) IBOutlet PcsxrHexadecimalFormatter *valueFormatter; + +@property (readwrite, strong) NSMutableArray *tempCheatCodes; +@property (readwrite, strong) 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 -- cgit v1.2.3