-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpopasl_string.h
More file actions
42 lines (36 loc) · 1.86 KB
/
popasl_string.h
File metadata and controls
42 lines (36 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/******************************************************************************
* PopASLString *
******************************************************************************/
#include <libraries/asl.h>
//Public Attributes
//<SUBCLASS ATTRIBUTES HERE> ex: #define MUIA_PopASLString_{Attribute} 0x80430FF1
#define MUIA_PopASLString_Requester 0x80430FF1 //(I..) (struct FileRequester*) // !!MANDATORY!!
#define MUIA_PopASLString_StringFunc 0x80430FF2 //(ISG) (VOID (*)(struct FileRequester*, Object*))
#define MUIA_PopASLString_StringObject 0x80430FF3 //(..G) (Object*)
#define MUIA_PopASLString_PopButton 0x80430FF4 //(..G) (Object*)
#define MUIA_PopASLString_IgnoreContents 0x80430FF5 //(ISG) (BOOL)
//All ASLFR_{*} tags are recognized
//MUIA_Image_Spec will set the image on the pop button (defaults to MUII_PopFile)
//Public Methods
//<SUBCLASS METHODS HERE> ex: #define MUIM_PopASLString_{Method} 0x80430FF1
//Public Functions
struct MUI_CustomClass* MUI_Create_PopASLString(void);
//<YOUR SUBCLASS FUNCTIONS HERE>
/******************************************************************************
* StringFunc examples to get the directory or the file part *
******************************************************************************
///drawerStringFunc(file_requester, string_object)
VOID drawerStringFunc(struct FileRequester* file_req, Object* string)
{
DoMethod(string, MUIM_Set, MUIA_String_Contents, file_req->fr_Drawer);
DoMethod(string, MUIM_Set, MUIA_String_Acknowledge, file_req->fr_Drawer);
}
///
///fileStringFunc(file_requester, string_object)
VOID fileStringFunc(struct FileRequester* file_req, Object* string)
{
DoMethod(string, MUIM_Set, MUIA_String_Contents, file_req->fr_File);
DoMethod(string, MUIM_Set, MUIA_String_Acknowledge, file_req->fr_File);
}
///
*/