diff options
Diffstat (limited to 'src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components')
19 files changed, 0 insertions, 610 deletions
diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/BackButton.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/BackButton.qml deleted file mode 100644 index 61f0311815..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/BackButton.qml +++ /dev/null @@ -1,9 +0,0 @@ -import QtQuick 2.0 - -ImageButton { - icon: "../Assets/BackIcon.png" - height: 42 - width: 60 - anchors.top: parent.top - anchors.left: parent.left -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Button.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Button.qml deleted file mode 100644 index 7f3c30126b..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Button.qml +++ /dev/null @@ -1,32 +0,0 @@ -import QtQuick 2.0 - -Rectangle { - signal press - property alias text: clickable.text - property alias textAnchors: clickable.textAnchors - property alias clickable: clickable - id: container - border.color: "#333" - border.width: 1 - height: 45 - width: 150 - radius: 3 - gradient: Gradient { - GradientStop { - position: 0.0 - color: clickable.pressed ? "#3C1414" : Qt.rgba(0.18, 0.18, 0.18, 1) - } - GradientStop { - position: 1.0 - color: clickable.pressed ? "#9C3335" : "black" - } - } - Clickable { - anchors.fill: parent - id: clickable - onPress: container.press() - - textAnchors.horizontalCenter: horizontalCenter - textAnchors.verticalCenter: verticalCenter - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/CheckButton.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/CheckButton.qml deleted file mode 100644 index 713d00d1b3..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/CheckButton.qml +++ /dev/null @@ -1,36 +0,0 @@ -import QtQuick 2.0 - -Rectangle { - signal press - property alias text: clickable.text - - states: [ - State { - name: 'pressed' - } - ] - id: container - border.color: "#333" - border.width: 1 - height: 45 - width: 150 - radius: 3 - gradient: Gradient { - GradientStop { - position: 0.0 - color: (state === 'pressed' || clickable.pressed) ? "#3C1414" : Qt.rgba(0.18, 0.18, 0.18, 1) - } - GradientStop { - position: 1.0 - color: (state === 'pressed' || clickable.pressed) ? "#9C3335" : "black" - } - } - Clickable { - anchors.fill: parent - id: clickable - onPress: { container.press(); container.state = (container.state === '') ? 'pressed' : '' } - - textAnchors.horizontalCenter: horizontalCenter - textAnchors.verticalCenter: verticalCenter - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Clickable.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Clickable.qml deleted file mode 100644 index 2fdc97d7cd..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Clickable.qml +++ /dev/null @@ -1,24 +0,0 @@ -import QtQuick 2.0 - -Item { - property alias text: text.text - property alias pressed: mousearea.pressed - property alias textAnchors: text.anchors - signal press - - id: container - - Text { - id: text - color: "white" - font.pixelSize: 16 - } - - MouseArea { - id: mousearea - width: parent.width - height: parent.height - - onClicked: container.press() - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/GraphicalButton.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/GraphicalButton.qml deleted file mode 100644 index 2e670682ee..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/GraphicalButton.qml +++ /dev/null @@ -1,40 +0,0 @@ -import QtQuick 2.0 - -Rectangle { - signal press - property alias text: clickable.text - property alias image: image.source - - id: container - border.color: "#333" - border.width: 1 - height: 110 - width: 150 - radius: 3 - gradient: Gradient { - GradientStop { - position: 0.0 - color: clickable.pressed ? "#3C1414" : Qt.rgba(0.18, 0.18, 0.18, 1) - } - GradientStop { - position: 1.0 - color: clickable.pressed ? "#9C3335" : "black" - } - } - Clickable { - anchors.fill: parent - id: clickable - onPress: container.press() - - textAnchors.horizontalCenter: horizontalCenter - textAnchors.bottom: bottom - textAnchors.bottomMargin: 10 - - Image { - id: image - anchors.top: parent.top - anchors.topMargin: 10 - anchors.horizontalCenter: parent.horizontalCenter - } - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/H1.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/H1.qml deleted file mode 100644 index b68c7f0f1b..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/H1.qml +++ /dev/null @@ -1,6 +0,0 @@ -import QtQuick 2.0 - -Text { - color: "#fff" - font.pixelSize: 32 -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/H2.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/H2.qml deleted file mode 100644 index 775838be06..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/H2.qml +++ /dev/null @@ -1,9 +0,0 @@ -import QtQuick 2.0 - -Text { - color: "#fff" - font.pixelSize: 24 - anchors.margins: 20 - anchors.horizontalCenter: parent.horizontalCenter - anchors.top: parent.top -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/ImageButton.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/ImageButton.qml deleted file mode 100644 index 81c18a4311..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/ImageButton.qml +++ /dev/null @@ -1,13 +0,0 @@ -import QtQuick 2.0 - -Button { - property alias icon: icon.source - - width: icon.width + 30 - - Image { - id: icon - anchors.horizontalCenter: parent.horizontalCenter - anchors.verticalCenter: parent.verticalCenter - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Key.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Key.qml deleted file mode 100644 index 7fe5dbab83..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Key.qml +++ /dev/null @@ -1,7 +0,0 @@ -import QtQuick 2.0 - -Button { - width: 60 - - onPress: keyboard.letterClicked(text) -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Keyboard.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Keyboard.qml deleted file mode 100644 index fc5d26aa88..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Keyboard.qml +++ /dev/null @@ -1,129 +0,0 @@ -import QtQuick 2.0 - -Item { - signal letterClicked(string letter) - signal go() - id: keyboard - - states: [ - State { - name: 'numpad' - PropertyChanges { - target: qwerty - visible: false - } - PropertyChanges { - target: numpad - visible: true - } - } - - ] - - Column { - id: qwerty - anchors.fill: parent - spacing: 10 - Row { - anchors.horizontalCenter: parent.horizontalCenter - spacing: 10 - - Key { text: "Q" } - Key { text: "W" } - Key { text: "E" } - Key { text: "R" } - Key { text: "T" } - Key { text: "Y" } - Key { text: "U" } - Key { text: "I" } - Key { text: "O" } - Key { text: "P" } - } - Row { - anchors.horizontalCenter: parent.horizontalCenter - spacing: 10 - - Key { text: "A" } - Key { text: "S" } - Key { text: "D" } - Key { text: "F" } - Key { text: "G" } - Key { text: "H" } - Key { text: "J" } - Key { text: "K" } - Key { text: "L" } - } - Row { - anchors.horizontalCenter: parent.horizontalCenter - spacing: 10 - - Key { text: "Z" } - Key { text: "X" } - Key { text: "C" } - Key { text: "V" } - Key { text: "B" } - Key { text: "N" } - Key { text: "M" } - } - Row { - anchors.horizontalCenter: parent.horizontalCenter - spacing: 10 - Button { text: "123"; width: 60 - onPress: keyboard.state = 'numpad' - } - Button { text: "!@#"; width: 60 } - Key { text: " "; width: 300 } - Key { text: "." } - Key { text: "&" } - } - } - - Column { - id: numpad - visible: false - anchors.fill: parent - spacing: 10 - Row { - anchors.horizontalCenter: parent.horizontalCenter - spacing: 10 - - Key { text: "1" } - Key { text: "2" } - Key { text: "3" } - } - Row { - anchors.horizontalCenter: parent.horizontalCenter - spacing: 10 - - Key { text: "4" } - Key { text: "5" } - Key { text: "6" } - } - Row { - anchors.horizontalCenter: parent.horizontalCenter - spacing: 10 - - Key { text: "7" } - Key { text: "8" } - Key { text: "9" } - } - Row { - anchors.horizontalCenter: parent.horizontalCenter - spacing: 10 - - Button { - text: "ABC" - width: 60 - onPress: keyboard.state = '' - } - Key { text: "*" } - Key { text: "0" } - Key { text: "#" } - Button { - text: "Go" - width: 60 - onPress: keyboard.go() - } - } - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Keypad.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Keypad.qml deleted file mode 100644 index 0dc0115acf..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Keypad.qml +++ /dev/null @@ -1,43 +0,0 @@ -import QtQuick 2.0 - -Item { - signal letterClicked(string letter) - id: keyboard - - Column { - anchors.fill: parent - spacing: 10 - Row { - anchors.horizontalCenter: parent.horizontalCenter - spacing: 10 - - Key { text: "1" } - Key { text: "2" } - Key { text: "3" } - } - Row { - anchors.horizontalCenter: parent.horizontalCenter - spacing: 10 - - Key { text: "4" } - Key { text: "5" } - Key { text: "6" } - } - Row { - anchors.horizontalCenter: parent.horizontalCenter - spacing: 10 - - Key { text: "7" } - Key { text: "8" } - Key { text: "9" } - } - Row { - anchors.horizontalCenter: parent.horizontalCenter - spacing: 10 - - Key { text: "*" } - Key { text: "0" } - Key { text: "#" } - } - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/MediaBrowser.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/MediaBrowser.qml deleted file mode 100644 index f0ef3ed2ae..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/MediaBrowser.qml +++ /dev/null @@ -1,40 +0,0 @@ -import QtQuick 2.0 - -ListView { - id: listView - anchors.fill: parent - anchors.topMargin: 120 - spacing: 10 - clip: true - model: MediaModel - - delegate: Button { - width: 500 - anchors.horizontalCenter: parent.horizontalCenter - OverflowableText { - text: name - fontColor: "#fff" - font.pixelSize: 20 - anchors.verticalCenter: parent.verticalCenter - anchors.left: parent.left - anchors.leftMargin: 20 - width: parent.width - 40 - } - Text { - text: (model.count === 0) ? "" : model.count - anchors.right: parent.right - anchors.rightMargin: 20 - anchors.verticalCenter: parent.verticalCenter - color: "#fff" - } - - onPress: { - if (model.is_file) { - MediaPlayer.setPlaylist(model.pid, model.index); - usb.state = ''; - } else { - MediaModel.browseToChild(model.id) - } - } - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/OverflowableText.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/OverflowableText.qml deleted file mode 100644 index 3149943613..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/OverflowableText.qml +++ /dev/null @@ -1,46 +0,0 @@ -import QtQuick 2.0 -import QtGraphicalEffects 1.0 - -Rectangle { - id: oflow_text - property alias text: text.text - property alias font: text.font - property alias fontColor: text.color - property string textAlign - color: Qt.rgba(0,0,0,0) - height: text.font.pixelSize * 1.2 - clip: true - Text { - id: text - Component.onCompleted: { - if (oflow_text.width < width) { - anchors.left = parent.left - } - else if (oflow_text.textAlign == 'center') { - anchors.horizontalCenter = parent.horizontalCenter - } - } - - NumberAnimation on anchors.leftMargin { - id: scroll_animation - to: oflow_text.width - text.width - duration: ((oflow_text.width - text.width) < 0) ? (text.width - oflow_text.width) * 15 : 0 - running: false - onStopped: { - restart_timer.start() - } - } - } - - Timer { - id: scroll_timer - running: true - interval: 3000 - onTriggered: { if (oflow_text.width < text.width) scroll_animation.start();} - } - Timer { - id: restart_timer - interval: 3000 - onTriggered: text.anchors.leftMargin = 0 - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/RadioButton.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/RadioButton.qml deleted file mode 100644 index 676d65be39..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/RadioButton.qml +++ /dev/null @@ -1,30 +0,0 @@ -import QtQuick 2.0 - -Rectangle { - signal press - property alias text: clickable.text - id: container - border.color: "#333" - border.width: 1 - height: 45 - width: 150 - radius: 3 - gradient: Gradient { - GradientStop { - position: 0.0 - color: (container.focus || clickable.pressed) ? "#3C1414" : Qt.rgba(0.18, 0.18, 0.18, 1) - } - GradientStop { - position: 1.0 - color: (container.focus || clickable.pressed) ? "#9C3335" : "black" - } - } - Clickable { - anchors.fill: parent - id: clickable - onPress: { container.forceActiveFocus(); container.press(); } - - textAnchors.horizontalCenter: horizontalCenter - textAnchors.verticalCenter: verticalCenter - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/RadioButtonGroup.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/RadioButtonGroup.qml deleted file mode 100644 index d4266d149b..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/RadioButtonGroup.qml +++ /dev/null @@ -1,5 +0,0 @@ -import QtQuick 2.0 - -FocusScope { - -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Section.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Section.qml deleted file mode 100644 index 18b5c22f7d..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Section.qml +++ /dev/null @@ -1,6 +0,0 @@ -import QtQuick 2.0 - -Loader { - anchors.fill: parent - asynchronous: true -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/TextBox.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/TextBox.qml deleted file mode 100644 index 4c52e05b2a..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/TextBox.qml +++ /dev/null @@ -1,29 +0,0 @@ -import QtQuick 2.0 - -Rectangle { - property alias text: text.text - property alias icon: icon.source - - border.width: 2 - color: 'black' - height: 42 - radius: 3 - - Image { - id: icon - anchors.verticalCenter: parent.verticalCenter - anchors.left: parent.left - anchors.leftMargin: 20 - } - - TextInput { - id: text - color: "white" - font.pixelSize: 24 - anchors.left: icon.right - anchors.right: parent.right - anchors.leftMargin: 20 - anchors.rightMargin: 10 - anchors.verticalCenter: parent.verticalCenter - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/TextEntry.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/TextEntry.qml deleted file mode 100644 index 774894c137..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/TextEntry.qml +++ /dev/null @@ -1,72 +0,0 @@ -import QtQuick 2.0 - -Item { - id: textentry - property alias input_border: search_text_box.border - property alias autocompleteModel: autocomplete.model - property alias text: search_text_box.text - signal selected - anchors.fill: parent - - TextBox { - id: search_text_box - icon: "../Assets/SearchIcon.png" - anchors.top: parent.top - width: parent.width - 160 - anchors.horizontalCenter: parent.horizontalCenter - - onTextChanged: if (autocomplete.model) autocomplete.model.setSearchString(text) - } - - BackButton { - anchors.top: search_text_box.top - anchors.topMargin: 1 - anchors.right: search_text_box.left - anchors.rightMargin: 10 - onPress: section.state = 'menu' - } - - ImageButton { - anchors.top: search_text_box.top - anchors.topMargin: 1 - icon: "../Assets/DeleteIcon.png" - anchors.left: search_text_box.right - anchors.leftMargin: 10 - height: 42 - - onPress: search_text_box.text = search_text_box.text.replace(/.$/, '') - } - - Keyboard { - anchors.left: parent.left - anchors.right: parent.right - anchors.topMargin: 40 - anchors.top: search_text_box.bottom - - onLetterClicked: search_text_box.text += letter - onGo: textentry.selected() - } - - ListView { - id: autocomplete - anchors.top: search_text_box.bottom - anchors.bottom: parent.bottom - anchors.right: search_text_box.right - anchors.left: search_text_box.left - clip: true - visible: (count > 0 && count <= 5) - - delegate: Button { - text: model.text - width: parent.width - textAnchors.horizontalCenter: undefined - textAnchors.left: clickable.left - textAnchors.leftMargin: 70 - - onPress: { - autocomplete.model.selected = model.text; - textentry.selected() - } - } - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Weather.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Weather.qml deleted file mode 100644 index 0bcaf77205..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Weather.qml +++ /dev/null @@ -1,34 +0,0 @@ -import QtQuick 2.0 - -Item { - property alias text: text.text - property alias temp: temp.text - property alias image: image.source - - width: 150 - height: 75 - - Text { - id: text - text: "Today" - anchors.top: parent.top - color: "#ffffff" - anchors.horizontalCenter: parent.horizontalCenter - } - - Text { - id: temp - text: "72" - font.pixelSize: 36 - anchors.bottom: parent.bottom - anchors.right: parent.right - color: "#ffffff" - } - - Image { - id: image - source: "../Assets/Cloud.png" - anchors.left: parent.left - anchors.bottom: parent.bottom - } -} |