Index: sources/gui/qml/pages/SettingsHome.qml =================================================================== diff -u -rf35b360054e1e2fa81bf107427fe2d50d78e9e8a -rfeb7724c8a7a2932650c5daa490c90923c9fbe77 --- sources/gui/qml/pages/SettingsHome.qml (.../SettingsHome.qml) (revision f35b360054e1e2fa81bf107427fe2d50d78e9e8a) +++ sources/gui/qml/pages/SettingsHome.qml (.../SettingsHome.qml) (revision feb7724c8a7a2932650c5daa490c90923c9fbe77) @@ -28,7 +28,6 @@ * which is the default screen in the "Settings" stack */ ScreenItem { id: _root - backgroundRect.color: Colors.backgroundMenu TouchRect { id : _clearAlarmCondition objectName: "_clearAlarmCondition" @@ -42,7 +41,7 @@ rightMargin : (Variables.headerHeight - Variables.logoHeight) / 2 } text.text: qsTr("Clear Alarm Condition") - button.onPressed: { + button.onClicked: { vAlarmStatus.doClearCondition(); } } @@ -84,14 +83,29 @@ } TitleText { id: _titleText - anchors.horizontalCenter: parent.horizontalCenter; - anchors.top: parent.top - anchors.topMargin: 150 + anchors { + horizontalCenter: parent.horizontalCenter; + top: parent.top + topMargin: 150 + } width: parent.width text: qsTr("Device Settings") } + TitleText { + anchors { + horizontalCenter: parent.horizontalCenter + top: _titleText.bottom + topMargin: 10 + } + text: qsTr("Service Mode") + color: Colors.textMain + font.italic: true + font.pixelSize: Fonts.fontPixelDialogText + visible: vServiceMode.isServiceMode + } + /* Diagnostics { id: _diagnostics @@ -101,34 +115,79 @@ SettingsBluetooth { id: _bluetooth - onClickedBack: pop() + onClickedBack: _settingsStack.pop() } SettingsWifi { id: _wifi - onClickedBack: pop() + onClickedBack: _settingsStack.pop() } + SettingsDeviceInformation { + id: _deviceInformation + onClickedBack: _settingsStack.pop() + } + + SettingsDateTimeSet { + id: _dateTimeSet + onClickedBack: _settingsStack.pop() + } + Column { - anchors.centerIn: parent; + anchors.centerIn: parent + SettingsItem { id: _item_ + title : qsTr("Device Information") + onClicked: { + vDeviceInformation.doRequestHDDGVersions() + vDeviceInformation.doRequestServiceData() + _settingsStack.push(_deviceInformation) + } + } - // add each settings page here. SettingsItem { id: _item_bluetooth title : qsTr("Bluetooth") - onClicked: push(_bluetooth); + onClicked: _settingsStack.push(_bluetooth); } SettingsItem { id: _item_wifi title : qsTr("Wifi") onClicked: { - push(_wifi); + _settingsStack.push(_wifi); vNetworkModel.doScan() } + } + SettingsItem { id: _item_serviceMode + title : qsTr("Service Mode") + onClicked: { + _serviceLogin.visible = true + } + visible: !vServiceMode.isServiceMode + } + SettingsItem { id: _itemDateTimeSet + title : qsTr("Set Date and Time") + onClicked: { + vDateTime.doGetCurrentTime() + push(_dateTimeSet) + } + } + } + TouchRect { id: _scan + anchors { + bottom: _root.bottom + bottomMargin: Variables.settingsMargin + horizontalCenter: _root.horizontalCenter } + visible: vServiceMode.isServiceMode + backgroundColor: Colors.backgroundButtonNormal + textColor: Colors.textMain + height: Variables.settingsButtonHeight + width: Variables.settingsButtonWidth + text.text: qsTr("Shutdown") + onClicked: { + _powerOffDialog.open() + } } } - -