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 {
|
||||
Project,
|
||||
|
@ -6,11 +6,63 @@ export enum State {
|
|||
}
|
||||
|
||||
component ProjectWidget inherits Rectangle {
|
||||
Text {
|
||||
text: "Projects not supported yet";
|
||||
color: #FF0000;
|
||||
font-size: 30pt;
|
||||
font-weight: 800;
|
||||
background: #D0D0D0;
|
||||
|
||||
VerticalLayout {
|
||||
alignment: start;
|
||||
padding: 4px;
|
||||
GroupBox {
|
||||
title: "Open Project";
|
||||
VerticalLayout {
|
||||
alignment: start;
|
||||
Text {
|
||||
text: "Select a project to open. Any existing changes will be dropped";
|
||||
}
|
||||
HorizontalLayout {
|
||||
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