import QtQuick 2.0 import "../com/neusoft/auto/widgets" import "../windowsList.js" as WindowsList import "../layoutList.js" as Layout import "Settinglist.js" as Settinglist //ADD shanchulog 2017/1/9 baojinfeng BEGIN HMIWindow { } //ADD shanchulog 2017/1/9 baojinfeng END //DEL wuyongcode 2017/1/9 baojinfeng begin //HMIWindowOld //{ // id: setting_calendar // Component.onCompleted: // { // windowID = WindowsList.SETTING_CALENDAR // } // onVisibleChanged: // { // bFullWindow = true // console.log("onVisibleChanged iMon----------------->" + iMon) // console.log("onVisibleChanged nAlertofDefaultTime---------------->" + nAlertofDefaultTime) // if (setting_calendar.visible == true) // { // console.log("[lastvisible] [false]") // lastvisible = true // minView.currentIndex = (nAlertofDefaultTime >= 2)?(nAlertofDefaultTime - 2):(nAlertofDefaultTime + 3) // monView.currentIndex = (iMon >= 2)?(iMon - 2):(iMon + 2) // } // else // { // if(lastvisible == true) // { // console.log("[lastvisible] [true]") // settingCtrl.iMon = iMon // settingCtrl.nAlertofDefaultTime = nAlertofDefaultTime // //reminderCtrl.SetAlertofDefaultTime(minute) // //reminderCtrl.DelSettingsOverDueEvent(month) // } // lastvisible = false // } // } // property bool bCalendarBackVisible: settingCtrl.bCalendarBackVisible //bCalendarBackVisible: true-->back_btn show;false-->back_btn hide // property int iMon:settingCtrl.iMon // property int nAlertofDefaultTime:settingCtrl.nAlertofDefaultTime // property int minute // property int month // property bool lastvisible:false // property string bgImageStyle: systemCtrl.styleOld // Image // { // id: setting_calendarBackground // x: 0 // y: 132-setting_calendar.y // width: 740 // height: 760 // Image // { // id: minute_list_BG // x: 256-14 // y: 530-132 // width: 256 // height: 150 // source: "qrc:MATERIAL/MATERIAL_M8X_DATA_LIST_BG"+bgImageStyle // } // Image // { // id: minute_list_checked // x: 256-14 // y: 580-132 // width: 256 // height: 51 // source: "qrc:MATERIAL/MATERIAL_M8X_DATA_LIST_CHECKED"+bgImageStyle // } // Image // { // id: month_list_BG // x: 256-14 // y: 274-132 // width: 256 // height: 150 // source: "qrc:MATERIAL/MATERIAL_M8X_DATA_LIST_BG"+bgImageStyle // } // Image // { // id: month_list_checked // x: 256-14 // y: 324-132 // width: 256 // height: 51 // source: "qrc:MATERIAL/MATERIAL_M8X_DATA_LIST_CHECKED"+bgImageStyle // } // PathView // { // id:monView // x: 256-14 // y: 274-132 // width: 256 // height: 150 // offset: 0 // pathItemCount: 4 // snapMode: PathView.SnapOneItem // interactive: true; // model: overdueModel // delegate: comp2 // path: Path // { // startX: 60 // startY: -20 // PathLine { x: 60; y: 45} // PathLine { x: 60; y: 110} // PathLine { x: 60; y: 175} // } // HMIMouseArea // { // anchors.fill: parent // } // onCurrentIndexChanged: // { // console.log("month Index", monView.currentIndex) // iMon = (monView.currentIndex>=2)?(monView.currentIndex-2):(monView.currentIndex+2) // console.log("iMonth-->", iMon) // if(iMon == 0) // { // month = 1 // console.log("set to deep level month---------------->" + month) // } // else if(iMon == 1) // { // month = 3 // console.log("set to deep level month---------------->" + month) // } // else if(iMon == 2) // { // month = 6 // console.log("set to deep level month---------------->" + month) // } // else // { // month = 12 // console.log("set to deep level month---------------->" + month) // } // } // } // PathView // { // id:minView // x: 256-14 // y: 530-132 // width: 256 // height: 150 // offset: 0 // pathItemCount: 4 // snapMode: PathView.SnapOneItem // interactive: true; // model: alertModel // delegate: comp1 // path: Path // { // startX: 60 // startY: -20 // PathLine { x: 60; y: 45} // PathLine { x: 60; y: 110} // PathLine { x: 60; y: 175} // } // HMIMouseArea // { // anchors.fill: parent // } // onCurrentIndexChanged: // { // console.log("minute Index", minView.currentIndex) // nAlertofDefaultTime = (minView.currentIndex>=3)?(minView.currentIndex-3):(minView.currentIndex+2) // console.log("nAlertofDefaultTime-->", nAlertofDefaultTime) // if(nAlertofDefaultTime == 0) // { // minute = 5 // console.log("set to deep level minute----------------->" + minute) // } // else if(nAlertofDefaultTime == 1) // { // minute = 15 // console.log("set to deep level minute----------------->" + minute) // } // else if(nAlertofDefaultTime == 2) // { // minute = 30 // console.log("set to deep level minute----------------->" + minute) // } // else if(nAlertofDefaultTime == 3) // { // minute = 60 // console.log("set to deep level minute----------------->" + minute) // } // else // { // minute = 1440 // console.log("set to deep level minute----------------->" + minute) // } // } //} //Image //{ // id: monthTop // anchors.left: setting_calendarBackground.left // width: 700 // anchors.top:setting_calendarBackground.top // anchors.bottom: month_list_BG.top // source: "qrc:MATERIAL/MATERIAL_M8X_FULL-SCREEN_BK"+bgImageStyle //} //Image //{ // id: minuteTop // anchors.left: setting_calendarBackground.left // width: 700 // anchors.top:month_list_BG.bottom // anchors.bottom: minute_list_BG.top // source: "qrc:MATERIAL/MATERIAL_M8X_FULL-SCREEN_BK"+bgImageStyle //} //Image //{ // id: minuteBottom // anchors.left: setting_calendarBackground.left // width: 700 // anchors.top:minute_list_BG.bottom // height:100 // source: "qrc:MATERIAL/MATERIAL_M8X_FULL-SCREEN_BK"+bgImageStyle //} //Image //{ // id: title1_BG // x: 34-14 // y: 190-132 // width: 700 // height: 62 // source: "qrc:MATERIAL/MATERIAL_M8X_TITLE-BG"+bgImageStyle //} //Image //{ // id: title2_BG // x: 34-14 // y: 446-132 // width: 700 // height: 62 // source: "qrc:MATERIAL/MATERIAL_M8X_TITLE-BG"+bgImageStyle //} //HMILabel //{ // id:title1 // x: 52-14 // y: 190-132 // width: 700 // height: 62 // text:qsTr("Overdue auto clear")+ systemCtrl.emptyString // color:"#e1e1e1" // font.pixelSize: 24 // horizontalAlignment: Text.AlignLeft //} //HMILabel //{ // id:title2 // x: 52-14 // y: 446-132 // width: 700 // height: 62 // text:qsTr("Alert default")+ systemCtrl.emptyString // color:"#e1e1e1" // font.pixelSize: 24 // horizontalAlignment: Text.AlignLeft //} //ListModel //{ // id:alertModel // ListElement // { // alertmin:"5 mins before" // } // ListElement // { // alertmin:"15 mins before" // } // ListElement // { // alertmin:"30 mins before" // } // ListElement // { // alertmin:"1 hour before" // } // ListElement // { // alertmin:"1 day before" // } //} //ListModel //{ // id:overdueModel // ListElement // { // overmon:"1 month ago" // } // ListElement // { // overmon:"3 month ago" // } // ListElement // { // overmon:"6 month ago" // } // ListElement // { // overmon:"1 year ago" // } //} //Component //{ // id:comp1 // HMILabel // { // id:txt_minute // width:256 // height:80 // text: qsTr(alertmin)+systemCtrl.emptyString // //verticalAlignment: Text.AlignVCenter // horizontalAlignment: Text.AlignHCenter // font.strikeout: false // //anchors.verticalCenter: parent.verticalCenter // anchors.horizontalCenter: parent.horizontalCenter // color:"#e1e1e1" // font.pixelSize: 24 // } //} //Component //{ // id:comp2 // HMILabel // { // id:txt_month // width:256 // height:80 // text:qsTr(overmon)+systemCtrl.emptyString // // verticalAlignment: Text.AlignVCenter // horizontalAlignment: Text.AlignHCenter // font.strikeout: false // //anchors.verticalCenter: parent.verticalCenter // anchors.horizontalCenter: parent.horizontalCenter // color:"#e1e1e1" // font.pixelSize: 24 // } //} //Item //{ // id:setting_volum_title // x:38//52-14 // y:17//149-132 // width:500 // height:41 // HMILabel // { // width: 500 // height: 41 // text:qsTr("Settings-Calendar")+ systemCtrl.emptyString // color:"#e1e1e1" // font.pixelSize: 28 // anchors.verticalCenter: parent.verticalCenter // verticalAlignment: Text.AlignVCenter // horizontalAlignment: Text.AlignLeft // Image // { // id:back_btn // x:688-52 // y:0 // width:31 // height:21 // visible: bCalendarBackVisible // source: "qrc:MATERIAL/MATERIAL_M8X_ICON_BACK"+bgImageStyle // HMIMouseArea // { // anchors.fill: parent // onClicked: // { // console.debug("Sound Back Button Clicked") // ScreenManager.changeForm(Layout.FM_OPEN,WindowsList.SETTING_MAIN) // } // onPressed: // { // back_btn.source = "qrc:MATERIAL/MATERIAL_M8X_ICON_BACK_P"+bgImageStyle // } // onReleased: // { // back_btn.source = "qrc:MATERIAL/MATERIAL_M8X_ICON_BACK"+bgImageStyle // } // } // } // } //} //} //} //DEL wuyongcode 2017/1/9 baojinfeng end