summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/debugger/osx/debugconsole.h
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2015-02-15 09:07:58 +1100
committer Vas Crabb <vas@vastheman.com>2015-02-17 17:31:51 +1100
commit87e38fd1d30e53413bc1f94f0dfd340051a71253 (patch)
tree9274e6c3b33609c4e56fa4af427b48dd327f9c9b /src/osd/modules/debugger/osx/debugconsole.h
parent1be009a431dc0b7fd98f6a5ecc3cb76d20588328 (diff)
Remove redundant filename prefix
Diffstat (limited to 'src/osd/modules/debugger/osx/debugconsole.h')
-rw-r--r--src/osd/modules/debugger/osx/debugconsole.h58
1 files changed, 58 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..862c035cbb4
--- /dev/null
+++ b/src/osd/modules/debugger/osx/debugconsole.h
@@ -0,0 +1,58 @@
+// 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 "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;
+
+- (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