grub2: bring back build of aros-side grub2 tools
[AROS.git] / workbench / libs / asl / filereqhooks.h
blob955658141d44b24aea25712aa5fbd2640ea36b51
1 #ifndef FILEREQHOOKS_H
2 #define FILEREQHOOKS_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 FREQ_MIN_VISIBLELINES 5
28 #define FREQ_MIN_FILECOLUMNWIDTH 150
30 #ifdef __MORPHOS
31 #define FREQ_COOL_BUTTONS 0
32 #else
33 #define FREQ_COOL_BUTTONS 1
34 #endif
36 #define DEF_PROPWIDTH 20
37 #define MAX_PATTERN_LEN 257
38 #define MAX_PATH_LEN 1025
39 #define MAX_FILE_LEN 257
41 #define FREQ_FIRST_OBJECT(x) ((x)->Listview)
42 #define FREQ_LAST_OBJECT(x) ((x)->EraserGad)
44 struct FRUserData
46 Object *Listview;
47 Object *OKBut;
48 Object *VolumesBut;
49 Object *ParentBut;
50 Object *CancelBut;
51 Object *PatternLabel;
52 Object *DrawerLabel;
53 Object *FileLabel;
54 Object *DirectoryScanSymbol;
55 Object *FileGad;
56 Object *PatternGad;
57 Object *PathGad;
58 Object *EraserGad;
59 struct ScrollerGadget ScrollGad;
60 struct List ListviewList;
61 struct Hook ListviewHook;
62 struct Hook StringEditHook;
63 STRPTR SelectPattern;
64 UWORD ButWidth;
65 UWORD ButHeight;
66 WORD LVColumnWidth[ASLLV_MAXCOLUMNS];
67 UBYTE LVColumnAlign[ASLLV_MAXCOLUMNS];
68 UBYTE Flags;
72 /* Has the gadgetry been layouted before ? */
74 #define FRFLG_LAYOUTED (1 << 0)
75 #define FRFLG_SHOWING_VOLUMES (1 << 1)
77 /* Menu IDs */
79 #define FRMEN_LASTNAME 1
80 #define FRMEN_NEXTNAME 2
81 #define FRMEN_RESTORE 3
82 #define FRMEN_PARENT 4
83 #define FRMEN_VOLUMES 5
84 #define FRMEN_UPDATE 6
85 #define FRMEN_DELETE 7
86 #define FRMEN_NEWDRAWER 8
87 #define FRMEN_RENAME 9
88 #define FRMEN_SELECT 10
89 #define FRMEN_OK 11
90 #define FRMEN_CANCEL 12
91 #define FRMEN_BYNAME 13
92 #define FRMEN_BYDATE 14
93 #define FRMEN_BYSIZE 15
94 #define FRMEN_ASCENDING 16
95 #define FRMEN_DESCENDING 17
96 #define FRMEN_DRAWERSFIRST 18
97 #define FRMEN_DRAWERSMIX 19
98 #define FRMEN_DRAWERSLAST 20
100 #endif /* FILEREQHOOKS_H */