Commit c514111d authored by Aleksei German's avatar Aleksei German
Browse files

Washing Machine Program Settings changes

parent 34c5e5f4
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.13.2, 2020-12-15T18:16:05. -->
<!-- Written by QtCreator 4.13.2, 2020-12-16T17:48:15. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>
......
......@@ -22,6 +22,13 @@ Item {
y: 5
width: 260
height: 270
Connections {
target: washprogramgridinstance
onActiveItemChanged: {
washprogsettingsinstance.settingsModelId = washprogramgridinstance.activeItem
}
}
}
Washprogramsettings {
......
......@@ -5,6 +5,8 @@ Item {
width: 270
height: 270
property int activeItem: 4
Image {
id: gridimage
x: 9
......@@ -13,137 +15,538 @@ Item {
}
Washprogramitem {
id: washprogramtemp
x: 86
y: 92
id: washprogramitem0
x: 0
y: 7
width: 85
height: 84
washprogramiconY: 12
temperatureiconoffY: 12
currentvaluelabelText: "60°"
washprogramiconSource: "assets/washprogramicon.png"
temperatureiconoffSource: "assets/temperatureiconoff.png"
}
Washprogramitem {
id: washprogramtemp1
x: 173
y: 92
width: 85
height: 84
washprogramiconY: 18
washprogramiconX: 17
temperatureiconoffY: 18
temperatureiconoffX: 17
currentvaluelabelText: "Off"
washprogramiconSource: "assets/timericonon.png"
temperatureiconoffSource: "assets/timericonoff.png"
temperatureiconoffSource: "assets/coloriconoff.png"
washprogramiconSource: "assets/coloriconon.png"
currentvaluelabelText: "Dark"
Connections {
target: washprogramitem0
onPressed: {
washprogramgrid.activeItem = 0
}
}
}
Washprogramitem {
id: washprogramtemp2
id: washprogramitem1
x: 86
y: 7
width: 85
height: 84
currentvaluelabelText: "Heavy"
washprogramiconY: 10
washprogramiconX: 26
temperatureiconoffY: 10
temperatureiconoffX: 26
washprogramiconSource: "assets/soiliconon.png"
temperatureiconoffSource: "assets/soiliconoff.png"
currentvaluelabelText: "Heavy"
Connections {
target: washprogramitem1
onPressed: {
washprogramgrid.activeItem = 1
}
}
}
Washprogramitem {
id: washprogramtemp3
id: washprogramitem2
x: 172
y: 7
y: 8
width: 85
height: 84
currentvaluelabelText: "Cotton"
washprogramiconY: 12
washprogramiconX: 28
temperatureiconoffY: 12
temperatureiconoffX: 28
washprogramiconSource: "assets/fabriciconon.png"
temperatureiconoffSource: "assets/fabriciconoff.png"
currentvaluelabelText: "Cotton"
Connections {
target: washprogramitem2
onPressed: {
washprogramgrid.activeItem = 2
}
}
}
Washprogramitem {
id: washprogramtemp4
id: washprogramitem3
x: 0
y: 7
y: 92
width: 85
height: 84
currentvaluelabelText: "Dark"
washprogramiconY: 11
washprogramiconX: 25
temperatureiconoffY: 11
temperatureiconoffX: 25
temperatureiconoffSource: "assets/coloriconoff.png"
washprogramiconSource: "assets/coloriconon.png"
washprogramiconSource: "assets/timeiconon.png"
temperatureiconoffSource: "assets/timeiconoff.png"
currentvaluelabelText: "120 Mins"
Connections {
target: washprogramitem3
onPressed: {
washprogramgrid.activeItem = 3
}
}
}
Washprogramitem {
id: washprogramtemp5
x: 0
id: washprogramitem4
x: 86
y: 92
width: 85
height: 84
currentvaluelabelText: "120 Mins"
temperatureiconoffY: 12
washprogramiconY: 12
washprogramiconX: 27
temperatureiconoffX: 27
washprogramiconSource: "assets/timeiconon.png"
temperatureiconoffSource: "assets/timeiconoff.png"
washprogramiconSource: "assets/washprogramicon.png"
temperatureiconoffSource: "assets/temperatureiconoff.png"
currentvaluelabelText: "60°"
Connections {
target: washprogramitem4
onPressed: {
washprogramgrid.activeItem = 4
}
}
}
Washprogramitem {
id: washprogramitem5
x: 172
y: 92
width: 85
height: 84
washprogramiconSource: "assets/timericonon.png"
temperatureiconoffSource: "assets/timericonoff.png"
currentvaluelabelText: "Off"
Connections {
target: washprogramitem5
onPressed: {
washprogramgrid.activeItem = 5
}
}
}
Washprogramitem {
id: washprogramtemp6
id: washprogramitem6
x: 0
y: 177
width: 85
height: 84
washprogramiconY: 12
washprogramiconX: 26
temperatureiconoffY: 12
temperatureiconoffX: 26
currentvaluelabelText: "2.5 kg"
washprogramiconSource: "assets/weighticonon.png"
temperatureiconoffSource: "assets/weighticonoff.png"
currentvaluelabelText: "2.5 kg"
Connections {
target: washprogramitem6
onPressed: {
washprogramgrid.activeItem = 6
}
}
}
Washprogramitem {
id: washprogramtemp7
id: washprogramitem7
x: 86
y: 177
width: 85
height: 84
washprogramiconY: 15
washprogramiconX: 28
temperatureiconoffY: 15
temperatureiconoffX: 28
currentvaluelabelText: "1200"
washprogramiconSource: "assets/spiniconon.png"
temperatureiconoffSource: "assets/spiniconoff.png"
currentvaluelabelText: "1200"
Connections {
target: washprogramitem7
onPressed: {
washprogramgrid.activeItem = 7
}
}
}
Washprogramitem {
id: washprogramtemp8
id: washprogramitem8
x: 172
y: 177
width: 85
height: 84
washprogramiconY: 13
washprogramiconX: 24
temperatureiconoffY: 13
temperatureiconoffX: 24
washprogramiconSource: "assets/watericonon.png"
temperatureiconoffSource: "assets/watericonoff.png"
currentvaluelabelText: "Medium"
Connections {
target: washprogramitem8
onPressed: {
washprogramgrid.activeItem = 8
}
}
}
states: [
State {
name: "colorState"
when: activeItem === 0
PropertyChanges {
target: washprogramitem0
toggled: true
}
PropertyChanges {
target: washprogramitem1
toggled: false
}
PropertyChanges {
target: washprogramitem2
toggled: false
}
PropertyChanges {
target: washprogramitem3
toggled: false
}
PropertyChanges {
target: washprogramitem4
toggled: false
}
PropertyChanges {
target: washprogramitem5
toggled: false
}
PropertyChanges {
target: washprogramitem6
toggled: false
}
PropertyChanges {
target: washprogramitem7
toggled: false
}
PropertyChanges {
target: washprogramitem8
toggled: false
}
},
State {
name: "soilState"
when: activeItem === 1
PropertyChanges {
target: washprogramitem0
toggled: false
}
PropertyChanges {
target: washprogramitem1
toggled: true
}
PropertyChanges {
target: washprogramitem2
toggled: false
}
PropertyChanges {
target: washprogramitem3
toggled: false
}
PropertyChanges {
target: washprogramitem4
toggled: false
}
PropertyChanges {
target: washprogramitem5
toggled: false
}
PropertyChanges {
target: washprogramitem6
toggled: false
}
PropertyChanges {
target: washprogramitem7
toggled: false
}
PropertyChanges {
target: washprogramitem8
toggled: false
}
},
State {
name: "fabricState"
when: activeItem === 2
PropertyChanges {
target: washprogramitem0
toggled: false
}
PropertyChanges {
target: washprogramitem1
toggled: false
}
PropertyChanges {
target: washprogramitem2
toggled: true
}
PropertyChanges {
target: washprogramitem3
toggled: false
}
PropertyChanges {
target: washprogramitem4
toggled: false
}
PropertyChanges {
target: washprogramitem5
toggled: false
}
PropertyChanges {
target: washprogramitem6
toggled: false
}
PropertyChanges {
target: washprogramitem7
toggled: false
}
PropertyChanges {
target: washprogramitem8
toggled: false
}
},
State {
name: "timeState"
when: activeItem === 3
PropertyChanges {
target: washprogramitem0
toggled: false
}
PropertyChanges {
target: washprogramitem1
toggled: false
}
PropertyChanges {
target: washprogramitem2
toggled: false
}
PropertyChanges {
target: washprogramitem3
toggled: true
}
PropertyChanges {
target: washprogramitem4
toggled: false
}
PropertyChanges {
target: washprogramitem5
toggled: false
}
PropertyChanges {
target: washprogramitem6
toggled: false
}
PropertyChanges {
target: washprogramitem7
toggled: false
}
PropertyChanges {
target: washprogramitem8
toggled: false
}
},
State {
name: "temperatureState"
when: activeItem === 4
PropertyChanges {
target: washprogramitem0
toggled: false
}
PropertyChanges {
target: washprogramitem1
toggled: false
}
PropertyChanges {
target: washprogramitem2
toggled: false
}
PropertyChanges {
target: washprogramitem3
toggled: false
}
PropertyChanges {
target: washprogramitem4
toggled: true
}
PropertyChanges {
target: washprogramitem5
toggled: false
}
PropertyChanges {
target: washprogramitem6
toggled: false
}
PropertyChanges {
target: washprogramitem7
toggled: false
}
PropertyChanges {
target: washprogramitem8
toggled: false
}
},
State {
name: "timerState"
when: activeItem === 5
PropertyChanges {
target: washprogramitem0
toggled: false
}
PropertyChanges {
target: washprogramitem1
toggled: false
}
PropertyChanges {
target: washprogramitem2
toggled: false
}
PropertyChanges {
target: washprogramitem3
toggled: false
}
PropertyChanges {
target: washprogramitem4
toggled: false
}
PropertyChanges {
target: washprogramitem5
toggled: true
}
PropertyChanges {
target: washprogramitem6
toggled: false
}
PropertyChanges {
target: washprogramitem7
toggled: false
}
PropertyChanges {
target: washprogramitem8
toggled: false
}
},
State {
name: "weightState"
when: activeItem === 6
PropertyChanges {
target: washprogramitem0
toggled: false
}
PropertyChanges {
target: washprogramitem1
toggled: false
}
PropertyChanges {
target: washprogramitem2
toggled: false
}
PropertyChanges {
target: washprogramitem3
toggled: false
}
PropertyChanges {
target: washprogramitem4
toggled: false
}
PropertyChanges {
target: washprogramitem5
toggled: false
}
PropertyChanges {
target: washprogramitem6
toggled: true
}
PropertyChanges {
target: washprogramitem7
toggled: false
}
PropertyChanges {
target: washprogramitem8
toggled: false
}
},
State {
name: "spinState"
when: activeItem === 7
PropertyChanges {
target: washprogramitem0
toggled: false
}
PropertyChanges {
target: washprogramitem1
toggled: false
}
PropertyChanges {
target: washprogramitem2
toggled: false
}
PropertyChanges {
target: washprogramitem3
toggled: false
}
PropertyChanges {
target: washprogramitem4
toggled: false
}
PropertyChanges {
target: washprogramitem5
toggled: false
}
PropertyChanges {
target: washprogramitem6
toggled: false
}
PropertyChanges {
target: washprogramitem7
toggled: true
}
PropertyChanges {
target: washprogramitem8
toggled: false
}
},
State {
name: "waterState"
when: activeItem === 8
PropertyChanges {
target: washprogramitem0
toggled: false
}
PropertyChanges {
target: washprogramitem1
toggled: false
}
PropertyChanges {
target: washprogramitem2
toggled: false