obliteration/gui/ui/main.slint

42 lines
904 B
Plaintext
Raw Normal View History

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