import QtQuick 2.0 import Label 2.0 import "../../../../eventsList.js" as EventsList Item{ property string style: systemCtrl.style //ADD #F0117 2016/11/30 ld begin property int iLanguage: systemCtrl.iLanguage //ADD #F0117 2016/11/30 ld end id: root //width:94*12 //height:78*5 width:960 height: 400 MouseArea { anchors.fill: parent } property bool newline: false property bool iSerach: true property bool iConfirm: false property bool confirmBtFlag: true property bool maximumState :false property string str : "" property int maximumLength property bool isSmall : false property bool isPinyin : false//true //FOD by lishunan for Design Change 20181008 property bool isZifu : false property int iQiehuan : 2//1 property bool iPassword : false property bool iNum : false property bool isVientm :(0== systemCtrl.checkAppCommCodingData(EventsList.HMI_CODING_SALE_AREA)?true:false) //ADD #F0167 2017/1/10 liduo begin property string pinYinInfo: "" //ADD #F0167 2017/1/10 liduo end property int ishowStatus : 1 //ADD #F0167 2017/1/10 liduo begin property int ishdwt : 0 //ADD #F0167 2017/1/10 liduo end property string searchInfo: "" property alias searchEnable: search.enabled property alias deleteEnable: deleteKey.enabled property int iType : 2 property int hanziindex : 1 property string hanziinfo : "" property QtObject listtmp property bool bDeleteKeyLongPress: false property int deleteKeyConsequentPressTime: 200 //ADD by lishunan for #315318 start property bool isHighFrequencyClick: false property string resPrefix:"english_"//isVientm?"viet_":"Russia_" //ADD by lishunan for #315318 end property bool runningFlag_123: false//ADD by lishunan for #340658 signal clickspell(string spell) signal searchStart() signal handwriteborad() signal closeKeyBoardSignal() signal delKeyPressed() signal delKeyLongPressed() //ADD mengyufeng 20170515 Connections{ target: systemCtrl onPinyinAltListChanged: { if(root.visible) { listView.model = systemCtrl.pinyinAlternateList listView.contentX = 0 listView.currentIndex = 0 } } onPinyinPredListChanged: { if(root.visible) { listView.model = systemCtrl.pinyinPredictList listView.contentX = 0 listView.currentIndex = 0 } } } Component.onCompleted: { // systemCtrl.pinyinInit() //DEL by lishunan for 329338 start // systemCtrl.hciInit() //DEL by lishunan for 329338 end if(iPassword) { iType=2 isSmall=true iQiehuan=2 isPinyin=false } else if(iNum) { iType=3 isPinyin=false } if(iSerach) { iConfirm=false } if(iConfirm) { iSerach=false } } onVisibleChanged: { if(visible) { //systemCtrl.hciInit() //systemCtrl.hciStartSession() confirmBtFlag=true searchInfo = "" listView.model = listtmp systemCtrl.kdRulesVisibleChanged(false)//ADD #158132 2017/3/21 ld //ADD 2017/3/22 ld if(isZifu ){ if(iType==4){ shift.labelText="123" }else if(iType==3){ shift.labelText="#+=" } } systemCtrl.sessionStart(resPrefix) } else { //systemCtrl.hciStopSession() systemCtrl.sessionEnd() listView.model = listtmp systemCtrl.kdRulesVisibleChanged(true)//ADD #158132 2017/3/21 ld } } onIPasswordChanged: { if(iPassword) { iType=2 iQiehuan=2 isPinyin=false //FOD #F0117 2016/11/30 ld begin pinyinlabel.visible=false //russialabel.visible=true //ADD #F0167 2017/1/10 liduo begin wirte.visible=false //ADD #F0167 2017/1/10 liduo end //FOD #F0117 2016/11/30 ld end isSmall=true } } onINumChanged: { if(iNum) { iType=3 isPinyin=false } } onISerachChanged: { if(iSerach) { iConfirm=false } else { iConfirm=true } } onIConfirmChanged: { if(iConfirm) { iSerach=false } else { iSerach=true } } Component.onDestruction: { systemCtrl.pinyinRelease() //Loader.sourse = "" // systemCtrl.hciRelease() } onSearchInfoChanged:{ //listView.contentX = 0 if(root.visible) { if(searchInfo!="") { // if(isPinyin) // { listView.model = listtmp systemCtrl.setHanZiListModel(searchInfo,resPrefix,iType) // } // else // { // searchInfo="" // } } } } //ADD by lishunan for #315318 start Timer{ id:highFrequencyClick_Delay interval: 500 running: false onTriggered: { isHighFrequencyClick = false } } //ADD by lishunan for #315318 end Timer{ id: selecthanzi_timer interval: 1 onTriggered: { listView.model = listtmp systemCtrl.setSelectedHanZiIndex(hanziindex, hanziinfo) } } Item { id:keyBoard x:0 width: 960 height: 400 Column{ id: keyboardColumn Item{ id:keyRowItem width: 960 height: 400 //ADD by lishunan For KeyBoard start /* Row { id:firstRow_Russia x:1 visible: false anchors{top:parent.top;topMargin:0;horizontalCenter: parent.Left} //ADD by lishunan for KB Change start spacing: 2 Repeater{ model: { switch(iType) { case 5: ["Ё","Х","Ъ","Ж","Э","Б","Ю"] break; case 6: ["ё","х","ъ","ж","э","б","ю"] break; } } //ADD by lishunan for KB Change start HMIKeyBtn { id:firstRowKey_Russ labelText:qsTr(modelData); labelSize:30 cursize: 1 labelPixelSize:28 onPressed: { if(!isPinyin) { str = modelData; clickspell(str); searchInfo = searchInfo + modelData; ishowStatus=1 } else if(!maximumState) { str = modelData; clickspell(str); searchInfo = searchInfo + modelData; ishowStatus=1 } } //TBD } //ADD by lishunan for KB Change end } Image { id:blank //x:673 width: 286 source:("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_W286"+style) HMIKeyBtn { id:closeKeyboard_Russ x:192//865-673 height: 78 width:94 //anchors.horizontalCenter: blank.right btnImg:closeKeyboard_Russ.pressed?("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_P"+style):"" Image { id: closeKeyboardicon_Russ anchors.horizontalCenter: closeKeyboard_Russ.horizontalCenter x:28 y:28 source: "qrc:MATERIAL/MATERIAL_ARROW_RETRACT"+style } //ADD F0032 2016/10/12 liduo end onClicked: { closeKeyBoardSignal(); if(searchInfo!=""){ systemCtrl.setsencodkeypress(2) } listView.model = listtmp } } } //ADD by lishunan for KB Change end } //ADD by lishunan For KeyBoard end Row{ id:firstRow_Vietnam //visible: isVientm?true:false spacing: 2 anchors{top:parent.top;topMargin:0;horizontalCenter: parent.Left} Repeater{ model: { switch(iType){ case 7://cap ["Ă","Â","Ê","Ô","̀","́","̃","̉","̣","Đ","Ư","Ơ"] break; case 8://lower ["ă","â","ê","ô","̀","́","̃","̉","̣","đ","ư","ơ"] break; } } HMIKeyBtn{ id:firstRow_Vient; width: 72 labelText:qsTr(modelData); labelSize:30 cursize: 1 labelPixelSize:28 btnImg:(7==iType||8==iType)?(firstRow_Vient.pressed?("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_W72_P"+style):("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_W72"+style)) :(firstRow_Vient.pressed?("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_P"+style):("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON"+style)) onPressed: { str = modelData; clickspell(str); searchInfo = searchInfo + modelData; ishowStatus=1 } } } HMIKeyBtn { id:closeKeyboard_Vie x:888 width: 72 visible: (7==iType||8==iType)?true:false btnImg:(7==iType||8==iType)?(closeKeyboard_Vie.pressed?("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_W72_P"+style):("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_W72"+style)) :(closeKeyboard_Vie.pressed?("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_P"+style):("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON"+style)) Image { id: closeKeyboardicon_Vientam anchors.horizontalCenter: closeKeyboard_Vie.horizontalCenter y:28 source: "qrc:MATERIAL/MATERIAL_ARROW_RETRACT"+style } onClicked: { console.log("LSN =---=-=-=-=-=-=-=-closeKeyboard_Vie is onClicked!!!!!!") closeKeyBoardSignal(); if(searchInfo!=""){//ADD 2017/3/15 ld systemCtrl.setsencodkeypress(2) } listView.model = listtmp } } } Image { id: yinfu_1 visible: (7==iType||8==iType) x:318 y:33 source: "image.png" } Image { id: yinfu_2 visible: (7==iType||8==iType) x:391 y:33 source: "image.png" } Image { id: yinfu_3 visible: (7==iType||8==iType) x:461 y:33 source: "image.png" } Image { id: yinfu_4 visible: (7==iType||8==iType) x:541 y:33 source: "image.png" } Image { id: yinfu_5 visible: (7==iType||8==iType) x:611 y:33 source: "image.png" } */ //FOD by lishunan For KeyBoard start Row{ id:firstRow_English anchors{top:parent.top;topMargin:0;horizontalCenter: parent.horizontalCenter} //visible: isVientm?false:true Image { width: 96*9 source:("qrc:MATERIAL/MATERIAL_CANDIDATE-KEY_BG"+style) ListView { id:listView width:96*9 height: 78 flickableDirection:Flickable.HorizontalFlick clip: true snapMode:ListView.SnapToItem orientation:ListView.Horizontal model:systemCtrl.pinyinAlternateList highlightFollowsCurrentItem:true cacheBuffer: listView.width*4 delegate: recipeDelegate spacing: 2 } Component{ id: recipeDelegate Item{ id: delegateImgMain width: _testLabelbg.width height: _testLabelbg.height Item { id: _testLabelbg //FOD #140699 2017/1/10 liduo begin width: _testLabel.contentWidth+64 //FOD #140699 2017/1/10 liduo end height: 78 } Image { id: _testLabelbg_press width: _testLabel.contentWidth+64 height: 78 visible: m_area.pressed?true:false source:"qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_P"+style } HMILabel{ id: _testLabel width: _testLabelbg.width height: _testLabelbg.height text: col0 font.pixelSize: 30 wtitesize:2 color:"white" HMIMouseArea{ id: m_area anchors.fill: parent onPressed: { } onReleased: { } onClicked: { var temp = searchInfo//bug searchInfo = "" hanziindex = index hanziinfo = col0 selecthanzi_timer.restart() } } } } } } HMIKeyBtn { id:closeKeyboard_Eng Image { id: closeKeyboardicon_Eng anchors.horizontalCenter: closeKeyboard_Eng.horizontalCenter y:28 source: "qrc:MATERIAL/MATERIAL_ARROW_RETRACT"+style } onClicked: { closeKeyBoardSignal(); if(searchInfo!=""){//ADD 2017/3/15 ld systemCtrl.setsencodkeypress(2) } listView.model = listtmp } } } //FOD by lishunan For KeyBoard end Row{ id: secondRow x:1 //FOD by lishunan For KeyBoard start anchors{top:(firstRow_English.bottom);topMargin:2;horizontalCenter: parent.horizontalCenter} //FOD by lishunan For KeyBoard end spacing: 2 Repeater{ model: { switch(iType) { case 1: ["Q","W","E","R","T","Y","U","I","O","P"] break; case 2: ["q","w","e","r","t","y","u","i","o","p"] break; case 3: ["1","2","3","4","5","6","7","8","9","0"] break; case 4: ["[","]","{","}","#","%","^","*","+","〇"]//FOD #158427 ld break; //ADD by lishunan For KeyBoard start case 5: ["Й","Ц","У","К","Е","Н","Г","Ш","Щ","З","Х"] break; case 6: ["й","ц","у","к","е","н","г","ш","щ","з","х"] break; case 7://cap ["Q","W","E","R","T","Y","U","I","O","P"] break; case 8://lower ["q","w","e","r","t","y","u","i","o","p"] break; //ADD by lishunan For KeyBoard end } } HMIKeyBtn{ id:secondRowKey; width:(5==iType||6==iType)?85:94 labelText:qsTr(modelData); labelSize:30//FOD design 2017/1/10 ld //ADD #142758 2017/1/10 liduo begin cursize: 1 //ADD #142758 2017/1/10 liduo end labelPixelSize:28 btnImg://secondRowKey.pressed?("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_P"+style):("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON"+style) (5==iType||6==iType)?(secondRowKey.pressed?("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_W85_P"+style):("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_W85"+style)) :secondRowKey.pressed?("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_P"+style):("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON"+style) onClicked:{//onPressed: { // if(!isPinyin) // { // str = modelData; // console.log("LSN——————------str-----------------",str) // //clickspell(str); // searchInfo = searchInfo + modelData; // ishowStatus=1 // } // else if(!maximumState) // { // str = modelData; // //clickspell(str); // searchInfo = searchInfo + modelData; // ishowStatus=1 // } if(!maximumState) { if(3 == iType ||iPassword) { str = modelData; clickspell(str) } else if(7 == iType || 8 == iType ) { searchInfo = systemCtrl.checkVietWord(searchInfo + modelData) console.debug("#### searchInfo") } else { if(!isPinyin) { str = modelData; console.log("LSN——————------str-----------------",str) //clickspell(str); searchInfo = searchInfo + modelData; ishowStatus=1 } // else if(!maximumState) // { // str = modelData; // //clickspell(str); // searchInfo = searchInfo + modelData; // ishowStatus=1 // } } } } } } } Row{ id: thirdRow anchors{top:secondRow.bottom;topMargin: 2;horizontalCenter: parent.horizontalCenter} //DEL F0030 2016/10/12 liduo begin //x:48 //DEL F0030 2016/10/12 liduo end //ADD F0030 2016/10/12 liduo begin x:49 //ADD F0030 2016/10/12 liduo end spacing: 2 Repeater{ model: { switch(iType) { case 1: ["A","S","D","F","G","H","J","K","L"] break; case 2: ["a","s","d","f","g","h","j","k","l"] break; case 3: ["-","/",":","(",")","#","&","*","+"] break; case 4: ["—","\\","`","~","<",">","$","@","&"]//fod #144564 2017/1/17 liduo break; //ADD by lishunan For KeyBoard start case 5: ["Ф","Ы","В","А","П","Р","О","Л","Д","Ж","Э"] break; case 6: ["ф","ы","в","а","п","р","о","л","д","ж","э"] break; case 7://cap ["A","S","D","F","G","H","J","K","L"] break; case 8://lower ["a","s","d","f","g","h","j","k","l"] break; //ADD by lishunan For KeyBoard end } } HMIKeyBtn{ id:thirdRowKey; width:(5==iType||6==iType)?85:94 labelSize:30//FOD design 2017/1/10 ld labelPixelSize:30//FOD design 2017/1/10 ld //ADD #142758 2017/1/10 liduo begin cursize: 1 //ADD #142758 2017/1/10 liduo end labelText: qsTr(modelData); labelColor:iNum?"#424242":"white" enabled:iNum?false:true btnImg://thirdRowKey.pressed?("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_P"+style):("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON"+style) (5==iType||6==iType)?(thirdRowKey.pressed?("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_W85_P"+style):("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_W85"+style)) :thirdRowKey.pressed?("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_P"+style):("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON"+style) onClicked:{//onPressed: { if(!maximumState) { if(3 == iType||iPassword) { str = modelData; clickspell(str) } else if(7 == iType || 8 == iType ) { searchInfo = systemCtrl.checkVietWord(searchInfo + modelData) console.debug("#### searchInfo") } else { if(!isPinyin) { str = modelData; //clickspell(str); searchInfo = searchInfo + modelData; ishowStatus=1 } // else if(!maximumState) // { // str = modelData; // //clickspell(str); // searchInfo = searchInfo + modelData; // ishowStatus=1 // } } } } } } } Row{ id:fourRow anchors{top:thirdRow.bottom;topMargin: 2} x:secondRow.x spacing: 2 // shift Key HMIKeyBtn{ id:shift labelText: iType==3?"@":"" labelSize:30//FOD design 2017/1/10 ld //ADD #141395 2017/1/10 liduo begin z:1 //ADD #142758 2017/1/10 liduo begin cursize: 1 //ADD #142758 2017/1/10 liduo end labelPixelSize:30//FOD design 2017/1/10 ld width:(5==iType||6==iType)?87:142 height:78 labelColor:iNum?"#424242":"white" enabled:iNum?false:true //FOD by lishunan for Design change 20180928 start btnImg://shift.pressed?("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_H142_P"+style):("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_H142"+style) (5==iType||6==iType)?(shift.pressed?("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_W87_P"+style):("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_W87"+style)) :shift.pressed?("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_H142_P"+style):("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_H142"+style) //btnImg:shift.pressed?("qrc:MATERIAL/MATERIAL_M8X_KEYBOARD_BUTTON_H142_P"+style):("qrc:MATERIAL/MATERIAL_M8X_KEYBOARD_BUTTON_H142"+style) //FOD by lishunan for Design change 20180928 end Image { id:shiftImage visible: iType==3?false:true anchors.centerIn: parent //DEL F0027 2016/10/12 liduo begin //source: shift.pressed?("qrc:MATERIAL/MATERIAL_M8X_ICON_SHIFT_D"+style):("qrc:MATERIAL/MATERIAL_M8X_ICON_SHIFT"+style) //DEL F0027 2016/10/12 liduo end //ADD F0027 2016/10/12 liduo begin //FOD by lishunan for Design change 20180928 start source: (iType==2||iType==6||iType==8)?("qrc:MATERIAL/MATERIAL_ICON_SHIFT"+style):("qrc:MATERIAL/MATERIAL_ICON_SHIFT_ON"+style) //source: "qrc:MATERIAL/MATERIAL_M8X_ICON_SHIFT"+style //FOD by lishunan for Design change 20180928 end //ADD F0027 2016/10/12 liduo end } onClicked: { //Fod by lishunan For KeyBoard start //FOD by lishunan for #315318 start if(false == isHighFrequencyClick) { isHighFrequencyClick = true switch(iType) { case 1: iType=2 break; case 2: iType=1 break; case 3: console.log("LSN --------iType----") clickspell("@"); break; case 5: iType=6 break; case 6: iType=5 break; case 7: iType=8 break; case 8: iType=7 break; } } if(false == highFrequencyClick_Delay.running) { highFrequencyClick_Delay.running = true } //FOD by lishunan for #315318 end /*if(isZifu) { if(isSmall) { iType=4 isSmall=false shift.labelText=("123") } else { iType=3 isSmall=true shift.labelText=("#+=") } } else { if(isSmall) { iType=1 isSmall=false } else { iType=2 isSmall=true } }*/ } //Fod by lishunan For KeyBoard end } Repeater{ model: { switch(iType) { case 1: ["Z","X","C","V","B","N","M"] break; case 2: ["z","x","c","v","b","n","m"] break; case 3: [".","_","?",",","!","\“","\”"]//FOD #159683 2017/3/23 ld break; case 4: ["。",".","‘","’","|","¥","…"]//FOD #159683 2017/3/23 ld break; //ADD by lishunan For KeyBoard start case 5: ["Я","Ч","С","М","И","Т","Ь","Б","Ю"] break; case 6: ["я","ч","с","м","и","т","ь","б","ю"] break; case 7://cap ["Z","X","C","V","B","N","M"] break; case 8://lower ["z","x","c","v","b","n","m"] break; //ADD by lishunan For KeyBoard end } } HMIKeyBtn{ id:fourRowKey; width:(5==iType||6==iType)?85:94 //ADD #142758 2017/1/10 liduo begin cursize: 1 //ADD #142758 2017/1/10 liduo end labelSize:30//FOD design 2017/1/10 ld labelPixelSize:30//FOD design 2017/1/10 ld //FOD #144877 2017/1/17 liduo begin labelText: { if(modelData=="。") { "" } //FOD #148059 2017/02/08 begin else if(modelData=="、") { "" }else if(modelData=="•")//FOD #159683 2017/3/23 ld { "" } else{ qsTr(modelData) }//FOD #148059 2017/02/08 end } //FOD #144877 2017/1/17 liduo end labelColor:iNum?"#424242":"white" btnImg://fourRowKey.pressed?("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_P"+style):("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON"+style) (5==iType||6==iType)?(fourRowKey.pressed?("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_W85_P"+style):("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_W85"+style)) :fourRowKey.pressed?("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_P"+style):("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON"+style) enabled:iNum?false:true //ADD #144877 2017/1/17 liduo begin HMILabel{ id:juhao x:43 y:28 width: iLanguage==0?25:20//FOD #159147 2017/3/21 ld height: iLanguage==0?28:25 visible: modelData=="。" color: iNum?"#424242":"white" enabled:iNum?false:true text:qsTr("。") } //FOD #148059 2017/02/08 begin HMILabel{//FOD #159683 2017/3/23 ld id:dian x:43 y:35 anchors.horizontalCenter: parent.horizontalCenter width: iLanguage==0?25:20//FOD #159147 2017/3/21 ld height: iLanguage==0?28:25 visible: modelData=="•" color: iNum?"#424242":"white" enabled:iNum?false:true text:qsTr("•") } HMILabel{ id:dunhao x:43 y:28 width: iLanguage==0?25:20//FOD #159147 2017/3/21 ld height: iLanguage==0?28:25 visible: modelData=="、" color: iNum?"#424242":"white" //enabled:iNum?false:true text:qsTr("、") } //FOD #148059 2017/02/08 end //ADD #144877 2017/1/17 liduo end onClicked:{//onPressed: { if(!maximumState) { if(3 == iType||iPassword) { str = modelData; clickspell(str) } else if(7 == iType || 8 == iType ) { searchInfo = systemCtrl.checkVietWord(searchInfo + modelData) console.debug("#### searchInfo") } else { if(!isPinyin) { str = modelData; //clickspell(str); searchInfo = searchInfo + modelData; ishowStatus=1 } // else if(!maximumState) // { // str = modelData; // //clickspell(str); // searchInfo = searchInfo + modelData; // ishowStatus=1 // } } } } } } HMIKeyBtn { id:deleteKey labelSize:28 labelPixelSize:28 width:(5==iType||6==iType)?86:142 height:78 //FOD by lishunan for Design change 20180928 start btnImg://deleteKey.pressed?("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_H142_P"+style):("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_H142"+style) (5==iType||6==iType)?(deleteKey.pressed?("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_W86_P"+style):("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_W86"+style)) :deleteKey.pressed?("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_H142_P"+style):("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_H142"+style) //btnImg:deleteKey.pressed?("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_H142_P"+style):("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_H142"+style) //btnImg:deleteKey.pressed?("qrc:MATERIAL/MATERIAL_M8X_KEYBOARD_BUTTON_H142_P"+style):("qrc:MATERIAL/MATERIAL_M8X_KEYBOARD_BUTTON_H142"+style) //FOD by lishunan for Design change 20180928 end Image { id:deleteImage anchors.centerIn: parent //DEL F0027 2016/10/12 liduo begin //source:deleteKey.pressed?("qrc:MATERIAL/MATERIAL_M8X_ICON_DELETE_D"+style):("qrc:MATERIAL/MATERIAL_M8X_ICON_DELETE"+style) //DEL F0027 2016/10/12 liduo end //ADD F0027 2016/10/12 liduo begin //FOD by lishunan for Design change 20180928 start source:("qrc:MATERIAL/MATERIAL_ICON_DELETE"+style) //source:"qrc:MATERIAL/MATERIAL_M8X_ICON_DELETE"+style //FOD by lishunan for Design change 20180928 end //ADD F0027 2016/10/12 liduo end } onPressed:{ bDeleteKeyLongPress = false } onPressAndHold: { //deleteKeyConsequentPress_timer.start() //DEL #175035 2017/05/17 baojinfeng end // delKeyLongPressed() //ADD mengyufeng 20170515 delaytoclear.start() } onReleased: { delKeyPressed() if(false == bDeleteKeyLongPress) { if (!isPinyin){ if (searchInfo.length > 1){ searchInfo = searchInfo.substring(0,searchInfo.length-1) } else { systemCtrl.setKeyPress("delete") searchInfo = "" ishowStatus=0 } } else{ systemCtrl.setKeyPress("delete") searchInfo = "" ishowStatus=0 } } else { bDeleteKeyLongPress = false } deleteKeyConsequentPress_timer.stop() } //ADD #145875 2017/01/20 mengyufeng begin onCanceled: { delKeyPressed() if(false == bDeleteKeyLongPress) { if (!isPinyin){ if (searchInfo.length > 1){ searchInfo = searchInfo.substring(0,searchInfo.length-1) } else { systemCtrl.setKeyPress("delete") searchInfo = "" ishowStatus=0 } } else{ systemCtrl.setKeyPress("delete") searchInfo = "" ishowStatus=0 } } else { bDeleteKeyLongPress = false } deleteKeyConsequentPress_timer.stop() } //ADD #145875 2017/01/20 mengyufeng end Timer{ id: deleteKeyConsequentPress_timer interval: deleteKeyConsequentPressTime repeat: true onTriggered: { bDeleteKeyLongPress = true delKeyPressed() if (!isPinyin){ if (searchInfo.length > 1){ searchInfo = searchInfo.substring(0,0)//FOD 2017/3/15 LD } else { systemCtrl.doubleClickChooseAll()//FOD 2017/3/15 LD systemCtrl.setKeyPress("delete") searchInfo = "" ishowStatus=0 } } else{ systemCtrl.doubleClickChooseAll()//ADD #161704 2017/3/29 ld systemCtrl.setKeyPress("delete") searchInfo = "" ishowStatus=0 } } } } } Timer { id:delaytoclear interval: 1000 repeat: false onTriggered: { delKeyLongPressed() } } Row{ id:fiveRow anchors{top:fourRow.bottom;topMargin: 2} x:fourRow.x spacing: 2 HMIKeyBtn{ id:shouxie labelText:(iType==3)?"ABC":"123" labelSize:30//FOD design 2017/1/10 ld labelPixelSize:30//FOD design 2017/1/10 ld width:142 height:78 labelColor:iNum?"#424242":"white" enabled:iNum?false:true //FOD by lishunan for Design change 20180928 start btnImg:shouxie.pressed?("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_H142_P"+style):("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_H142"+style) //btnImg:shouxie.pressed?("qrc:MATERIAL/MATERIAL_M8X_KEYBOARD_BUTTON_H142_P"+style):("qrc:MATERIAL/MATERIAL_M8X_KEYBOARD_BUTTON_H142"+style) //FOD by lishunan for Design change 20180928 end //ADD #F0167 2017/1/10 liduo begin Image { id: shouxieicon anchors.centerIn: parent visible: ishdwt==0?false:true source: "qrc:MATERIAL/MATERIAL_M8X_ICON_HANDWRITTEN"+style } //ADD #F0167 2017/1/10 liduo end onClicked: { //ADD by lishunan for #340658 start if(runningFlag_123) { return } else { runningFlag_123 = true abc_123.start() } //ADD by lishunan for #340658 end switch(iType){ case 1: firstRow_English.visible=true //firstRow_Vietnam.visible=false //firstRow_Russia.visible=false shift.btnIcon="" shiftImage.visible=false iType=3 shouxie.labelText=("ABC") shift.labelText="@" break; case 2: firstRow_English.visible=true // firstRow_Vietnam.visible=false // firstRow_Russia.visible=false shift.btnIcon="" shiftImage.visible=false iType=3 shouxie.labelText=("ABC") shift.labelText="@" break; case 3: shift.labelText="" shiftImage.visible=true iType=iQiehuan shouxie.labelText=("123") shift.labelText="" /* if(isVientm){ if(iQiehuan==2){ firstRow_Vietnam.visible=false firstRow_English.visible=true }else{ firstRow_Vietnam.visible=true firstRow_English.visible=false } }else{ if(iQiehuan==2){ firstRow_Vietnam.visible=false firstRow_English.visible=true }else{ firstRow_Russia.visible=true firstRow_English.visible=false } } */ break; case 4:break; case 5: firstRow_English.visible=true // firstRow_Vietnam.visible=false // firstRow_Russia.visible=false shift.btnIcon="" shiftImage.visible=false iType=3 shouxie.labelText=("ABC") shift.labelText="@" break; case 6: firstRow_English.visible=true // firstRow_Vietnam.visible=false // firstRow_Russia.visible=false shift.btnIcon="" shiftImage.visible=false iType=3 shouxie.labelText=("ABC") shift.labelText="@" break; case 7: firstRow_English.visible=true // firstRow_Vietnam.visible=false // firstRow_Russia.visible=false shift.btnIcon="" shiftImage.visible=false iType=3 shouxie.labelText=("ABC") shift.labelText="@" break; case 8: firstRow_English.visible=true // firstRow_Vietnam.visible=false // firstRow_Russia.visible=false shift.btnIcon="" shiftImage.visible=false iType=3 shouxie.labelText=("ABC") shift.labelText="@" break; default: break; } //ADD #F0167 2017/1/10 liduo begin /*if(ishdwt==0){ //ADD #F0167 2017/1/10 liduo end switch(iQiehuan) { case 1: if(!isZifu) { shouxie.labelText=("ABC") isZifu=true iType=3 isSmall=true isPinyin=false shift.labelText=("#+=") shift.btnIcon="" shiftImage.visible=false } else { shouxie.labelText=("123") isZifu=false if(isSmall) { iType=2 } else { iType=1 } //FOD by lishunan for Design Change 20181008 start isPinyin=false//true //FOD by lishunan for Design Change 20181008 end shift.labelText=("") shiftImage.visible=true } break; case 2: if(!isZifu) { shouxie.labelText=("ABC") isZifu=true iType=3 isSmall=true isPinyin=false shift.labelText=("#+=") shift.btnIcon="" shiftImage.visible=false } else { shouxie.labelText=("123") isZifu=false if(isSmall) { iType=2 } else { iType=1 } isPinyin=false shift.labelText=("") shiftImage.visible=true } break; default: break; } //ADD #F0167 2017/1/10 liduo begin }else{ handwriteborad() //ADD #151624 ld begin 17226 iType=1 isSmall=false isZifu=false //FOD by lishunan for Design Change 20181008 start isPinyin=false//true //FOD by lishunan for Design Change 20181008 end //ADD #151624 ld end 17226 }*/ //FOD 2017/2/17 ld begin if(searchInfo!=""){ //FOD 2019/8/26 cxx begin // pinYinInfo=systemCtrl.getKeyBoard_frist() // if(pinYinInfo =="") // { // systemCtrl.setKeyPress(searchInfo) // } // else // { // systemCtrl.setKeyPress(pinYinInfo) // } systemCtrl.setKeyPress(searchInfo) //FOD 2019/8/26 cxx end } //FOD 2017/2/17 ld end searchInfo = ""; pinYinInfo="" //ADD #141097 2017/1/10 liduo begin listView.model = listtmp //ADD #141097 2017/1/10 liduo end //ADD #F0167 2017/1/10 liduo end } } //FOD by lishunan For KeyBoard start HMIKeyBtn{ id:pinyin //DEL #F0117 2016/11/30 ld begin //labelText:(iType==2)?"英文":"全拼" //DEL #F0117 2016/11/30 ld end labelSize:30//FOD design 2017/1/10 ld labelPixelSize:30//FOD design 2017/1/10 ld width:142 height:78 labelColor: (iNum)?"#424242":"white" enabled:(iPassword||iNum)?false:true //FOD by lishunan for Design change 20180928 start btnImg:pinyin.pressed?("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_H142_P"+style):("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_H142"+style) //btnImg:pinyin.pressed?("qrc:MATERIAL/MATERIAL_M8X_KEYBOARD_BUTTON_H142_P"+style):("qrc:MATERIAL/MATERIAL_M8X_KEYBOARD_BUTTON_H142"+style) //FOD by lishunan for Design change 20180928 end //ADD #F0117 2016/11/30 ld begin HMILabel{ id:englishlabel anchors.centerIn: parent width: 180 height:35 //ADD #145871 2017/0/20 liduo begin wtitesize:1 //ADD #145871 2017/0/20 liduo end //FOD by lishunan for Design Change 20181008 start visible:true//isPinyin?false:iType==2 ? true : false//fod #162110 2017/4/1 ld //FOD by lishunan for Design Change 20181008 end //ADD 2016/12/16 liduo begin color:(iPassword||iNum)?"#424242":"white" //ADD 2016/12/16 liduo end text:(qsTr("English")+systemCtrl.emptyString) //Fod by lishunan for #314012 start font.pixelSize:22//30//28 //Fod by lishunan for #314012 end } HMILabel{ id:pinyinlabel anchors.centerIn: parent width: 180 height:35 //ADD #145871 2017/0/20 liduo begin wtitesize:1 //ADD #145871 2017/0/20 liduo end //FOD by lishunan for Design Change 20181008 start visible:false// isPinyin?true:iType==2 ? false : true//fod #162110 2017/4/1 ld //FOD by lishunan for Design Change 20181008 end //ADD 2016/12/16 liduo begin color: (iPassword||iNum)?"#424242":"white" //ADD 2016/12/16 liduo end text:(qsTr("Pinyin")+systemCtrl.emptyString) font.pixelSize:30//28 } //ADD #F0167 2017/1/10 liduo begin HMILabel{ id:wirte anchors.centerIn: parent width: 180 height:32//fod #162379 2017/4/1 ld //ADD #145871 2017/0/20 liduo begin wtitesize:1 //ADD #145871 2017/0/20 liduo end visible: ishdwt==0 ? false : true //ADD 2016/12/16 liduo begin color: "white"//(iPassword||iNum)?"#424242":"white" //ADD 2016/12/16 liduo end text:(qsTr("Written")+systemCtrl.emptyString) font.pixelSize:30//28 } //ADD by lishunan for KB Change start HMILabel{//iQiehuan:5 id:russialabel anchors.centerIn: parent width: 180 height:35 wtitesize:1 visible:false//isVientm?false:true color: (iNum)?"#424242":"white" text:(qsTr("Русский")+systemCtrl.emptyString) //Fod by lishunan for #314012 start font.pixelSize:22//30 //Fod by lishunan for #314012 end } HMILabel{ id:vietnamlabel anchors.centerIn: parent width: 180 height:35 wtitesize:1 visible:false//isVientm?true:false color: (iNum)?"#424242":"white" text:(qsTr("Tiếng Việt")+systemCtrl.emptyString) //Fod by lishunan for #314012 start font.pixelSize:22//30 //Fod by lishunan for #314012 end } //ADD by lishunan for KB Change end //ADD #F0167 2017/1/10 liduo end //ADD #F0117 2016/11/30 ld end onClicked: { console.log("LSN ------------onclick----------------") if(isVientm){ switch(iQiehuan) { case 2: iQiehuan =8 englishlabel.visible=false vietnamlabel.visible=true // firstRow_Vietnam.visible=true // firstRow_English.visible=false iType = 8 shouxie.labelText=("123") shift.labelText="" shiftImage.visible=true resPrefix = "viet_" systemCtrl.sessionEnd() systemCtrl.sessionStart(resPrefix) break; case 8: iQiehuan =2 englishlabel.visible=true vietnamlabel.visible=false // firstRow_English.visible=true // firstRow_Vietnam.visible=false iType = 2 shouxie.labelText=("123") shift.labelText="" shiftImage.visible=true resPrefix = "english_" systemCtrl.sessionEnd() systemCtrl.sessionStart(resPrefix) break; default: break; } }else{ switch(iQiehuan) { case 2: iQiehuan =6 englishlabel.visible=false russialabel.visible=true // firstRow_Russia.visible=true // firstRow_English.visible=false iType = 6 shouxie.labelText=("123") shift.labelText="" shiftImage.visible=true resPrefix = "Russia_" systemCtrl.sessionEnd() systemCtrl.sessionStart(resPrefix) break; case 6: iQiehuan =2 englishlabel.visible=true russialabel.visible=false // firstRow_English.visible=true // firstRow_Russia.visible=false iType = 2 shouxie.labelText=("123") shift.labelText="" shiftImage.visible=true resPrefix = "english_" break; default: break; } } /*{//DEL by lishunan For Design Change 20181008 start //ADD #F0167 2017/1/10 liduo begin if(ishdwt==0){ //ADD #F0167 2017/1/10 liduo end if(iQiehuan==1) { iQiehuan=2 isPinyin=false isZifu=false //DEL 2017/2/17 ld begin //searchInfo = "" //DEL 2017/2/17 ld end //FOD #F0117 2016/11/30 ld begin pinyinlabel.visible=false englishlabel.visible=true //ADD #F0167 2017/1/10 liduo begin wirte.visible=false //ADD #F0167 2017/1/10 liduo end //FOD #F0117 2016/11/30 ld end shouxie.labelText=("123") iType=2 isSmall=true } else { iQiehuan=1 isPinyin=true isZifu=false //DEL 2017/2/17 ld begin //searchInfo = "" //DEL 2017/2/17 ld end //FOD #F0117 2016/11/30 ld begin pinyinlabel.visible=true //ADD #F0167 2017/1/10 liduo begin wirte.visible=false //ADD #F0167 2017/1/10 liduo end englishlabel.visible=false //FOD #F0117 2016/11/30 ld end shouxie.labelText=("123") iType=1 isSmall=false handwriteborad() //DEL 2017/2/17 ld begin //searchInfo = "" //DEL 2017/2/17 ld end } //ADD #F0167 2017/1/10 liduo begin }else{ handwriteborad() //ADD #151624 ld begin 17226 iType=1 isSmall=false isZifu=false isPinyin=true //ADD #151624 ld end 17226 } //ADD #F0167 2017/1/10 liduo end shift.labelText=("") shiftImage.visible=true ishowStatus=0 //ADD #F0167 2017/1/10 liduo begin //FOD 2017/2/17 ld begin if(searchInfo!=""){ pinYinInfo=systemCtrl.getKeyBoard_frist() systemCtrl.setKeyPress(pinYinInfo) } //FOD 2017/2/17 ld end searchInfo = ""; pinYinInfo="" //ADD #141097 2017/1/10 liduo begin listView.model = listtmp //ADD #141097 2017/1/10 liduo end //ADD #F0167 2017/1/10 liduo end */}//DEL by lishunan For Design Change 20181008 end } HMIKeyBtn{ id:ctrlKey; labelBold : false labelPixelSize : 30 enabled:iNum?false:true // width:(true == newline)?382:526 height:78 btnImg: { if(false == newline){ //FOD by lishunan for Design change 20180928 start ctrlKey.pressed?("qrc:MATERIAL/MATERIAL_KEYBOARD_SPACE_BUTTON_W526_P"+style):("qrc:MATERIAL/MATERIAL_KEYBOARD_SPACE_BUTTON_W526"+style) //ctrlKey.pressed?("qrc:MATERIAL/MATERIAL_M8X_KEYBOARD_SPACE_BUTTON_W526_P"+style):("qrc:MATERIAL/MATERIAL_M8X_KEYBOARD_SPACE_BUTTON_W526"+style) //FOD by lishunan for Design change 20180928 end }else{ //FOD by lishunan for Design change 20180928 start ctrlKey.pressed?("qrc:MATERIAL/MATERIAL_KEYBOARD_SPACE_BUTTON_W382_P"+style):("qrc:MATERIAL/MATERIAL_KEYBOARD_SPACE_BUTTON_W382"+style) //ctrlKey.pressed?("qrc:MATERIAL/MATERIAL_M8X_KEYBOARD_SPACE_BUTTON_W382_P"+style):("qrc:MATERIAL/MATERIAL_M8X_KEYBOARD_SPACE_BUTTON_W382"+style) //FOD by lishunan for Design change 20180928 end } } //DEL F0032 2016/10/12 liduo begin //btnIcon:iNum?("qrc:MATERIAL/MATERIAL_M8X_ICON_SPACE_D"+style):(ctrlKey.pressed?("qrc:MATERIAL/MATERIAL_M8X_ICON_SPACE_D"+style):("qrc:MATERIAL/MATERIAL_M8X_ICON_SPACE"+style)) //DEL F0032 2016/10/12 liduo end //ADD F0032 2016/10/12 liduo begin Image { id: ctrlKeyicon anchors.horizontalCenter: ctrlKey.horizontalCenter y:ctrlKey.y+34 //FOD by lishunan for Design change 20180928 start source: iNum?("qrc:MATERIAL/MATERIAL_ICON_SPACE_D"+style):("qrc:MATERIAL/MATERIAL_ICON_SPACE"+style) //source: iNum?("qrc:MATERIAL/MATERIAL_M8X_ICON_SPACE_D"+style):("qrc:MATERIAL/MATERIAL_M8X_ICON_SPACE"+style)//FOD #150435 2017/2/20 ld //FOD by lishunan for Design change 20180928 end } //ADD F0032 2016/10/12 liduo end onPressed:str = qsTr(""); onClicked: { //ADD #F0167 2017/1/10 liduo begin //FOD [2017-2-13] #148846 pengc begin if(searchInfo!="") { pinYinInfo=systemCtrl.getKeyBoard_frist() listView.model = listtmp } //FOD [2017-2-13] #148846 pengc end //ADD #F0167 2017/1/10 liduo end if(iPassword||iNum) { //do nothing } else { //ADD #F0167 2017/1/10 liduo begin if(pinYinInfo==""){ //ADD #F0167 2017/1/10 liduo end if(searchInfo != "") { //FOD by lishunan for #330640 start systemCtrl.setKeyPress(searchInfo) //FOD by lishunan for #330640 end } else { systemCtrl.setKeyPress(" ") } searchInfo = ""; //ADD #F0167 2017/1/10 liduo begin }else{ //Fod by lishunan for 334332 start //FOD by lishunan for #330640 start systemCtrl.setKeyPress(pinYinInfo) //FOD by lishunan for #330640 end //Fod by lishunan for 334332 end searchInfo = ""; pinYinInfo="" //ADD #F0167 2017/1/10 liduo end } } } } //FOD by lishunan For KeyBoard end HMIButton{ id: newlinekey x: 673 //FOD by lishunan for Design change 20180928 start btnImg:pressed?("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_H142_P"+style):("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_H142"+style) //btnImg:pressed?("qrc:MATERIAL/MATERIAL_M8X_KEYBOARD_BUTTON_H142_P"+style):("qrc:MATERIAL/MATERIAL_M8X_KEYBOARD_BUTTON_H142"+style) //FOD by lishunan for Design change 20180928 end width:142 height:78 visible: newline //enabled: iNum?false:true // ADD 2017/1/21 liduo begin HMILabel{ anchors.centerIn: parent //FOD #F0117 2016/11/30 ld begin text: qsTr("Enter")+systemCtrl.emptyString //FOD #F0117 2016/11/30 ld end width: 180 height:35 //ADD #145871 2017/0/20 liduo begin wtitesize:1 //ADD #145871 2017/0/20 liduo end font.pixelSize:30//28 } // ADD 2017/1/21 liduo end // DEL 2017/1/21 liduo begin //labelColor: (iPassword||iNum)?"#424242":"white" //labelSize:30//FOD design 2017/1/10 ld //labelPixelSize:30//FOD design 2017/1/10 ld // DEL 2017/1/21 liduo end onClicked:{ if(iPassword||iNum) { //do nothing }else{ systemCtrl.setKeyPress("enter") //ADD #F0167 2017/1/10 liduo begin systemCtrl.setsencodkeypress(2) //ADD #F0167 2017/1/10 liduo end searchInfo=""; } //ADD #141097 2017/1/10 liduo begin listView.model = listtmp //ADD #141097 2017/1/10 liduo end } } HMIButton{ id:search x:ctrlKey.x+2 //FOD by lishunan for Design change 20180928 start btnImg:search.pressed?("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_H142_P"+style):("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_H142"+style) //btnImg:search.pressed?("qrc:MATERIAL/MATERIAL_M8X_KEYBOARD_BUTTON_H142_P"+style):("qrc:MATERIAL/MATERIAL_M8X_KEYBOARD_BUTTON_H142"+style) //FOD by lishunan for Design change 20180928 start visible: iSerach enabled: confirmBtFlag labelPixelSize:30//FOD design 2017/1/10 ld width:142 height:78 HMILabel { anchors.centerIn: parent //FOD #F0117 2016/11/30 ld begin width: 180 height:35 //ADD #145871 2017/0/20 liduo begin wtitesize:1 //ADD #145871 2017/0/20 liduo end text:qsTr("Search")+systemCtrl.emptyString //FOD #F0117 2016/11/30 ld end font.pixelSize:22//30//28 } onClicked:{ if(search.enabled) searchStart() //ADD #F0167 2017/1/10 liduo begin if(searchInfo!=""){//ADD #159143 2017/3/21 ld systemCtrl.setsencodkeypress(2) } //ADD #F0167 2017/1/10 liduo end //ADD #141097 2017/1/10 liduo begin searchInfo=""//ADD #159143 2017/3/21 ld listView.model = listtmp //ADD #141097 2017/1/10 liduo end } } HMIButton{ id:confirm x:ctrlKey.x+2 width:142 height:78 labelPixelSize:30//FOD design 2017/1/10 ld //FOD by lishunan for Design change 20180928 start btnImg:confirm.pressed?("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_H142_P"+style):("qrc:MATERIAL/MATERIAL_KEYBOARD_BUTTON_H142"+style) //btnImg:confirm.pressed?("qrc:MATERIAL/MATERIAL_M8X_KEYBOARD_BUTTON_H142_P"+style):("qrc:MATERIAL/MATERIAL_M8X_KEYBOARD_BUTTON_H142"+style) //FOD by lishunan for Design change 20180928 end visible: iConfirm enabled: confirmBtFlag HMILabel { anchors.centerIn: parent //FOD #F0117 2016/11/30 ld begin width: 180 height:35 //ADD #145871 2017/0/20 liduo begin wtitesize:1 //ADD #145871 2017/0/20 liduo end text:qsTr("OK")+systemCtrl.emptyString //FOD #F0117 2016/11/30 ld end font.pixelSize:22//30//28 } onClicked:{ if(confirm.enabled) searchStart() //ADD #F0167 2017/1/10 liduo begin systemCtrl.setsencodkeypress(2) //ADD #F0167 2017/1/10 liduo end //ADD #141097 2017/1/10 liduo begin listView.model = listtmp //ADD #141097 2017/1/10 liduo end } } } } } } //ADD by lishunan for #340658 start Timer { id:abc_123 interval: 200 repeat:false onTriggered: { runningFlag_123 =false } } //ADD by lishunan for #340658 end Connections { target: systemCtrl //ADD #145225 2017/1/17 liduo begin onPinyinsreachclearchanged:{ searchInfo = "" pinYinInfo = ""//ADD 2017/1/23 ld } //ADD #145225 2017/1/17 liduo end onPinyinSearchInfoToClear: { if(root.visible) { searchInfo = "" pinYinInfo = ""//ADD 2017/1/23 ld listView.model = listtmp } } //ADD #F0167 2017/1/10 liduo begin onHandwritekeypychanged:{ console.log("asdasdasdasdasdasd") if(flag==1){ ishdwt=1 shouxie.labelText=("") pinyinlabel.visible=false englishlabel.visible=false wirte.visible=true }else{ ishdwt=0 //ADD #151624 ld begin 17226 //ADD ld 3/2 if(isZifu){ shift.labelText=("#+=") shouxie.labelText=("ABC")//ADD 2017/3/22 ld shiftImage.visible=false }else if(isPinyin){ shift.labelText=("") shouxie.labelText=("123")//ADD 2017/3/22 ld shiftImage.visible=true }else{//ADD 2017/3/22 ld } //FOD by lishunan for Design change 20180928 start pinyinlabel.visible=false//true //englishlabel.visible=true//false //FOD by lishunan for Design change 20180928 end wirte.visible=false //iType=1 //DEL ld //isPinyin=true//DEL ld //ADD #151624 ld end 17226 } } //ADD #F0167 2017/1/10 liduo end onHandwriteshuzichanged: { isZifu=true shouxie.labelText=("ABC") shift.labelText=("#+=") shiftImage.visible=false isSmall=true isPinyin=false searchInfo = "" listView.model = listtmp } //FOD #159147 2017/3/21 ld onAppLanguageChangOk: { if(systemCtrl.iLanguage==0){ juhao.width=25 juhao.height=28 dunhao.width=25 dunhao.height=28 }else{ juhao.width=20 juhao.height=25 dunhao.width=20 dunhao.height=25 } } //FOD #159147 2017/3/21 ld } }