Receiving current local time
This commit is contained in:
parent
ca6e12c9e0
commit
599b027d19
6 changed files with 94 additions and 30 deletions
|
@ -3,14 +3,25 @@ import { RecordWidget } from "record.slint";
|
|||
import { ReviewWidget } from "review.slint";
|
||||
|
||||
export component AppWindow inherits Window {
|
||||
callback update-record-visible-time <=> record.update-visible-time;
|
||||
callback start-new-event <=> record.start-new-event;
|
||||
callback stop-event <=> record.stop-event;
|
||||
callback update-record-offset(int);
|
||||
|
||||
update-record-offset(new-offset) => {
|
||||
record.offset = new-offset;
|
||||
}
|
||||
|
||||
property<[string]> combo-spans: ["1 Hour", "4 Hours", "8 Hours", "24 Hours"];
|
||||
|
||||
TabWidget {
|
||||
Tab {
|
||||
title: "Record";
|
||||
RecordWidget {}
|
||||
record := RecordWidget {}
|
||||
}
|
||||
Tab {
|
||||
title: "Review";
|
||||
ReviewWidget {}
|
||||
review := ReviewWidget {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue