diff --git a/src/signage/resource/page/SystemInitializeView.qml b/src/signage/resource/page/SystemInitializeView.qml new file mode 100644 index 0000000..27d9cb3 --- /dev/null +++ b/src/signage/resource/page/SystemInitializeView.qml @@ -0,0 +1,39 @@ +import QtQuick 2.9 +import QtQuick.Controls 2.2 + +import "Common" + +Rectangle { + id: systemInitializeView + width: viewController.monitor_width + height: viewController.monitor_height + color: "#ffffff" + CurrentTime { + id: displayCurrentTime + } + Text { + id: systemInitializeTetx + color: "#000000" + text: qsTr("準備中") + anchors.horizontalCenter: parent.horizontalCenter + anchors.bottom: parent.verticalCenter + horizontalAlignment: Text.AlignHCenter + verticalAlignment: Text.AlignVCenter + font.pointSize: 80*viewController.size_ratio + font.bold: true + elide: Text.ElideMiddle + } + + Text { + id: systemInitializeEnText + color: "#000000" + text: qsTr("System Initializing") + anchors.top: systemInitializeTetx.bottom + anchors.horizontalCenter: parent.horizontalCenter + horizontalAlignment: Text.AlignHCenter + verticalAlignment: Text.AlignVCenter + font.pointSize: 80*viewController.size_ratio + font.bold: true + elide: Text.ElideMiddle + } +} diff --git a/src/signage/resource/page/main.qml b/src/signage/resource/page/main.qml index 5249bb5..a44ff56 100644 --- a/src/signage/resource/page/main.qml +++ b/src/signage/resource/page/main.qml @@ -54,6 +54,11 @@ Window { visible: viewController.view_mode === "driving" } + SystemInitializeView { + id: systemInitializeView + visible: viewController.view_mode === "system_initializing" + } + Item { focus: true Keys.onPressed: { diff --git a/src/signage/src/signage/route_handler.py b/src/signage/src/signage/route_handler.py index 86ba16d..c02ba41 100644 --- a/src/signage/src/signage/route_handler.py +++ b/src/signage/src/signage/route_handler.py @@ -404,7 +404,7 @@ def view_mode_callback(self): self._viewController.display_phrase = self._display_phrase if self._autoware.is_disconnected: - view_mode = "emergency_stopped" + view_mode = "system_initializing" elif ( not self._autoware.information.autoware_control and not self._parameter.ignore_manual_driving