diff options
Diffstat (limited to 'sample/package')
-rw-r--r-- | sample/package/package.pro | 6 | ||||
-rw-r--r-- | sample/package/qml/images/answer.png | bin | 2688 -> 0 bytes | |||
-rw-r--r-- | sample/package/qml/images/disable.png | bin | 2714 -> 0 bytes | |||
-rw-r--r-- | sample/package/qml/images/heart_1079x400.png | bin | 20429 -> 0 bytes | |||
-rw-r--r-- | sample/package/qml/images/images.qrc | 9 | ||||
-rw-r--r-- | sample/package/qml/images/oval_1079x400.png | bin | 18800 -> 0 bytes | |||
-rw-r--r-- | sample/package/qml/images/reject.png | bin | 4820 -> 0 bytes | |||
-rw-r--r-- | sample/package/qml/msg.qml | 91 | ||||
-rw-r--r-- | sample/package/qml/phone.qml | 118 | ||||
-rw-r--r-- | sample/package/qml/system.qml | 59 | ||||
-rw-r--r-- | sample/package/qml/vics.qml | 47 |
11 files changed, 0 insertions, 330 deletions
diff --git a/sample/package/package.pro b/sample/package/package.pro index 5a0c7d8..faf285c 100644 --- a/sample/package/package.pro +++ b/sample/package/package.pro @@ -13,12 +13,6 @@ copy_config.commands = $(COPY_FILE) \"$$replace(copy_config.depends, /, $$QMAKE_ QMAKE_EXTRA_TARGETS += copy_config PRE_TARGETDEPS += $$copy_config.target -copy_qml.target = $$OUT_PWD/root/qml/ -copy_qml.depends = $$_PRO_FILE_PWD_/qml/. -copy_qml.commands = $(COPY_DIR) \"$$replace(copy_qml.depends, /, $$QMAKE_DIR_SEP)\" \"$$replace(copy_qml.target, /, $$QMAKE_DIR_SEP)\" -QMAKE_EXTRA_TARGETS += copy_qml -PRE_TARGETDEPS += $$copy_qml.target - wgt.target = package wgt.commands = wgtpkg-pack -f -o onstestapp.wgt root diff --git a/sample/package/qml/images/answer.png b/sample/package/qml/images/answer.png Binary files differdeleted file mode 100644 index 4707a23..0000000 --- a/sample/package/qml/images/answer.png +++ /dev/null diff --git a/sample/package/qml/images/disable.png b/sample/package/qml/images/disable.png Binary files differdeleted file mode 100644 index 8c08c03..0000000 --- a/sample/package/qml/images/disable.png +++ /dev/null diff --git a/sample/package/qml/images/heart_1079x400.png b/sample/package/qml/images/heart_1079x400.png Binary files differdeleted file mode 100644 index e1fe683..0000000 --- a/sample/package/qml/images/heart_1079x400.png +++ /dev/null diff --git a/sample/package/qml/images/images.qrc b/sample/package/qml/images/images.qrc deleted file mode 100644 index b75641f..0000000 --- a/sample/package/qml/images/images.qrc +++ /dev/null @@ -1,9 +0,0 @@ -<RCC> - <qresource prefix="/images"> - <file>oval_1079x400.png</file> - <file>heart_1079x400.png</file> - <file>answer.png</file> - <file>reject.png</file> - <file>disable.png</file> - </qresource> -</RCC> diff --git a/sample/package/qml/images/oval_1079x400.png b/sample/package/qml/images/oval_1079x400.png Binary files differdeleted file mode 100644 index fb850df..0000000 --- a/sample/package/qml/images/oval_1079x400.png +++ /dev/null diff --git a/sample/package/qml/images/reject.png b/sample/package/qml/images/reject.png Binary files differdeleted file mode 100644 index d6586e1..0000000 --- a/sample/package/qml/images/reject.png +++ /dev/null diff --git a/sample/package/qml/msg.qml b/sample/package/qml/msg.qml deleted file mode 100644 index f89ffa0..0000000 --- a/sample/package/qml/msg.qml +++ /dev/null @@ -1,91 +0,0 @@ -import QtQuick 2.6 -import QtQuick.Window 2.2 -import QtQuick.Layouts 1.1 -import QtQuick.Controls 2.0 -import AGL.Demo.Controls 1.0 - -Item { - id: onScreenMsg - visible: true - width: 1079 - height: 400 - scale: screenInfo.scale_factor() - - function qmlOnScreenParameter(message) { - console.log(qsTr('OnScreenVICS:QML:System >>> qmlOnScreenMessage.'), message); - var message_json = JSON.parse (message); - data1.text = message_json.data1; - data2.text = message_json.data2; - data3.text = message_json.data3; - } - - RowLayout { - id: line1 - x: 40 - y: 72 - width: 1000 - height: 200 - spacing: 20 - Label { - id: data1 - color: "#eeeeec" - text: "show data1" - font.pixelSize: 20 - textFormat: Text.AutoText - font.wordSpacing: 0 - verticalAlignment: Text.AlignVCenter - horizontalAlignment: Text.AlignHCenter - } - - Label { - id: data2 - color: "#eeeeec" - text: "show data2" - font.pixelSize: 20 - textFormat: Text.AutoText - font.wordSpacing: 0 - verticalAlignment: Text.AlignVCenter - horizontalAlignment: Text.AlignHCenter - } - - Label { - id: data3 - color: "#eeeeec" - text: "show data3" - font.pixelSize: 20 - textFormat: Text.AutoText - font.wordSpacing: 0 - verticalAlignment: Text.AlignVCenter - horizontalAlignment: Text.AlignHCenter - } - - } - - RowLayout { - anchors.top: line1.bottom - anchors.topMargin: 60 - anchors.horizontalCenter: parent.horizontalCenter - Button { - id: button1 - text: qsTr("Button1") - onClicked: { - eventHandler.onScreenReply("Button1"); - } - } - Button { - id: button2 - text: qsTr("Button2") - onClicked: { - eventHandler.onScreenReply("Button2"); - } - } - Button { - id: button3 - text: qsTr("Button3") - onClicked: { - eventHandler.onScreenReply("Button3"); - } - } - } - -} diff --git a/sample/package/qml/phone.qml b/sample/package/qml/phone.qml deleted file mode 100644 index 1b25ed3..0000000 --- a/sample/package/qml/phone.qml +++ /dev/null @@ -1,118 +0,0 @@ -import QtQuick 2.6 -import QtQuick.Window 2.2 -import QtQuick.Layouts 1.1 -import QtQuick.Controls 2.0 -import AGL.Demo.Controls 1.0 - -Item { - id: onScreenPhone - visible: true - width: 1079 - height: 400 - scale: screenInfo.scale_factor() - property string messageText: "Incoming Call" - - function qmlOnScreenParameter(message) { - console.log(qsTr('OnScreenApp:QML:Phone >>> qmlOnScreenParameter.'), message); - var message_json = JSON.parse (message); - var text = message_json.status - - if(text === "incoming call") - { - messageText = "Incoming Call"; - answerButton.active = true; - answerButton.checked = false; - } - else if(text === "call answered") - { - messageText = "Call Answered"; - answerButton.active = false; - answerButton.checked = true; - } - else if(text === "call rejected") - { - messageText = "Call Rejected"; - answerButton.active = false; - answerButton.checked = true; - } - else { - messageText = text; - } - } - - Image { - id : background_image - anchors.fill: parent - anchors.topMargin: 0 - anchors.bottomMargin: 0 - source: "images/heart_1079x400.png" - } - - ToggleButton { - id: answerButton - x: 53 - y: 147 - width: 228 - height: 230 - onImage: 'images/disable.png' - offImage: 'images/answer.png' - property bool active: true - - onCheckedChanged: { - if(!checked && !active) { - checked = true; - } - if(active && checked) - { - messageText = "Call Answer" - eventHandler.onScreenReply("call answer"); - active = false; - } - } - } - - ImageButton { - id: rejectButton - x: 804 - y: 142 - width: 228 - height: 230 - offImage: 'images/reject.png' - - onClicked: { - messageText = "Call Reject" - eventHandler.onScreenReply("call reject"); - } - } - - Label { - x: 400 - y: 115 - width: 280 - height: 100 - color: "#000000" - text: messageText - textFormat: Text.AutoText - wrapMode: Text.WordWrap - verticalAlignment: Text.AlignVCenter - horizontalAlignment: Text.AlignHCenter - font.pixelSize: 50 - font.weight: Font.ExtraBold - } - - Label { - x: 395 - y: 112 - width: 280 - height: 100 - color: "#6BFBFF" - text: messageText - textFormat: Text.AutoText - wrapMode: Text.WordWrap - verticalAlignment: Text.AlignVCenter - horizontalAlignment: Text.AlignHCenter - font.pixelSize: 50 - font.weight: Font.DemiBold - } - -} diff --git a/sample/package/qml/system.qml b/sample/package/qml/system.qml deleted file mode 100644 index d42eeb7..0000000 --- a/sample/package/qml/system.qml +++ /dev/null @@ -1,59 +0,0 @@ -import QtQuick 2.6 -import QtQuick.Window 2.2 -import QtQuick.Layouts 1.1 -import QtQuick.Controls 2.0 -import AGL.Demo.Controls 1.0 - -Item { - id: onScreenSystem - visible: true - width: 1079 - height: 400 - scale: screenInfo.scale_factor() - - function qmlOnScreenParameter(message) { - console.log(qsTr('OnScreenSys:QML:System >>> qmlOnScreenMessage.'), message); - var message_json = JSON.parse (message); - var text = message_json.text - label.text = text; - } - - Image { - id : background_image - anchors.fill: parent - anchors.topMargin: 0 - anchors.bottomMargin: 0 - source: "images/oval_1079x400.png" - } - - Label { - id: label - x: 40 - y: 72 - width: 1000 - height: 100 - color: "#eeeeec" - text: "system alert" - font.pixelSize: 50 - textFormat: Text.AutoText - font.wordSpacing: 0 - verticalAlignment: Text.AlignVCenter - horizontalAlignment: Text.AlignHCenter - } - - Button { - id: button -// x: 490 -// y: 250 - anchors.top: label.bottom - anchors.topMargin: 100 - anchors.horizontalCenter: parent.horizontalCenter - text: qsTr("OK") - - onClicked: { -// label.text = "system reject" - eventHandler.onScreenReply("OK"); - } - } - -} diff --git a/sample/package/qml/vics.qml b/sample/package/qml/vics.qml deleted file mode 100644 index 2848fbc..0000000 --- a/sample/package/qml/vics.qml +++ /dev/null @@ -1,47 +0,0 @@ -import QtQuick 2.6 -import QtQuick.Window 2.2 -import QtQuick.Layouts 1.1 -import QtQuick.Controls 2.0 -import AGL.Demo.Controls 1.0 - -Item { - id: onScreenVICS - visible: true - width: 1079 - height: 400 - scale: screenInfo.scale_factor() - - function qmlOnScreenParameter(message) { - console.log(qsTr('OnScreenVICS:QML:System >>> qmlOnScreenMessage.'), message); - var message_json = JSON.parse (message); - vics_info.text = message_json.info; - } - - Label { - id: vics_info - x: 40 - y: 72 - width: 1000 - height: 200 - color: "#eeeeec" - text: "show vics inofo" - font.pixelSize: 50 - textFormat: Text.AutoText - font.wordSpacing: 0 - verticalAlignment: Text.AlignVCenter - horizontalAlignment: Text.AlignHCenter - } - - Button { - id: button - anchors.top: vics_info.bottom - anchors.topMargin: 100 - anchors.horizontalCenter: parent.horizontalCenter - text: qsTr("OK") - - onClicked: { - eventHandler.onScreenReply("OK"); - } - } - -} |