Rev 6601 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6601 | Rev 6612 | ||
---|---|---|---|
Line 42... | Line 42... | ||
42 | void *element; |
42 | void *element; |
43 | void *next, *prev; |
43 | void *next, *prev; |
44 | }kolibri_window_element; |
44 | }kolibri_window_element; |
Line 45... | Line 45... | ||
45 | 45 | ||
- | 46 | typedef void (*cb_elem_boxlib)(void *) __attribute__((__stdcall__)); |
|
Line 46... | Line 47... | ||
46 | typedef void (*cb_elem_boxlib)(void *) __attribute__((__stdcall__)); |
47 | typedef void (*cbkey_elem_boxlib)(void *, oskey_t) __attribute__((__stdcall__)); |
47 | 48 | ||
48 | /* Generic structure for supporting functions on various elements of Kolibri's GUI */ |
49 | /* Generic structure for supporting functions on various elements of Kolibri's GUI */ |
49 | typedef struct { |
50 | typedef struct { |
50 | cb_elem_boxlib redraw_fn; |
51 | cb_elem_boxlib redraw_fn; |
51 | cb_elem_boxlib mouse_fn; |
52 | cb_elem_boxlib mouse_fn; |
Line 52... | Line 53... | ||
52 | cb_elem_boxlib key_fn; |
53 | cbkey_elem_boxlib key_fn; |
53 | }kolibri_element_operations; |
54 | }kolibri_element_operations; |
54 | 55 | ||
Line 93... | Line 94... | ||
93 | void kolibri_init_gui_op_table(void) |
94 | void kolibri_init_gui_op_table(void) |
94 | { |
95 | { |
95 | /* Setting up functions for edit box GUI elements*/ |
96 | /* Setting up functions for edit box GUI elements*/ |
96 | kolibri_gui_op_table[KOLIBRI_EDIT_BOX].redraw_fn = (cb_elem_boxlib)edit_box_draw; |
97 | kolibri_gui_op_table[KOLIBRI_EDIT_BOX].redraw_fn = (cb_elem_boxlib)edit_box_draw; |
97 | kolibri_gui_op_table[KOLIBRI_EDIT_BOX].mouse_fn = (cb_elem_boxlib)edit_box_mouse; |
98 | kolibri_gui_op_table[KOLIBRI_EDIT_BOX].mouse_fn = (cb_elem_boxlib)edit_box_mouse; |
98 | kolibri_gui_op_table[KOLIBRI_EDIT_BOX].key_fn = (cb_elem_boxlib)editbox_key; |
99 | kolibri_gui_op_table[KOLIBRI_EDIT_BOX].key_fn = (cbkey_elem_boxlib)editbox_key; |
Line 99... | Line 100... | ||
99 | 100 | ||
100 | /* Setting up functions for check box GUI elements*/ |
101 | /* Setting up functions for check box GUI elements*/ |
101 | kolibri_gui_op_table[KOLIBRI_CHECK_BOX].redraw_fn = (cb_elem_boxlib)check_box_draw2; |
102 | kolibri_gui_op_table[KOLIBRI_CHECK_BOX].redraw_fn = (cb_elem_boxlib)check_box_draw2; |
102 | kolibri_gui_op_table[KOLIBRI_CHECK_BOX].mouse_fn = (cb_elem_boxlib)check_box_mouse2; |
103 | kolibri_gui_op_table[KOLIBRI_CHECK_BOX].mouse_fn = (cb_elem_boxlib)check_box_mouse2; |
Line 150... | Line 151... | ||
150 | kolibri_gui_op_table[KOLIBRI_PATHSHOW].mouse_fn = NULL; |
151 | kolibri_gui_op_table[KOLIBRI_PATHSHOW].mouse_fn = NULL; |
151 | kolibri_gui_op_table[KOLIBRI_PATHSHOW].key_fn = NULL; |
152 | kolibri_gui_op_table[KOLIBRI_PATHSHOW].key_fn = NULL; |
Line 152... | Line 153... | ||
152 | 153 | ||
153 | kolibri_gui_op_table[KOLIBRI_FILEBROWSE].redraw_fn = (cb_elem_boxlib)filebrowse_draw; |
154 | kolibri_gui_op_table[KOLIBRI_FILEBROWSE].redraw_fn = (cb_elem_boxlib)filebrowse_draw; |
154 | kolibri_gui_op_table[KOLIBRI_FILEBROWSE].mouse_fn = (cb_elem_boxlib)filebrowse_mouse; |
155 | kolibri_gui_op_table[KOLIBRI_FILEBROWSE].mouse_fn = (cb_elem_boxlib)filebrowse_mouse; |
Line 155... | Line 156... | ||
155 | kolibri_gui_op_table[KOLIBRI_FILEBROWSE].key_fn = (cb_elem_boxlib)filebrowse_key; |
156 | kolibri_gui_op_table[KOLIBRI_FILEBROWSE].key_fn = (cbkey_elem_boxlib)filebrowser_key; |
156 | 157 | ||
157 | kolibri_gui_op_table[KOLIBRI_EDITOR].redraw_fn = (cb_elem_boxlib)ted_draw; |
158 | kolibri_gui_op_table[KOLIBRI_EDITOR].redraw_fn = (cb_elem_boxlib)ted_draw; |
158 | kolibri_gui_op_table[KOLIBRI_EDITOR].mouse_fn = (cb_elem_boxlib)ted_mouse; |
- | |
Line 159... | Line 159... | ||
159 | kolibri_gui_op_table[KOLIBRI_EDITOR].key_fn = (cb_elem_boxlib)editor_key; |
159 | kolibri_gui_op_table[KOLIBRI_EDITOR].mouse_fn = (cb_elem_boxlib)ted_mouse; |
160 | debug_board_printf("KOLIBRI_EDITOR (%x,%x,%x)\n", ted_draw, ted_mouse, editor_key); |
160 | kolibri_gui_op_table[KOLIBRI_EDITOR].key_fn = (cbkey_elem_boxlib)editor_key; |
161 | 161 | ||
162 | kolibri_gui_op_table[KOLIBRI_TREELIST].redraw_fn = (cb_elem_boxlib)tl_draw; |
162 | kolibri_gui_op_table[KOLIBRI_TREELIST].redraw_fn = (cb_elem_boxlib)treelist_draw; |
163 | kolibri_gui_op_table[KOLIBRI_TREELIST].mouse_fn = (cb_elem_boxlib)tl_mouse; |
163 | kolibri_gui_op_table[KOLIBRI_TREELIST].mouse_fn = (cb_elem_boxlib)tl_mouse; |
Line 164... | Line 164... | ||
164 | kolibri_gui_op_table[KOLIBRI_TREELIST].key_fn = (cb_elem_boxlib)treelist_key; |
164 | kolibri_gui_op_table[KOLIBRI_TREELIST].key_fn = (cbkey_elem_boxlib)treelist_key; |
165 | debug_board_printf("KOLIBRI_TREELIST (%x,%x,%x)\n", tl_draw, tl_mouse, treelist_key); |
165 | debug_board_printf("KOLIBRI_TREELIST (%x,%x,%x)\n", treelist_draw, tl_mouse, treelist_key); |