Lots of cleanups
This commit is contained in:
@@ -11,7 +11,7 @@ Text {
|
|||||||
|
|
||||||
ApiKeyValueHelper {
|
ApiKeyValueHelper {
|
||||||
id: apiKeyValueHelper
|
id: apiKeyValueHelper
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
}
|
}
|
||||||
|
|
||||||
text: apiKeyValueHelper.value
|
text: apiKeyValueHelper.value
|
||||||
|
@@ -28,7 +28,7 @@ NavigationPage {
|
|||||||
|
|
||||||
SendMessageHelper {
|
SendMessageHelper {
|
||||||
id: apiToken
|
id: apiToken
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
}
|
}
|
||||||
|
|
||||||
Button {
|
Button {
|
||||||
@@ -61,7 +61,7 @@ NavigationPage {
|
|||||||
|
|
||||||
ApiKeyValueHelper {
|
ApiKeyValueHelper {
|
||||||
id: tokenSetup
|
id: tokenSetup
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
apiKey: "hatv"
|
apiKey: "hatv"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -69,7 +69,7 @@ NavigationPage {
|
|||||||
|
|
||||||
SendMessageHelper {
|
SendMessageHelper {
|
||||||
id: abortFirmwareUpdate
|
id: abortFirmwareUpdate
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
}
|
}
|
||||||
|
|
||||||
Button {
|
Button {
|
||||||
@@ -105,7 +105,7 @@ NavigationPage {
|
|||||||
|
|
||||||
ApiKeyValueHelper {
|
ApiKeyValueHelper {
|
||||||
id: cloudApiKey
|
id: cloudApiKey
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
apiKey: "cak"
|
apiKey: "cak"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -136,7 +136,7 @@ NavigationPage {
|
|||||||
|
|
||||||
ApiKeyValueHelper {
|
ApiKeyValueHelper {
|
||||||
id: gridApiKey
|
id: gridApiKey
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
apiKey: "gmk"
|
apiKey: "gmk"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -62,6 +62,8 @@ qt_add_qml_module(evcharger-app
|
|||||||
BaseNavigationPage.qml
|
BaseNavigationPage.qml
|
||||||
CablePage.qml
|
CablePage.qml
|
||||||
CarPage.qml
|
CarPage.qml
|
||||||
|
CenteredDialog.qml
|
||||||
|
ChangeNumberItem.qml
|
||||||
ChargerTabPage.qml
|
ChargerTabPage.qml
|
||||||
ChargingConfigurationPage.qml
|
ChargingConfigurationPage.qml
|
||||||
ChargingSpeedPage.qml
|
ChargingSpeedPage.qml
|
||||||
@@ -120,6 +122,9 @@ qt_add_qml_module(evcharger-app
|
|||||||
TimePicker.qml
|
TimePicker.qml
|
||||||
VerticalTabButton.qml
|
VerticalTabButton.qml
|
||||||
WhiteBox.qml
|
WhiteBox.qml
|
||||||
|
WhiteCheckDelegate.qml
|
||||||
|
WhiteItemDelegate.qml
|
||||||
|
WhiteSwipeDelegate.qml
|
||||||
WiFiErrorsPage.qml
|
WiFiErrorsPage.qml
|
||||||
WiFiOnOffSwitch.qml
|
WiFiOnOffSwitch.qml
|
||||||
WiFiPage.qml
|
WiFiPage.qml
|
||||||
|
7
CenteredDialog.qml
Normal file
7
CenteredDialog.qml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
import QtQuick
|
||||||
|
import QtQuick.Controls
|
||||||
|
import QtQuick.Layouts
|
||||||
|
|
||||||
|
Dialog {
|
||||||
|
anchors.centerIn: parent
|
||||||
|
}
|
45
ChangeNumberItem.qml
Normal file
45
ChangeNumberItem.qml
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
import QtQuick
|
||||||
|
import QtQuick.Controls
|
||||||
|
import QtQuick.Layouts
|
||||||
|
|
||||||
|
WhiteItemDelegate {
|
||||||
|
property alias descriptionText: descriptionText.text
|
||||||
|
property alias valueText: valueText.text
|
||||||
|
|
||||||
|
Layout.fillWidth: true
|
||||||
|
|
||||||
|
contentItem: RowLayout {
|
||||||
|
Text {
|
||||||
|
id: descriptionText
|
||||||
|
wrapMode: Text.Wrap
|
||||||
|
Layout.fillWidth: true
|
||||||
|
font.bold: true
|
||||||
|
}
|
||||||
|
|
||||||
|
Text {
|
||||||
|
id: valueText
|
||||||
|
}
|
||||||
|
|
||||||
|
Text {
|
||||||
|
text: ">"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
onClicked: dialog.open()
|
||||||
|
|
||||||
|
CenteredDialog {
|
||||||
|
id: dialog
|
||||||
|
|
||||||
|
title: qsTr("Password required")
|
||||||
|
standardButtons: Dialog.Ok | Dialog.Cancel
|
||||||
|
focus: true
|
||||||
|
modal: true
|
||||||
|
|
||||||
|
contentItem: SpinBox {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// onAccepted: theDeviceConnection.sendAuth(passwordInput.text)
|
||||||
|
// onRejected: loader.close()
|
||||||
|
}
|
||||||
|
}
|
@@ -36,7 +36,7 @@ AnimatedStackView {
|
|||||||
|
|
||||||
ApiKeyValueHelper {
|
ApiKeyValueHelper {
|
||||||
id: friendlyName
|
id: friendlyName
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
apiKey: "fna"
|
apiKey: "fna"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -117,13 +117,13 @@ AnimatedStackView {
|
|||||||
|
|
||||||
ApiKeyValueHelper {
|
ApiKeyValueHelper {
|
||||||
id: devicetype
|
id: devicetype
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
apiKey: "typ"
|
apiKey: "typ"
|
||||||
}
|
}
|
||||||
|
|
||||||
ApiKeyValueHelper {
|
ApiKeyValueHelper {
|
||||||
id: isgo
|
id: isgo
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
apiKey: "isgo"
|
apiKey: "isgo"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -159,7 +159,7 @@ AnimatedStackView {
|
|||||||
|
|
||||||
ApiKeyValueHelper {
|
ApiKeyValueHelper {
|
||||||
id: logicMode
|
id: logicMode
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
apiKey: "lmo"
|
apiKey: "lmo"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -6,14 +6,12 @@ import EVChargerApp
|
|||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
signal connected
|
signal connected
|
||||||
|
|
||||||
required property DeviceConnection deviceConnection
|
|
||||||
|
|
||||||
function backPressed() {
|
function backPressed() {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: deviceConnection
|
target: theDeviceConnection
|
||||||
function onFullStatusReceived() {
|
function onFullStatusReceived() {
|
||||||
connected()
|
connected()
|
||||||
}
|
}
|
||||||
|
@@ -26,7 +26,7 @@ Page {
|
|||||||
|
|
||||||
ApiKeyValueHelper {
|
ApiKeyValueHelper {
|
||||||
id: friendlyName
|
id: friendlyName
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
apiKey: "fna"
|
apiKey: "fna"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -72,7 +72,7 @@ BaseNavigationPage {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
delegate: SwipeDelegate {
|
delegate: WhiteSwipeDelegate {
|
||||||
id: delegate
|
id: delegate
|
||||||
checkable: true
|
checkable: true
|
||||||
width: ListView.view.width - 30
|
width: ListView.view.width - 30
|
||||||
@@ -89,11 +89,6 @@ BaseNavigationPage {
|
|||||||
required property string hostName
|
required property string hostName
|
||||||
required property string ip
|
required property string ip
|
||||||
|
|
||||||
Component.onCompleted: {
|
|
||||||
background.color = "white"
|
|
||||||
background.radius = 5
|
|
||||||
}
|
|
||||||
|
|
||||||
swipe.enabled: saved
|
swipe.enabled: saved
|
||||||
|
|
||||||
swipe.right: Label {
|
swipe.right: Label {
|
||||||
|
@@ -48,8 +48,6 @@ Loader {
|
|||||||
|
|
||||||
sourceComponent: Component {
|
sourceComponent: Component {
|
||||||
ConnectingScreen {
|
ConnectingScreen {
|
||||||
deviceConnection: theDeviceConnection
|
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
onConnected: loader.sourceComponent = mainScreen;
|
onConnected: loader.sourceComponent = mainScreen;
|
||||||
@@ -60,17 +58,13 @@ Loader {
|
|||||||
id: mainScreen
|
id: mainScreen
|
||||||
|
|
||||||
MainScreen {
|
MainScreen {
|
||||||
deviceConnection: theDeviceConnection
|
|
||||||
onCloseRequested: loader.closeRequested()
|
onCloseRequested: loader.closeRequested()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Dialog {
|
CenteredDialog {
|
||||||
id: passwordDialog
|
id: passwordDialog
|
||||||
|
|
||||||
x: parent.width / 2 - width / 2
|
|
||||||
y: parent.height / 2 - height / 2
|
|
||||||
|
|
||||||
title: qsTr("Password required")
|
title: qsTr("Password required")
|
||||||
standardButtons: Dialog.Ok | Dialog.Cancel
|
standardButtons: Dialog.Ok | Dialog.Cancel
|
||||||
focus: true
|
focus: true
|
||||||
@@ -111,12 +105,9 @@ Loader {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Dialog {
|
CenteredDialog {
|
||||||
id: authImpossibleDialog
|
id: authImpossibleDialog
|
||||||
|
|
||||||
x: parent.width / 2 - width / 2
|
|
||||||
y: parent.height / 2 - height / 2
|
|
||||||
|
|
||||||
title: qsTr("Authentication impossible!")
|
title: qsTr("Authentication impossible!")
|
||||||
standardButtons: Dialog.Ok | Dialog.Cancel
|
standardButtons: Dialog.Ok | Dialog.Cancel
|
||||||
focus: true
|
focus: true
|
||||||
|
@@ -33,7 +33,7 @@ NavigationPage {
|
|||||||
|
|
||||||
ApiKeyValueHelper {
|
ApiKeyValueHelper {
|
||||||
id: runningVersionDetails
|
id: runningVersionDetails
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
apiKey: "apd"
|
apiKey: "apd"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -70,7 +70,7 @@ NavigationPage {
|
|||||||
|
|
||||||
ApiKeyValueHelper {
|
ApiKeyValueHelper {
|
||||||
id: availableUrls
|
id: availableUrls
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
apiKey: "ocu"
|
apiKey: "ocu"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -88,7 +88,7 @@ NavigationPage {
|
|||||||
|
|
||||||
SendMessageHelper {
|
SendMessageHelper {
|
||||||
id: startFirmwareUpdate
|
id: startFirmwareUpdate
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
}
|
}
|
||||||
|
|
||||||
Button {
|
Button {
|
||||||
@@ -114,7 +114,7 @@ NavigationPage {
|
|||||||
|
|
||||||
SendMessageHelper {
|
SendMessageHelper {
|
||||||
id: abortFirmwareUpdate
|
id: abortFirmwareUpdate
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
}
|
}
|
||||||
|
|
||||||
Button {
|
Button {
|
||||||
@@ -139,7 +139,7 @@ NavigationPage {
|
|||||||
|
|
||||||
SendMessageHelper {
|
SendMessageHelper {
|
||||||
id: switchAppPartition
|
id: switchAppPartition
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
}
|
}
|
||||||
|
|
||||||
Button {
|
Button {
|
||||||
@@ -173,7 +173,7 @@ NavigationPage {
|
|||||||
|
|
||||||
ApiKeyValueHelper {
|
ApiKeyValueHelper {
|
||||||
id: updateStatus
|
id: updateStatus
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
apiKey: "ocs"
|
apiKey: "ocs"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -202,13 +202,13 @@ NavigationPage {
|
|||||||
|
|
||||||
ApiKeyValueHelper {
|
ApiKeyValueHelper {
|
||||||
id: updateProgress
|
id: updateProgress
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
apiKey: "ocp"
|
apiKey: "ocp"
|
||||||
}
|
}
|
||||||
|
|
||||||
ApiKeyValueHelper {
|
ApiKeyValueHelper {
|
||||||
id: updateLength
|
id: updateLength
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
apiKey: "ocl"
|
apiKey: "ocl"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -3,7 +3,7 @@ import QtQuick.Controls
|
|||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
import EVChargerApp
|
import EVChargerApp
|
||||||
|
|
||||||
CheckDelegate {
|
WhiteCheckDelegate {
|
||||||
id: checkDelegate
|
id: checkDelegate
|
||||||
|
|
||||||
required property string apiKey
|
required property string apiKey
|
||||||
@@ -12,20 +12,18 @@ CheckDelegate {
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
background.color = "white"
|
|
||||||
background.radius = 5
|
|
||||||
contentItem.children[0].wrapMode = Text.Wrap
|
contentItem.children[0].wrapMode = Text.Wrap
|
||||||
}
|
}
|
||||||
|
|
||||||
ApiKeyValueHelper {
|
ApiKeyValueHelper {
|
||||||
id: valueHelper
|
id: valueHelper
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
apiKey: checkDelegate.apiKey
|
apiKey: checkDelegate.apiKey
|
||||||
}
|
}
|
||||||
|
|
||||||
SendMessageHelper {
|
SendMessageHelper {
|
||||||
id: valueChanger
|
id: valueChanger
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
onResponseChanged: checkDelegate.checked = Qt.binding(function(){ return valueHelper.value; })
|
onResponseChanged: checkDelegate.checked = Qt.binding(function(){ return valueHelper.value; })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -8,8 +8,6 @@ ColumnLayout {
|
|||||||
|
|
||||||
signal closeRequested
|
signal closeRequested
|
||||||
|
|
||||||
required property DeviceConnection deviceConnection
|
|
||||||
|
|
||||||
function backPressed() {
|
function backPressed() {
|
||||||
if (stackLayout.currentItem.item.backPressed())
|
if (stackLayout.currentItem.item.backPressed())
|
||||||
return true
|
return true
|
||||||
@@ -23,7 +21,7 @@ ColumnLayout {
|
|||||||
|
|
||||||
ApiKeyValueHelper {
|
ApiKeyValueHelper {
|
||||||
id: rebootTime
|
id: rebootTime
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
apiKey: "rbt"
|
apiKey: "rbt"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -59,13 +57,13 @@ ColumnLayout {
|
|||||||
|
|
||||||
ApiKeyValueHelper {
|
ApiKeyValueHelper {
|
||||||
id: carApiKeyHelper
|
id: carApiKeyHelper
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
apiKey: "car"
|
apiKey: "car"
|
||||||
}
|
}
|
||||||
|
|
||||||
ApiKeyValueHelper {
|
ApiKeyValueHelper {
|
||||||
id: controllerApiKeyHelper
|
id: controllerApiKeyHelper
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
apiKey: "ccp"
|
apiKey: "ccp"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -42,7 +42,7 @@ NavigationPage {
|
|||||||
|
|
||||||
ApiKeyValueHelper {
|
ApiKeyValueHelper {
|
||||||
id: connectedSince
|
id: connectedSince
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
apiKey: "mcca"
|
apiKey: "mcca"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -76,7 +76,7 @@ NavigationPage {
|
|||||||
|
|
||||||
ApiKeyValueHelper {
|
ApiKeyValueHelper {
|
||||||
id: lastErrorAge
|
id: lastErrorAge
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
apiKey: "mlra"
|
apiKey: "mlra"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -2,7 +2,7 @@ import QtQuick
|
|||||||
import QtQuick.Controls
|
import QtQuick.Controls
|
||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
|
|
||||||
ItemDelegate {
|
WhiteItemDelegate {
|
||||||
id: navigationItem
|
id: navigationItem
|
||||||
|
|
||||||
property alias iconSource: icon.source
|
property alias iconSource: icon.source
|
||||||
@@ -15,11 +15,6 @@ ItemDelegate {
|
|||||||
implicitWidth: row.implicitWidth
|
implicitWidth: row.implicitWidth
|
||||||
implicitHeight: Math.max(row.implicitHeight, 50)
|
implicitHeight: Math.max(row.implicitHeight, 50)
|
||||||
|
|
||||||
Component.onCompleted: {
|
|
||||||
background.radius = 5
|
|
||||||
background.color = "white"
|
|
||||||
}
|
|
||||||
|
|
||||||
onClicked: stackView.push(navigationItem.component)
|
onClicked: stackView.push(navigationItem.component)
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
|
@@ -42,7 +42,7 @@ NavigationPage {
|
|||||||
|
|
||||||
ApiKeyValueHelper {
|
ApiKeyValueHelper {
|
||||||
id: connectedSince
|
id: connectedSince
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
apiKey: "ocppca"
|
apiKey: "ocppca"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -66,7 +66,7 @@ NavigationPage {
|
|||||||
|
|
||||||
ApiKeyValueHelper {
|
ApiKeyValueHelper {
|
||||||
id: acceptedSince
|
id: acceptedSince
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
apiKey: "ocppaa"
|
apiKey: "ocppaa"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -91,7 +91,7 @@ NavigationPage {
|
|||||||
|
|
||||||
ApiKeyValueHelper {
|
ApiKeyValueHelper {
|
||||||
id: lastErrorAge
|
id: lastErrorAge
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
apiKey: "ocpplea"
|
apiKey: "ocpplea"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -106,7 +106,7 @@ NavigationPage {
|
|||||||
|
|
||||||
ApiKeyValueHelper {
|
ApiKeyValueHelper {
|
||||||
id: chargepointStatus
|
id: chargepointStatus
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
apiKey: "ocppcs"
|
apiKey: "ocppcs"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -39,7 +39,6 @@ NavigationPage {
|
|||||||
|
|
||||||
TimePickerDialog {
|
TimePickerDialog {
|
||||||
id: timePickerDialog
|
id: timePickerDialog
|
||||||
anchors.centerIn: parent
|
|
||||||
is24Hour: is24HourSwitch.checked
|
is24Hour: is24HourSwitch.checked
|
||||||
|
|
||||||
onTimeAccepted: print("A time was chosen - do something here!")
|
onTimeAccepted: print("A time was chosen - do something here!")
|
||||||
|
@@ -11,7 +11,7 @@ WhiteBox {
|
|||||||
|
|
||||||
SendMessageHelper {
|
SendMessageHelper {
|
||||||
id: valueChanger
|
id: valueChanger
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
onResponseChanged: {
|
onResponseChanged: {
|
||||||
ecoButton.checked = Qt.binding(() => ecoButton.selectedMode)
|
ecoButton.checked = Qt.binding(() => ecoButton.selectedMode)
|
||||||
basicButton.checked = Qt.binding(() => basicButton.selectedMode)
|
basicButton.checked = Qt.binding(() => basicButton.selectedMode)
|
||||||
|
@@ -11,29 +11,9 @@ NavigationPage {
|
|||||||
wrapMode: Text.Wrap
|
wrapMode: Text.Wrap
|
||||||
}
|
}
|
||||||
|
|
||||||
ItemDelegate {
|
ChangeNumberItem {
|
||||||
Layout.fillWidth: true
|
descriptionText: qsTr("Price limit")
|
||||||
Component.onCompleted: {
|
valueText: qsTr("%0 ct/kWh").arg(0)
|
||||||
background.color = "white"
|
|
||||||
background.radius = 5
|
|
||||||
}
|
|
||||||
|
|
||||||
contentItem: RowLayout {
|
|
||||||
Text {
|
|
||||||
text: qsTr("Price limit")
|
|
||||||
wrapMode: Text.Wrap
|
|
||||||
Layout.fillWidth: true
|
|
||||||
font.bold: true
|
|
||||||
}
|
|
||||||
|
|
||||||
Text {
|
|
||||||
text: qsTr("%0 ct/kWh").arg(0)
|
|
||||||
}
|
|
||||||
|
|
||||||
Text {
|
|
||||||
text: ">"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
|
@@ -57,32 +57,32 @@ AnimatedStackView {
|
|||||||
NavigationItem {
|
NavigationItem {
|
||||||
ApiKeyValueHelper {
|
ApiKeyValueHelper {
|
||||||
id: wifiStaApiKeyValueHelper
|
id: wifiStaApiKeyValueHelper
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
apiKey: "wen"
|
apiKey: "wen"
|
||||||
}
|
}
|
||||||
ApiKeyValueHelper {
|
ApiKeyValueHelper {
|
||||||
id: wifiApApiKeyValueHelper
|
id: wifiApApiKeyValueHelper
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
apiKey: "wae"
|
apiKey: "wae"
|
||||||
}
|
}
|
||||||
ApiKeyValueHelper {
|
ApiKeyValueHelper {
|
||||||
id: ethernetApiKeyValueHelper
|
id: ethernetApiKeyValueHelper
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
apiKey: "ee"
|
apiKey: "ee"
|
||||||
}
|
}
|
||||||
ApiKeyValueHelper {
|
ApiKeyValueHelper {
|
||||||
id: cloudApiKeyValueHelper
|
id: cloudApiKeyValueHelper
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
apiKey: "cwe"
|
apiKey: "cwe"
|
||||||
}
|
}
|
||||||
ApiKeyValueHelper {
|
ApiKeyValueHelper {
|
||||||
id: ocppApiKeyValueHelper
|
id: ocppApiKeyValueHelper
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
apiKey: "ocppe"
|
apiKey: "ocppe"
|
||||||
}
|
}
|
||||||
ApiKeyValueHelper {
|
ApiKeyValueHelper {
|
||||||
id: mqttApiKeyValueHelper
|
id: mqttApiKeyValueHelper
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
apiKey: "mce"
|
apiKey: "mce"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -102,17 +102,17 @@ AnimatedStackView {
|
|||||||
NavigationItem {
|
NavigationItem {
|
||||||
ApiKeyValueHelper {
|
ApiKeyValueHelper {
|
||||||
id: ledApiKeyValueHelper
|
id: ledApiKeyValueHelper
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
apiKey: "lbr"
|
apiKey: "lbr"
|
||||||
}
|
}
|
||||||
ApiKeyValueHelper {
|
ApiKeyValueHelper {
|
||||||
id: controllerApiKeyValueHelper
|
id: controllerApiKeyValueHelper
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
apiKey: "ccd"
|
apiKey: "ccd"
|
||||||
}
|
}
|
||||||
ApiKeyValueHelper {
|
ApiKeyValueHelper {
|
||||||
id: displayApiKeyValueHelper
|
id: displayApiKeyValueHelper
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
apiKey: "dro"
|
apiKey: "dro"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -2,7 +2,7 @@ import QtQuick
|
|||||||
import QtQuick.Controls
|
import QtQuick.Controls
|
||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
|
|
||||||
ItemDelegate {
|
WhiteItemDelegate {
|
||||||
id: navigationItem
|
id: navigationItem
|
||||||
|
|
||||||
property color color
|
property color color
|
||||||
@@ -12,8 +12,6 @@ ItemDelegate {
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
background.radius = 5
|
|
||||||
background.color = "white"
|
|
||||||
contentItem.children[0].color = navigationItem.color
|
contentItem.children[0].color = navigationItem.color
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -2,7 +2,7 @@ import QtQuick
|
|||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
import QtQuick.Controls.Material
|
import QtQuick.Controls.Material
|
||||||
|
|
||||||
Dialog {
|
CenteredDialog {
|
||||||
id: root
|
id: root
|
||||||
standardButtons: Dialog.Ok | Dialog.Cancel
|
standardButtons: Dialog.Ok | Dialog.Cancel
|
||||||
closePolicy: Dialog.NoAutoClose
|
closePolicy: Dialog.NoAutoClose
|
||||||
|
10
WhiteCheckDelegate.qml
Normal file
10
WhiteCheckDelegate.qml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
import QtQuick
|
||||||
|
import QtQuick.Controls
|
||||||
|
import QtQuick.Layouts
|
||||||
|
|
||||||
|
CheckDelegate {
|
||||||
|
Component.onCompleted: {
|
||||||
|
background.color = "white"
|
||||||
|
background.radius = 5
|
||||||
|
}
|
||||||
|
}
|
10
WhiteItemDelegate.qml
Normal file
10
WhiteItemDelegate.qml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
import QtQuick
|
||||||
|
import QtQuick.Controls
|
||||||
|
import QtQuick.Layouts
|
||||||
|
|
||||||
|
ItemDelegate {
|
||||||
|
Component.onCompleted: {
|
||||||
|
background.radius = 5
|
||||||
|
background.color = "white"
|
||||||
|
}
|
||||||
|
}
|
10
WhiteSwipeDelegate.qml
Normal file
10
WhiteSwipeDelegate.qml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
import QtQuick
|
||||||
|
import QtQuick.Controls
|
||||||
|
import QtQuick.Layouts
|
||||||
|
|
||||||
|
SwipeDelegate {
|
||||||
|
Component.onCompleted: {
|
||||||
|
background.color = "white"
|
||||||
|
background.radius = 5
|
||||||
|
}
|
||||||
|
}
|
@@ -3,26 +3,24 @@ import QtQuick.Controls
|
|||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
import EVChargerApp
|
import EVChargerApp
|
||||||
|
|
||||||
CheckDelegate {
|
WhiteCheckDelegate {
|
||||||
id: checkDelegate
|
id: checkDelegate
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
background.color = "white"
|
|
||||||
background.radius = 5
|
|
||||||
contentItem.children[0].wrapMode = Text.Wrap
|
contentItem.children[0].wrapMode = Text.Wrap
|
||||||
}
|
}
|
||||||
|
|
||||||
ApiKeyValueHelper {
|
ApiKeyValueHelper {
|
||||||
id: staEnabled
|
id: staEnabled
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
apiKey: "wen"
|
apiKey: "wen"
|
||||||
}
|
}
|
||||||
|
|
||||||
SendMessageHelper {
|
SendMessageHelper {
|
||||||
id: staEnabledChanger
|
id: staEnabledChanger
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
}
|
}
|
||||||
|
|
||||||
checked: staEnabled.value
|
checked: staEnabled.value
|
||||||
@@ -49,14 +47,10 @@ CheckDelegate {
|
|||||||
request: staEnabledChanger
|
request: staEnabledChanger
|
||||||
}
|
}
|
||||||
|
|
||||||
Dialog {
|
CenteredDialog {
|
||||||
id: disableStaDialog
|
id: disableStaDialog
|
||||||
|
|
||||||
x: window.width / 2 - width / 2
|
title: qsTr("Are you sure?")
|
||||||
y: window.height / 2 - height / 2
|
|
||||||
width: Math.min(implicitWidth, window.width - 20)
|
|
||||||
|
|
||||||
title: qsTr("Do you really want to disable Wi-Fi?")
|
|
||||||
standardButtons: Dialog.Ok | Dialog.Cancel
|
standardButtons: Dialog.Ok | Dialog.Cancel
|
||||||
focus: true
|
focus: true
|
||||||
modal: true
|
modal: true
|
||||||
@@ -72,7 +66,7 @@ CheckDelegate {
|
|||||||
onRejected: checkDelegate.checked = Qt.binding(function() { return staEnabled.value })
|
onRejected: checkDelegate.checked = Qt.binding(function() { return staEnabled.value })
|
||||||
|
|
||||||
contentItem: Text {
|
contentItem: Text {
|
||||||
text: qsTr("This action could make your device unreachable from your local homenetwork or the cloud!");
|
text: qsTr("Disabling Wi-Fi could make your device unreachable from your local homenetwork or the cloud!");
|
||||||
wrapMode: Text.Wrap
|
wrapMode: Text.Wrap
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -22,7 +22,7 @@ NavigationPage {
|
|||||||
|
|
||||||
ApiKeyValueHelper {
|
ApiKeyValueHelper {
|
||||||
id: staStatus
|
id: staStatus
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
apiKey: "wst"
|
apiKey: "wst"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -49,7 +49,7 @@ NavigationPage {
|
|||||||
Button {
|
Button {
|
||||||
ApiKeyValueHelper {
|
ApiKeyValueHelper {
|
||||||
id: wifiScanResult
|
id: wifiScanResult
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
apiKey: "scan"
|
apiKey: "scan"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -68,7 +68,7 @@ NavigationPage {
|
|||||||
Button {
|
Button {
|
||||||
ApiKeyValueHelper {
|
ApiKeyValueHelper {
|
||||||
id: wifiErrorLog
|
id: wifiErrorLog
|
||||||
deviceConnection: mainScreen.deviceConnection
|
deviceConnection: theDeviceConnection
|
||||||
apiKey: "wsl"
|
apiKey: "wsl"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
5
qmldir
5
qmldir
@@ -12,6 +12,8 @@ EVChargerApp 1.0 AppSettingsPage.qml
|
|||||||
EVChargerApp 1.0 BaseNavigationPage.qml
|
EVChargerApp 1.0 BaseNavigationPage.qml
|
||||||
EVChargerApp 1.0 CablePage.qml
|
EVChargerApp 1.0 CablePage.qml
|
||||||
EVChargerApp 1.0 CarPage.qml
|
EVChargerApp 1.0 CarPage.qml
|
||||||
|
EVChargerApp 1.0 CenteredDialog.qml
|
||||||
|
EVChargerApp 1.0 ChangeNumberItem.qml
|
||||||
EVChargerApp 1.0 ChargerTabPage.qml
|
EVChargerApp 1.0 ChargerTabPage.qml
|
||||||
EVChargerApp 1.0 ChargingConfigurationPage.qml
|
EVChargerApp 1.0 ChargingConfigurationPage.qml
|
||||||
EVChargerApp 1.0 ChargingSpeedPage.qml
|
EVChargerApp 1.0 ChargingSpeedPage.qml
|
||||||
@@ -70,6 +72,9 @@ EVChargerApp 1.0 TimePickerLabel.qml
|
|||||||
EVChargerApp 1.0 TimePicker.qml
|
EVChargerApp 1.0 TimePicker.qml
|
||||||
EVChargerApp 1.0 VerticalTabButton.qml
|
EVChargerApp 1.0 VerticalTabButton.qml
|
||||||
EVChargerApp 1.0 WhiteBox.qml
|
EVChargerApp 1.0 WhiteBox.qml
|
||||||
|
EVChargerApp 1.0 WhiteCheckDelegate.qml
|
||||||
|
EVChargerApp 1.0 WhiteItemDelegate.qml
|
||||||
|
EVChargerApp 1.0 WhiteSwipeDelegate.qml
|
||||||
EVChargerApp 1.0 WiFiErrorsPage.qml
|
EVChargerApp 1.0 WiFiErrorsPage.qml
|
||||||
EVChargerApp 1.0 WiFiOnOffSwitch.qml
|
EVChargerApp 1.0 WiFiOnOffSwitch.qml
|
||||||
EVChargerApp 1.0 WiFiPage.qml
|
EVChargerApp 1.0 WiFiPage.qml
|
||||||
|
Reference in New Issue
Block a user