diff options
Diffstat (limited to 'src/osd/modules/debugger/osx/debugosxdebugconsole.h')
-rw-r--r-- | src/osd/modules/debugger/osx/debugosxdebugconsole.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/src/osd/modules/debugger/osx/debugosxdebugconsole.h b/src/osd/modules/debugger/osx/debugosxdebugconsole.h new file mode 100644 index 00000000000..941a6ab2b9e --- /dev/null +++ b/src/osd/modules/debugger/osx/debugosxdebugconsole.h @@ -0,0 +1,57 @@ +// license:BSD-3-Clause +// copyright-holders:Vas Crabb +//============================================================ +// +// debugosxdebugconsole.h - MacOS X Cocoa debug window handling +// +// Copyright (c) 1996-2015, Nicola Salmoria and the MAME Team. +// Visit http://mamedev.org for licensing and usage restrictions. +// +//============================================================ + +#import "debugosx.h" +#import "debugosxdebugwindowhandler.h" + +#include "emu.h" + +#import <Cocoa/Cocoa.h> + + +@class MAMEDebugCommandHistory, MAMEDebugView, MAMEDisassemblyView, MAMERegistersView; + +@interface MAMEDebugConsole : MAMEDebugWindowHandler <NSTextFieldDelegate, NSSplitViewDelegate> +{ + MAMEDebugCommandHistory *history; + NSMutableArray *auxiliaryWindows; + + MAMERegistersView *regView; + MAMEDisassemblyView *dasmView; + MAMEDebugView *consoleView; + NSTextField *commandField; +} + +- (id)initWithMachine:(running_machine &)m; + +- (void)setCPU:(device_t *)device; + +- (IBAction)doCommand:(id)sender; + +- (IBAction)debugNewMemoryWindow:(id)sender; +- (IBAction)debugNewDisassemblyWindow:(id)sender; +- (IBAction)debugNewErrorLogWindow:(id)sender; +- (IBAction)debugNewPointsWindow:(id)sender; + +- (void)showDebugger:(NSNotification *)notification; +- (void)auxiliaryWindowWillClose:(NSNotification *)notification; + +- (BOOL)control:(NSControl *)control textShouldBeginEditing:(NSText *)fieldEditor; +- (BOOL)control:(NSControl *)control textView:(NSTextView *)textView doCommandBySelector:(SEL)command; + +- (void)windowWillClose:(NSNotification *)notification; + +- (CGFloat)splitView:(NSSplitView *)sender constrainMinCoordinate:(CGFloat)min ofSubviewAt:(NSInteger)offs; +- (CGFloat)splitView:(NSSplitView *)sender constrainMaxCoordinate:(CGFloat)max ofSubviewAt:(NSInteger)offs; +- (BOOL)splitView:(NSSplitView *)sender canCollapseSubview:(NSView *)subview; +- (void)splitView:(NSSplitView *)sender resizeSubviewsWithOldSize:(NSSize)oldSize; + +@end |