ProjectManager
0.2
|
00001 /* 00002 SourceEditorDocument.h 00003 00004 Interface declaration of the SourceEditorDocument class for the 00005 ProjectManager application. 00006 00007 Copyright (C) 2005, 2006 Saso Kiselkov 00008 00009 This program is free software; you can redistribute it and/or modify 00010 it under the terms of the GNU General Public License as published by 00011 the Free Software Foundation; either version 2 of the License, or 00012 (at your option) any later version. 00013 00014 This program is distributed in the hope that it will be useful, 00015 but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 GNU General Public License for more details. 00018 00019 You should have received a copy of the GNU General Public License 00020 along with this program; if not, write to the Free Software 00021 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00022 */ 00023 00024 #import <AppKit/NSDocument.h> 00025 #import <Foundation/NSRange.h> 00026 #import <Foundation/NSString.h> 00027 00028 @class NSNotification, 00029 NSString, 00030 NSIndexSet; 00031 @class NSText; 00032 00033 @class NSFont, NSColor; 00034 00035 @interface SourceEditorDocument : NSDocument 00036 { 00037 id textView; 00038 NSString * string; 00039 // NSDocument does allow setting the window, but it doesn't allow 00040 // retrieving it, which is why we have to set up our own outlet 00041 // here. 00042 id myWindow; 00043 00044 NSFont * defaultFont; 00045 NSColor * textColor, 00046 * highlightColor, 00047 * backgroundColor, 00048 * insertionPointColor; 00049 00050 // YES if we are currently highlighting parentheses 00051 BOOL parenthesesHighlighted; 00052 // the positions of the highlighted parentheses 00053 unsigned int parenthesisA, parenthesisB; 00054 00055 // This is used to protect that -textViewDidChangeSelection: invocations 00056 // don't do anything when the text view changing, because this causes 00057 // further changes to the text view and infinite recursive invocations 00058 // of this method. 00059 BOOL editorTextViewIsPressingKey; 00060 } 00061 00062 - (void) customPipeOutput: sender; 00063 - (void) pipeOutput: sender; 00064 00065 - (void) goToLine: sender; 00066 - (void) goToLineNumber: (unsigned int) lineNumber; 00067 00068 - (void) textViewDidChangeSelection: (NSNotification *) notification; 00069 00070 - (void) editorTextViewWillPressKey: sender; 00071 - (void) editorTextViewDidPressKey: sender; 00072 00073 - (void) findNext: sender; 00074 - (void) findPrevious: sender; 00075 //- (void) enterSelection: sender; 00076 - (void) jumpToSelection: sender; 00077 00078 - (NSIndexSet *) highlightedCharacterIndexes; 00079 - (NSColor *) highlightColor; 00080 - (NSColor *) textColor; 00081 00082 @end