aboutsummaryrefslogtreecommitdiffstats
path: root/LispREPLController.h
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2008-04-02 19:20:20 -0400
committerBrian Cully <bjc@kublai.com>2008-04-02 19:20:20 -0400
commitab10720260e2c184b319026da89f4dfd338500bb (patch)
treea692a27435da0296972e43b21b2f35762e720bfd /LispREPLController.h
downloadmoxie-ab10720260e2c184b319026da89f4dfd338500bb.tar.gz
moxie-ab10720260e2c184b319026da89f4dfd338500bb.zip
Initial commit
Diffstat (limited to 'LispREPLController.h')
-rw-r--r--LispREPLController.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/LispREPLController.h b/LispREPLController.h
new file mode 100644
index 0000000..a9abdda
--- /dev/null
+++ b/LispREPLController.h
@@ -0,0 +1,60 @@
+//
+// LispREPLController.h
+// Moxie
+//
+// Created by Brian Cully on Mon Aug 09 2004.
+// Copyright (c) 2004 Brian Cully. All rights reserved.
+//
+
+#import "LispREPL.h"
+
+@interface LispREPLController : NSWindowController
+{
+ IBOutlet NSTextView *theTextView;
+
+ int theMark, theValueMark;
+ BOOL theInputViewIsDirty;
+
+ NSTimer *theREPLUpdateTimer;
+ NSConditionLock *theREPLUpdateLock;
+ NSMutableArray *theUpdates;
+ BOOL waitingForResult;
+
+ NSMutableSet *theKeystrokeMacros;
+
+ NSMutableArray *theInputHistory;
+ unsigned theHistoryLevel;
+}
+
++ (LispREPLController *)sharedController;
+
+- (void)sendEvent: (NSString *)anEvent;
+- (void)sendEvent: (NSString *)anEvent withArg: (id)anArg;
+- (void)sendEventWithArgs: (NSString *)anEvent, ...;
+- (void)sendEvent: (NSString *)anEvent arguments: (va_list)args;
+
+- (BOOL)dispatchKeystrokeMacro: (NSEvent *)anEvent
+ fromID: (NSNumber *)aWorld;
+@end
+
+@interface LispREPLController (TextAttributes)
+- (NSDictionary *)REPLPromptAttributes;
+- (NSDictionary *)REPLInputAttributes;
+- (NSDictionary *)REPLOutputAttributes;
+- (NSDictionary *)REPLReturnValueAttributes;
+@end
+
+@interface LispREPLController (Accessors)
+- (NSTextView *)textView;
+
+- (int)mark;
+- (void)setMark: (int)aPoint;
+- (int)valueMark;
+- (void)setValueMark: (int)aPoint;
+
+- (NSMutableSet *)keystrokeMacros;
+- (void)setKeystrokeMacros: (NSMutableSet *)macros;
+
+- (NSMutableArray *)inputHistory;
+- (void)setInputHistory: (NSMutableArray *)aHistory;
+@end \ No newline at end of file