|
@ -481,6 +481,8 @@ bool UIControler::movePicOutOfScreen(uint8_t pid, uint8_t bid) { |
|
|
void UIControler::popFullKeyBoard(uint8_t fromPid, uint8_t fromBid, int limitLength, const char* initval) { |
|
|
void UIControler::popFullKeyBoard(uint8_t fromPid, uint8_t fromBid, int limitLength, const char* initval) { |
|
|
zlock_guard lg(m_cmdlock); |
|
|
zlock_guard lg(m_cmdlock); |
|
|
|
|
|
|
|
|
|
|
|
UIStateMgr::ins()->setKeyboardFrom(fromPid, fromBid); |
|
|
|
|
|
|
|
|
sendcmd("p[%d].b[%d].val=%d", pg_keybdAP, ob_keybdAP_loadpageid, fromPid); |
|
|
sendcmd("p[%d].b[%d].val=%d", pg_keybdAP, ob_keybdAP_loadpageid, fromPid); |
|
|
sendcmd("p[%d].b[%d].val=%d", pg_keybdAP, ob_keybdAP_loadcmpid, fromBid); |
|
|
sendcmd("p[%d].b[%d].val=%d", pg_keybdAP, ob_keybdAP_loadcmpid, fromBid); |
|
|
sendcmd("p[%d].b[%d].txt=\"%s\"", pg_keybdAP, ob_keybdAP_show, initval); |
|
|
sendcmd("p[%d].b[%d].txt=\"%s\"", pg_keybdAP, ob_keybdAP_show, initval); |
|
@ -491,6 +493,7 @@ void UIControler::popFullKeyBoard(uint8_t fromPid, uint8_t fromBid, int limitLen |
|
|
|
|
|
|
|
|
void UIControler::popPasswdKeyBoard(uint8_t fromPid, uint8_t fromBid, int limitLength) { |
|
|
void UIControler::popPasswdKeyBoard(uint8_t fromPid, uint8_t fromBid, int limitLength) { |
|
|
zlock_guard lg(m_cmdlock); |
|
|
zlock_guard lg(m_cmdlock); |
|
|
|
|
|
UIStateMgr::ins()->setKeyboardFrom(fromPid, fromBid); |
|
|
|
|
|
|
|
|
sendcmd("p[%d].b[%d].val=%d", pg_keyPasswd, ob_keyPasswd_loadpageid, fromPid); |
|
|
sendcmd("p[%d].b[%d].val=%d", pg_keyPasswd, ob_keyPasswd_loadpageid, fromPid); |
|
|
sendcmd("p[%d].b[%d].val=%d", pg_keyPasswd, ob_keyPasswd_loadcmpid, fromBid); |
|
|
sendcmd("p[%d].b[%d].val=%d", pg_keyPasswd, ob_keyPasswd_loadcmpid, fromBid); |
|
@ -502,6 +505,7 @@ void UIControler::popPasswdKeyBoard(uint8_t fromPid, uint8_t fromBid, int limitL |
|
|
|
|
|
|
|
|
void UIControler::popNumKeyBoard(uint8_t fromPid, uint8_t fromBid, int limitLength, const char* initval, ...) { |
|
|
void UIControler::popNumKeyBoard(uint8_t fromPid, uint8_t fromBid, int limitLength, const char* initval, ...) { |
|
|
zlock_guard lg(m_cmdlock); |
|
|
zlock_guard lg(m_cmdlock); |
|
|
|
|
|
UIStateMgr::ins()->setKeyboardFrom(fromPid, fromBid); |
|
|
|
|
|
|
|
|
static char buf[60]; |
|
|
static char buf[60]; |
|
|
va_list args; |
|
|
va_list args; |
|
@ -519,6 +523,7 @@ void UIControler::popNumKeyBoard(uint8_t fromPid, uint8_t fromBid, int limitLeng |
|
|
|
|
|
|
|
|
void UIControler::popKeyBMutSel(uint8_t fromPid, uint8_t fromBid, int selectvalindex, const char** selectvals) { |
|
|
void UIControler::popKeyBMutSel(uint8_t fromPid, uint8_t fromBid, int selectvalindex, const char** selectvals) { |
|
|
zlock_guard lg(m_cmdlock); |
|
|
zlock_guard lg(m_cmdlock); |
|
|
|
|
|
|
|
|
static char contentbus[128]; |
|
|
static char contentbus[128]; |
|
|
memset(contentbus, 0, sizeof(contentbus)); |
|
|
memset(contentbus, 0, sizeof(contentbus)); |
|
|
for (int i = 0;; i++) { |
|
|
for (int i = 0;; i++) { |
|
@ -535,6 +540,8 @@ void UIControler::popKeyBMutSel(uint8_t fromPid, uint8_t fromBid, int selectvali |
|
|
|
|
|
|
|
|
void UIControler::popKeyBMutSel(uint8_t fromPid, uint8_t fromBid, int selectvalindex, const char* selectvals) { |
|
|
void UIControler::popKeyBMutSel(uint8_t fromPid, uint8_t fromBid, int selectvalindex, const char* selectvals) { |
|
|
zlock_guard lg(m_cmdlock); |
|
|
zlock_guard lg(m_cmdlock); |
|
|
|
|
|
UIStateMgr::ins()->setKeyboardFrom(fromPid, fromBid); |
|
|
|
|
|
|
|
|
sendcmd("p[%d].b[%d].val=%d", pg_keybMutSel, ob_keybMutSel_loadpageid, fromPid); |
|
|
sendcmd("p[%d].b[%d].val=%d", pg_keybMutSel, ob_keybMutSel_loadpageid, fromPid); |
|
|
sendcmd("p[%d].b[%d].val=%d", pg_keybMutSel, ob_keybMutSel_loadcmpid, fromBid); |
|
|
sendcmd("p[%d].b[%d].val=%d", pg_keybMutSel, ob_keybMutSel_loadcmpid, fromBid); |
|
|
sendcmd("p[%d].b[%d].val=%d", pg_keybMutSel, ob_keybMutSel_ctent, selectvalindex); |
|
|
sendcmd("p[%d].b[%d].val=%d", pg_keybMutSel, ob_keybMutSel_ctent, selectvalindex); |
|
@ -547,6 +554,7 @@ void UIControler::popKeyBMutSel(uint8_t fromPid, uint8_t fromBid, int selectvali |
|
|
void UIControler::popKeyBMutSelFix(uint8_t fromPid, uint8_t fromBid, int selectvalindex, const char* keyboardName, const char** selectvals) { |
|
|
void UIControler::popKeyBMutSelFix(uint8_t fromPid, uint8_t fromBid, int selectvalindex, const char* keyboardName, const char** selectvals) { |
|
|
int selectValsNum = 0; |
|
|
int selectValsNum = 0; |
|
|
uint8_t pgNum = pg_keybMutSelFix; |
|
|
uint8_t pgNum = pg_keybMutSelFix; |
|
|
|
|
|
UIStateMgr::ins()->setKeyboardFrom(fromPid, fromBid); |
|
|
|
|
|
|
|
|
static uint8_t selbid_table[] = { |
|
|
static uint8_t selbid_table[] = { |
|
|
ob_keybMutSelFix_b0, //
|
|
|
ob_keybMutSelFix_b0, //
|
|
|