grub2: bring back build of aros-side grub2 tools
[AROS.git] / workbench / libs / asl / modereqhooks.h
blob012dd8b6def47d8bd03891a0d9f05dee7626e440
1 #ifndef MODEREQHOOKS_H
2 #define MODEREQHOOKS_H
4 /*
5 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
6 $Id$
8 Desc: File requester specific defs.
9 Lang: english
12 #ifndef LAYOUT_H
13 # include "layout.h"
14 #endif
15 #ifndef INTUITION_CLASSES_H
16 # include <intuition/classes.h>
17 #endif
18 #ifndef DOS_EXALL_H
19 # include <dos/exall.h>
20 #endif
21 #ifndef DOS_DOSEXTENS_H
22 # include <dos/dosextens.h>
23 #endif
25 /* Options */
27 #define SREQ_MIN_VISIBLELINES 3
29 #ifdef __MORPHOS__
30 #define SREQ_COOL_BUTTONS 0
31 #else
32 #define SREQ_COOL_BUTTONS 1
33 #endif
35 #define SREQ_FIRST_OBJECT(x) ((x)->Listview)
36 #define SREQ_LAST_OBJECT(x) ((x)->EraserGadget)
38 #define SREQ_MAX_PROPERTIES 9
41 struct SMUserData
43 Object *Listview;
44 Object *OKBut;
45 Object *CancelBut;
46 Object *OverscanLabel;
47 Object *WidthLabel;
48 Object *HeightLabel;
49 Object *DepthLabel;
50 Object *AutoScrollLabel;
51 Object *OverscanGadget;
52 Object *WidthGadget;
53 Object *HeightGadget;
54 Object *DepthGadget;
55 Object *AutoScrollGadget;
56 Object *EraserGadget;
58 struct ScrollerGadget ScrollGad;
59 struct List ListviewList;
60 struct Hook ListviewHook;
61 struct List PropertyList;
62 struct Node PropertyNodes[SREQ_MAX_PROPERTIES];
63 Object *PropertyGadget;
64 UWORD ButWidth;
65 UWORD ButHeight;
66 STRPTR Colorarray[33];
67 UBYTE Colortext[150];
68 UBYTE ColorDepth[32];
69 UBYTE RealColorDepth[32];
70 UBYTE NumColorEntries;
71 UBYTE Flags;
75 /* Has the gadgetry been layouted before ? */
76 #define SMFLG_LAYOUTED (1 << 0)
78 /* Menu IDs */
80 #define SMMEN_LASTMODE 1
81 #define SMMEN_NEXTMODE 2
82 #define SMMEN_PROPERTYLIST 3
83 #define SMMEN_RESTORE 4
84 #define SMMEN_OK 5
85 #define SMMEN_CANCEL 6
87 #endif /* MODEREQHOOKS_H */