import QtQuick 2.0 import "../com/neusoft/auto/widgets" import "coordinate.js" as CONFIG import "../windowsList.js" as WindowsList import "../layoutList.js" as Layout import Label 2.0 Item { // property int listCurIndex: eventsListView.currentIndex//4.5 signal curIndexChanged; width: 700 height: 386//reminderCtrl.isMainPageFullScr ? 391:246 // Image // { // x:108 // y:250 // id: image_Background // width: 500 // height: 386 // source: CONFIG.LIST_BG_IMG // visible: reminderCtrl.isMainPageFullScr ? true:false // } //4.5 // Component // { // id:fullScrCmp // HMIButton // { // id: btnEvt // width:700 // height:162 // anchors.left: parent.left // btnImg: btnEvt.pressed ? "qrc:MATERIAL/MATERIAL_M8X_CALENDAR_EVENT_BK_P"+ bgImageStyle : "qrc:MATERIAL/MATERIAL_M8X_CALENDAR_EVENT_BK"+ bgImageStyle // Image // { // x:0 // y:0 // width:parent.width // height:40 //// source: CONFIG.LIST_TIME_TITLE_BG_IMG // HMILabel // { // anchors.fill: parent // anchors.leftMargin: 15 // horizontalAlignment: Label.AlignLeft // elide:Text.ElideRight // text: CONFIG.getFormatTimeStringEx(modelData.startDateTime)+" - "+CONFIG.getFormatTimeStringEx(modelData.endDateTime) // font.pixelSize: CONFIG.REMINDER_BTN_FONT_SIZE // color:((mEvtManage.isEvtListOfShowingClicked)&&(mEvtManage.indexInEvtListOfShowing == index)) ? "#3FA2EE":"#e5e5e5" // } // } // HMILabel // { // id: ovderdueEvent // x:600 // y:3 // width:90 // height:33 // horizontalAlignment: Label.AlignRight // visible:modelData.isOverdue ? true : false // text: qsTr("已过期")+ systemCtrl.emptyString // font.pixelSize: CONFIG.REMINDER_BTN_FONT_SIZE // color: "#FF0000" // } // HMILabel // { // id: titleLabel // x:15 // y:40 // width:parent.width-15 // height:33 // horizontalAlignment: Label.AlignLeft // elide:Text.ElideRight // text: modelData.evtTitle // font.pixelSize: CONFIG.REMINDER_BTN_FONT_SIZE // color:((mEvtManage.isEvtListOfShowingClicked)&&(mEvtManage.indexInEvtListOfShowing == index)) ? "#3FA2EE":"#e5e5e5" // } // HMILabel // { // id: contentLabel // x:15 // y:73 // width:parent.width-15 // height:parent.height-82 // horizontalAlignment: Label.AlignLeft // text:modelData.evtContent // wrapMode: Label.WordWrap // elide:Label.ElideRight // bMultiLine:true // font.pixelSize: CONFIG.REMINDER_BTN_FONT_SIZE // color:((mEvtManage.isEvtListOfShowingClicked)&&(mEvtManage.indexInEvtListOfShowing == index)) ? "#3FA2EE":"#e5e5e5" // } // onClicked: // { // mEvtManage.indexInEvtListOfShowing = index; // mEvtManage.isEvtListOfShowingClicked = true; // } // } // } // 4.5 // HMIListView // { // id: eventsListView // spacing: 40 // clip: true // x: 6 // y: 248 // width: 700 // height: 386//reminderCtrl.isMainPageFullScr ? 636:245 // //anchors.horizontalCenter: parent.horizontalCenter // visible: reminderCtrl.isMainPageFullScr ? true:false // model: mEvtManage.GetEvtListOfSelectedDateFromDB(mCalendar.selectedDate) // delegate: fullScrCmp//reminderCtrl.isMainPageFullScr ? fullScrCmp:halfScrCmp //// interactive: false // snapMode: ListView.SnapOneItem // focus: true // //highlightFollowsCurrentItem: true // //highlightRangeMode: ListView.StrictlyEnforceRange // flickableDirection: Flickable.VerticalFlick // scrollBar:true // showBar:true // scrollBar_edge:1 // scrollBar_width:4 // rightMargin:0 // boundsBehavior: Flickable.StopAtBounds // scrollBar_img: CONFIG.SCROOL_BAR_IMG // onCurrentIndexChanged: // { //// console.log("[onCurrentIndexChanged]-->curIndex:",currentIndex) // listCurIndex = currentIndex; // curIndexChanged(); // } // } /*========================================Connections Start===========================================*/ Connections { target: mEvtManage onEvtDBChanged: { console.log("[Reminder_Main][EvtListOfSelDate][onEvtDBChanged]-->]----->2") //eventsListView.model = mEvtManage.GetEvtListOfSelectedDateFromDB(mCalendar.selectedDate);//4.5 mEvtManage.isEvtListOfShowingClicked = false; } } Connections { target: mCalendar onSelDateChanged: { console.log("[Reminder_Main][EvtListOfSelDate][onSelDateChanged]-->") //eventsListView.model = mEvtManage.GetEvtListOfSelectedDateFromDB(mCalendar.selectedDate);//4.5 /*if(reminderCtrl.isMainPageFullScr) { if(mEvtManage.GetCntOfEvtListOfSelectedDate() > 0) { eventsListView.positionViewAtIndex(mEvtManage.getMinIndexInEvtListOfShowingMonthCloseTo(mCalendar.selectedDate) ,ListView.Beginning); } }*///del by yx } onShowingMonChanged: { console.log("[Reminder_Main][EvtListOfSelDate][onShowingMonChanged]-->") /*if(reminderCtrl.isMainPageFullScr) { //eventsListView.model = mEvtManage.GetEvtListOfSelectedDateFromDB(mCalendar.selectedDate);//4.5 mEvtManage.isEvtListOfShowingClicked = false; }*///del by yx } } Connections { target: reminderCtrl onIsMainPageFullScrChanged: { // console.log("[Reminder_Main][EvtListOfSelDate][onIsMainPageFullScrChanged]-->") // if(reminderCtrl.isMainPageFullScr)//4.5 // { // eventsListView.model = mEvtManage.GetEvtListOfSelectedDateFromDB(mCalendar.selectedDate); // if(mEvtManage.GetCntOfEvtListOfSelectedDate() > 0) // { // eventsListView.positionViewAtIndex(mEvtManage.getMinIndexInEvtListOfShowingMonthCloseTo(mCalendar.selectedDate) ,ListView.Beginning); // } // } } } /*========================================Connections End=============================================*/ /*========================================Function Start==============================================*/ /*========================================Function End================================================*/ }