blob: d00d7ae7e76e5fa4163bacbd2eaf551272231e01 (
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
|
import QtQuick 2.0
import "../com/neusoft/auto/widgets"
import "../eventsList.js" as EventsList
import "../layoutList.js" as Layout
import "../windowsList.js" as WindowsList
import Label 2.0
HMIWindow{
id:main_window
property int pyeventx: 15
Component.onCompleted:
{
windowID = WindowsList.CARLINK_MYLIST
}
onVisibleChanged:
{
bMainWindow = false
}
HMILabel {
id : text_title
x : 51 -pyeventx
y : 148-131
height : 27
width : 250
font.pixelSize:27
horizontalAlignment: Label.AlignLeft
text : qsTr("AutoGroup")+systemCtrl.emptyString
}
HMIButton{
id:back
x:689 -pyeventx
y:151-131
width:31
height:21
btnImg:back.pressed?"qrc:MATERIAL/MATERIAL_M8X_ICON_BACK_P"+bgImageStyle
:"qrc:MATERIAL/MATERIAL_M8X_ICON_BACK"+bgImageStyle
onClicked: {
ScreenManager.changeForm(Layout.FM_OPEN,WindowsList.CARLINK_MAIN)
}
}
HMIButton{
id:chat_interaction
x:70-pyeventx
y:bMaxWindow?828-131-3:444-131-3
labelPixelSize:23
labelText: qsTr("Chats")+systemCtrl.emptyString
btnImg:chat_interaction.pressed?"qrc:MATERIAL/MATERIAL_M8X_FUNCTION_BUTTON_4_P"+bgImageStyle
:"qrc:MATERIAL/MATERIAL_M8X_FUNCTION_BUTTON_4"+bgImageStyle
onClicked: {
ScreenManager.changeForm(Layout.FM_OPEN,WindowsList.CARLINK_CHATINTERACTION)
}
}
HMIButton{
id:auto_list
x:192-pyeventx
y:bMaxWindow?828-131-3:444-131-3
labelPixelSize:23
labelText: qsTr("Contacts")+systemCtrl.emptyString
btnImg:auto_list.pressed?"qrc:MATERIAL/MATERIAL_M8X_FUNCTION_BUTTON_4_P"+bgImageStyle
:"qrc:MATERIAL/MATERIAL_M8X_FUNCTION_BUTTON_4_C"+bgImageStyle
}
HMIButton{
id : refresh
x:32-pyeventx
y:193-131
btnImg:refresh.pressed?"qrc:MATERIAL/MATERIAL_M8X_MEDIA_BUTTON_TAG_P"+bgImageStyle
:"qrc:MATERIAL/MATERIAL_M8X_MEDIA_BUTTON_TAG"+bgImageStyle
Image{
x:33
y:14
width:34
height: 28
source:"qrc:MATERIAL/MATERIAL_M8X_ICON_UPDATE"+bgImageStyle
}
onClicked: {
//popup.popvisible = true ;
carlinkCtrl.appOrganization_Request()
}
}
Component {
id: model_delegate
Item {
width: 590
height: 62
HMIButton{
id : item
btnImg:model.modelData.User_Type!=="0" ?( item.pressed ? "qrc:MATERIAL/MATERIAL_M8X_LIST_590_P"+bgImageStyle: "qrc:MATERIAL/MATERIAL_M8X_LIST_590"+bgImageStyle)
: "qrc:MATERIAL/MATERIAL_M8X_TITLE-BG_590"+bgImageStyle
enabled: model.modelData.User_Type!=="0"?true:false
Image{
x:9
y:8
visible: model.modelData.User_Type!=="0"?true : false
sourceSize.height:46
sourceSize.width:46
source: model.modelData.Icon_Path ===""?"qrc:MATERIAL/MATERIAL_M8X_DEFAULT_AVATAR"+bgImageStyle
:model.modelData.Icon_Path
}
HMILabel{
x:model.modelData.User_Type!=="0"?210-144:16
y:20
width:400
height:28
font.pixelSize:23
horizontalAlignment: Label.AlignLeft
text: model.modelData.User_Name
}
onClicked: {
if ("1"=== model.modelData.User_Type){
carlinkCtrl.selAutoGroupListforId(model.modelData.User_Id);
}
else if ("3" === model.modelData.User_Type ){
carlinkCtrl.selAutoGroupListforGroup(model.modelData.User_Id);
}
else{
//do nothing
}
carlinkCtrl.setCurrentUseId(model.modelData.User_Id);
carlinkCtrl.setCurrentDialogName(model.modelData.User_Name);
carlinkCtrl.setCurrentDialogtype(model.modelData.User_Type);
ScreenManager.changeForm(Layout.FM_OPEN,WindowsList.CARLINK_DIALOGBOX)
ScreenManager.changeForm(Layout.FM_CLOSE,windowID)
}
}
}
}
HMIListView{
id : list
x:144 - pyeventx
y:190-131
width:620-15
height: bMaxWindow?638:254-3
model : carlinkCtrl.getMyList()
delegate: model_delegate
spacing: 1
showBar: true
scrollBar:true
}
MylistPopup{
id:popup
popvisible:carlinkCtrl.isMylistpopShow
popimageY : bMaxWindow ? 424-131 : 85
mask_height : bMaxWindow ? 695 : 310
}
Connections{
target: carlinkCtrl
onSigMyListChanged:{
list.model = carlinkCtrl.getMyList()
//popup.popvisible = false
}
}
}
|