Create GUI for project tab
This commit is contained in:
parent
58c105ac03
commit
ab5c7efce8
|
@ -1,4 +1,4 @@
|
||||||
import { Button, TabWidget, LineEdit, GroupBox, ComboBox } from "std-widgets.slint";
|
import { Button, TabWidget, LineEdit, GroupBox, ComboBox, CheckBox } from "std-widgets.slint";
|
||||||
|
|
||||||
export enum State {
|
export enum State {
|
||||||
Project,
|
Project,
|
||||||
|
@ -6,11 +6,63 @@ export enum State {
|
||||||
}
|
}
|
||||||
|
|
||||||
component ProjectWidget inherits Rectangle {
|
component ProjectWidget inherits Rectangle {
|
||||||
|
background: #D0D0D0;
|
||||||
|
|
||||||
|
VerticalLayout {
|
||||||
|
alignment: start;
|
||||||
|
padding: 4px;
|
||||||
|
GroupBox {
|
||||||
|
title: "Open Project";
|
||||||
|
VerticalLayout {
|
||||||
|
alignment: start;
|
||||||
Text {
|
Text {
|
||||||
text: "Projects not supported yet";
|
text: "Select a project to open. Any existing changes will be dropped";
|
||||||
color: #FF0000;
|
}
|
||||||
font-size: 30pt;
|
HorizontalLayout {
|
||||||
font-weight: 800;
|
alignment: start;
|
||||||
|
LineEdit {
|
||||||
|
width: 300pt;
|
||||||
|
}
|
||||||
|
Button {
|
||||||
|
text: "Browse";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
HorizontalLayout {
|
||||||
|
alignment: start;
|
||||||
|
Button {
|
||||||
|
text: "Load";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
GroupBox {
|
||||||
|
title: "Save Project";
|
||||||
|
VerticalLayout {
|
||||||
|
alignment: start;
|
||||||
|
padding: 4px;
|
||||||
|
Text {
|
||||||
|
text: "Save the current project";
|
||||||
|
}
|
||||||
|
HorizontalLayout {
|
||||||
|
alignment: start;
|
||||||
|
LineEdit {
|
||||||
|
width: 300pt;
|
||||||
|
}
|
||||||
|
Button {
|
||||||
|
text: "Browse";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
CheckBox {
|
||||||
|
text: "Use relative path for files";
|
||||||
|
}
|
||||||
|
HorizontalLayout {
|
||||||
|
alignment: start;
|
||||||
|
Button {
|
||||||
|
text: "Save";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue