Rename some old components
This commit is contained in:
parent
58d4be66f5
commit
c932cdad0a
@ -20,7 +20,7 @@
|
||||
<file>ui/connection/wifisetup/ConnectWiFiPage.qml</file>
|
||||
<file>ui/connection/wifisetup/NetworkSettingsPage.qml</file>
|
||||
<file>ui/connection/wifisetup/BoxInfoPage.qml</file>
|
||||
<file>ui/components/GuhHeader.qml</file>
|
||||
<file>ui/components/NymeaHeader.qml</file>
|
||||
<file>ui/components/HeaderButton.qml</file>
|
||||
<file>ui/components/ColorPicker.qml</file>
|
||||
<file>ui/components/ColorIcon.qml</file>
|
||||
@ -32,7 +32,7 @@
|
||||
<file>ui/components/ErrorDialog.qml</file>
|
||||
<file>ui/components/ShutterControls.qml</file>
|
||||
<file>ui/components/MeaDialog.qml</file>
|
||||
<file>ui/components/MeaListItemDelegate.qml</file>
|
||||
<file>ui/components/NymeaListItemDelegate.qml</file>
|
||||
<file>ui/components/MainPageTabButton.qml</file>
|
||||
<file>ui/components/AutoSizeMenu.qml</file>
|
||||
<file>ui/components/EmptyViewPlaceholder.qml</file>
|
||||
|
||||
@ -6,7 +6,7 @@ import Nymea 1.0
|
||||
|
||||
Page {
|
||||
id: root
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Magic")
|
||||
onBackPressed: pageStack.pop()
|
||||
|
||||
@ -74,7 +74,7 @@ Page {
|
||||
id: rulesProxy
|
||||
rules: engine.ruleManager.rules
|
||||
}
|
||||
delegate: MeaListItemDelegate {
|
||||
delegate: NymeaListItemDelegate {
|
||||
id: ruleDelegate
|
||||
width: parent.width
|
||||
iconName: "../images/" + (model.executable ? (iconTag ? iconTag.value : "slideshow") : "magic") + ".svg"
|
||||
|
||||
@ -8,7 +8,7 @@ Page {
|
||||
id: root
|
||||
signal backPressed();
|
||||
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Welcome to %1!").arg(app.systemName)
|
||||
backButtonVisible: true
|
||||
onBackPressed: {
|
||||
|
||||
@ -7,7 +7,7 @@ import "components"
|
||||
|
||||
Page {
|
||||
id: root
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Box settings")
|
||||
backButtonVisible: true
|
||||
onBackPressed: pageStack.pop()
|
||||
@ -29,7 +29,7 @@ Page {
|
||||
Layout.fillWidth: true
|
||||
Material.elevation: layout.isGrid ? 1 : 0
|
||||
padding: 0
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
width: parent.width
|
||||
iconName: "../images/configure.svg"
|
||||
text: qsTr("General")
|
||||
@ -45,7 +45,7 @@ Page {
|
||||
Material.elevation: layout.isGrid ? 1 : 0
|
||||
|
||||
padding: 0
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
width: parent.width
|
||||
iconName: "../images/network-wifi.svg"
|
||||
text: qsTr("Networking")
|
||||
@ -62,7 +62,7 @@ Page {
|
||||
visible: engine.jsonRpcClient.ensureServerVersion("1.9")
|
||||
|
||||
padding: 0
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
width: parent.width
|
||||
iconName: "../images/cloud.svg"
|
||||
text: qsTr("Cloud")
|
||||
@ -78,7 +78,7 @@ Page {
|
||||
Material.elevation: layout.isGrid ? 1 : 0
|
||||
|
||||
padding: 0
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
width: parent.width
|
||||
iconName: "../images/network-vpn.svg"
|
||||
text: qsTr("API interfaces")
|
||||
@ -95,7 +95,7 @@ Page {
|
||||
visible: engine.jsonRpcClient.ensureServerVersion("1.11")
|
||||
|
||||
padding: 0
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
width: parent.width
|
||||
iconName: "../images/mqtt.svg"
|
||||
text: qsTr("MQTT broker")
|
||||
@ -111,7 +111,7 @@ Page {
|
||||
Material.elevation: layout.isGrid ? 1 : 0
|
||||
|
||||
padding: 0
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
width: parent.width
|
||||
iconName: "../images/stock_website.svg"
|
||||
text: qsTr("Web server")
|
||||
@ -128,7 +128,7 @@ Page {
|
||||
Material.elevation: layout.isGrid ? 1 : 0
|
||||
|
||||
padding: 0
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
width: parent.width
|
||||
iconName: "../images/plugin.svg"
|
||||
text: qsTr("Plugins")
|
||||
@ -144,7 +144,7 @@ Page {
|
||||
Material.elevation: layout.isGrid ? 1 : 0
|
||||
|
||||
padding: 0
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
width: parent.width
|
||||
iconName: "../images/sdk.svg"
|
||||
text: qsTr("Developer tools")
|
||||
@ -161,7 +161,7 @@ Page {
|
||||
visible: engine.jsonRpcClient.ensureServerVersion("2.1") && engine.systemController.updateManagementAvailable
|
||||
|
||||
padding: 0
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
width: parent.width
|
||||
iconName: "../images/system-update.svg"
|
||||
text: qsTr("System update")
|
||||
@ -177,7 +177,7 @@ Page {
|
||||
Material.elevation: layout.isGrid ? 1 : 0
|
||||
|
||||
padding: 0
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
width: parent.width
|
||||
iconName: "../images/logs.svg"
|
||||
text: qsTr("Log viewer")
|
||||
@ -193,7 +193,7 @@ Page {
|
||||
Material.elevation: layout.isGrid ? 1 : 0
|
||||
|
||||
padding: 0
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
width: parent.width
|
||||
iconName: "../images/info.svg"
|
||||
text: qsTr("About %1:core").arg(app.systemName)
|
||||
|
||||
@ -7,7 +7,7 @@ import "../components"
|
||||
|
||||
Page {
|
||||
id: root
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("About %1").arg(app.appName)
|
||||
backButtonVisible: true
|
||||
onBackPressed: pageStack.pop()
|
||||
@ -23,14 +23,14 @@ Page {
|
||||
title: app.appName
|
||||
githubLink: "https://github.com/guh/nymea-app"
|
||||
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
Layout.fillWidth: true
|
||||
text: qsTr("App version:")
|
||||
subText: appVersion
|
||||
progressive: false
|
||||
prominentSubText: false
|
||||
}
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
Layout.fillWidth: true
|
||||
text: qsTr("Qt version:")
|
||||
subText: qtVersion
|
||||
|
||||
@ -5,7 +5,7 @@ import Nymea 1.0
|
||||
import "../components"
|
||||
|
||||
Page {
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("App log")
|
||||
backButtonVisible: true
|
||||
onBackPressed: pageStack.pop()
|
||||
|
||||
@ -7,7 +7,7 @@ import "../components"
|
||||
|
||||
Page {
|
||||
id: root
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("App Settings")
|
||||
backButtonVisible: true
|
||||
onBackPressed: pageStack.pop()
|
||||
@ -29,7 +29,7 @@ Page {
|
||||
Layout.fillWidth: true
|
||||
Material.elevation: layout.isGrid ? 1 : 0
|
||||
padding: 0
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
width: parent.width
|
||||
text: qsTr("Look & feel")
|
||||
subText: qsTr("Customize the app's look and behavior")
|
||||
@ -44,7 +44,7 @@ Page {
|
||||
Layout.fillWidth: true
|
||||
Material.elevation: layout.isGrid ? 1 : 0
|
||||
padding: 0
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
width: parent.width
|
||||
text: qsTr("Cloud login")
|
||||
subText: qsTr("Log into %1:cloud and manage connected boxes").arg(app.systemName)
|
||||
@ -59,7 +59,7 @@ Page {
|
||||
Material.elevation: layout.isGrid ? 1 : 0
|
||||
visible: settings.showHiddenOptions
|
||||
padding: 0
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
width: parent.width
|
||||
text: qsTr("Developer options")
|
||||
subText: qsTr("Yeehaaa!")
|
||||
@ -73,7 +73,7 @@ Page {
|
||||
Layout.fillWidth: true
|
||||
Material.elevation: layout.isGrid ? 1 : 0
|
||||
padding: 0
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
width: parent.width
|
||||
text: qsTr("About %1").arg(app.appName)
|
||||
subText: qsTr("Find app versions and licence information")
|
||||
|
||||
@ -6,7 +6,7 @@ import "../components"
|
||||
|
||||
Page {
|
||||
id: root
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Cloud login")
|
||||
onBackPressed: pageStack.pop()
|
||||
}
|
||||
@ -76,7 +76,7 @@ Page {
|
||||
Layout.fillHeight: true
|
||||
clip: true
|
||||
model: AWSClient.awsDevices
|
||||
delegate: MeaListItemDelegate {
|
||||
delegate: NymeaListItemDelegate {
|
||||
width: parent.width
|
||||
text: model.name
|
||||
subText: model.id
|
||||
@ -262,7 +262,7 @@ Page {
|
||||
id: signupPageComponent
|
||||
Page {
|
||||
id: signupPage
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Sign up")
|
||||
onBackPressed: pageStack.pop()
|
||||
}
|
||||
@ -373,7 +373,7 @@ Page {
|
||||
Component {
|
||||
id: enterCodeComponent
|
||||
Page {
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Confirm account")
|
||||
onBackPressed: pageStack.pop()
|
||||
}
|
||||
@ -442,7 +442,7 @@ Page {
|
||||
|
||||
property alias email: emailTextField.text
|
||||
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Reset password")
|
||||
onBackPressed: pageStack.pop()
|
||||
}
|
||||
@ -528,7 +528,7 @@ Page {
|
||||
}
|
||||
|
||||
property string email
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Reset password")
|
||||
onBackPressed: pageStack.pop()
|
||||
}
|
||||
|
||||
@ -6,7 +6,7 @@ import "../components"
|
||||
|
||||
Page {
|
||||
id: root
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Developer options")
|
||||
backButtonVisible: true
|
||||
onBackPressed: pageStack.pop()
|
||||
@ -40,7 +40,7 @@ Page {
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
Layout.fillWidth: true
|
||||
text: qsTr("View log")
|
||||
onClicked: pageStack.push(Qt.resolvedUrl("../appsettings/AppLogPage.qml"))
|
||||
|
||||
@ -7,7 +7,7 @@ import "../components"
|
||||
|
||||
Page {
|
||||
id: root
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Look and feel")
|
||||
backButtonVisible: true
|
||||
onBackPressed: pageStack.pop()
|
||||
|
||||
@ -92,7 +92,7 @@ Item {
|
||||
ColumnLayout {
|
||||
Layout.fillWidth: true
|
||||
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
Layout.fillWidth: true
|
||||
iconName: "../images/stock_website.svg"
|
||||
text: qsTr("Visit the nymea website")
|
||||
@ -104,7 +104,7 @@ Item {
|
||||
}
|
||||
}
|
||||
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
Layout.fillWidth: true
|
||||
iconName: "../images/stock_website.svg"
|
||||
text: qsTr("Visit GitHub page")
|
||||
@ -116,7 +116,7 @@ Item {
|
||||
}
|
||||
}
|
||||
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
Layout.fillWidth: true
|
||||
text: qsTr("View privacy policy")
|
||||
iconName: "../images/stock_website.svg"
|
||||
@ -128,7 +128,7 @@ Item {
|
||||
}
|
||||
}
|
||||
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
Layout.fillWidth: true
|
||||
text: qsTr("View license text")
|
||||
iconName: "../images/logs.svg"
|
||||
@ -164,7 +164,7 @@ Item {
|
||||
wrapMode: Text.WordWrap
|
||||
}
|
||||
}
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
Layout.fillWidth: true
|
||||
iconName: "../images/stock_website.svg"
|
||||
text: qsTr("Visit the Qt website")
|
||||
@ -181,7 +181,7 @@ Item {
|
||||
Component {
|
||||
id: licenseTextComponent
|
||||
Page {
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("License text")
|
||||
onBackPressed: pageStack.pop()
|
||||
}
|
||||
|
||||
@ -38,7 +38,7 @@ Dialog {
|
||||
}
|
||||
ThinDivider {}
|
||||
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
Layout.fillWidth: true
|
||||
text: qsTr("Remove all those rules")
|
||||
progressive: false
|
||||
@ -49,7 +49,7 @@ Dialog {
|
||||
}
|
||||
}
|
||||
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
text: qsTr("Update rules, removing this thing")
|
||||
Layout.fillWidth: true
|
||||
progressive: false
|
||||
@ -60,7 +60,7 @@ Dialog {
|
||||
}
|
||||
}
|
||||
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
text: qsTr("Don't remove this thing")
|
||||
Layout.fillWidth: true
|
||||
progressive: false
|
||||
|
||||
@ -123,7 +123,7 @@ Page {
|
||||
model: hostsProxy
|
||||
clip: true
|
||||
|
||||
delegate: MeaListItemDelegate {
|
||||
delegate: NymeaListItemDelegate {
|
||||
id: nymeaHostDelegate
|
||||
width: parent.width
|
||||
height: app.delegateHeight
|
||||
@ -356,7 +356,7 @@ Page {
|
||||
width: parent.width
|
||||
Repeater {
|
||||
model: dialog.nymeaHost.connections
|
||||
delegate: MeaListItemDelegate {
|
||||
delegate: NymeaListItemDelegate {
|
||||
Layout.fillWidth: true
|
||||
wrapTexts: false
|
||||
progressive: false
|
||||
|
||||
@ -8,7 +8,7 @@ Page {
|
||||
id: root
|
||||
signal backPressed();
|
||||
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Welcome to %1!").arg(app.systemName)
|
||||
backButtonVisible: true
|
||||
onBackPressed: root.backPressed()
|
||||
|
||||
@ -7,7 +7,7 @@ import "../components"
|
||||
Page {
|
||||
id: root
|
||||
objectName: "manualConnectPage"
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Manual connection")
|
||||
onBackPressed: pageStack.pop()
|
||||
}
|
||||
|
||||
@ -8,7 +8,7 @@ Page {
|
||||
id: root
|
||||
signal backPressed();
|
||||
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("First setup")
|
||||
backButtonVisible: true
|
||||
onBackPressed: root.backPressed()
|
||||
|
||||
@ -6,7 +6,7 @@ import Nymea 1.0
|
||||
|
||||
Page {
|
||||
id: root
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Wireless Box setup")
|
||||
onBackPressed: pageStack.pop()
|
||||
}
|
||||
@ -87,7 +87,7 @@ Page {
|
||||
model: bluetoothDiscovery.deviceInfos
|
||||
clip: true
|
||||
|
||||
delegate: MeaListItemDelegate {
|
||||
delegate: NymeaListItemDelegate {
|
||||
width: parent.width
|
||||
iconName: Qt.resolvedUrl("../../images/bluetooth.svg")
|
||||
text: model.name
|
||||
@ -148,7 +148,7 @@ Page {
|
||||
id: helpPageComponent
|
||||
Page {
|
||||
id: helpPage
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Wireless setup help")
|
||||
onBackPressed: pageStack.pop()
|
||||
}
|
||||
@ -223,7 +223,7 @@ Page {
|
||||
|
||||
Page {
|
||||
id: connectingPage
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Connecting...")
|
||||
onBackPressed: pageStack.pop()
|
||||
}
|
||||
|
||||
@ -6,7 +6,7 @@ import Nymea 1.0
|
||||
|
||||
Page {
|
||||
id: root
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Box information")
|
||||
onBackPressed: pageStack.pop()
|
||||
}
|
||||
@ -16,31 +16,31 @@ Page {
|
||||
ColumnLayout {
|
||||
anchors { left: parent.left; top: parent.top; right: parent.right }
|
||||
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
Layout.fillWidth: true
|
||||
progressive: false
|
||||
text: qsTr("System UUID")
|
||||
subText: networkManagerController.manager.modelNumber
|
||||
}
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
Layout.fillWidth: true
|
||||
progressive: false
|
||||
text: qsTr("Manufacturer")
|
||||
subText: networkManagerController.manager.manufacturer
|
||||
}
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
Layout.fillWidth: true
|
||||
progressive: false
|
||||
text: qsTr("Software revision")
|
||||
subText: networkManagerController.manager.softwareRevision
|
||||
}
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
Layout.fillWidth: true
|
||||
progressive: false
|
||||
text: qsTr("Firmware revision")
|
||||
subText: networkManagerController.manager.firmwareRevision
|
||||
}
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
Layout.fillWidth: true
|
||||
progressive: false
|
||||
text: qsTr("Hardware revision")
|
||||
|
||||
@ -11,7 +11,7 @@ Page {
|
||||
|
||||
signal connected();
|
||||
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Select wireless network")
|
||||
onBackPressed: {
|
||||
pageStack.pop();
|
||||
@ -43,7 +43,7 @@ Page {
|
||||
}
|
||||
clip: true
|
||||
|
||||
delegate: MeaListItemDelegate {
|
||||
delegate: NymeaListItemDelegate {
|
||||
width: parent.width
|
||||
text: model.ssid
|
||||
enabled: !networkManagerController.manager.working
|
||||
@ -97,7 +97,7 @@ Page {
|
||||
id: authenticationPageComponent
|
||||
Page {
|
||||
id: authenticationPage
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Authenticate")
|
||||
onBackPressed: pageStack.pop()
|
||||
}
|
||||
|
||||
@ -6,7 +6,7 @@ import Nymea 1.0
|
||||
|
||||
Page {
|
||||
id: root
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Network settings")
|
||||
onBackPressed: pageStack.pop()
|
||||
}
|
||||
|
||||
@ -12,7 +12,7 @@ Page {
|
||||
|
||||
signal done()
|
||||
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Wireless network setup")
|
||||
onBackPressed: {
|
||||
pageStack.pop();
|
||||
|
||||
@ -4,7 +4,7 @@ import QtQuick.Layouts 1.2
|
||||
import "../components"
|
||||
import Nymea 1.0
|
||||
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
id: root
|
||||
width: parent.width
|
||||
iconName: deviceClass ? app.interfacesToIcon(deviceClass.interfaces) : ""
|
||||
|
||||
@ -13,7 +13,7 @@ DeviceListPageBase {
|
||||
|
||||
property bool invertControls: false
|
||||
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
id: header
|
||||
onBackPressed: pageStack.pop()
|
||||
text: root.title
|
||||
|
||||
@ -8,7 +8,7 @@ import "../delegates"
|
||||
DeviceListPageBase {
|
||||
id: root
|
||||
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: {
|
||||
if (root.shownInterfaces.length === 1) {
|
||||
return qsTr("My %1").arg(app.interfaceToString(root.shownInterfaces[0]))
|
||||
|
||||
@ -8,7 +8,7 @@ import "../components"
|
||||
|
||||
DeviceListPageBase {
|
||||
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Lights")
|
||||
onBackPressed: pageStack.pop()
|
||||
|
||||
|
||||
@ -9,7 +9,7 @@ import QtQuick.Controls.Material 2.1
|
||||
DeviceListPageBase {
|
||||
id: root
|
||||
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("My %1").arg(app.interfaceToString("powersocket"))
|
||||
|
||||
onBackPressed: {
|
||||
|
||||
@ -8,7 +8,7 @@ import "../components"
|
||||
DeviceListPageBase {
|
||||
id: root
|
||||
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Sensors")
|
||||
onBackPressed: pageStack.pop()
|
||||
}
|
||||
|
||||
@ -8,7 +8,7 @@ import "../components"
|
||||
DeviceListPageBase {
|
||||
id: root
|
||||
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Smart meters")
|
||||
onBackPressed: pageStack.pop()
|
||||
}
|
||||
|
||||
@ -9,7 +9,7 @@ import "../customviews"
|
||||
DeviceListPageBase {
|
||||
id: root
|
||||
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Weather")
|
||||
onBackPressed: pageStack.pop()
|
||||
}
|
||||
|
||||
@ -12,7 +12,7 @@ Page {
|
||||
property Device device: null
|
||||
property var filterTypeIds: []
|
||||
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("History for %1").arg(root.device.name)
|
||||
onBackPressed: pageStack.pop()
|
||||
|
||||
|
||||
@ -14,7 +14,7 @@ Page {
|
||||
|
||||
default property alias data: contentItem.data
|
||||
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: device.name
|
||||
onBackPressed: pageStack.pop()
|
||||
|
||||
|
||||
@ -55,7 +55,7 @@ DevicePageBase {
|
||||
typeIds: [root.accessGrantedEventType.id, root.accessDeniedEventType.id];
|
||||
}
|
||||
|
||||
delegate: MeaListItemDelegate {
|
||||
delegate: NymeaListItemDelegate {
|
||||
width: parent.width
|
||||
iconName: accessGranted ? "../images/tick.svg" : "../images/dialog-error-symbolic.svg"
|
||||
iconColor: accessGranted ? "green" : "red"
|
||||
@ -77,7 +77,7 @@ DevicePageBase {
|
||||
Component {
|
||||
id: manageUsersComponent
|
||||
Page {
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Manage users")
|
||||
onBackPressed: pageStack.pop()
|
||||
|
||||
@ -104,7 +104,7 @@ DevicePageBase {
|
||||
clip: true
|
||||
model: root.usersState.value
|
||||
|
||||
delegate: MeaListItemDelegate {
|
||||
delegate: NymeaListItemDelegate {
|
||||
text: modelData
|
||||
width: parent.width
|
||||
progressive: false
|
||||
@ -156,7 +156,7 @@ DevicePageBase {
|
||||
id: addUserComponent
|
||||
Page {
|
||||
id: addUserPage
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Add a new fingerprint")
|
||||
onBackPressed: pageStack.pop()
|
||||
}
|
||||
|
||||
@ -29,7 +29,7 @@ DevicePageBase {
|
||||
typeIds: [root.deviceClass.eventTypes.findByName("triggered").id];
|
||||
}
|
||||
|
||||
// delegate: MeaListItemDelegate {
|
||||
// delegate: NymeaListItemDelegate {
|
||||
// width: parent.width
|
||||
// iconName: app.interfaceToIcon("inputtrigger")
|
||||
// text: model.value.trim()
|
||||
|
||||
@ -101,7 +101,7 @@ DevicePageBase {
|
||||
typeIds: [root.deviceClass.actionTypes.findByName("notify").id];
|
||||
}
|
||||
|
||||
delegate: MeaListItemDelegate {
|
||||
delegate: NymeaListItemDelegate {
|
||||
width: parent.width
|
||||
iconName: app.interfaceToIcon("notifications")
|
||||
text: model.value.trim()
|
||||
|
||||
@ -24,7 +24,7 @@ Page {
|
||||
return false;
|
||||
}
|
||||
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("History for %1").arg(root.stateType.displayName)
|
||||
onBackPressed: pageStack.pop()
|
||||
}
|
||||
|
||||
@ -4,7 +4,7 @@ import QtQuick.Layouts 1.3
|
||||
import Nymea 1.0
|
||||
import "../components"
|
||||
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
id: root
|
||||
implicitHeight: app.delegateHeight
|
||||
progressive: false
|
||||
|
||||
@ -8,7 +8,7 @@ Page {
|
||||
id: root
|
||||
property var device: null
|
||||
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Select event")
|
||||
}
|
||||
|
||||
|
||||
@ -12,7 +12,7 @@ Page {
|
||||
Component.onCompleted: print("+++ created devicerulespage")
|
||||
Component.onDestruction: print("--- destroying devicerulespage")
|
||||
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Magic involving %1").arg(root.device.name)
|
||||
onBackPressed: pageStack.pop()
|
||||
|
||||
@ -110,7 +110,7 @@ Page {
|
||||
filterDeviceId: root.device.id
|
||||
}
|
||||
|
||||
delegate: MeaListItemDelegate {
|
||||
delegate: NymeaListItemDelegate {
|
||||
width: parent.width
|
||||
iconName: "../images/magic.svg"
|
||||
iconColor: !model.enabled ? "red" : (model.active ? app.accentColor : "grey")
|
||||
|
||||
@ -18,7 +18,7 @@ Page {
|
||||
readonly property bool isWeekDayBased: repeatingBox.currentIndex === 3
|
||||
readonly property bool isMonthDayBased: repeatingBox.currentIndex === 4
|
||||
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Pick a time frame")
|
||||
onBackPressed: root.backPressed();
|
||||
}
|
||||
|
||||
@ -221,7 +221,7 @@ Page {
|
||||
})
|
||||
}
|
||||
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: root.rule.name.length === 0 ? qsTr("Add new magic") : qsTr("Edit %1").arg(root.rule.name)
|
||||
onBackPressed: {
|
||||
if (root.rule.compare(d.backupRule)) {
|
||||
@ -679,7 +679,7 @@ Page {
|
||||
Component {
|
||||
id: eventQuestionPageComponent
|
||||
Page {
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Add event")
|
||||
onBackPressed: pageStack.pop()
|
||||
}
|
||||
@ -708,7 +708,7 @@ Page {
|
||||
minimumJsonRpcVersion: "1.0"
|
||||
}
|
||||
}
|
||||
delegate: MeaListItemDelegate {
|
||||
delegate: NymeaListItemDelegate {
|
||||
Layout.fillWidth: true
|
||||
iconName: model.iconName
|
||||
text: model.text
|
||||
@ -728,7 +728,7 @@ Page {
|
||||
Component {
|
||||
id: stateQuestionPageComponent
|
||||
Page {
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Add condition...")
|
||||
|
||||
onBackPressed: pageStack.pop()
|
||||
@ -758,7 +758,7 @@ Page {
|
||||
minimumJsonRpcVersion: "1.0"
|
||||
}
|
||||
}
|
||||
delegate: MeaListItemDelegate {
|
||||
delegate: NymeaListItemDelegate {
|
||||
Layout.fillWidth: true
|
||||
iconName: model.iconName
|
||||
text: model.text
|
||||
@ -781,7 +781,7 @@ Page {
|
||||
id: ruleActionQuestionPage
|
||||
property bool exitAction: false
|
||||
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Add action...")
|
||||
|
||||
onBackPressed: pageStack.pop()
|
||||
@ -821,7 +821,7 @@ Page {
|
||||
minimumJsonRpcVersion: "1.5"
|
||||
}
|
||||
}
|
||||
delegate: MeaListItemDelegate {
|
||||
delegate: NymeaListItemDelegate {
|
||||
Layout.fillWidth: true
|
||||
iconName: model.iconName
|
||||
text: model.text
|
||||
|
||||
@ -6,7 +6,7 @@ import "../components"
|
||||
|
||||
Page {
|
||||
id: root
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Conditions")
|
||||
onBackPressed: pageStack.pop()
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@ Page {
|
||||
readonly property bool isWeekDayBased: repeatingBox.currentIndex === 3
|
||||
readonly property bool isMonthDayBased: repeatingBox.currentIndex === 4
|
||||
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Pick a time")
|
||||
onBackPressed: root.backPressed();
|
||||
}
|
||||
|
||||
@ -4,7 +4,7 @@ import QtQuick.Layouts 1.3
|
||||
import Nymea 1.0
|
||||
import "../components"
|
||||
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
id: root
|
||||
implicitHeight: app.delegateHeight
|
||||
canDelete: true
|
||||
|
||||
@ -351,7 +351,7 @@ Page {
|
||||
}
|
||||
}
|
||||
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("New magic")
|
||||
onBackPressed: root.done()
|
||||
}
|
||||
@ -366,7 +366,7 @@ Page {
|
||||
ruleTemplates: RuleTemplates {}
|
||||
filterInterfaceNames: root.deviceClass ? root.deviceClass.interfaces : []
|
||||
}
|
||||
delegate: MeaListItemDelegate {
|
||||
delegate: NymeaListItemDelegate {
|
||||
width: parent.width
|
||||
text: model.description
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@ import QtQuick.Layouts 1.3
|
||||
import Nymea 1.0
|
||||
import "../components"
|
||||
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
id: root
|
||||
implicitHeight: app.delegateHeight
|
||||
canDelete: true
|
||||
|
||||
@ -15,7 +15,7 @@ Page {
|
||||
property var actions: []
|
||||
signal complete();
|
||||
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: "Select action"
|
||||
onBackPressed: pageStack.pop()
|
||||
}
|
||||
@ -90,7 +90,7 @@ Page {
|
||||
Component {
|
||||
id: selectDeviceComponent
|
||||
Page {
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Select device")
|
||||
onBackPressed: pageStack.pop()
|
||||
}
|
||||
@ -127,7 +127,7 @@ Page {
|
||||
property var device
|
||||
readonly property var deviceClass: engine.deviceManager.deviceClasses.getDeviceClass(device.deviceClassId)
|
||||
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Select action")
|
||||
onBackPressed: pageStack.pop()
|
||||
}
|
||||
@ -174,7 +174,7 @@ Page {
|
||||
id: page
|
||||
property var device
|
||||
property var actionType
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("params")
|
||||
onBackPressed: pageStack.pop()
|
||||
}
|
||||
@ -222,7 +222,7 @@ Page {
|
||||
Component {
|
||||
id: switchLightsCompoent
|
||||
Page {
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Switch lights")
|
||||
onBackPressed: pageStack.pop()
|
||||
}
|
||||
@ -301,7 +301,7 @@ Page {
|
||||
Component {
|
||||
id: notificationActionComponent
|
||||
Page {
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Send notification")
|
||||
onBackPressed: pageStack.pop()
|
||||
}
|
||||
|
||||
@ -19,7 +19,7 @@ Page {
|
||||
onEventDescriptorChanged: buildInterface()
|
||||
Component.onCompleted: buildInterface()
|
||||
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
id: header
|
||||
onBackPressed: root.backPressed();
|
||||
|
||||
|
||||
@ -18,7 +18,7 @@ Page {
|
||||
signal backPressed();
|
||||
signal completed();
|
||||
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: "Options"
|
||||
onBackPressed: root.backPressed();
|
||||
}
|
||||
|
||||
@ -22,7 +22,7 @@ Page {
|
||||
onRuleActionChanged: buildInterface()
|
||||
Component.onCompleted: buildInterface()
|
||||
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
id: header
|
||||
onBackPressed: root.backPressed();
|
||||
|
||||
|
||||
@ -21,7 +21,7 @@ Page {
|
||||
signal backPressed();
|
||||
signal completed();
|
||||
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: actionType.displayName
|
||||
onBackPressed: root.backPressed();
|
||||
}
|
||||
@ -126,7 +126,7 @@ Page {
|
||||
}
|
||||
}
|
||||
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
id: statePickerDelegate
|
||||
Layout.fillWidth: true
|
||||
text: deviceId === null || stateTypeId === null
|
||||
|
||||
@ -19,7 +19,7 @@ Page {
|
||||
onStateDescriptorChanged: buildInterface()
|
||||
Component.onCompleted: buildInterface()
|
||||
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
id: header
|
||||
onBackPressed: root.backPressed();
|
||||
|
||||
|
||||
@ -18,7 +18,7 @@ Page {
|
||||
signal backPressed();
|
||||
signal completed();
|
||||
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Options")
|
||||
onBackPressed: root.backPressed();
|
||||
}
|
||||
|
||||
@ -7,7 +7,7 @@ import Nymea 1.0
|
||||
|
||||
Page {
|
||||
id: root
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Select state")
|
||||
onBackPressed: pageStack.pop()
|
||||
}
|
||||
@ -21,7 +21,7 @@ Page {
|
||||
|
||||
model: device.deviceClass.stateTypes
|
||||
|
||||
delegate: MeaListItemDelegate {
|
||||
delegate: NymeaListItemDelegate {
|
||||
width: parent.width
|
||||
iconName: "../images/state.svg"
|
||||
text: model.displayName
|
||||
|
||||
@ -20,7 +20,7 @@ Page {
|
||||
signal interfaceSelected(string interfaceName);
|
||||
signal anySelected();
|
||||
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: root.selectInterface ?
|
||||
qsTr("Select a kind of things") :
|
||||
root.shownInterfaces.length > 0 ? qsTr("Select a %1").arg(app.interfaceToDisplayName(root.shownInterfaces[0])) : qsTr("Select a thing")
|
||||
@ -53,7 +53,7 @@ Page {
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
Layout.fillWidth: true
|
||||
text: qsTr("Any %1").arg(app.interfaceToDisplayName(root.shownInterfaces[0]))
|
||||
visible: root.allowSelectAny
|
||||
@ -69,7 +69,7 @@ Page {
|
||||
Layout.fillHeight: true
|
||||
model: root.selectInterface ? interfacesProxy : devicesProxy
|
||||
clip: true
|
||||
delegate: MeaListItemDelegate {
|
||||
delegate: NymeaListItemDelegate {
|
||||
width: parent.width
|
||||
text: root.selectInterface ? model.displayName : model.name
|
||||
iconName: root.selectInterface ? app.interfaceToIcon(model.name) : app.interfacesToIcon(model.interfaces)
|
||||
|
||||
@ -100,7 +100,7 @@ ItemDelegate {
|
||||
Component {
|
||||
id: stateQuestionPageComponent
|
||||
Page {
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Edit condition...")
|
||||
|
||||
onBackPressed: pageStack.pop()
|
||||
@ -123,7 +123,7 @@ ItemDelegate {
|
||||
method: "editInterfaceStateDescriptor"
|
||||
}
|
||||
}
|
||||
delegate: MeaListItemDelegate {
|
||||
delegate: NymeaListItemDelegate {
|
||||
Layout.fillWidth: true
|
||||
iconName: model.iconName
|
||||
text: model.text
|
||||
|
||||
@ -4,7 +4,7 @@ import QtQuick.Layouts 1.3
|
||||
import Nymea 1.0
|
||||
import "../components"
|
||||
|
||||
MeaListItemDelegate{
|
||||
NymeaListItemDelegate{
|
||||
id: root
|
||||
implicitHeight: app.delegateHeight
|
||||
progressive: false
|
||||
|
||||
@ -7,7 +7,7 @@ import "../components"
|
||||
Page {
|
||||
|
||||
id: root
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("About %1:core").arg(app.systemName)
|
||||
onBackPressed: pageStack.pop()
|
||||
}
|
||||
@ -22,28 +22,28 @@ Page {
|
||||
title: qsTr("%1:core").arg(app.systemName)
|
||||
githubLink: "https://github.com/guh/nymea"
|
||||
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
Layout.fillWidth: true
|
||||
text: qsTr("Connection:")
|
||||
subText: engine.connection.currentConnection.url
|
||||
progressive: false
|
||||
prominentSubText: false
|
||||
}
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
Layout.fillWidth: true
|
||||
text: qsTr("Server UUID:")
|
||||
subText: engine.jsonRpcClient.serverUuid
|
||||
progressive: false
|
||||
prominentSubText: false
|
||||
}
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
Layout.fillWidth: true
|
||||
text: qsTr("Server version:")
|
||||
subText: engine.jsonRpcClient.serverVersion
|
||||
progressive: false
|
||||
prominentSubText: false
|
||||
}
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
Layout.fillWidth: true
|
||||
text: qsTr("JSON-RPC version:")
|
||||
subText: engine.jsonRpcClient.jsonRpcVersion
|
||||
|
||||
@ -6,7 +6,7 @@ import "../components"
|
||||
|
||||
Page {
|
||||
id: root
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Cloud settings")
|
||||
onBackPressed: pageStack.pop();
|
||||
}
|
||||
|
||||
@ -4,7 +4,7 @@ import QtQuick.Layouts 1.3
|
||||
import Nymea 1.0
|
||||
import "../components"
|
||||
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
text: qsTr("Interface: %1").arg(model.address === "0.0.0.0" ? qsTr("Any") : model.address === "127.0.0.1" ? qsTr("localhost") : model.address)
|
||||
subText: qsTr("Port: %1").arg(model.port)
|
||||
iconName: "../images/network-vpn.svg"
|
||||
|
||||
@ -6,7 +6,7 @@ import "../components"
|
||||
|
||||
Page {
|
||||
id: root
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Connection interfaces")
|
||||
onBackPressed: pageStack.pop();
|
||||
}
|
||||
|
||||
@ -6,7 +6,7 @@ import "../components"
|
||||
|
||||
Page {
|
||||
id: root
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Developer tools")
|
||||
onBackPressed: pageStack.pop();
|
||||
}
|
||||
|
||||
@ -7,7 +7,7 @@ import "../components"
|
||||
|
||||
Page {
|
||||
id: root
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Box settings")
|
||||
backButtonVisible: true
|
||||
onBackPressed: pageStack.pop()
|
||||
|
||||
@ -7,7 +7,7 @@ import "../components"
|
||||
|
||||
Page {
|
||||
id: root
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Log viewer")
|
||||
onBackPressed: pageStack.pop()
|
||||
|
||||
|
||||
@ -6,7 +6,7 @@ import "../components"
|
||||
|
||||
Page {
|
||||
id: root
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("MQTT broker")
|
||||
onBackPressed: pageStack.pop();
|
||||
}
|
||||
@ -92,7 +92,7 @@ Page {
|
||||
model: engine.nymeaConfiguration.mqttPolicies
|
||||
clip: true
|
||||
ScrollBar.vertical: ScrollBar {}
|
||||
delegate: MeaListItemDelegate {
|
||||
delegate: NymeaListItemDelegate {
|
||||
width: parent.width
|
||||
iconName: "../images/account.svg"
|
||||
text: qsTr("Client ID: %1").arg(model.clientId)
|
||||
|
||||
@ -7,7 +7,7 @@ import "../components"
|
||||
|
||||
Page {
|
||||
id: root
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Mqtt permission")
|
||||
onBackPressed: {
|
||||
root.rejected();
|
||||
@ -113,7 +113,7 @@ Page {
|
||||
model: root.policy.allowedPublishTopicFilters
|
||||
ScrollBar.vertical: ScrollBar {}
|
||||
clip: true
|
||||
delegate: MeaListItemDelegate {
|
||||
delegate: NymeaListItemDelegate {
|
||||
width: parent.width
|
||||
text: modelData
|
||||
canDelete: true
|
||||
@ -163,7 +163,7 @@ Page {
|
||||
model: root.policy.allowedSubscribeTopicFilters
|
||||
ScrollBar.vertical: ScrollBar {}
|
||||
clip: true
|
||||
delegate: MeaListItemDelegate {
|
||||
delegate: NymeaListItemDelegate {
|
||||
width: parent.width
|
||||
text: modelData
|
||||
canDelete: true
|
||||
|
||||
@ -7,7 +7,7 @@ import "../components"
|
||||
|
||||
Page {
|
||||
id: root
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Network settings")
|
||||
onBackPressed: {
|
||||
pageStack.pop();
|
||||
@ -50,7 +50,7 @@ Page {
|
||||
ColumnLayout {
|
||||
anchors.fill: parent
|
||||
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
Layout.fillWidth: true
|
||||
text: qsTr("Current connection state")
|
||||
prominentSubText: false
|
||||
@ -97,7 +97,7 @@ Page {
|
||||
}
|
||||
}
|
||||
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
Layout.fillWidth: true
|
||||
text: qsTr("Networking enabled")
|
||||
subText: qsTr("Enable or disable networking altogether")
|
||||
@ -133,7 +133,7 @@ Page {
|
||||
}
|
||||
ThinDivider {}
|
||||
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
Layout.fillWidth: true
|
||||
text: qsTr("Wired network")
|
||||
subText: qsTr("Shows the current ethernet status")
|
||||
@ -143,7 +143,7 @@ Page {
|
||||
|
||||
Repeater {
|
||||
model: networkManager.wiredNetworkDevices
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
Layout.fillWidth: true
|
||||
iconName: model.pluggedIn ? "../images/network-wired.svg" : "../images/network-wired-offline.svg"
|
||||
text: model.interface + " (" + model.macAddress + ")"
|
||||
@ -159,7 +159,7 @@ Page {
|
||||
|
||||
ThinDivider {}
|
||||
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
Layout.fillWidth: true
|
||||
text: qsTr("Wireless network")
|
||||
subText: qsTr("Enable or disable WiFi")
|
||||
@ -196,7 +196,7 @@ Page {
|
||||
|
||||
Repeater {
|
||||
model: networkManager.wirelessNetworkDevices
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
Layout.fillWidth: true
|
||||
iconName: {
|
||||
switch (model.state) {
|
||||
@ -247,7 +247,7 @@ Page {
|
||||
id: wirelessAccessPointsPageComponent
|
||||
Page {
|
||||
id: wirelessAccessPointsPage
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("WiFi networks")
|
||||
onBackPressed: {
|
||||
pageStack.pop();
|
||||
@ -266,7 +266,7 @@ Page {
|
||||
anchors.fill: parent
|
||||
model: apProxy
|
||||
ScrollBar.vertical: ScrollBar {}
|
||||
delegate: MeaListItemDelegate {
|
||||
delegate: NymeaListItemDelegate {
|
||||
width: parent.width
|
||||
text: model.ssid
|
||||
subText: model.macAddress
|
||||
@ -306,7 +306,7 @@ Page {
|
||||
Page {
|
||||
id: authPage
|
||||
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Authenticate")
|
||||
onBackPressed: pageStack.pop()
|
||||
}
|
||||
@ -361,7 +361,7 @@ Page {
|
||||
id: currentApPageComponent
|
||||
Page {
|
||||
id: currentApPage
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Current connection")
|
||||
onBackPressed: pageStack.pop();
|
||||
}
|
||||
@ -372,19 +372,19 @@ Page {
|
||||
anchors { left: parent.left; top: parent.top; right: parent.right }
|
||||
columns: 1
|
||||
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
Layout.fillWidth: true
|
||||
text: qsTr("SSID")
|
||||
subText: currentApPage.wirelessNetworkDevice.currentAccessPoint.ssid
|
||||
progressive: false
|
||||
}
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
Layout.fillWidth: true
|
||||
text: qsTr("MAC Address")
|
||||
subText: currentApPage.wirelessNetworkDevice.currentAccessPoint.macAddress
|
||||
progressive: false
|
||||
}
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
Layout.fillWidth: true
|
||||
text: qsTr("Signal strength")
|
||||
subText: currentApPage.wirelessNetworkDevice.currentAccessPoint.signalStrength
|
||||
|
||||
@ -10,7 +10,7 @@ Page {
|
||||
id: root
|
||||
property var plugin: null
|
||||
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("%1 settings").arg(plugin.name)
|
||||
backButtonVisible: true
|
||||
onBackPressed: pageStack.pop()
|
||||
|
||||
@ -7,7 +7,7 @@ import Nymea 1.0
|
||||
|
||||
Page {
|
||||
id: root
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Plugins")
|
||||
backButtonVisible: true
|
||||
onBackPressed: pageStack.pop()
|
||||
@ -42,7 +42,7 @@ Page {
|
||||
}
|
||||
clip: true
|
||||
|
||||
delegate: MeaListItemDelegate {
|
||||
delegate: NymeaListItemDelegate {
|
||||
property var plugin: pluginsProxy.get(index)
|
||||
width: parent.width
|
||||
iconName: "../images/plugin.svg"
|
||||
|
||||
@ -7,7 +7,7 @@ import Nymea 1.0
|
||||
|
||||
Page {
|
||||
id: root
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("System update")
|
||||
backButtonVisible: true
|
||||
onBackPressed: pageStack.pop()
|
||||
@ -145,7 +145,7 @@ Page {
|
||||
visible: count > 0
|
||||
model: updatesModel
|
||||
clip: true
|
||||
delegate: MeaListItemDelegate {
|
||||
delegate: NymeaListItemDelegate {
|
||||
width: parent.width
|
||||
text: model.displayName
|
||||
subText: model.candidateVersion
|
||||
@ -165,7 +165,7 @@ Page {
|
||||
|
||||
ThinDivider {}
|
||||
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
Layout.fillWidth: true
|
||||
text: qsTr("Install or remove software")
|
||||
onClicked: {
|
||||
@ -178,7 +178,7 @@ Page {
|
||||
id: repositoryListComponent
|
||||
Page {
|
||||
id: repositoryListPage
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Configure update sources")
|
||||
onBackPressed: pageStack.pop()
|
||||
}
|
||||
@ -225,7 +225,7 @@ Page {
|
||||
|
||||
property var packages: null
|
||||
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("All packages")
|
||||
onBackPressed: pageStack.pop()
|
||||
}
|
||||
@ -236,7 +236,7 @@ Page {
|
||||
id: filterModel
|
||||
packages: packageListPage.packages
|
||||
}
|
||||
delegate: MeaListItemDelegate {
|
||||
delegate: NymeaListItemDelegate {
|
||||
width: parent.width
|
||||
text: model.displayName
|
||||
subText: model.candidateVersion
|
||||
@ -264,7 +264,7 @@ Page {
|
||||
|
||||
property Package pkg: null
|
||||
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Package information")
|
||||
onBackPressed: pageStack.pop()
|
||||
}
|
||||
@ -297,14 +297,14 @@ Page {
|
||||
wrapMode: Text.WordWrap
|
||||
}
|
||||
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
Layout.fillWidth: true
|
||||
text: qsTr("Installed version:")
|
||||
subText: packageDetailsPage.pkg.installedVersion.length > 0 ? packageDetailsPage.pkg.installedVersion : qsTr("Not installed")
|
||||
progressive: false
|
||||
}
|
||||
|
||||
MeaListItemDelegate {
|
||||
NymeaListItemDelegate {
|
||||
Layout.fillWidth: true
|
||||
text: qsTr("Candidate version:")
|
||||
subText: packageDetailsPage.pkg.candidateVersion
|
||||
|
||||
@ -6,7 +6,7 @@ import "../components"
|
||||
|
||||
Page {
|
||||
id: root
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Web server")
|
||||
onBackPressed: pageStack.pop();
|
||||
}
|
||||
|
||||
@ -10,7 +10,7 @@ Page {
|
||||
property Device device: null
|
||||
readonly property DeviceClass deviceClass: device ? device.deviceClass : null
|
||||
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: root.device.name
|
||||
onBackPressed: pageStack.pop()
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@ import Nymea 1.0
|
||||
|
||||
Page {
|
||||
id: root
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Configure Things")
|
||||
onBackPressed: pageStack.pop()
|
||||
|
||||
|
||||
@ -9,7 +9,7 @@ import "../delegates"
|
||||
Page {
|
||||
id: root
|
||||
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Set up new thing")
|
||||
onBackPressed: {
|
||||
pageStack.pop();
|
||||
@ -107,7 +107,7 @@ Page {
|
||||
groupByInterface: true
|
||||
}
|
||||
|
||||
delegate: MeaListItemDelegate {
|
||||
delegate: NymeaListItemDelegate {
|
||||
id: deviceClassDelegate
|
||||
width: parent.width
|
||||
text: model.displayName
|
||||
|
||||
@ -16,7 +16,7 @@ Page {
|
||||
|
||||
signal done();
|
||||
|
||||
header: GuhHeader {
|
||||
header: NymeaHeader {
|
||||
text: qsTr("Set up thing")
|
||||
onBackPressed: {
|
||||
if (internalPageStack.depth > 1) {
|
||||
@ -183,7 +183,7 @@ Page {
|
||||
showNew: root.device === null
|
||||
filterDeviceId: root.device !== null ? root.device.id : null
|
||||
}
|
||||
delegate: MeaListItemDelegate {
|
||||
delegate: NymeaListItemDelegate {
|
||||
width: parent.width
|
||||
height: app.delegateHeight
|
||||
text: model.name
|
||||
|
||||
Reference in New Issue
Block a user