|
|
@ -46,37 +46,43 @@ class MuAcidType : public IPageProcesser { |
|
|
|
virtual void onBackKey() override { UIControler::ins()->chpage(pg_navi, true); }; |
|
|
|
|
|
|
|
virtual void onChangePageEvent() override {}; |
|
|
|
|
|
|
|
void updateAcidName(int bid, int id, const char* text) { |
|
|
|
AcidNameDao::updateAcidName(id, text); |
|
|
|
setText(bid, AcidNameDao::getAcidName(id)); |
|
|
|
} |
|
|
|
|
|
|
|
virtual void onInputFieldContentChange(uint8_t bid, uint8_t slecId, const char* text) { |
|
|
|
if (bid == ob_muAcidType_t1) { |
|
|
|
AcidNameDao::updateAcidName(1 - 1, text); |
|
|
|
updateAcidName(bid, 1 - 1, text); |
|
|
|
} else if (bid == ob_muAcidType_t2) { |
|
|
|
AcidNameDao::updateAcidName(2 - 1, text); |
|
|
|
updateAcidName(bid, 2 - 1, text); |
|
|
|
} else if (bid == ob_muAcidType_t3) { |
|
|
|
AcidNameDao::updateAcidName(3 - 1, text); |
|
|
|
updateAcidName(bid, 3 - 1, text); |
|
|
|
} else if (bid == ob_muAcidType_t4) { |
|
|
|
AcidNameDao::updateAcidName(4 - 1, text); |
|
|
|
updateAcidName(bid, 4 - 1, text); |
|
|
|
} else if (bid == ob_muAcidType_t5) { |
|
|
|
AcidNameDao::updateAcidName(5 - 1, text); |
|
|
|
updateAcidName(bid, 5 - 1, text); |
|
|
|
} else if (bid == ob_muAcidType_t6) { |
|
|
|
AcidNameDao::updateAcidName(6 - 1, text); |
|
|
|
updateAcidName(bid, 6 - 1, text); |
|
|
|
} else if (bid == ob_muAcidType_t7) { |
|
|
|
AcidNameDao::updateAcidName(7 - 1, text); |
|
|
|
updateAcidName(bid, 7 - 1, text); |
|
|
|
} else if (bid == ob_muAcidType_t8) { |
|
|
|
AcidNameDao::updateAcidName(8 - 1, text); |
|
|
|
updateAcidName(bid, 8 - 1, text); |
|
|
|
} else if (bid == ob_muAcidType_t9) { |
|
|
|
AcidNameDao::updateAcidName(9 - 1, text); |
|
|
|
updateAcidName(bid, 9 - 1, text); |
|
|
|
} else if (bid == ob_muAcidType_t10) { |
|
|
|
AcidNameDao::updateAcidName(10 - 1, text); |
|
|
|
updateAcidName(bid, 10 - 1, text); |
|
|
|
} else if (bid == ob_muAcidType_t11) { |
|
|
|
AcidNameDao::updateAcidName(11 - 1, text); |
|
|
|
updateAcidName(bid, 11 - 1, text); |
|
|
|
} else if (bid == ob_muAcidType_t12) { |
|
|
|
AcidNameDao::updateAcidName(12 - 1, text); |
|
|
|
updateAcidName(bid, 12 - 1, text); |
|
|
|
} else if (bid == ob_muAcidType_t13) { |
|
|
|
AcidNameDao::updateAcidName(13 - 1, text); |
|
|
|
updateAcidName(bid, 13 - 1, text); |
|
|
|
} else if (bid == ob_muAcidType_t14) { |
|
|
|
AcidNameDao::updateAcidName(14 - 1, text); |
|
|
|
updateAcidName(bid, 14 - 1, text); |
|
|
|
} else if (bid == ob_muAcidType_t15) { |
|
|
|
AcidNameDao::updateAcidName(15 - 1, text); |
|
|
|
updateAcidName(bid, 15 - 1, text); |
|
|
|
} |
|
|
|
}; |
|
|
|
virtual void onClickRelease(uint8_t bid, uint8_t val, const char* text) override { |
|
|
|