From ab5c7efce81bfdac4eacb008da33f5b2ae93b50b Mon Sep 17 00:00:00 2001 From: Jaby Date: Thu, 13 Mar 2025 19:58:51 +0100 Subject: [PATCH] Create GUI for project tab --- src/Tools/tim_tool/ui/tab/file-tab.slint | 64 +++++++++++++++++++++--- 1 file changed, 58 insertions(+), 6 deletions(-) diff --git a/src/Tools/tim_tool/ui/tab/file-tab.slint b/src/Tools/tim_tool/ui/tab/file-tab.slint index bb0a78ba..32b04c15 100644 --- a/src/Tools/tim_tool/ui/tab/file-tab.slint +++ b/src/Tools/tim_tool/ui/tab/file-tab.slint @@ -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"; + } + } + } + } } }