ProjectManager  0.2
EditorTextView.h
1 /*
2  EditorTextView.h
3 
4  Interface declaration of the EditorTextView 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/NSTextView.h>
25 
26 #import "EditorGuide.h"
27 
28 @class SourceEditorDocument, NSColor;
29 @class HKSyntaxHighlighter;
30 
31 @interface EditorTextView : NSTextView
32 {
33  SourceEditorDocument * editorDocument;
34  HKSyntaxHighlighter * highlighter;
35 
36  BOOL drawCrosshairs;
37  BOOL drawsColumnIndicator;
38  // set to YES when the drawing routines are active and we don't want
39  // further edits to reinvoke them
40  BOOL drawingRecursionProtectionActive;
41  NSColor * crosshairColor;
42 
43  NSMutableArray * guides;
44 }
45 
46 - (void) createSyntaxHighlighterForFileType: (NSString *) fileType;
47 
48 - (void) insertText: text;
49 
50 - (void) setDrawsColumnIndicationGuideline: (BOOL) flag;
51 - (BOOL) drawsColumnIndicationGuideline;
52 
53 - (NSRect) selectionRect;
54 
55 - (void) createAndBeginDraggingNewGuide: (BOOL) isHorizontal
56  withStyle: (EditorGuideStyle) style;
57 - (void) beginDraggingGuide: (EditorGuide *) aGuide;
58 
59 - (void) setNeedsDisplayInHighlightedCharacters: (BOOL) flag;
60 
61 @end
A guide is a line (either horizontal or vertical) which draws itself inside a view at a specified off...
Definition: EditorGuide.h:37
Definition: EditorTextView.h:32
Definition: SourceEditorDocument.h:36