2016-03-30 20:07:55 +00:00
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
#include "GBView.h"
|
2016-10-26 21:14:02 +00:00
|
|
|
#include "GBImageView.h"
|
2020-04-09 12:29:49 +00:00
|
|
|
#include "GBSplitView.h"
|
2021-04-10 13:10:10 +00:00
|
|
|
#include "GBVisualizerView.h"
|
2021-05-30 17:55:04 +00:00
|
|
|
#include "GBOSDView.h"
|
2016-03-30 20:07:55 +00:00
|
|
|
|
2020-04-11 16:15:40 +00:00
|
|
|
@class GBCheatWindowController;
|
|
|
|
|
2020-04-09 12:29:49 +00:00
|
|
|
@interface Document : NSDocument <NSWindowDelegate, GBImageViewDelegate, NSTableViewDataSource, NSTableViewDelegate, NSSplitViewDelegate>
|
2021-01-13 18:59:28 +00:00
|
|
|
@property (nonatomic, readonly) GB_gameboy_t *gb;
|
|
|
|
@property (nonatomic, strong) IBOutlet GBView *view;
|
|
|
|
@property (nonatomic, strong) IBOutlet NSTextView *consoleOutput;
|
|
|
|
@property (nonatomic, strong) IBOutlet NSPanel *consoleWindow;
|
|
|
|
@property (nonatomic, strong) IBOutlet NSTextField *consoleInput;
|
|
|
|
@property (nonatomic, strong) IBOutlet NSWindow *mainWindow;
|
|
|
|
@property (nonatomic, strong) IBOutlet NSView *memoryView;
|
|
|
|
@property (nonatomic, strong) IBOutlet NSPanel *memoryWindow;
|
|
|
|
@property (nonatomic, readonly) GB_gameboy_t *gameboy;
|
|
|
|
@property (nonatomic, strong) IBOutlet NSTextField *memoryBankInput;
|
|
|
|
@property (nonatomic, strong) IBOutlet NSToolbarItem *memoryBankItem;
|
|
|
|
@property (nonatomic, strong) IBOutlet GBImageView *tilesetImageView;
|
|
|
|
@property (nonatomic, strong) IBOutlet NSPopUpButton *tilesetPaletteButton;
|
|
|
|
@property (nonatomic, strong) IBOutlet GBImageView *tilemapImageView;
|
|
|
|
@property (nonatomic, strong) IBOutlet NSPopUpButton *tilemapPaletteButton;
|
|
|
|
@property (nonatomic, strong) IBOutlet NSPopUpButton *tilemapMapButton;
|
|
|
|
@property (nonatomic, strong) IBOutlet NSPopUpButton *TilemapSetButton;
|
|
|
|
@property (nonatomic, strong) IBOutlet NSButton *gridButton;
|
|
|
|
@property (nonatomic, strong) IBOutlet NSTabView *vramTabView;
|
|
|
|
@property (nonatomic, strong) IBOutlet NSPanel *vramWindow;
|
|
|
|
@property (nonatomic, strong) IBOutlet NSTextField *vramStatusLabel;
|
|
|
|
@property (nonatomic, strong) IBOutlet NSTableView *paletteTableView;
|
|
|
|
@property (nonatomic, strong) IBOutlet NSTableView *spritesTableView;
|
|
|
|
@property (nonatomic, strong) IBOutlet NSPanel *printerFeedWindow;
|
|
|
|
@property (nonatomic, strong) IBOutlet NSImageView *feedImageView;
|
|
|
|
@property (nonatomic, strong) IBOutlet NSTextView *debuggerSideViewInput;
|
|
|
|
@property (nonatomic, strong) IBOutlet NSTextView *debuggerSideView;
|
|
|
|
@property (nonatomic, strong) IBOutlet GBSplitView *debuggerSplitView;
|
|
|
|
@property (nonatomic, strong) IBOutlet NSBox *debuggerVerticalLine;
|
|
|
|
@property (nonatomic, strong) IBOutlet NSPanel *cheatsWindow;
|
|
|
|
@property (nonatomic, strong) IBOutlet GBCheatWindowController *cheatWindowController;
|
|
|
|
@property (nonatomic, readonly) Document *partner;
|
|
|
|
@property (nonatomic, readonly) bool isSlave;
|
2021-04-02 22:29:43 +00:00
|
|
|
@property (strong) IBOutlet NSView *gbsPlayerView;
|
|
|
|
@property (strong) IBOutlet NSTextField *gbsTitle;
|
|
|
|
@property (strong) IBOutlet NSTextField *gbsAuthor;
|
|
|
|
@property (strong) IBOutlet NSTextField *gbsCopyright;
|
|
|
|
@property (strong) IBOutlet NSPopUpButton *gbsTracks;
|
|
|
|
@property (strong) IBOutlet NSButton *gbsPlayPauseButton;
|
|
|
|
@property (strong) IBOutlet NSButton *gbsRewindButton;
|
|
|
|
@property (strong) IBOutlet NSSegmentedControl *gbsNextPrevButton;
|
2021-04-10 13:10:10 +00:00
|
|
|
@property (strong) IBOutlet GBVisualizerView *gbsVisualizer;
|
2021-05-30 17:55:04 +00:00
|
|
|
@property (strong) IBOutlet GBOSDView *osdView;
|
2016-03-30 20:07:55 +00:00
|
|
|
|
2016-08-12 19:49:17 +00:00
|
|
|
-(uint8_t) readMemory:(uint16_t) addr;
|
|
|
|
-(void) writeMemory:(uint16_t) addr value:(uint8_t)value;
|
|
|
|
-(void) performAtomicBlock: (void (^)())block;
|
2020-11-13 21:07:35 +00:00
|
|
|
-(void) connectLinkCable:(NSMenuItem *)sender;
|
2021-05-06 21:33:04 +00:00
|
|
|
-(int)loadStateFile:(const char *)path noErrorOnNotFound:(bool)noErrorOnFileNotFound;
|
2016-03-30 20:07:55 +00:00
|
|
|
@end
|
|
|
|
|