X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=homescreen%2Fqml%2FSpeechChrome.qml;fp=homescreen%2Fqml%2FSpeechChrome.qml;h=0000000000000000000000000000000000000000;hb=0bdd39b247661c1a0406d450d578d4ff3fd171b0;hp=911d481b31d53efbf7763de042b4744a249d0b15;hpb=f3de2f5cad06a772ee55f58694d559a7cb012c02;p=apps%2Fhomescreen.git diff --git a/homescreen/qml/SpeechChrome.qml b/homescreen/qml/SpeechChrome.qml deleted file mode 100644 index 911d481..0000000 --- a/homescreen/qml/SpeechChrome.qml +++ /dev/null @@ -1,120 +0,0 @@ -import QtQuick 2.0 -import SpeechChrome 1.0 - -Item { - id: root - - clip: true - - property bool agentPresent: speechChromeController.agentPresent - - visible: agentPresent - - Image { - id: chromeBarImage - - anchors.top: parent.top - source: "./images/SpeechChrome/bar.png" - - Behavior on x { - NumberAnimation { duration: 250 } - } - Behavior on opacity { - NumberAnimation { duration: 250 } - } - } - - Image { - id: pushToTalk - - height: parent.height * 0.80 - width: height - - anchors.left: parent.left - anchors.leftMargin: parent.width / 128 - anchors.verticalCenter: parent.verticalCenter - source: "./images/SpeechChrome/push_to_talk.svg" - - MouseArea { - anchors.fill: parent - onPressed: speechChromeController.pushToTalk() - } - - Behavior on opacity { - NumberAnimation { duration: 250 } - } - } - - states: [ - State { - name: "Idle" - when: speechChromeController.chromeState == SpeechChromeController.Idle - PropertyChanges { - target: chromeBarImage - opacity: 0.0 - x: 0 - } - PropertyChanges { - target: pushToTalk - opacity: 1.0 - enabled: true - } - }, - State { - name: "Listening" - when: speechChromeController.chromeState == SpeechChromeController.Listening - PropertyChanges { - target: chromeBarImage - opacity: 1.0 - x: 0 - } - PropertyChanges { - target: pushToTalk - opacity: 0.0 - enabled: false - } - }, - State { - name: "Thinking" - when: speechChromeController.chromeState == SpeechChromeController.Thinking - PropertyChanges { - target: chromeBarImage - opacity: 1.0 - x: root.width - chromeBarImage.width - } - PropertyChanges { - target: pushToTalk - opacity: 0.0 - enabled: false - } - }, - State { - name: "Speaking" - when: speechChromeController.chromeState == SpeechChromeController.Speaking - PropertyChanges { - target: chromeBarImage - opacity: 1.0 - x: (root.width - chromeBarImage.width) * 0.5 - } - PropertyChanges { - target: pushToTalk - opacity: 0.0 - enabled: false - } - }, - State { - name: "MicrophoneOff" - when: speechChromeController.chromeState == SpeechChromeController.MicrophoneOff - PropertyChanges { - target: chromeBarImage - opacity: 0.0 - x: 0 - } - PropertyChanges { - target: pushToTalk - opacity: 1.0 - enabled: true - } - } - ] -}