Event chaining

This commit is contained in:
Alexey 2025-09-08 16:18:47 +03:00
commit 8d5d3584b1
3 changed files with 21 additions and 2 deletions

View file

@ -4,6 +4,7 @@ import { Timeline } from "timeline.slint";
export component RecordWidget inherits VerticalBox {
callback update-visible-time(string);
callback start-new-event(string);
callback chain-event(string);
callback stop-event;
in-out property visible-time <=> tl.visible-time;
in-out property updating <=> tl.updating;
@ -29,7 +30,6 @@ export component RecordWidget inherits VerticalBox {
}
Button {
text: in-progress ? "Stop" : "Start";
colspan: 2;
row: 1;
clicked => {
if in-progress {
@ -40,6 +40,15 @@ export component RecordWidget inherits VerticalBox {
in-progress = !in-progress;
}
}
Button {
text: "Chain";
enabled: in-progress;
col: 1;
row: 1;
clicked => {
root.chain-event(event-name);
}
}
Text {
text: "Span:";
font-size: 24px;