1 /* 2 Project: Graphos 3 GRTextEditor.h 4 5 Copyright (C) 2000-2013 GNUstep Application Project 6 7 Author: Enrico Sersale (original GDraw implementation) 8 Author: Ing. Riccardo Mottola 9 10 This application is free software; you can redistribute it and/or 11 modify it under the terms of the GNU General Public 12 License as published by the Free Software Foundation; either 13 version 2 of the License, or (at your option) any later version. 14 15 This application is distributed in the hope that it will be useful, 16 but WITHOUT ANY WARRANTY; without even the implied warranty of 17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 Library General Public License for more details. 19 20 You should have received a copy of the GNU General Public 21 License along with this library; if not, write to the Free 22 Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 23 */ 24 25 26 #import <Foundation/Foundation.h> 27 #import <AppKit/AppKit.h> 28 #import "GRText.h" 29 #import "GRTextEditorView.h" 30 #import "GRObjectEditor.h" 31 32 @interface GRTextEditor : GRObjectEditor 33 { 34 NSWindow *myWindow; 35 GRTextEditorView *myView; 36 BOOL isSelect; 37 } 38 39 - (GRTextEditorView *)editorView; 40 41 - (void)setPoint:(NSPoint)p 42 withString:(NSString *)string 43 attributes:(NSDictionary *)attributes; 44 45 /** runs the editor window in a modal loop and gets the return value like an Alert Panel */ 46 - (int)runModal; 47 48 @end 49