summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/debugger/osx/debugconsole.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/modules/debugger/osx/debugconsole.h')
-rw-r--r--src/osd/modules/debugger/osx/debugconsole.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/src/osd/modules/debugger/osx/debugconsole.h b/src/osd/modules/debugger/osx/debugconsole.h
new file mode 100644
index 00000000000..bf210458ed7
--- /dev/null
+++ b/src/osd/modules/debugger/osx/debugconsole.h
@@ -0,0 +1,62 @@
+// license:BSD-3-Clause
+// copyright-holders:Vas Crabb
+//============================================================
+//
+// debugconsole.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 "debugwindowhandler.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;
+- (IBAction)debugNewDevicesWindow:(id)sender;
+
+- (void)debugNewMemoryWindowForSpace:(address_space *)space device:(device_t *)device expression:(NSString *)expression;
+- (void)debugNewDisassemblyWindowForSpace:(address_space *)space device:(device_t *)device expression:(NSString *)expression;
+
+- (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