grub2: bring back build of aros-side grub2 tools
[AROS.git] / workbench / system / Wanderer / Classes / iconlist_attributes.h
blob1ed933f090674653263467a15277232db8597de5
1 #ifndef _MUI_CLASSES_ICONLIST_ATTRIBUTES_H
2 #define _MUI_CLASSES_ICONLIST_ATTRIBUTES_H
4 /*
5 Copyright 2002-2009, The AROS Development Team. All rights reserved.
6 $Id$
7 */
9 /*** Identifier base ********************************************************/
10 #define MUIB_IconList (MUIB_ZUNE | 0x00042000)
12 #define MUIV_IconList_NextIcon_Start 0x00
13 #define MUIV_IconList_NextIcon_End 0x01
15 #define MUIV_IconList_NextIcon_Selected 0x02
16 #define MUIV_IconList_NextIcon_Visible 0x03
18 #define MUIV_IconList_Sort_DrawersMixed (1<<0) /* mix folders and files when sorting */
19 #define MUIV_IconList_Sort_DrawersLast (1<<1) /* ignored if mixed is set */
20 #define MUIV_IconList_Sort_Reverse (1<<2) /* reverse sort direction */
22 #define MUIV_IconList_Sort_ByName (1<<4)
23 #define MUIV_IconList_Sort_ByDate (1<<5)
24 #define MUIV_IconList_Sort_BySize (1<<6)
25 #define MUIV_IconList_Sort_ByType (1<<7)
27 #define MUIV_IconList_Sort_AutoSort (1<<16) /* should icons automatically sort, ignoring snapshoted positions */
29 #define MUIV_IconList_Sort_Orders (MUIV_IconList_Sort_ByName | MUIV_IconList_Sort_ByDate | MUIV_IconList_Sort_BySize | MUIV_IconList_Sort_ByType)
31 /*** Attributes *************************************************************/
32 #define MUIA_IconList_Changed (MUIB_IconList | 0x00000001) /* Zune: V1 .SG BOOL */
33 #define MUIA_IconList_Clicked (MUIB_IconList | 0x00000002) /* Zune: V1 ..G (struct IconList_Click *) */
34 #define MUIA_IconList_DoubleClick (MUIB_IconList | 0x00000003) /* Zune: V1 ..G BOOL */
35 #define MUIA_IconList_SelectionChanged (MUIB_IconList | 0x00000004) /* Zune: V1 ..G BOOL */
37 #define MUIA_IconList_Width (MUIB_IconList | 0x0000000c) /* Zune: V1 .SG LONG */
38 #define MUIA_IconList_Height (MUIB_IconList | 0x0000000d) /* Zune: V1 .SG LONG */
39 #define MUIA_IconList_IconMoved (MUIB_IconList | 0x00000010) /* Zune: V1 ..G (struct IconList_Entry *) */
40 #define MUIA_IconList_IconsDropped (MUIB_IconList | 0x00000011) /* Zune: V1 ..G (struct IconList_Entry *) */
41 #define MUIA_IconList_AppWindowDrop (MUIB_IconList | 0x00000012) /* Zune: V1 ..G (struct IconList_Entry *) */
42 #define MUIA_IconList_FocusIcon (MUIB_IconList | 0x00000013) /* Zune: V1 .SG (struct IconList_Entry *) */
44 #define MUIA_IconList_DisplayFlags (MUIB_IconList | 0x00000020) /* Zune: V1 ISG ULONG */
45 #define MUIA_IconList_SortFlags (MUIB_IconList | 0x00000021) /* Zune: V1 ISG ULONG */
47 #define MUIA_IconList_BufferLeft (MUIB_IconList | 0x000000F0) /* Zune: V1 ..G LONG */
48 #define MUIA_IconList_BufferTop (MUIB_IconList | 0x000000F1) /* Zune: V1 ..G LONG */
49 #define MUIA_IconList_BufferWidth (MUIB_IconList | 0x000000F2) /* Zune: V1 ..G LONG */
50 #define MUIA_IconList_BufferHeight (MUIB_IconList | 0x000000F3) /* Zune: V1 ..G LONG */
52 #define MUIA_IconList_Rastport (MUIB_IconList | 0x000000FF) /* Zune: V1 .SG (struct RastPort *) */
53 #define MUIA_IconList_BufferRastport (MUIB_IconList | 0x000000FE) /* Zune: V1 ..G BOOL */
55 /* Configuration Attributes */
56 #define MUIB_IconList_ConfigTags (MUIB_IconList | 0x00000100)
58 #define MUIA_IconList_IconListMode (MUIB_IconList_ConfigTags | 0x00000000) /* Zune: V1 ISG UBYTE */
59 #define MUIA_IconList_LabelText_Mode (MUIB_IconList_ConfigTags | 0x00000001) /* Zune: V1 ISG UBYTE */
60 #define MUIA_IconList_LabelText_Pen (MUIB_IconList_ConfigTags | 0x00000002) /* Zune: V1 ISG UBYTE */
61 #define MUIA_IconList_LabelText_ShadowPen (MUIB_IconList_ConfigTags | 0x00000003) /* Zune: V1 ISG UBYTE */
62 #define MUIA_IconList_LabelInfoText_Font (MUIB_IconList_ConfigTags | 0x00000004) /* Zune: V1 ISG (struct TextFont *) */
63 #define MUIA_IconList_LabelInfoText_Pen (MUIB_IconList_ConfigTags | 0x00000005) /* Zune: V1 ISG UBYTE */
64 #define MUIA_IconList_LabelInfoText_ShadowPen (MUIB_IconList_ConfigTags | 0x00000006) /* Zune: V1 ISG UBYTE */
65 #define MUIA_IconList_DragImageTransparent (MUIB_IconList_ConfigTags | 0x00000017) /* Zube: V1 ISG BOOL */
67 /* options only relevant in List view-mode */
69 /* Options only relevant in Icon view-mode */
70 #define MUIA_IconList_LabelText_MaxLineLen (MUIB_IconList_ConfigTags | 0x00000007) /* Zune: V1 ISG ULONG */
71 #define MUIA_IconList_LabelText_MultiLine (MUIB_IconList_ConfigTags | 0x00000008) /* Zune: V1 ISG ULONG */
72 #define MUIA_IconList_LabelText_MultiLineOnFocus (MUIB_IconList_ConfigTags | 0x00000009) /* Zune: V1 ISG BOOL */
74 #define MUIA_IconList_Icon_HorizontalSpacing (MUIB_IconList_ConfigTags | 0x00000010) /* Zune: V1 ISG UBYTE */
75 #define MUIA_IconList_Icon_VerticalSpacing (MUIB_IconList_ConfigTags | 0x00000011) /* Zune: V1 ISG UBYTE */
76 #define MUIA_IconList_Icon_ImageSpacing (MUIB_IconList_ConfigTags | 0x00000012) /* Zune: V1 ISG UBYTE */
77 #define MUIA_IconList_LabelText_HorizontalPadding (MUIB_IconList_ConfigTags | 0x00000013) /* Zune: V1 ISG UBYTE */
78 #define MUIA_IconList_LabelText_VerticalPadding (MUIB_IconList_ConfigTags | 0x00000014) /* Zune: V1 ISG UBYTE */
79 #define MUIA_IconList_LabelText_BorderWidth (MUIB_IconList_ConfigTags | 0x00000015) /* Zune: V1 ISG UBYTE */
80 #define MUIA_IconList_LabelText_BorderHeight (MUIB_IconList_ConfigTags | 0x00000016) /* Zune: V1 ISG UBYTE */
82 /********************************************************************************/
83 /* IconList rendering control flags */
84 /********************************************************************************/
86 /* # DISPLAYFLAGS */
88 #define ICONLIST_DISP_BUFFERED (1<<0) /* use buffered IconList rendering */
90 #define ICONLIST_DISP_MODEDEFAULT (1<<1) /* icons view-mode (with labels below) */
91 #define ICONLIST_DISP_MODELABELRIGHT (1<<2) /* icons view-mode (with labels to the right) */
92 #define ICONLIST_DISP_MODELIST (1<<3) /* list view-mode */
94 #define ICONLIST_DISP_SHOWHIDDEN (1<<6) /* show system "hidden" files */
95 #define ICONLIST_DISP_SHOWINFO (1<<7) /* only show icon(s) which have .info files */
97 #define ICONLIST_DISP_NOICONS (1<<10) /* name only mode */
99 #define ICONLIST_DISP_MODE_MASK (ICONLIST_DISP_MODEDEFAULT | ICONLIST_DISP_MODELABELRIGHT | ICONLIST_DISP_MODELIST)
101 /* Display Flags only relevant in List view-modes */
103 /* Display Flags only relevant in Icon view-modes */
104 #define ICONLIST_DISP_VERTICAL (1<<15) /* tile icons vertically */
106 enum iconlist_ListViewModes
108 ICON_LISTMODE_GRID = 0,
109 ICON_LISTMODE_ROUGH = 1,
110 iconlist_ListViewModesCount
113 enum iconlist_LabelRenderModes
115 ICON_TEXTMODE_OUTLINE = 0,
116 ICON_TEXTMODE_PLAIN = 1,
117 ICON_TEXTMODE_DROPSHADOW = 2,
118 iconlist_LabelRenderModesCount
121 /* Default Icon label rendering settings */
122 // Max no of characters to display on a single line
123 #define ILC_ICONLABEL_MAXLINELEN_DEFAULT 10
124 #define ILC_ICONLABEL_SHORTEST 6
126 /* Default Icon rendering settings */
127 // Spacing between icons ..
128 #define ILC_ICON_HORIZONTALMARGIN_DEFAULT 5
129 #define ILC_ICON_VERTICALMARGIN_DEFAULT 5
131 // Padding between Icon's "image" and label frame
132 #define ILC_ICONLABEL_IMAGEMARGIN_DEFAULT 1
134 // Padding between Icons label text and frame
135 #define ILC_ICONLABEL_HORIZONTALTEXTMARGIN_DEFAULT 4
136 #define ILC_ICONLABEL_VERTICALTEXTMARGIN_DEFAULT 4
138 // Icon's Label frame dimensions
139 #define ILC_ICONLABEL_BORDERWIDTH_DEFAULT 1
140 #define ILC_ICONLABEL_BORDERHEIGHT_DEFAULT 1
142 /*** Identifier base ********************************************************/
143 #define MUIB_IconDrawerList (MUIB_ZUNE | 0x00043000)
145 /*** Attributes *************************************************************/
146 #define MUIA_IconDrawerList_Drawer (MUIB_IconDrawerList | 0x00000000) /* Zune: V1 isg LONG */
148 /*** Identifier base ********************************************************/
149 #define MUIB_IconVolumeList (MUIB_ZUNE | 0x00044000)
151 #endif /* _MUI_CLASSES_ICONLIST_ATTRIBUTES_H */