Commit 83ec9823 authored by Thomas BOUTROUE's avatar Thomas BOUTROUE

Add missing delegate for routine on CANopen boot-up

parent 3fc34ac2
......@@ -170,6 +170,7 @@ Project {
"components/DelegateRawDoutTable.qml",
"components/DelegateRawNodeTable.qml",
"components/DelegateRoutineOnCanFrame.qml",
"components/DelegateRoutineOnCanOpenBootUp.qml",
"components/DelegateRoutineOnCanOpenNmtStateChange.qml",
"components/DelegateRoutineOnCanOpenObdValChange.qml",
"components/DelegateRoutineOnCanOpenSdoReadReply.qml",
......
......@@ -30,6 +30,7 @@ QtObject {
readonly property Component delegateRoutineOnEvent : Component { DelegateRoutineOnEvent { } }
readonly property Component delegateRoutineOnCanFrame : Component { DelegateRoutineOnCanFrame { } }
readonly property Component delegateRoutineOnSerialFrame : Component { DelegateRoutineOnSerialFrame { } }
readonly property Component delegateRoutineOnCanOpenBootUp : Component { DelegateRoutineOnCanOpenBootUp { } }
readonly property Component delegateRoutineOnCanOpenObdValChange : Component { DelegateRoutineOnCanOpenObdValChange { } }
readonly property Component delegateRoutineOnCanOpenNmtStateChange : Component { DelegateRoutineOnCanOpenNmtStateChange { } }
readonly property Component delegateRoutineOnCanOpenSdoReadReply : Component { DelegateRoutineOnCanOpenSdoReadReply { } }
......
import QtQuick 2.1;
import QtQmlTricks.UiElements 2.0;
import QtCAN.CanTestBench 2.0;
AbstractDelegateRoutine {
id: base;
property RoutineOnCanOpenBootUp routineOnCanOpenBootUp : null;
property alias routine : base.routineOnCanOpenBootUp;
StretchRowContainer {
spacing: Style.spacingNormal;
TextLabel {
text: (routineOnCanOpenBootUp ? routineOnCanOpenBootUp.uid : "");
emphasis: true;
anchors.verticalCenter: parent.verticalCenter;
}
TextLabel {
text: (routineOnCanOpenBootUp ? "(" + routineOnCanOpenBootUp.title + ")" : "");
visible: (text !== "" && text !== "()");
anchors.verticalCenter: parent.verticalCenter;
}
Stretcher { }
}
StretchRowContainer {
spacing: Style.spacingNormal;
TextLabel {
text: qsTr ("triggered on CANopen Boot Up frame");
anchors.verticalCenter: parent.verticalCenter;
}
}
}
......@@ -1306,6 +1306,8 @@ Window {
return Components.delegateRoutineOnCanOpenSdoReadReply;
case Triggers.CANOPEN_SDO_WRITE_REQUEST:
return Components.delegateRoutineOnCanOpenSdoWriteRequest;
case Triggers.CANOPEN_BOOTUP:
return Components.delegateRoutineOnCanOpenBootUp;
}
return null;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment