File: MainWindow.blp

package info (click to toggle)
deja-dup 49.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 9,332 kB
  • sloc: python: 1,218; sh: 161; xml: 48; makefile: 15
file content (84 lines) | stat: -rw-r--r-- 2,043 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/* -*- Mode: Blueprint; indent-tabs-mode: nil; tab-width: 2 -*-
 *
 * SPDX-License-Identifier: CC-BY-SA-4.0
 * SPDX-FileCopyrightText: Michael Terry
 */

using Gtk 4.0;
using Adw 1;

template $MainWindow: Adw.ApplicationWindow {
  title: _("Déjà Dup Backups");
  height-request: 200;
  width-request: 360;

  content: Adw.ToastOverlay toast_overlay {
    child: Adw.NavigationView nav_view {
      $WelcomePage welcome_page {
        tag: "welcome";
        back-up => $on_welcome_backup();
        browse => $on_welcome_browse();
      }

      $OverviewPage overview_page {
        tag: "overview";
        browse => $on_browse_snapshots();
        show-schedule => $on_show_schedule();
        show-folders => $on_show_folders();
        show-storage => $on_show_storage();
      }

      $BasicNavigationPage {
        tag: "schedule";
        title: _("Schedule");

        content: Adw.PreferencesGroup {
          $ConfigAutoBackupRow {}

          $ConfigPeriodRow frequency {
            title: _("Automatic Backup _Frequency");
            use-underline: "true";
          }

          $ConfigDelete keep {
            title: _("_Keep Backups");
            use-underline: "true";

            [suffix]
            $HelpButton {
              valign: "center";

              Label {
                label: _("The oldest backups will still be deleted earlier if the location is low on space or kept up to three months longer to avoid deleting related backups.");
                max-width-chars: 35;
                wrap: true;
                xalign: 0;
              }
            }
          }
        };
      }

      $ConfigFolderPage {
        tag: "folders";
      }

      $BasicNavigationPage {
        tag: "storage";
        title: _("Storage");

        content: $ConfigLocationGroup {};
      }

      $SnapshotsPage snapshots_page {
        tag: "snapshots";
        browse => $on_browse_files();
      }

      $BrowserPage browser_page {
        tag: "browser";
        window: "MainWindow";
      }
    };
  };
}