application/window.c

changeset 87
5360027fb282
parent 83
a612adaee43d
--- a/application/window.c	Fri Nov 15 21:50:20 2024 +0100
+++ b/application/window.c	Sun Nov 17 15:19:32 2024 +0100
@@ -282,6 +282,30 @@
 }
 
 
+void transfer_window_init(UiObject *dialog, ui_callback btncallback) {
+    ui_window_size(dialog, 550, 120);
+    ui_grid(dialog, .margin = 10, .spacing = 10, .fill = TRUE) {
+        ui_llabel(dialog, .varname = "label_top_left", .hexpand = TRUE);
+        ui_rlabel(dialog, .varname = "label_top_right");
+        ui_newline(dialog);
+
+        ui_progressbar(dialog, .varname = "progressbar", .min = 0, .max = 100, .colspan = 2, .hexpand = TRUE);
+        ui_newline(dialog);
+
+        ui_llabel(dialog, .varname = "label_bottom_left", .hexpand = TRUE);
+        ui_rlabel(dialog, .varname = "label_bottom_right");
+        ui_newline(dialog);
+        
+        ui_label(dialog, .vexpand = TRUE);
+        ui_newline(dialog);
+        
+        ui_hbox(dialog, .colspan = 2, .hexpand = TRUE) {
+            ui_label(dialog, .hexpand = TRUE);
+            ui_button(dialog, .label = "Cancel", .onclick = btncallback);
+        }
+    }
+}
+
 
 static UiPathElm* dav_get_pathelm(const char *full_path, size_t len, size_t *ret_nelm, void* data) {
     if (len == 0) {

mercurial