blob: 7d874a896a4bfbae5225f5b9497cb5f7bdc673e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
|
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================================================*/
}
|