1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
// Copyright © 2024 Stephan Kunz
import { AboutSlint, Button, StandardButton, TabWidget } from "std-widgets.slint";
export component MainWindow inherits Window {
title: "DiMAS Monitor";
preferred-width: 1280px;
preferred-height: 720px;
min-width: 640px;
min-height: 480px;
splash_popup := PopupWindow {
height: 150px; width: 250px;
x: 0.5*(root.width - 250px);
y: 0.5*(root.height - 150px);
Rectangle {
background: #2e053d;
AboutSlint {
}
}
}
VerticalLayout {
width: 100%;
height: 100%;
// TopMenu
top_menu := Rectangle {
height: 44px;
background: gray;
Button {
text: "??";
clicked => { splash_popup.show(); }
}
}
HorizontalLayout {
// LeftMenu
left_menu := TabWidget {
width: 20%;
Tab {
title: "MenuTab1";
Rectangle {
background: darkgray;
}
}
}
VerticalLayout {
HorizontalLayout {
// MainArea
main_area := TabWidget {
Tab {
title: "MainTab1";
Rectangle {
background: white;
}
}
Tab {
title: "MainTab2";
Rectangle {
background: whitesmoke;
}
}
}
// RightArea
right_area := TabWidget {
width: 0%;
visible: false;
Tab {
title: "RightTab1";
Rectangle {
// background: cyan;
}
}
}
}
// BottomArea
bottom_area := TabWidget {
height: 0%;
visible: false;
Tab {
title: "BottomTab1";
Rectangle {
background: gray;
}
}
}
}
}
// StatusLine
status_line := Rectangle {
height: 30px;
background: lightgray;
}
}
}