1 /* 2 Project: Graphos 3 GRTools.h 4 5 Copyright (C) 2000-2008 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 #import <Foundation/Foundation.h> 26 #import <AppKit/AppKit.h> 27 28 /** 29 * Toolbox 30 */ 31 32 @interface GRToolButton : NSButton 33 { 34 int tooltype; 35 } 36 37 - (id)initWithFrame:(NSRect)rect toolType:(int)type; 38 - (int)tooltype; 39 40 @end 41 42 @interface GRToolsView : NSView 43 { 44 NSMutableArray *buttons; 45 GRToolButton *barrowButt, *warrowButt, *bezierButt, *textButt; 46 GRToolButton *circleButt, *rectangleButt, *paintButt, *pencilButt; 47 GRToolButton *rotateButt, *reduceButt, *reflectButt, *scissorsButt; 48 GRToolButton *handButt, *magnifyButt; 49 } 50 51 - (id)initWithFrame:(NSRect)rect; 52 - (void)buttonPressed:(id)sender; 53 - (void)setButtonsPositions:(int)ptype; 54 55 @end 56 57 @interface GRToolsWindow : NSPanel 58 { 59 GRToolsView *toolsView; 60 } 61 62 - (id)init; 63 - (void)setButtonsPositions:(int)ptype; 64 65 @end 66