Oolite 1.91.0.7646-241128-10e222e
Loading...
Searching...
No Matches
OOJavaScriptConsoleController.h
Go to the documentation of this file.
1/*
2
3OOJavaScriptConsoleController.h
4
5JavaScript debugging console for Oolite.
6
7
8Oolite Debug Bundle
9
10Copyright © 2007-2013 Jens Ayton
11
12Permission is hereby granted, free of charge, to any person obtaining a copy
13of this software and associated documentation files (the “Software”), to deal
14in the Software without restriction, including without limitation the rights
15to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16copies of the Software, and to permit persons to whom the Software is
17furnished to do so, subject to the following conditions:
18
19The above copyright notice and this permission notice shall be included in all
20copies or substantial portions of the Software.
21
22THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28SOFTWARE.
29
30*/
31
32#import <Cocoa/Cocoa.h>
33#import "OOWeakReference.h"
34
36
37
39{
40@private
41 IBOutlet NSWindow *consoleWindow;
42
43 // Container views for each pane.
44 IBOutlet NSView *consoleLogHolderView;
45 IBOutlet NSView *consoleInputHolderView;
46
47 // Content views that actually hold the interesting stuff.
48 IBOutlet NSTextView *consoleTextView;
49 IBOutlet NSTextField *consoleInputField;
50
53 IBOutlet NSScroller *verticalScroller;
54
56
57 NSFont *_baseFont,
59
60 // Caches
61 NSMutableDictionary *_fgColors,
63}
64
65- (IBAction) clearConsole:sender;
66- (IBAction) showConsole:sender;
67- (IBAction) toggleShowOnLog:sender;
68- (IBAction) toggleShowOnWarning:sender;
69- (IBAction) toggleShowOnError:sender;
70- (IBAction) consolePerformCommand:sender;
71
72- (void) appendMessage:(NSString *)string
73 colorKey:(NSString *)colorKey
74 emphasisRange:(NSRange)emphasisRange;
75
76- (void) clearConsole;
77- (void) doShowConsole; // Show the debug console window. -showConsole: dispatches to the active debugger via the debug monitor, -doShowConsole shows the actual Mac console.
78
79- (void) noteConfigurationChanged:(NSString *)key;
80
81- (void) setDebugger:(OOMacDebugger *)debugger;
82
83@end
IBOutlet OOTextFieldHistoryManager * inputHistoryManager