posixc.library: extract child creation in vfork to separate function
[AROS.git] / workbench / libs / asl / fontreqhooks.h
blob72c6c34ba84aa7f32d778fe7ee9cd0636dda8085
1 #ifndef FONTREQHOOKS_H
2 #define FONTREQHOOKS_H
4 /*
5 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
6 $Id$
8 Desc: Font requester specific defs.
9 Lang: english
11 #ifndef LAYOUT_H
12 # include "layout.h"
13 #endif
14 #ifndef INTUITION_CLASSES_H
15 # include <intuition/classes.h>
16 #endif
17 #ifndef DISKFONT_DISKFONT_H
18 # include <diskfont/diskfont.h>
19 #endif
21 /* Options */
23 #define FOREQ_MIN_VISIBLELINES 3
24 #define FOREQ_VISIBILE_SIZE_CHARS 4
26 #ifdef __MORPHOS
27 #define FOREQ_COOL_BUTTONS 0
28 #else
29 #define FOREQ_COOL_BUTTONS 1
30 #endif
32 #define FOREQ_FIRST_OBJECT(x) ((x)->NameListview)
33 #define FOREQ_LAST_OBJECT(x) ((x)->EraserGadget)
35 /* Max. length of font name without ".font\0" */
36 #define MAXASLFONTNAME (MAXFILENAMELENGTH - 6)
38 struct FOUserData
40 Object *NameListview;
41 Object *SizeListview;
42 Object *NameString;
43 Object *SizeString;
44 Object *OKBut;
45 Object *CancelBut;
46 Object *Preview;
47 Object *DrawModeLabel;
48 Object *DrawModeGadget;
49 Object *StyleLabel;
50 Object *StyleGadget;
51 Object *ColorLabel;
52 Object *FGColorGadget;
53 Object *BGColorGadget;
54 Object *EraserGadget;
56 struct ScrollerGadget NameScrollGad;
57 struct ScrollerGadget SizeScrollGad;
59 struct List NameListviewList;
60 struct Hook SizeListviewRenderHook;
61 struct Hook StringEditHook;
62 struct ASLLVFontReqNode *ActiveFont;
63 struct AvailFontsHeader *AFH;
64 struct TextFont *PreviewFont;
66 UWORD ButWidth;
67 UWORD ButHeight;
71 struct ASLLVFontReqNode
73 struct Node node;
74 struct List SizeList;
75 struct TextAttr TAttr;
76 UWORD NumSizes;
77 UBYTE Name[MAXASLFONTNAME + 6];
78 struct Node SizeNode[0];
79 /* growing */
82 #define FOFLG_LAYOUTED (1 << 0)
84 /* Menu IDs */
86 #define FOMEN_LASTFONT 1
87 #define FOMEN_NEXTFONT 2
88 #define FOMEN_RESTORE 3
89 #define FOMEN_RESCAN 4
90 #define FOMEN_OK 5
91 #define FOMEN_CANCEL 6
93 #endif /* FONTREQHOOKS_H */