Hint added.
[AROS.git] / workbench / utilities / MultiView / global.h
blob4fe08567a54f115a4e041eed86a28b57046abdaf
1 /*
2 Copyright © 1995-2009, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #ifndef GLOBAL_H
7 #define GLOBAL_H
9 /*********************************************************************************************/
11 #ifndef DOS_DOS_H
12 #include <dos/dos.h>
13 #endif
15 #ifndef EXEC_MEMORY_H
16 #include <exec/memory.h>
17 #endif
19 #ifndef INTUITION_INTUITION_H
20 #include <intuition/intuition.h>
21 #endif
23 #ifndef INTUITION_SCREENS_H
24 #include <intuition/screens.h>
25 #endif
27 #ifndef INTUITION_IMAGECLASS_H
28 #include <intuition/imageclass.h>
29 #endif
31 #ifndef INTUITION_GADGETCLASS_H
32 #include <intuition/gadgetclass.h>
33 #endif
35 #ifndef INTUITION_CLASSUSR_H
36 #include <intuition/classusr.h>
37 #endif
39 #ifndef INTUITION_CLASSES_H
40 #include <intuition/classes.h>
41 #endif
43 #ifndef INTUITION_ICCLASS_H
44 #include <intuition/icclass.h>
45 #endif
47 #ifndef GRAPHICS_GFX_H
48 #include <graphics/gfx.h>
49 #endif
51 #ifndef GRAPHICS_GFXBASE_H
52 #include <graphics/gfxbase.h>
53 #endif
55 #ifndef GRAPHICS_CLIP_H
56 #include <graphics/clip.h>
57 #endif
59 #ifndef GRAPHICS_LAYERS_H
60 #include <graphics/layers.h>
61 #endif
63 #ifndef DEVICES_KEYMAP_H
64 #include <devices/keymap.h>
65 #endif
67 #ifndef DEVICES_INPUTEVENT_H
68 #include <devices/inputevent.h>
69 #endif
71 #ifdef __AROS__
72 #ifndef DEVICES_RAWKEYCODES_H
73 #include <devices/rawkeycodes.h>
74 #endif
75 #endif
77 #ifndef LIBRARIES_GADTOOLS_H
78 #include <libraries/gadtools.h>
79 #endif
81 #ifndef LIBRARIES_ASL_H
82 #include <libraries/asl.h>
83 #endif
85 #ifndef UTILITY_UTILITY_H
86 #include <utility/utility.h>
87 #endif
89 #ifndef UTILITY_TAGITEM_H
90 #include <utility/tagitem.h>
91 #endif
93 #ifndef LIBRARIES_LOCALE_H
94 #include <libraries/locale.h>
95 #endif
97 #ifndef DATATYPES_DATATYPES_H
98 #include <datatypes/datatypes.h>
99 #endif
101 #ifndef DATATYPES_DATATYPESCLASS_H
102 #include <datatypes/datatypesclass.h>
103 #endif
105 #ifndef DATATYPES_PICTURECLASS_H
106 #include <datatypes/pictureclass.h>
107 #endif
109 #ifndef DATATYPES_ANIMATIONCLASS_H
110 #include <datatypes/animationclass.h>
111 #endif
113 #ifndef DATATYPES_TEXTCLASS_H
114 #include <datatypes/textclass.h>
115 #endif
117 #ifndef WORKBENCH_STARTUP_H
118 #include <workbench/startup.h>
119 #endif
121 #ifndef WORKBENCH_WORKBENCH_H
122 #include <workbench/workbench.h>
123 #endif
125 /*********************************************************************************************/
127 #ifndef PROTO_EXEC_H
128 #include <proto/exec.h>
129 #endif
131 #ifndef PROTO_DOS_H
132 #include <proto/dos.h>
133 #endif
135 #ifndef PROTO_INTUITION_H
136 #include <proto/intuition.h>
137 #endif
139 #ifndef PROTO_GRAPHICS_H
140 #include <proto/graphics.h>
141 #endif
143 #ifndef PROTO_UTILITY_H
144 #include <proto/utility.h>
145 #endif
147 #ifndef PROTO_KEYMAP_H
148 #include <proto/keymap.h>
149 #endif
151 #ifndef PROTO_LOCALE_H
152 #include <proto/locale.h>
153 #endif
155 #ifndef PROTO_LAYERS_H
156 #include <proto/layers.h>
157 #endif
159 #ifndef PROTO_DATATYPES_H
160 #include <proto/datatypes.h>
161 #endif
163 #ifdef __SASC
164 typedef const unsigned char *CONST_STRPTR;
165 #else
166 #ifndef PROTO_ALIB_H
167 #include <proto/alib.h>
168 #endif
169 #endif
171 #ifndef PROTO_GADTOOLS_H
172 #include <proto/gadtools.h>
173 #endif
175 #ifndef PROTO_ASL_H
176 #include <proto/asl.h>
177 #endif
179 #ifndef PROTO_DISKFONT_H
180 #include <proto/diskfont.h>
181 #endif
183 #ifndef PROTO_WB_H
184 #include <proto/wb.h>
185 #endif
187 /*********************************************************************************************/
189 typedef void (*CLASS_TEMPLATEFUNC)(char *buff);
190 typedef void (*CLASS_ABOUTFUNC)(Object *obj, char *details[]);
191 typedef void (*CLASS_ABOUTDISPOSE)(char *details[]);
193 struct DTClassInfo
195 ULONG classID;
196 CLASS_TEMPLATEFUNC aboutTemplate;
197 CLASS_ABOUTFUNC aboutFunc;
198 CLASS_ABOUTDISPOSE aboutDispose;
199 IPTR templen; /* how many UBYTE our EasyRequest template needs */
200 IPTR entries; /* how many elements we need to store for our template */
203 struct DTClassInfo *FindClassInfo(ULONG classid);
205 /*********************************************************************************************/
207 enum
209 GAD_UPARROW,
210 GAD_DOWNARROW,
211 GAD_LEFTARROW,
212 GAD_RIGHTARROW,
213 GAD_VERTSCROLL,
214 GAD_HORIZSCROLL,
215 NUM_GADGETS
218 enum
220 IMG_UPARROW,
221 IMG_DOWNARROW,
222 IMG_LEFTARROW,
223 IMG_RIGHTARROW,
224 IMG_SIZE,
225 NUM_IMAGES
228 /*********************************************************************************************/
230 #include "vars.h"
232 #undef CATCOMP_STRINGS
233 #undef CATCOMP_NUMBERS
235 #define CATCOMP_NUMBERS
237 #include "strings.h"
239 /*********************************************************************************************/
241 /* main.c */
243 void OutputMessage(CONST_STRPTR msg);
244 void Cleanup(CONST_STRPTR msg);
245 void AddDTOToWin(void);
246 void WinCleanup(void);
247 void InitWin(void);
249 /* misc.c */
251 void InitMenus(struct NewMenu *newm);
252 struct Menu * MakeMenus(struct NewMenu *newm);
253 void KillMenus(void);
254 void SetMenuFlags(void);
256 STRPTR GetFileName(ULONG msgtextid);
257 void About(void);
259 ULONG DoTrigger(ULONG what);
260 ULONG DoWriteMethod(STRPTR name, ULONG mode);
261 ULONG DoPrintMethod(VOID);
262 ULONG DoLayout(ULONG initial);
263 ULONG DoScaleMethod(ULONG xsize, ULONG ysize, BOOL aspect);
264 void DoZoom(WORD zoomer);
266 /*********************************************************************************************/
268 /* locale.c */
270 void InitLocale(STRPTR catname, ULONG version);
271 void CleanupLocale(void);
272 CONST_STRPTR MSG(ULONG id);
274 /*********************************************************************************************/
275 /*********************************************************************************************/
277 #endif /* GLOBAL_H */