Updated PCI IDs to latest snapshot.
[tangerine.git] / workbench / libs / asl / fontreqhooks.h
blob9f27348b4420d54fdd4c105c70ce2c3a808baed4
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 struct FOUserData
37 Object *NameListview;
38 Object *SizeListview;
39 Object *NameString;
40 Object *SizeString;
41 Object *OKBut;
42 Object *CancelBut;
43 Object *Preview;
44 Object *DrawModeLabel;
45 Object *DrawModeGadget;
46 Object *StyleLabel;
47 Object *StyleGadget;
48 Object *ColorLabel;
49 Object *FGColorGadget;
50 Object *BGColorGadget;
51 Object *EraserGadget;
53 struct ScrollerGadget NameScrollGad;
54 struct ScrollerGadget SizeScrollGad;
56 struct List NameListviewList;
57 struct Hook SizeListviewRenderHook;
58 struct Hook StringEditHook;
59 struct ASLLVFontReqNode *ActiveFont;
60 struct AvailFontsHeader *AFH;
61 struct TextFont *PreviewFont;
63 UWORD ButWidth;
64 UWORD ButHeight;
68 struct ASLLVFontReqNode
70 struct Node node;
71 struct List SizeList;
72 struct TextAttr TAttr;
73 UWORD NumSizes;
74 UBYTE Name[MAXFONTNAME + 2];
75 struct Node SizeNode[0];
76 /* growing */
79 #define FOFLG_LAYOUTED (1 << 0)
81 /* Menu IDs */
83 #define FOMEN_LASTFONT 1
84 #define FOMEN_NEXTFONT 2
85 #define FOMEN_RESTORE 3
86 #define FOMEN_RESCAN 4
87 #define FOMEN_OK 5
88 #define FOMEN_CANCEL 6
90 #endif /* FONTREQHOOKS_H */