ProjectManager 0.2
SourceEditorDocument.h
1/*
2 SourceEditorDocument.h
3
4 Interface declaration of the SourceEditorDocument class for the
5 ProjectManager application.
6
7 Copyright (C) 2005, 2006 Saso Kiselkov
8
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22*/
23
24#import <AppKit/NSDocument.h>
25#import <Foundation/NSRange.h>
26#import <Foundation/NSString.h>
27
28@class NSNotification,
29 NSString,
30 NSIndexSet;
31@class NSText;
32
33@class NSFont, NSColor;
34
35@interface SourceEditorDocument : NSDocument
36{
37 id textView;
38 NSString * string;
39 // NSDocument does allow setting the window, but it doesn't allow
40 // retrieving it, which is why we have to set up our own outlet
41 // here.
42 id myWindow;
43
44 NSFont * defaultFont;
45 NSColor * textColor,
46 * highlightColor,
47 * backgroundColor,
48 * insertionPointColor;
49
50 // YES if we are currently highlighting parentheses
51 BOOL parenthesesHighlighted;
52 // the positions of the highlighted parentheses
53 unsigned int parenthesisA, parenthesisB;
54
55 // This is used to protect that -textViewDidChangeSelection: invocations
56 // don't do anything when the text view changing, because this causes
57 // further changes to the text view and infinite recursive invocations
58 // of this method.
59 BOOL editorTextViewIsPressingKey;
60}
61
62- (void) customPipeOutput: sender;
63- (void) pipeOutput: sender;
64
65- (void) goToLine: sender;
66- (void) goToLineNumber: (unsigned int) lineNumber;
67
68- (void) textViewDidChangeSelection: (NSNotification *) notification;
69
70- (void) editorTextViewWillPressKey: sender;
71- (void) editorTextViewDidPressKey: sender;
72
73- (void) findNext: sender;
74- (void) findPrevious: sender;
75//- (void) enterSelection: sender;
76- (void) jumpToSelection: sender;
77
78- (NSIndexSet *) highlightedCharacterIndexes;
79- (NSColor *) highlightColor;
80- (NSColor *) textColor;
81
82@end
Definition SourceEditorDocument.h:36