/contrib/C_Layer/EXAMPLE/libguic_kolibri/dbutton_files.c |
---|
90,7 → 90,7 |
gui_add_pathview(main_window, kolibri_pathview(&pview, X_Y(10, 50), 330, 1, 0, dlg_opensave->openfile_path, temp_path, 0, 0)); // black font, no background, font 1 |
filebrowser brows; |
filedata = load_file_inmem("/rd/1/File managers/z_icons.png", &read_bytes); |
filedata = load_file_inmem("/sys/File managers/z_icons.png", &read_bytes); |
image_data_rgb = malloc(icon_rgb_size * 20); // we know size |
// îïðåäåëÿåì âèä èçîáðàæåíèÿ è ïåðåâîäèì åãî âî âðåìåííûé áóôåð image_data |
image_data = (*img_decode)(filedata, read_bytes, 0); |
100,13 → 100,13 |
(*img_destroy)(image_data); |
free(filedata); |
filedata = load_file_inmem("/rd/1/File managers/icons.ini", &read_bytes); |
filedata = load_file_inmem("/sys/File managers/icons.ini", &read_bytes); |
gui_add_filebrowser(main_window, kolibri_filebrowser(&brows, X_Y(10, 400), X_Y(80, 300), X_Y(6, 9), X_Y(16, 16), image_data_rgb, NULL, 24, |
filedata, filedata + read_bytes, |
0x00FF00, 0xbbddff, 0x000000, 0xFFFFFF, 0xFF0000)); |
// try devices "/" - good |
brows.folder_data = read_folderdata("/rd/1"); |
brows.folder_data = read_folderdata("/sys"); |
brows.select_panel_counter = 1; // if want to show selection |
do /* Start of main activity loop */ |
/contrib/C_Layer/EXAMPLE/libguic_kolibri/editor_tree_msgbox.c |
---|
80,7 → 80,7 |
// load sample file |
//int res, len; |
//res = editor_openfile(ed, "/rd/1/boardlog.txt", &len); |
//res = editor_openfile(ed, "/sys/boardlog.txt", &len); |
//debug_board_printf("loaded sample file err=%d, len=%d\n", res, len); |
//adding sample text @cursor |
/contrib/C_Layer/INCLUDE/kolibri_colordialog.h |
---|
2,7 → 2,7 |
#define KOLIBRI_COLORIALOG_H |
char cd_com_area_name[] = "FFFFFFFF_color_dialog"; |
char cd_start_path[] = "/rd/1/colrdial"; |
char cd_start_path[] = "/sys/colrdial"; |
typedef struct __attribute__ ((__packed__)) { |
unsigned int type; |
/contrib/C_Layer/INCLUDE/kolibri_filebrowse.h |
---|
208,8 → 208,8 |
inline filebrowser* kolibri_filebrowser_def(filebrowser* fb, uint32_t x_w, uint32_t y_h) |
{ |
// load default icons and icon association |
char icons_ini[] = "/rd/1/File managers/icons.ini"; |
char icons16img[] = "/rd/1/File managers/z_icons.png"; |
char icons_ini[] = "/sys/File managers/icons.ini"; |
char icons16img[] = "/sys/File managers/z_icons.png"; |
return kolibri_filebrowser(fb, x_w, y_h, X_Y(9, 16), X_Y(16, 16), icon_raw_area, icon_palette_raw, icon_res, |
ini_file_start, ini_file_end, |
/contrib/C_Layer/INCLUDE/kolibri_opendialog.h |
---|
2,8 → 2,8 |
#define KOLIBRI_OPENDIALOG_H |
char sz_com_area_name[] = "FFFFFFFF_open_dialog"; |
char sz_dir_default_path[] = "/rd/1"; |
char sz_start_path[] = "/rd/1/File managers/opendial"; |
char sz_dir_default_path[] = "/sys"; |
char sz_start_path[] = "/sys/File managers/opendial"; |
enum open_dialog_mode { |
OPEN, |