Exemplo n.º 1
0
	MENUITEM_BOOLEAN(0, LP_WORD(L_I_CMODES_400PLUS),  &cmodes_config.recall_400plus,  NULL),
	MENUITEM_BOOLEAN(0, LP_WORD(L_I_CMODES_ORDERING), &cmodes_config.recall_ordering, NULL),
	MENUITEM_BOOLEAN(0, LP_WORD(L_I_CMODES_SETTINGS), &cmodes_config.recall_settings, NULL),
	MENUITEM_BOOLEAN(0, LP_WORD(L_I_CMODES_IMAGE),    &cmodes_config.recall_image,    NULL),
	MENUITEM_BOOLEAN(0, LP_WORD(L_I_CMODES_CFN),      &cmodes_config.recall_cfn,      NULL),
};

menuitem_t menus_items[] = {
	MENUITEM_BOOLEAN(0, LP_WORD(L_I_WRAP_MENUS),    &settings.menu_wrap,      NULL),
	MENUITEM_BOOLEAN(0, LP_WORD(L_I_NAVIGATE_MAIN), &settings.menu_navmain,   NULL),
	MENUITEM_BOOLEAN(0, LP_WORD(L_I_ENTER_MAIN),    &settings.menu_entermain, NULL),
	MENUITEM_BOOLEAN(0, LP_WORD(L_I_AUTOSAVE),      &settings.menu_autosave,  NULL),
};

menuitem_t qexp_items[] = {
	MENUITEM_TV(    0, LP_WORD(L_I_QEXP_MINTV),  &settings.qexp_mintv,  NULL),
	MENUITEM_WEIGTH(0, LP_WORD(L_I_QEXP_WEIGTH), &settings.qexp_weight, NULL),
};

menuitem_t pages_items[] = {
	MENUITEM_INFO(0, LP_WORD(L_P_PARAMS),     NULL),
	MENUITEM_INFO(0, LP_WORD(L_P_SCRIPTS),    NULL),
	MENUITEM_INFO(0, LP_WORD(L_P_INFO),       NULL),
	MENUITEM_INFO(0, LP_WORD(L_P_SETTINGS),   NULL),
	MENUITEM_INFO(0, LP_WORD(L_P_CMODES),     NULL),
};

menuitem_t restore_items[] = {
	MENUITEM_LAUNCH(0, LP_WORD(L_I_RESTORE_SETTINGS), menu_restore_settings),
	MENUITEM_LAUNCH(0, LP_WORD(L_I_RESTORE_CMODES),   menu_restore_cmodes  ),
	MENUITEM_LAUNCH(0, LP_WORD(L_I_DELETE_CMODES),    menu_delete_cmodes   ),
Exemplo n.º 2
0
void menu_params_apply_color_temp         (const menuitem_t *item);
void menu_params_apply_named_temp         (const menuitem_t *item);
void menu_params_apply_cf_emit_aux        (const menuitem_t *item);
void menu_params_apply_cf_mirror_up_lock  (const menuitem_t *item);
void menu_params_apply_cf_flash_sync_rear (const menuitem_t *item);
void menu_params_apply_cf_safety_shift    (const menuitem_t *item);
void menu_params_apply_remote_enable      (const menuitem_t *item);
void menu_params_apply_remote_delay       (const menuitem_t *item);

void menu_params_rename (menu_t *menu);

menuitem_t autoiso_items[] = {
	MENUITEM_BOOLEAN(0, LP_WORD(L_I_AUTOISO_ENABLE), &settings.autoiso_enable,  NULL),
	MENUITEM_BASEISO(0, LP_WORD(L_I_AUTOISO_MINISO), &settings.autoiso_miniso,  menu_params_apply_autoiso_miniso),
	MENUITEM_BASEISO(0, LP_WORD(L_I_AUTOISO_MAXISO), &settings.autoiso_maxiso,  menu_params_apply_autoiso_maxiso),
	MENUITEM_TV     (0, LP_WORD(L_I_AUTOISO_MINTV),  &settings.autoiso_mintv,   NULL),
	MENUITEM_EVEAEB (0, LP_WORD(L_I_AUTOISO_MAXAV),  &settings.autoiso_maxav,   NULL),
	MENUITEM_BOOLEAN(0, LP_WORD(L_I_AUTOISO_RELAX),  &settings.autoiso_relaxed, NULL),
};

menupage_t autoiso_page = {
	name     : LP_WORD(L_S_AUTOISO),
	items    : LIST(autoiso_items),
	actions  : {
		[MENU_EVENT_AV] = menu_return,
	}
};

menuitem_t named_temps_items[] = {
	MENUITEM_NAMEDCT( 0, named_temps.names[ 0], &named_temps.temps[ 0], menu_params_apply_named_temp),
	MENUITEM_NAMEDCT( 1, named_temps.names[ 1], &named_temps.temps[ 1], menu_params_apply_named_temp),