/contrib/C_Layer/INCLUDE/kolibri_pathshow.h |
---|
File deleted |
/contrib/C_Layer/INCLUDE/kolibri_d_button.h |
---|
File deleted |
/contrib/C_Layer/INCLUDE/kolibri_gui_elements.h |
---|
21,9 → 21,8 |
KOLIBRI_PROGRESS_BAR, |
KOLIBRI_STATICTEXT, |
KOLIBRI_STATICNUM, |
KOLIBRI_BUTTON, |
KOLIBRI_D_BUTTON, |
KOLIBRI_PATHSHOW, |
/* Add elements above this element in order to let KOLIBRI_NUM_GUI_ELEMENTS */ |
/* stay at correct value */ |
66,22 → 65,19 |
void kolibri_window_add_element(kolibri_window *some_window, enum KOLIBRI_GUI_ELEMENT_TYPE element_type, void *some_gui_element); // forward declaration |
/* GUI Elements being used */ |
#include "kolibri_editbox.h" |
#include "kolibri_checkbox.h" |
#include "kolibri_button.h" |
#include "kolibri_checkbox.h" |
#include "kolibri_d_button.h" |
#include "kolibri_editbox.h" |
#include "kolibri_progressbar.h" |
#include "kolibri_frame.h" |
#include "kolibri_menubar.h" |
#include "kolibri_optionbox.h" |
#include "kolibri_pathshow.h" |
#include "kolibri_progressbar.h" |
#include "kolibri_scrollbar.h" |
#include "kolibri_statictext.h" |
#include "kolibri_optionbox.h" |
#include "kolibri_menubar.h" |
/*---------------------Define various functions for initializing GUI-------*/ |
/* Master table containing operations for various GUI elements in one place */ |
139,15 → 135,7 |
kolibri_gui_op_table[KOLIBRI_MENU_BAR].mouse_fn = (cb_elem_boxlib)menu_bar_mouse; |
kolibri_gui_op_table[KOLIBRI_MENU_BAR].key_fn = NULL; |
kolibri_gui_op_table[KOLIBRI_D_BUTTON].redraw_fn = (cb_elem_boxlib)dynamic_button_draw; |
kolibri_gui_op_table[KOLIBRI_D_BUTTON].mouse_fn = (cb_elem_boxlib)dynamic_button_mouse; |
kolibri_gui_op_table[KOLIBRI_D_BUTTON].key_fn = NULL; |
debug_board_printf("KOLIBRI_D_BUTTON (%x,%x,%x)\n", dynamic_button_draw, dynamic_button_mouse, 0); |
kolibri_gui_op_table[KOLIBRI_PATHSHOW].redraw_fn = (cb_elem_boxlib)path_show_draw; |
kolibri_gui_op_table[KOLIBRI_PATHSHOW].mouse_fn = NULL; |
kolibri_gui_op_table[KOLIBRI_PATHSHOW].key_fn = NULL; |
debug_board_printf("KOLIBRI_PATHSHOW (%x,%x,%x)\n", path_show_draw, 0, 0); |
debug_board_printf("KOLIBRI_MENU_BAR (%x,%x,%x)\n", menu_bar_draw,menu_bar_mouse,menu_bar_activate); |
} |
/* Create a new main GUI window for KolibriOS */ |
/contrib/C_Layer/INCLUDE/kolibri_statictext.h |
---|
66,13 → 66,6 |
:); |
} |
inline void gui_add_statictext(kolibri_window *wnd, statictext* st) |
{ |
kolibri_window_add_element(wnd, KOLIBRI_STATICTEXT, st); |
} |
staticnum* kolibri_staticnum(staticnum* st, uint32_t xy, int32_t width, int16_t number, encoding_t enc, int size, color_t font, color_t bg) |
{ |
st->start_xy = xy; |
104,12 → 97,6 |
return kolibri_new_staticnum(xy, width, number, cp866, 0, kolibri_color_table.color_work_text, 0); |
} |
inline void gui_add_staticnum(kolibri_window *wnd, staticnum* sn) |
{ |
kolibri_window_add_element(wnd, KOLIBRI_STATICNUM, sn); |
} |
__attribute__((__stdcall__)) |
void staticnum_draw(staticnum *st) |
{ |
/contrib/C_Layer/INCLUDE/kolibri_colordialog.h |
---|
43,7 → 43,6 |
return new_colordialog; |
} |
extern void kolibri_proclib_init() __attribute__((__stdcall__)); |
extern void (*ColorDialog_init)(color_dialog *) __attribute__((__stdcall__)); |
extern void (*ColorDialog_start)(color_dialog *) __attribute__((__stdcall__)); |
#endif /* KOLIBRI_COLORDIALOG_H */ |
/contrib/C_Layer/INCLUDE/kolibri_opendialog.h |
---|
5,30 → 5,19 |
char sz_dir_default_path[] = "/rd/1"; |
char sz_start_path[] = "/rd/1/File managers/opendial"; |
enum open_dialog_mode { |
OPEN, |
SAVE, |
SELECT |
}; |
typedef struct { |
unsigned int size; |
unsigned char end; |
}od_filter; |
typedef struct { |
unsigned int mode; |
char* procinfo; |
char* com_area_name; |
unsigned int procinfo; |
unsigned int com_area_name; |
unsigned int com_area; |
char* opendir_path; |
char* dir_default_path; |
char* start_path; |
void (*draw_window)(); |
unsigned int opendir_path; |
unsigned int dir_default_path; |
unsigned int start_path; |
unsigned int draw_window; |
unsigned int status; |
char* openfile_path; |
char* filename_area; |
od_filter* filter_area; |
unsigned int openfile_path; |
unsigned int filename_area; |
unsigned int filter_area; |
unsigned short x_size; |
unsigned short x_start; |
unsigned short y_size; |
35,9 → 24,14 |
unsigned short y_start; |
}open_dialog; |
typedef struct { |
unsigned int size; |
unsigned char end; |
}od_filter; |
void fake_on_redraw(void) {} |
open_dialog* kolibri_new_open_dialog(unsigned int mode, unsigned short tlx, unsigned short tly, unsigned short x_size, unsigned short y_size) |
struct open_dialog* kolibri_new_open_dialog(unsigned int mode, unsigned short tlx, unsigned short tly, unsigned short x_size, unsigned short y_size) |
{ |
open_dialog *new_opendialog = (open_dialog *)malloc(sizeof(open_dialog)); |
od_filter *new_od_filter = (od_filter *)malloc(sizeof(od_filter)); |
51,11 → 45,11 |
new_opendialog -> mode = mode; |
new_opendialog -> procinfo = proc_info; |
new_opendialog -> com_area_name = sz_com_area_name; |
new_opendialog -> com_area_name = &sz_com_area_name; |
new_opendialog -> com_area = 0; |
new_opendialog -> opendir_path = plugin_path; |
new_opendialog -> dir_default_path = sz_dir_default_path; |
new_opendialog -> start_path = sz_start_path; |
new_opendialog -> dir_default_path = &sz_dir_default_path; |
new_opendialog -> start_path = &sz_start_path; |
new_opendialog -> draw_window = &fake_on_redraw; |
new_opendialog -> status = 0; |
new_opendialog -> openfile_path = openfile_path; |
68,7 → 62,6 |
return new_opendialog; |
} |
extern void kolibri_proclib_init(); |
extern void (*OpenDialog_init)(open_dialog *) __attribute__((__stdcall__)); |
extern void (*OpenDialog_start)(open_dialog *) __attribute__((__stdcall__)); |
#endif /* KOLIBRI_OPENDIALOG_H */ |