2016-03-30 23:07:55 +03:00
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
#include "GBView.h"
|
2016-10-27 00:14:02 +03:00
|
|
|
#include "GBImageView.h"
|
2020-04-09 15:29:49 +03:00
|
|
|
#include "GBSplitView.h"
|
2016-03-30 23:07:55 +03:00
|
|
|
|
2020-04-11 19:15:40 +03:00
|
|
|
@class GBCheatWindowController;
|
|
|
|
|
2020-04-09 15:29:49 +03:00
|
|
|
@interface Document : NSDocument <NSWindowDelegate, GBImageViewDelegate, NSTableViewDataSource, NSTableViewDelegate, NSSplitViewDelegate>
|
2016-03-30 23:07:55 +03:00
|
|
|
@property (strong) IBOutlet GBView *view;
|
|
|
|
@property (strong) IBOutlet NSTextView *consoleOutput;
|
|
|
|
@property (strong) IBOutlet NSPanel *consoleWindow;
|
|
|
|
@property (strong) IBOutlet NSTextField *consoleInput;
|
2016-06-18 17:43:39 +03:00
|
|
|
@property (strong) IBOutlet NSWindow *mainWindow;
|
2016-08-12 22:49:17 +03:00
|
|
|
@property (strong) IBOutlet NSView *memoryView;
|
|
|
|
@property (strong) IBOutlet NSPanel *memoryWindow;
|
2016-08-19 14:54:54 +03:00
|
|
|
@property (readonly) GB_gameboy_t *gameboy;
|
|
|
|
@property (strong) IBOutlet NSTextField *memoryBankInput;
|
|
|
|
@property (strong) IBOutlet NSToolbarItem *memoryBankItem;
|
2016-10-27 00:14:02 +03:00
|
|
|
@property (strong) IBOutlet GBImageView *tilesetImageView;
|
|
|
|
@property (strong) IBOutlet NSPopUpButton *tilesetPaletteButton;
|
|
|
|
@property (strong) IBOutlet GBImageView *tilemapImageView;
|
|
|
|
@property (strong) IBOutlet NSPopUpButton *tilemapPaletteButton;
|
|
|
|
@property (strong) IBOutlet NSPopUpButton *tilemapMapButton;
|
|
|
|
@property (strong) IBOutlet NSPopUpButton *TilemapSetButton;
|
|
|
|
@property (strong) IBOutlet NSButton *gridButton;
|
|
|
|
@property (strong) IBOutlet NSTabView *vramTabView;
|
|
|
|
@property (strong) IBOutlet NSPanel *vramWindow;
|
|
|
|
@property (strong) IBOutlet NSTextField *vramStatusLabel;
|
|
|
|
@property (strong) IBOutlet NSTableView *paletteTableView;
|
|
|
|
@property (strong) IBOutlet NSTableView *spritesTableView;
|
2017-01-13 22:26:44 +02:00
|
|
|
@property (strong) IBOutlet NSPanel *printerFeedWindow;
|
|
|
|
@property (strong) IBOutlet NSImageView *feedImageView;
|
2017-05-26 20:16:19 +03:00
|
|
|
@property (strong) IBOutlet NSTextView *debuggerSideViewInput;
|
|
|
|
@property (strong) IBOutlet NSTextView *debuggerSideView;
|
2020-04-09 15:29:49 +03:00
|
|
|
@property (strong) IBOutlet GBSplitView *debuggerSplitView;
|
|
|
|
@property (strong) IBOutlet NSBox *debuggerVerticalLine;
|
2020-04-11 18:03:10 +03:00
|
|
|
@property (strong) IBOutlet NSPanel *cheatsWindow;
|
2020-04-11 19:15:40 +03:00
|
|
|
@property (strong) IBOutlet GBCheatWindowController *cheatWindowController;
|
2016-03-30 23:07:55 +03:00
|
|
|
|
2016-08-12 22:49:17 +03:00
|
|
|
-(uint8_t) readMemory:(uint16_t) addr;
|
|
|
|
-(void) writeMemory:(uint16_t) addr value:(uint8_t)value;
|
|
|
|
-(void) performAtomicBlock: (void (^)())block;
|
2016-03-30 23:07:55 +03:00
|
|
|
|
|
|
|
@end
|
|
|
|
|