import QtQuick 2.0 import "../com/neusoft/auto/widgets" import "../layoutList.js" as Layout import "../windowsList.js" as WindowsList import Label 2.0//ADD #F0182 2017/02/03 baojinfeng begin import "../Bluetooth/BTphone/Func_insert_delete.js" as FunID //ST_322050 ly HMIWindow { id:disconnect_Keyboard //property double disconnectValue: settingCtrl.disconnectValue Component.onCompleted: { windowID = WindowsList.SETTING_DISCONNECTKEYBOARD } onVisibleChanged: { bFullWindow = true bNoSwitchBarVisiable = true bKeyboardVisiable = true systemCtrl.setTextInputHandle(renameInput) if (disconnect_Keyboard.visible == true) { keyBoardItem.visible = true//add F154 2017/01/04 liuming end systemCtrl.handwritekeypy(0);//add #145881 2017/02/03 baojinfeng end } else { } } onCloseWindow: { settingCtrl.qRenameInput = renameInput.text renameInput.text = "" //ScreenManager.hideOverlay(WindowsList.SETTING_DISCONNECTKEYBOARD) } Item { x: 0 - disconnect_Keyboard.x y: 0 - disconnect_Keyboard.y width: 960 height: 1280 HMIButton { id:back_btn x:0 y:165 width: 138 height: 70 visible: true btnImg: pressed?"qrc:MATERIAL/MATERIAL_M8X_BACK_BUTTON_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_M8X_BACK_BUTTON"+bgImageStyle Image { id:back_btn_image x:20 y:18//194-174 width: 20 height:34 source: "qrc:MATERIAL/MATERIAL_M8X_ICON_BACK"+bgImageStyle } HMILabel { id:back_btn_label x:54//40//61 y:20//199-174 width: 75//98//100//60 height:30//70 text: qsTr("Back") + systemCtrl.emptyString font.pixelSize: 30 //DEL #F0192 2017/2/6 BAOJINFENG begin //verticalAlignment: Text.AlignVCenter //horizontalAlignment: Text.AlignHCenter //DEL #F0192 2017/2/6 BAOJINFENG } onClicked: { //ScreenManager.hideOverlay(WindowsList.SETTING_DISCONNECTKEYBOARD) ScreenManager.changeForm(Layout.FM_OPEN,WindowsList.SETTING_BRILIANCEAIR) } } // HMILabel // { // id:ssid // x: 138 // y: 165 // width:644 // height:70 // font.pixelSize: 30 // text:qsTr("Please input the Disconnect Value") + systemCtrl.emptyString // horizontalAlignment:Text.AlignHCenter // verticalAlignment:Text.AlignVCenter // } // HMILabel // { // id:code // x: 0 // y: 241 // width:198 // height:78 // text:qsTr("Value") + systemCtrl.emptyString // font.pixelSize: 30 // horizontalAlignment:Text.AlignHCenter // verticalAlignment:Text.AlignVCenter // } // HMIButton // { // id:conform_btn // x: 822 // y: 165 // width: 138 // height: 70 // visible: true // btnImg: pressed?"qrc:MATERIAL/MATERIAL_M8X_BACK_BUTTON_ZOOM_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_M8X_BACK_BUTTON_ZOOM"+bgImageStyle // HMILabel // { // id:conform_btn_label // x:0 // y:0//199-174 // width: 138 // height: 70 // text: qsTr("Done") + systemCtrl.emptyString // font.pixelSize: 30 // verticalAlignment: Text.AlignVCenter // horizontalAlignment: Text.AlignHCenter // } // onClicked: // { // console.log("disconnectkeyBoard [Setting_DisconnectKeyboard.qml]--- text = " + renameInput.text) // settingCtrl.disConnUsage = renameInput.text // ScreenManager.changeForm(Layout.FM_OPEN,WindowsList.SETTING_BRILIANCEAIR) // } // } Image { id: disconnect_inputbox x: 58 y: 241 width: 842 height: 78 source: "qrc:MATERIAL/MATERIAL_M8X_INPUT_H78_W622" + bgImageStyle //ADD #171867 2017/5/5 baojinfeng begin Rectangle { id:input_background x: 0 y: 0 width:842 height:78 color: "#161616" //ADD #176279 2017/5/22 baojinfeng begin HMIMouseArea { anchors.fill: parent onClicked: { if(false == keyBoardItem.visible) { keyBoardItem.visible = true bKeyboardVisiable = true } } } //ADD #176279 2017/5/22 baojinfeng end } //ADD #171867 2017/5/5 baojinfeng end } //ADD #154981 2017/3/14 baojinfeng begin HMIMouseArea { x: 58 y: 241 width: 86//144-58 height: 78 onClicked: { if(false == keyBoardItem.visible) { keyBoardItem.visible = true bKeyboardVisiable = true } } } //ADD #154981 2017/3/14 baojinfeng end TextInput { id: renameInput x: 144//63//58+5//203//198 + 5 y: 241 width: 678//822-144//544//742-198//ADD #154981 2017/3/14 baojinfeng begin height: 78 font.pixelSize: 30 readOnly: false enabled: true //horizontalAlignment: Text.AlignLeft verticalAlignment: Text.AlignVCenter color:"white" text:"" maximumLength: 20 cursorVisible:true selectionColor: "#676767"//Fod #146526 2017/2/22 BAOJINFENG begin HMIMouseArea { anchors.fill: parent //Fod #145012 2017/1/13 BAOJINFENG begin //visible: !keyBoardItem.visible //enabled: !keyBoardItem.visible //Fod #145012 2017/1/13 BAOJINFENG end //Fod #146526 2017/2/22 BAOJINFENG begin onDoubleClicked: { systemCtrl.doubleClickChooseAll() } //Fod #146526 2017/2/22 BAOJINFENG end onClicked: { //Add #145012 2017/1/13 BAOJINFENG begin renameInput.cursorPosition = renameInput.positionAt(mouseX,mouseY) //Add #145012 2017/1/13 BAOJINFENG end if(false == keyBoardItem.visible) { keyBoardItem.visible = true bKeyboardVisiable = true } } } //ADD #145870 2017/02/03 baojinfeng begin onCursorPositionChanged: { if(renameInput.text == "") { delete_btn.visible = false } else { delete_btn.visible = true } } //ADD #145870 2017/02/03 baojinfeng end } HMIButton { id:delete_btn x: 822 y: 251 width: 58 height: 58 visible: renameInput.text == ""?false:true//FOD #145870 2017/02/03 baojinfeng begin btnImg: pressed?"qrc:MATERIAL/MATERIAL_M8X_ICON_CLEAR_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_M8X_ICON_CLEAR"+bgImageStyle onClicked: { renameInput.text = "" } } Item { id:keyBoardItem y: 721 visible: true onVisibleChanged: { if (keyBoardItem.visible == true) { } else { } } HMIKeyBoard { id:disconnectkeyBoard iConfirm:true iNum: true onClickspell: { if(!disconnectkeyBoard.isPinyin) { systemCtrl.setKeyPress(spell) } } onSearchStart: { //ScreenManager.hideOverlay(WindowsList.SETTING_DISCONNECTKEYBOARD) settingCtrl.disConnUsage = renameInput.text ScreenManager.changeForm(Layout.FM_OPEN,WindowsList.SETTING_BRILIANCEAIR) } onCloseKeyBoardSignal: { keyBoardItem.visible = false bKeyboardVisiable = false } //ADD #175035 2017/05/17 baojinfeng begin onDelKeyLongPressed: { // renameInput.text = "" //ST_322050 renameInput.text = FunID.delete2(renameInput.text,renameInput.cursorPosition) renameInput.cursorPosition = 0 } //ADD #175035 2017/05/17 baojinfeng end } } Connections { target:ScreenManager // onBtHungupPageReset://del by lium for screenchange begin // { // renameInput.text=settingCtrl.qRenameInput // }//del by lium for screenchange end } } }