2024-11-11 04:16:48 +00:00
|
|
|
import { Tabs } from "main/tabs.slint";
|
|
|
|
import { Actions } from "main/actions.slint";
|
2024-11-17 17:06:42 +00:00
|
|
|
import { Wizard, FileValidationResult } from "wizard.slint";
|
2024-11-18 04:57:07 +00:00
|
|
|
import { Globals } from "globals.slint";
|
2024-11-19 20:44:50 +00:00
|
|
|
import { VerticalBox } from "std-widgets.slint";
|
2024-11-17 17:06:42 +00:00
|
|
|
|
2024-11-18 04:57:07 +00:00
|
|
|
export { Wizard, FileValidationResult, Globals }
|
2024-11-11 04:16:48 +00:00
|
|
|
|
|
|
|
export component MainWindow inherits Window {
|
|
|
|
title: "Obliteration";
|
2024-11-21 18:31:02 +00:00
|
|
|
icon: @image-url("icon.png");
|
2024-11-16 18:20:41 +00:00
|
|
|
min-width: 1000px;
|
|
|
|
min-height: 500px;
|
2024-11-11 04:16:48 +00:00
|
|
|
|
2024-11-20 16:20:48 +00:00
|
|
|
in property <[string]> devices;
|
|
|
|
in property <[string]> profiles;
|
2024-11-11 04:16:48 +00:00
|
|
|
|
2024-11-21 18:31:02 +00:00
|
|
|
pure callback start-vmm();
|
2024-11-11 04:16:48 +00:00
|
|
|
|
2024-11-19 20:44:50 +00:00
|
|
|
VerticalBox {
|
2024-11-11 04:16:48 +00:00
|
|
|
Tabs {
|
|
|
|
devices: devices;
|
|
|
|
}
|
2024-11-16 18:20:41 +00:00
|
|
|
|
2024-11-11 04:16:48 +00:00
|
|
|
Actions {
|
|
|
|
profiles: profiles;
|
2024-11-21 18:31:02 +00:00
|
|
|
start => {
|
|
|
|
start-vmm();
|
2024-11-11 04:16:48 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export component ErrorDialog inherits Window {
|
|
|
|
in property <string> message;
|
|
|
|
|
|
|
|
Text {
|
|
|
|
padding: 10px;
|
|
|
|
text: message;
|
|
|
|
}
|
|
|
|
}
|