-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Multi LEDs with text for better understanding; show AC input current …
…limit even if AC source active
- Loading branch information
Showing
735 changed files
with
706 additions
and
638 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
import QtQuick 1.1 | ||
|
||
Text { | ||
id: root | ||
|
||
property alias item: vItem | ||
property alias bind: vItem.bind | ||
property int value: item.valid ? item.value : 0 | ||
property string onColor: "#fff930" | ||
property string offColor: "black" | ||
property bool pulse: false | ||
property bool isOn: false | ||
|
||
horizontalAlignment: Text.AlignHCenter | ||
font.pixelSize: 12 | ||
color: isOn ? onColor : offColor | ||
font.bold: true | ||
|
||
onValueChanged: { | ||
switch (value) { | ||
case 0 : | ||
state = "off" | ||
break; | ||
case 1: | ||
state = "on" | ||
break; | ||
case 2: | ||
state = "blink" | ||
break; | ||
case 3: | ||
state = "blinkInverted" | ||
break; | ||
} | ||
} | ||
|
||
VBusItem { id: vItem } | ||
|
||
Timer { | ||
id: _timer | ||
interval: 500 | ||
running: item.value > 0 | ||
repeat: true | ||
onTriggered: pulse = !pulse | ||
} | ||
|
||
states: [ | ||
State { | ||
name: "off" | ||
PropertyChanges { target: root; color : offColor } | ||
}, | ||
State { | ||
name: "on" | ||
PropertyChanges { target: root; color : onColor } | ||
}, | ||
State { | ||
name: "blink" | ||
PropertyChanges { target: root; color: pulse ? onColor : offColor } | ||
}, | ||
State { | ||
name: "blinkInverted" | ||
PropertyChanges { target: root; isOn: !pulse ? onColor : offColor } | ||
} | ||
] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../v3.20~9/MbEditBox.qml | ||
../v3.20~13/MbEditBox.qml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../v3.20~9/MbEditBoxDateTime.qml | ||
../v3.20~13/MbEditBoxDateTime.qml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../v3.20~9/MbSubMenu.qml | ||
../v3.20~13/MbSubMenu.qml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../v3.20~9/Multi.qml | ||
../v3.20~13/Multi.qml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../v3.20~9/OverviewBox.qml | ||
../v3.20~13/OverviewBox.qml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../v3.20~9/OverviewConnection.qml | ||
../v3.20~13/OverviewConnection.qml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../v3.20~9/OverviewConnectionEnd.qml | ||
../v3.20~13/OverviewConnectionEnd.qml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../v3.20~9/OverviewSolarCharger.qml | ||
../v3.20~13/OverviewSolarCharger.qml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../v3.20~9/OverviewTankDelegate.qml | ||
../v3.20~13/OverviewTankDelegate.qml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../v3.20~9/OverviewTanks.qml | ||
../v3.20~13/OverviewTanks.qml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../v3.20~9/TileText.qml | ||
../v3.20~13/TileText.qml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../v3.20~9/styles.css | ||
../v3.20~13/styles.css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../v3.20~9/MbEditBox.qml | ||
../v3.20~13/MbEditBox.qml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../v3.20~9/MbEditBoxDateTime.qml | ||
../v3.20~13/MbEditBoxDateTime.qml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../v3.20~9/MbSubMenu.qml | ||
../v3.20~13/MbSubMenu.qml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../v3.20~9/Multi.qml | ||
../v3.20~13/Multi.qml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../v3.20~9/OverviewBox.qml | ||
../v3.20~13/OverviewBox.qml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../v3.20~9/OverviewConnection.qml | ||
../v3.20~13/OverviewConnection.qml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../v3.20~9/OverviewConnectionEnd.qml | ||
../v3.20~13/OverviewConnectionEnd.qml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../v3.20~9/OverviewSolarCharger.qml | ||
../v3.20~13/OverviewSolarCharger.qml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../v3.20~9/OverviewTankDelegate.qml | ||
../v3.20~13/OverviewTankDelegate.qml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../v3.20~9/OverviewTanks.qml | ||
../v3.20~13/OverviewTanks.qml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../v3.20~9/TileText.qml | ||
../v3.20~13/TileText.qml |
Oops, something went wrong.