1 /*
2  Project: Graphos
3  Graphos.h
4 
5  Copyright (C) 2000-2018 GNUstep Application Project
6 
7  Author: Enrico Sersale (original 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 #import "GRTools.h"
29 #import "GRPropsEditor.h"
30 
31 
32 #if !defined (GNUSTEP) &&  (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_4)
33 #define sel_isEqual(selector1, selector2) (selector1 ==  selector2)
34 #else
35 #include <objc/runtime.h>
36 #endif
37 
38 /* change this if the new file format becomes incompatible */
39 #define FILE_FORMAT_VERSION 0.6
40 
41 /**
42  * tool types structure
43  */
44 typedef enum
45 {
46     blackarrowtool,
47     whitearrowtool,
48     beziertool,
49     texttool,
50     circletool,
51     rectangletool,
52     painttool,
53     penciltool,
54     rotatetool,
55     reducetool,
56     reflecttool,
57     scissorstool,
58     handtool,
59     magnifytool
60 } ToolType;
61 
62 /**
63  * Application Controller
64  */
65 @interface Graphos : NSObject
66 {
67     GRToolsWindow *tools;
68     ToolType tooltype;
69     GRPropsEditor *objectInspector;
70 }
71 
72 - (IBAction)showObjectInspector: (id)sender;
73 
74 - (GRPropsEditor *)objectInspector;
75 
76 - (void)setToolType:(ToolType)type;
77 
78 - (ToolType)currentToolType;
79 
80 - (void)updateCurrentWindow;
81 
82 
83 @end
84 
85 #if !defined (GNUSTEP) &&  (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_4)
86 
87 @interface NSString (TigerExtensions)
88 - (BOOL) boolValue;
89 @end
90 
91 
92 #endif
93