summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/debugger/osx/debugcommandhistory.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/modules/debugger/osx/debugcommandhistory.h')
-rw-r--r--src/osd/modules/debugger/osx/debugcommandhistory.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/osd/modules/debugger/osx/debugcommandhistory.h b/src/osd/modules/debugger/osx/debugcommandhistory.h
new file mode 100644
index 00000000000..1e77b1f6cfb
--- /dev/null
+++ b/src/osd/modules/debugger/osx/debugcommandhistory.h
@@ -0,0 +1,38 @@
+// license:BSD-3-Clause
+// copyright-holders:Vas Crabb
+//============================================================
+//
+// debugcommandhistory.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 <Cocoa/Cocoa.h>
+
+
+@interface MAMEDebugCommandHistory : NSObject
+{
+ NSInteger length, position;
+ NSString *current;
+ NSMutableArray *history;
+}
+
++ (NSInteger)defaultLength;
+
+- (id)init;
+
+- (NSInteger)length;
+- (void)setLength:(NSInteger)l;
+
+- (void)add:(NSString *)entry;
+- (NSString *)previous:(NSString *)cur;
+- (NSString *)next:(NSString *)cur;
+- (void)edit;
+- (void)reset;
+- (void)clear;
+
+@end