Skip to content

Commit

Permalink
Update interfaces of different components (#90)
Browse files Browse the repository at this point in the history
- Update copyright year to 2024
- Add ui option to give name to app backups
- Add separate ui option for data
  synchronize and backup modes
- Add option to pass user defined arguments
  to rsync during data backup
- Add ui option for scheduling data backups.
- Add ui options to backup at specified time
  or at specfied interval
- Add option to retain number of backups
  similar to timeshift
  • Loading branch information
hsbasu authored Nov 5, 2024
1 parent 73ecea1 commit 909ee62
Show file tree
Hide file tree
Showing 4 changed files with 358 additions and 29 deletions.
16 changes: 7 additions & 9 deletions src/LeaptimeManager/ui/MainWindow.ui
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.40.0
Copyright (C) 2021-2023 Himadri Sekhar Basu <[email protected]>
Copyright (C) 2021-2024 Himadri Sekhar Basu <[email protected]>
This file is part of LeapTime Manager.
Expand Down Expand Up @@ -111,7 +111,6 @@ Author: Himadri Sekhar Basu <[email protected]>
<property name="margin-top">10</property>
<property name="margin-bottom">10</property>
<property name="orientation">vertical</property>
<property name="spacing">5</property>
<child>
<object class="GtkBox">
<property name="visible">True</property>
Expand Down Expand Up @@ -182,29 +181,27 @@ Author: Himadri Sekhar Basu <[email protected]>
<object class="GtkBox" id="main_box">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="border-width">5</property>
<property name="orientation">vertical</property>
<property name="spacing">5</property>
<child>
<object class="GtkToolbar">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="halign">center</property>
<property name="valign">center</property>
<property name="hexpand">True</property>
<property name="toolbar-style">icons</property>
<property name="show-arrow">False</property>
<property name="icon_size">1</property>
<child>
<object class="GtkToolItem" id="box">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="halign">center</property>
<property name="hexpand">True</property>
<property name="valign">center</property>
<property name="is-important">True</property>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="spacing">5</property>
<property name="homogeneous">True</property>
<child>
<object class="GtkButton" id="add_button">
<property name="label" translatable="yes">Add</property>
Expand Down Expand Up @@ -299,7 +296,7 @@ Author: Himadri Sekhar Basu <[email protected]>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="fill">False</property>
<property name="position">0</property>
</packing>
</child>
Expand Down Expand Up @@ -428,6 +425,7 @@ Author: Himadri Sekhar Basu <[email protected]>
<property name="can-focus">False</property>
<property name="title" translatable="yes">LeapTime Manager</property>
<property name="subtitle" translatable="yes">An all-in-one backup manager for *nix systems</property>
<property name="spacing">5</property>
<property name="show-close-button">True</property>
<child>
<object class="GtkMenuButton">
Expand Down
52 changes: 42 additions & 10 deletions src/LeaptimeManager/ui/app_backup.ui
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.40.0
Copyright (C) 2021-2023 Himadri Sekhar Basu <[email protected]>
Copyright (C) 2021-2024 Himadri Sekhar Basu <[email protected]>
This file is part of LeapTime Manager.
Expand Down Expand Up @@ -52,7 +52,9 @@ Author: Himadri Sekhar Basu <[email protected]>
<object class="GtkTreeView" id="treeview_all_appbackup_list">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="vexpand">True</property>
<property name="reorderable">True</property>
<property name="enable-grid-lines">horizontal</property>
<child internal-child="selection">
<object class="GtkTreeSelection"/>
</child>
Expand Down Expand Up @@ -193,36 +195,65 @@ Author: Himadri Sekhar Basu <[email protected]>
</packing>
</child>
<child>
<object class="GtkBox" id="backup_page2">
<!-- n-columns=2 n-rows=2 -->
<object class="GtkGrid" id="backup_page2">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="valign">start</property>
<property name="border-width">5</property>
<property name="spacing">5</property>
<property name="baseline-position">top</property>
<property name="column-spacing">5</property>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="halign">end</property>
<property name="label" translatable="yes">Name:</property>
<property name="selectable">True</property>
<attributes>
<attribute name="weight" value="semibold"/>
</attributes>
</object>
<packing>
<property name="left-attach">0</property>
<property name="top-attach">0</property>
</packing>
</child>
<child>
<object class="GtkEntry" id="appbackup_name">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="hexpand">True</property>
<property name="placeholder-text" translatable="yes">Enter name of the backup.</property>
</object>
<packing>
<property name="left-attach">1</property>
<property name="top-attach">0</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label_package_dest">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="halign">end</property>
<property name="label" translatable="yes">Please select a location to save the software selection (.list file):</property>
<property name="selectable">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
<property name="left-attach">0</property>
<property name="top-attach">1</property>
</packing>
</child>
<child>
<object class="GtkFileChooserButton" id="filechooserbutton_package_dest">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="hexpand">True</property>
<property name="action">select-folder</property>
<property name="create-folders">False</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
<property name="left-attach">1</property>
<property name="top-attach">1</property>
</packing>
</child>
</object>
Expand Down Expand Up @@ -254,6 +285,7 @@ Author: Himadri Sekhar Basu <[email protected]>
<object class="GtkFileChooserButton" id="filechooserbutton_package_source">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="hexpand">True</property>
<property name="create-folders">False</property>
</object>
<packing>
Expand Down
2 changes: 1 addition & 1 deletion src/LeaptimeManager/ui/logger.ui
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.40.0
Copyright (C) 2021-2023 Himadri Sekhar Basu <[email protected]>
Copyright (C) 2021-2024 Himadri Sekhar Basu <[email protected]>
This file is part of LeapTime Manager.
Expand Down
Loading

0 comments on commit 909ee62

Please sign in to comment.