Changeset 394270
- Timestamp:
- 01/12/12 17:33:08 (4 months ago)
- Branches:
- ('master', 'deebf2045e7119c339412580f37a1e653f7d5715')('controller-upgrade', '00f95d22e12d96ef089e0902ef62ae8ce841dc6f')
- Children:
- 1dfacddf1af00dee7813b006dcb4ed554de2b5ac
- Parents:
- 332bf966f52568b7ac890e860f686d984c765309
- git-author:
- Micke Prag <micke.prag@telldus.se>2012-01-12 17:33:08+01:00
- git-committer:
- Micke Prag <micke.prag@telldus.se>2012-01-12 17:33:08+01:00
- Location:
- telldus-gui/Plugins/Sensors
- Files:
-
- 1 added
- 3 edited
-
CMakeLists.txt (modified) (1 diff)
-
SensorList.qml (added)
-
main.qml (modified) (1 diff)
-
qmldir (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
telldus-gui/Plugins/Sensors/CMakeLists.txt
r332bf9 r394270 35 35 SensorValue.qml 36 36 SensorView.qml 37 SensorList.qml 37 38 ) 38 39 -
telldus-gui/Plugins/Sensors/main.qml
rdf5e08 r394270 5 5 state: "VIEW" 6 6 7 SensorView { 8 id: sensorView 9 } 10 11 Column { 12 spacing: 1 13 BorderImage { 14 id: header 15 source: "header_bg.png" 16 width: parent.width; height: 40 17 border.left: 5; border.top: 5 18 border.right: 5; border.bottom: 5 19 20 HeaderTitle { 21 text: "Name" 22 anchors.left: parent.left 23 anchors.leftMargin: 15 24 } 25 HeaderTitle { 26 text: "ID" 27 anchors.right: modelTitle.left 28 visible: main.state == "EDIT" 29 width: 50 30 } 31 HeaderTitle { 32 id: modelTitle 33 text: "Model" 34 anchors.right: visibleinlistTitle.left 35 visible: main.state == "EDIT" 36 width: 100 37 } 38 HeaderTitle { 39 id: visibleinlistTitle 40 text: "Visible in list" 41 anchors.right: sensorinformationTitle.left 42 visible: main.state == "EDIT" 43 width: 100 44 } 45 HeaderTitle { 46 id: sensorinformationTitle 47 text: "Sensor information" 48 width: 150 49 anchors.right: timestampTitle.left 50 } 51 HeaderTitle { 52 id: timestampTitle 53 text: "Last updated" 54 width: 100 55 anchors.right: parent.right 56 //horizontalAlignment: Text.AlignRight 57 } 58 } 59 Repeater { 60 model: sensorModel 61 delegate: sensorView 62 } 63 Row{ 64 spacing: 20 65 Rectangle { 66 width: 50 67 height: 20 68 Text{ 69 anchors.centerIn: parent 70 text: main.state == "VIEW" ? "Edit" : "View" 71 } 72 MouseArea{ 73 anchors.fill: parent 74 onClicked: { 75 if(main.state == "VIEW"){ 76 main.state = "EDIT" 77 } 78 else{ 79 main.state ="VIEW" 80 } 81 } 82 } 83 } 84 /* 85 Rectangle { 86 //TODO should this button exist at all, or always save? 87 width: 50 88 height: 20 89 visible: main.state == "EDIT" 90 Text{ 91 anchors.centerIn: parent 92 text: "Cancel" 93 } 94 MouseArea{ 95 anchors.fill: parent 96 onClicked: { 97 main.state ="VIEW" 98 } 99 } 100 } 101 */ 102 } 103 anchors.fill: parent 7 SensorList { 8 id: sensorList 104 9 } 105 10 } -
telldus-gui/Plugins/Sensors/qmldir
rdf5e08 r394270 2 2 SensorValue 1.0 SensorValue.qml 3 3 SensorView 1.0 SensorView.qml 4 SensorList 1.0 SensorList.qml
Note: See TracChangeset
for help on using the changeset viewer.
