Changeset 1350
- Timestamp:
- 10/01/11 12:20:02 (20 months ago)
- Location:
- trunk
- Files:
-
- 2 added
- 8 edited
-
CHDK/LANG/english.lng (modified) (1 diff)
-
core/Makefile (modified) (1 diff)
-
core/conf.c (modified) (3 diffs)
-
core/gui.c (modified) (4 diffs)
-
core/gui_lang.c (modified) (1 diff)
-
core/gui_lang.h (modified) (1 diff)
-
core/gui_osd.c (modified) (3 diffs)
-
core/gui_usb.c (added)
-
core/gui_usb.h (added)
-
include/conf.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/CHDK/LANG/english.lng
r1338 r1350 601 601 463 "Video AE Controls" 602 602 464 "<Alt> Shortcut Buttons" 603 465 "USB Remote" 604 466 "Show USB Remote Status" -
trunk/core/Makefile
r1033 r1350 75 75 gui_fselect.o gui.o kbd.o action_stack.o conf.o \ 76 76 histogram.o gui_batt.o gui_space.o gui_osd.o raw.o \ 77 gui_ lang.o gui_mpopup.o gui_grid.o raw_merge.o \77 gui_usb.o gui_lang.o gui_mpopup.o gui_grid.o raw_merge.o \ 78 78 levent.o shot_histogram.o dng.o bitvector.o console.o $(OPT_OBJS) 79 79 -
trunk/core/conf.c
r1348 r1350 57 57 static int def_ubasic_vars[SCRIPT_NUM_PARAMS] = {0}; 58 58 static int def_batt_volts_max, def_batt_volts_min; 59 static OSD_pos def_histo_pos, def_dof_pos, def_batt_icon_pos, def_ space_icon_pos, def_space_hor_pos, def_space_ver_pos, def_batt_txt_pos, def_space_txt_pos,59 static OSD_pos def_histo_pos, def_dof_pos, def_batt_icon_pos, def_usb_info_pos, def_space_icon_pos, def_space_hor_pos, def_space_ver_pos, def_batt_txt_pos, def_space_txt_pos, 60 60 def_mode_state_pos, def_mode_raw_pos, def_mode_video_pos, def_mode_ev_pos, def_values_pos, def_clock_pos, def_ev_video_pos, def_temp_pos; 61 61 static int def_user_menu_vars[USER_MENU_ITEMS] = {0}; … … 406 406 CONF_INFO(244, conf.touchscreen_disable_video_controls, CONF_DEF_VALUE, i:0, NULL), 407 407 CONF_INFO(245, conf.touchscreen_disable_shortcut_controls, CONF_DEF_VALUE, i:0, NULL), 408 }; 408 409 // USB Icon enable & position 410 CONF_INFO(246, conf.usb_info_enable, CONF_DEF_VALUE, i:0, NULL), 411 CONF_INFO(247, conf.usb_info_pos, CONF_DEF_PTR, ptr:&def_usb_info_pos, NULL), 412 413 }; 409 414 #define CONF_NUM (sizeof(conf_info)/sizeof(conf_info[0])) 410 415 … … 523 528 def_batt_txt_pos.x=178; 524 529 def_batt_txt_pos.y=1*FONT_HEIGHT; 530 def_usb_info_pos.x = 95; 531 def_usb_info_pos.y = 0; 525 532 def_space_icon_pos.x = vid_get_bitmap_screen_width()-100; 526 533 def_space_icon_pos.y = 0; -
trunk/core/gui.c
r1349 r1350 32 32 #include "gui_fselect.h" 33 33 #include "gui_batt.h" 34 #include "gui_usb.h" 34 35 #include "gui_space.h" 35 36 #include "gui_osd.h" … … 764 765 static const char* gui_temp_mode_modes[] = { "Off", "Optical", "CCD", "Battery", "all" }; 765 766 static const char* gui_hide_osd_modes[] = { "Don't", "In Playback", "On Disp Press", "Both"}; 767 static const char* gui_show_usb_info_modes[] = { "Off", "Icon", "Text"}; 766 768 static CMenuItem osd_submenu_items[] = { 767 769 MENU_ITEM(0x5c,LANG_MENU_OSD_SHOW, MENUITEM_BOOL, &conf.show_osd, 0 ), … … 776 778 MENU_ENUM2(0x5f,LANG_MENU_OSD_SHOW_TEMP, &conf.show_temp, gui_temp_mode_modes ), 777 779 MENU_ITEM(0x59,LANG_MENU_OSD_TEMP_FAHRENHEIT, MENUITEM_BOOL, &conf.temperature_unit, 0 ), 780 MENU_ENUM2(0x71,LANG_MENU_USB_SHOW_INFO, &conf.usb_info_enable, gui_show_usb_info_modes ), 778 781 MENU_ITEM(0x72,LANG_MENU_OSD_LAYOUT_EDITOR, MENUITEM_PROC, gui_draw_osd_le, 0 ), 779 782 MENU_ITEM(0x2f,LANG_MENU_OSD_GRID_PARAMS, MENUITEM_SUBMENU, &grid_submenu, 0 ), … … 2515 2518 gui_batt_draw_osd(); 2516 2519 gui_space_draw_osd(); 2520 gui_usb_draw_osd(); 2517 2521 if (conf.fast_ev && !mode_video && (m&MODE_MASK) == MODE_REC ) gui_osd_draw_ev(); 2518 2522 } -
trunk/core/gui_lang.c
r1338 r1350 588 588 "463 \"Video AE Controls\"\n" 589 589 "464 \"<Alt> Shortcut Buttons\"\n" 590 591 // USB Remote icon 592 "465 \"USB Remote\"\n" 593 "466 \"Show USB Remote Status\"\n" 590 594 ; 591 595 -
trunk/core/gui_lang.h
r1338 r1350 577 577 #define LANG_MENU_TS_VIDEO_AE_DISABLE 463 578 578 #define LANG_MENU_TS_ALT_SHORTCUTS_DISABLE 464 579 580 // USB remote icon 581 #define LANG_OSD_LAYOUT_EDITOR_USB_INFO 465 582 #define LANG_MENU_USB_SHOW_INFO 466 579 583 //------------------------------------------------------------------- 580 584 581 #define GUI_LANG_ITEMS 46 4585 #define GUI_LANG_ITEMS 466 582 586 583 587 //------------------------------------------------------------------- -
trunk/core/gui_osd.c
r1245 r1350 11 11 #include "gui_lang.h" 12 12 #include "gui_batt.h" 13 #include "gui_usb.h" 13 14 #include "gui_space.h" 14 15 #include "gui_grid.h" … … 41 42 {LANG_OSD_LAYOUT_EDITOR_EV_VIDEO, &conf.ev_video_pos, {70,24}}, 42 43 #endif 44 {LANG_OSD_LAYOUT_EDITOR_USB_INFO, &conf.usb_info_pos, {31, 14}}, 43 45 {0} 44 46 }; … … 119 121 gui_osd_draw_ev_video(1); 120 122 #endif 123 gui_usb_draw_osd(); 121 124 for (i=1; i<=2; ++i) { 122 125 draw_rect((osd[curr_item].pos->x>=i)?osd[curr_item].pos->x-i:0, (osd[curr_item].pos->y>=i)?osd[curr_item].pos->y-i:0, -
trunk/include/conf.h
r1348 r1350 126 126 OSD_pos temp_pos; 127 127 OSD_pos ev_video_pos; 128 OSD_pos usb_info_pos; 128 129 129 130 color histo_color; … … 298 299 int touchscreen_disable_video_controls; 299 300 int touchscreen_disable_shortcut_controls; 301 302 // Enable USB icon 303 int usb_info_enable; 300 304 } Conf; 301 305
Note: See TracChangeset
for help on using the changeset viewer.