From 1c044d2ad85ee35af3f23c01d73395425f42d16e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Mikrut?= Date: Tue, 17 Oct 2023 16:30:43 +0200 Subject: [PATCH] A1 --- czkawka_slint_gui/src/main.rs | 43 ++++++++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/czkawka_slint_gui/src/main.rs b/czkawka_slint_gui/src/main.rs index 3ebd063..00b4c6c 100644 --- a/czkawka_slint_gui/src/main.rs +++ b/czkawka_slint_gui/src/main.rs @@ -1,3 +1,44 @@ fn main() {} -slint::slint! {} +slint::slint! { + import { Button, VerticalBox , HorizontalBox, TabWidget, ListView, StandardListView, StandardTableView} from "std-widgets.slint"; + export component MainWindow { + VerticalBox { + TabWidget { + width: 400px; + preferred-height: 300px; + Tab { + title: "Empty Folders"; + ListView { + + } + StandardTableView { + visible: true; + columns: [{title: "Selection", Sort: false}, {title: "Name"}, {title: "Path"}]; + rows: [ + [{ text: "FG"}, {text: "gasg"}, {text:"asg" }], + [{ text: "GS"}, {text: "WW"}, {text:"AGAS" }] + ]; + + } + + } + Tab { + title: "Empty Files"; + Text { + text: "Empty files"; + } + } + } + HorizontalBox { + Button { + text: "Scan"; + } + Button { + text: "Delete"; + } + } + } + } + +}