static void add_dlgbut_cb(struct guiObject *obj, const void *data) { (void)obj; if(!data) { PAGE_PushByID(PAGEID_LOADSAVE, LOAD_LAYOUT); } }
void ppmin_press_cb(guiObject_t *obj, void *data) { (void)data; (void)obj; PAGE_PushByID(PAGEID_TRAINCFG, 0); return; }
static void menu_press_cb(guiObject_t *obj, s8 press_type, const void *data) { (void)obj; if (press_type == -1) { long i = (long)data; PAGE_PushByID(i, 0); } }
void proto_press_cb(guiObject_t *obj, void *data) { (void)data; (void)obj; if(PROTOCOL_GetOptions()) { PAGE_PushByID(PAGEID_PROTOCFG, 0); } }
void type_press_cb(guiObject_t *obj, void *data) { (void)data; (void)obj; if(Model.type == 0) { PAGE_PushByID(PAGEID_TYPECFG, 0); } }
static void add_dlgbut_cb(struct guiObject *obj, const void *data) { (void)obj; if(!data) { if (OBJ_IS_USED(&gui->dialog)) GUI_RemoveObj((guiObject_t *)&gui->dialog); PAGE_PushByID(PAGEID_LOADSAVE, LOAD_LAYOUT); } }
static unsigned _action_cb(u32 button, unsigned flags, void *data) { (void)data; if (CHAN_ButtonIsPressed(button, BUT_ENTER) &&(flags & BUTTON_LONGPRESS)) { PAGE_PushByID(PAGEID_LAYOUT, 0); return 1; } return default_button_action_cb(button, flags, data); }
void reset_timerperm_cb(guiObject_t *obj, const void *data) { long index = (long)data & 0xff; if (index & 0x80) { // set PAGE_PushByID(PAGEID_SETTIMER, index & 0x7f); } else { // reset PAGE_ShowResetPermTimerDialog(obj,(void *)(index & 0x7f)); } }
static void press_cb(guiObject_t *obj, const void *data) { (void)obj; cp->enable = (long)data; #if HAS_RTC if (cp->enable == SET_CLOCK) { PAGE_PushByID(PAGEID_RTC, 0); return; } #endif #if HAS_TOUCH if (cp->enable == CALIB_TOUCH) PAGE_PushByID(PAGEID_TOUCH, 0); else if (cp->enable == CALIB_STICK) #endif { calibrate_state = CALI_CENTER; // bug fix: must reset state before calibrating PAGE_PushByID(PAGEID_CALIB, 0); } }
void reset_timerperm_cb(guiObject_t *obj, const void *data) { long index = (long)data & 0xff; // don't include this in Devo7e due to memory restrictions #if HAS_PERMANENT_TIMER if (index & 0x80) { // set current_selected = GUI_ScrollableGetObjRowOffset(&gui->scrollable, GUI_GetSelected()); PAGE_PushByID(PAGEID_SETTIMER, index & 0x7f); } else // reset #endif PAGE_ShowResetPermTimerDialog(obj,(void *)(index & 0x7f)); }
static void file_press_cb(guiObject_t *obj, void *data) { (void)obj; (void)data; if (mp->file_state == 3) { CONFIG_ResetModel(); CONFIG_SaveModelIfNeeded(); GUI_RedrawAllObjects(); } else { PAGE_PushByID(PAGEID_LOADSAVE, mp->file_state); } }
static unsigned _action_cb(u32 button, unsigned flags, void *data) { u8 i; if ((flags & BUTTON_PRESS) && CHAN_ButtonIsPressed(button, BUT_ENTER)) { //see pagelist.h for mapping of 'page' to menu_id PAGE_PushByID(PAGEID_MENU, 0); } else if ((flags & BUTTON_PRESS) && CHAN_ButtonIsPressed(button, BUT_RIGHT)) { for ( i=0; i< NUM_TIMERS; i++) TIMER_StartStop(i); } else if ((flags & BUTTON_PRESS) && CHAN_ButtonIsPressed(button, BUT_LEFT)) { for ( i=0; i< NUM_TIMERS; i++) TIMER_Reset(i); } else if (! PAGE_QuickPage(button, flags, data)) { MIXER_UpdateTrim(button, flags, data); } return 1; }
static void lang_select_cb(guiObject_t *obj, const void *data) { (void)data; (void)obj; PAGE_PushByID(PAGEID_LANGUAGE, 0); }
static void video_settings_cb(guiObject_t *obj, const void *data) { (void)obj; (void)data; PAGE_PushByID(PAGEID_VIDEOCFG, 0); }
static void changeicon_cb(guiObject_t *obj, const void *data) { (void)obj; (void)data; PAGE_PushByID(PAGEID_LOADSAVE, LOAD_ICON); }
static void menu_press_cb(guiObject_t *obj, const void *data) { (void)obj; long i = (long)data; PAGE_PushByID(i, 0); }