summaryrefstree
path: root/usr/bin/qml/Diag/SettingDisplay/Diag_Setting_Calender.qml
blob: 8fdeaccfea1c99406b61c0efea51075da96b443a (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
import QtQuick 2.0

import "../../com/neusoft/auto/widgets"
import "../../windowsList.js" as WindowsList
import "../../layoutList.js" as Layout
import "../../Setting/Settinglist.js" as Settinglist
import "../"

DiagDevelopWindow
{
    id:diag_setting_calendar

    Component.onCompleted:
    {

    }

    onVisibleChanged:
    {
        if(diag_setting_calendar.visible == true)
        {

        }
        else
        {

        }
    }

    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 string style: systemCtrl.style

    Image
    {
        id:full_screen_bk
        x: 14
        y: 4//132-setting_Briliance_AirItem.y
        width: 740
        height: 760
        //        source: "qrc:MATERIAL/MATERIAL_M8X_FULL-SCREEN_BK"+style
    }

    Item
    {
        id:setting_calender_title
        x:38//52-14
        y:17//149-setting_Briliance_AirItem.y
        width: 467
        height:41
        HMILabel
        {
            width: 467
            height:41
            text:qsTr("Settings-Calendar")+ systemCtrl.emptyString
            color:"#e1e1e1"
            font.pixelSize: 28
            anchors.verticalCenter: parent.verticalCenter
            verticalAlignment: Text.AlignVCenter
            horizontalAlignment: Text.AlignLeft

        }
    }
    Item
    {
        x:20//14-14
        y:62//190-setting_Briliance_AirItem.y
        width: 740
        height: 636//760-124
        Column
        {
            id:right3
            x: 0
            y: 0
            width: parent.width
            height: parent.height
            anchors.topMargin: 0
            anchors.fill: parent
            spacing: 2


            Row
            {
                id: overdue
                width: right3.width
                height: 62

                Item
                {
                    width: 18
                    height: 1
                }

                HMILabel
                {
                    id: overdue_text
                    width:280
                    height: 62
                    text:qsTr("Overdue auto clear")+ systemCtrl.emptyString
                    font.pixelSize: 24
                    verticalAlignment: Text.AlignVCenter
                    horizontalAlignment: Text.AlignLeft
                }

                Item
                {
                    width: 700 - overdue_text.width - overdue_btn.width - 18 - 15
                    height: 1
                }

                HMILabel
                {
                    id:overdue_btn
                    y: 18
                    width: 256
                    height: 28
                    text: (0 == iMon)?qsTr("1 month ago")+ systemCtrl.emptyString:(1 == iMon)?qsTr("3 month ago")+ systemCtrl.emptyString:(2 == iMon)?qsTr("6 month ago")+ systemCtrl.emptyString:qsTr("1 year ago")+ systemCtrl.emptyString
                    font.pixelSize: 24
                    verticalAlignment: Text.AlignVCenter
                    horizontalAlignment: Text.AlignRight
                }
            }



            Row
            {
                id: alert
                width: right3.width
                height: 62

                Item
                {
                    width: 18
                    height: 1
                }

                HMILabel
                {
                    id: alert_text
                    width:280
                    height: 62
                    text:qsTr("Alert default")+ systemCtrl.emptyString
                    font.pixelSize: 24
                    verticalAlignment: Text.AlignVCenter
                    horizontalAlignment: Text.AlignLeft
                }
                Item
                {
                    width: 700 - alert_text.width - alert_btn.width - 18 - 15
                    height: 1
                }

                HMILabel
                {
                    id:alert_btn
                    y: 18
                    width: 256
                    height: 28
                    text: (0 == nAlertofDefaultTime)?qsTr("5 mins before")+ systemCtrl.emptyString:(1 == nAlertofDefaultTime)?qsTr("15 mins before")+ systemCtrl.emptyString:(2 == nAlertofDefaultTime)?qsTr("30 mins before")+ systemCtrl.emptyString:(3 == nAlertofDefaultTime)?qsTr("1 hour before")+ systemCtrl.emptyString:qsTr("1 day before")+ systemCtrl.emptyString
                    font.pixelSize: 24
                    verticalAlignment: Text.AlignVCenter
                    horizontalAlignment: Text.AlignRight
                }
            }
        }
    }
}