Rev 6456 | Rev 6524 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6456 | Rev 6457 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | 3 | ||
4 | char sz_com_area_name[] = "FFFFFFFF_open_dialog"; |
4 | char sz_com_area_name[] = "FFFFFFFF_open_dialog"; |
5 | char sz_dir_default_path[] = "/rd/1"; |
5 | char sz_dir_default_path[] = "/rd/1"; |
Line 6... | Line 6... | ||
6 | char sz_start_path[] = "/rd/1/File managers/opendial"; |
6 | char sz_start_path[] = "/rd/1/File managers/opendial"; |
7 | 7 | ||
8 | struct open_dialog { |
8 | typedef struct { |
9 | unsigned int mode; |
9 | unsigned int mode; |
10 | unsigned int procinfo; |
10 | unsigned int procinfo; |
11 | unsigned int com_area_name; |
11 | unsigned int com_area_name; |
Line 20... | Line 20... | ||
20 | unsigned int filter_area; |
20 | unsigned int filter_area; |
21 | unsigned short x_size; |
21 | unsigned short x_size; |
22 | unsigned short x_start; |
22 | unsigned short x_start; |
23 | unsigned short y_size; |
23 | unsigned short y_size; |
24 | unsigned short y_start; |
24 | unsigned short y_start; |
25 | }; |
25 | }open_dialog; |
Line 26... | Line 26... | ||
26 | 26 | ||
27 | struct od_filter { |
27 | typedef struct { |
28 | unsigned int size; |
28 | unsigned int size; |
29 | unsigned char end; |
29 | unsigned char end; |
Line 30... | Line 30... | ||
30 | }; |
30 | }od_filter; |
Line 31... | Line 31... | ||
31 | 31 | ||
32 | void fake_on_redraw(void) {} |
32 | void fake_on_redraw(void) {} |
33 | 33 | ||
34 | struct open_dialog* kolibri_new_open_dialog(unsigned int mode, unsigned short tlx, unsigned short tly, unsigned short x_size, unsigned short y_size) |
34 | struct open_dialog* kolibri_new_open_dialog(unsigned int mode, unsigned short tlx, unsigned short tly, unsigned short x_size, unsigned short y_size) |
35 | { |
35 | { |
36 | struct open_dialog *new_opendialog = (struct open_dialog *)malloc(sizeof(struct open_dialog)); |
36 | open_dialog *new_opendialog = (open_dialog *)malloc(sizeof(open_dialog)); |
37 | struct od_filter *new_od_filter = (struct od_filter *)malloc(sizeof(struct od_filter)); |
37 | od_filter *new_od_filter = (od_filter *)malloc(sizeof(od_filter)); |
38 | char *plugin_path = (char *)calloc(4096, sizeof(char)); |
38 | char *plugin_path = (char *)calloc(4096, sizeof(char)); |
Line 60... | Line 60... | ||
60 | new_opendialog -> y_size = y_size; |
60 | new_opendialog -> y_size = y_size; |
61 | new_opendialog -> y_start = tly; |
61 | new_opendialog -> y_start = tly; |
62 | return new_opendialog; |
62 | return new_opendialog; |
63 | } |
63 | } |
Line 64... | Line 64... | ||
64 | 64 | ||
65 | extern void (*OpenDialog_init)(struct open_dialog *) __attribute__((__stdcall__)); |
65 | extern void (*OpenDialog_init)(open_dialog *) __attribute__((__stdcall__)); |
66 | extern void (*OpenDialog_start)(struct open_dialog *) __attribute__((__stdcall__)); |
66 | extern void (*OpenDialog_start)(open_dialog *) __attribute__((__stdcall__)); |