From 0d3a5b087f4bb6c118abe34a14ea27b86583f812 Mon Sep 17 00:00:00 2001 From: ZenWalker Date: Fri, 24 Jun 2016 11:17:22 +0200 Subject: use GResource to store ui files file-roller commit: https://git.gnome.org/browse/file-roller/commit/?id=47619b987b77bdc258af9a554ba022c1f8834774 --- src/ui/Makefile.am | 13 ++ src/ui/add-options.ui | 124 ++++++++++++++++ src/ui/app-menu.ui | 18 +++ src/ui/batch-add-files.ui | 357 +++++++++++++++++++++++++++++++++++++++++++++ src/ui/batch-password.ui | 163 +++++++++++++++++++++ src/ui/delete.ui | 140 ++++++++++++++++++ src/ui/menus-toolbars.ui | 106 ++++++++++++++ src/ui/new.ui | 254 ++++++++++++++++++++++++++++++++ src/ui/password.ui | 166 +++++++++++++++++++++ src/ui/properties.ui | 275 +++++++++++++++++++++++++++++++++++ src/ui/update.ui | 360 ++++++++++++++++++++++++++++++++++++++++++++++ 11 files changed, 1976 insertions(+) create mode 100644 src/ui/Makefile.am create mode 100644 src/ui/add-options.ui create mode 100644 src/ui/app-menu.ui create mode 100644 src/ui/batch-add-files.ui create mode 100644 src/ui/batch-password.ui create mode 100644 src/ui/delete.ui create mode 100644 src/ui/menus-toolbars.ui create mode 100644 src/ui/new.ui create mode 100644 src/ui/password.ui create mode 100644 src/ui/properties.ui create mode 100644 src/ui/update.ui (limited to 'src/ui') diff --git a/src/ui/Makefile.am b/src/ui/Makefile.am new file mode 100644 index 0000000..5f1cd54 --- /dev/null +++ b/src/ui/Makefile.am @@ -0,0 +1,13 @@ +EXTRA_DIST = \ + add-options.ui \ + app-menu.ui \ + batch-add-files.ui \ + batch-password.ui \ + delete.ui \ + menus-toolbars.ui \ + new.ui \ + password.ui \ + properties.ui \ + update.ui + +-include $(top_srcdir)/git.mk diff --git a/src/ui/add-options.ui b/src/ui/add-options.ui new file mode 100644 index 0000000..e7515e5 --- /dev/null +++ b/src/ui/add-options.ui @@ -0,0 +1,124 @@ + + + + + + 5 + Load Options + center-on-parent + dialog + + + True + 2 + + + True + 5 + 2 + 6 + 6 + + + True + 6 + + + gtk-remove + True + True + False + True + + + False + False + 0 + + + + + + + + + + + 1 + 2 + GTK_FILL + GTK_FILL + + + + + 280 + 150 + True + True + automatic + automatic + in + + + True + True + False + + + + + + + 1 + + + + + True + end + + + gtk-close + True + True + True + False + True + + + False + False + 0 + + + + + gtk-apply + True + True + True + False + True + + + False + False + 1 + + + + + False + end + 0 + + + + + + aod_cancelbutton + aod_okbutton + + + diff --git a/src/ui/app-menu.ui b/src/ui/app-menu.ui new file mode 100644 index 0000000..11428d5 --- /dev/null +++ b/src/ui/app-menu.ui @@ -0,0 +1,18 @@ + + +
+ + app.help + _Help + + + app.about + _About Archive Manager + + + app.quit + _Quit + +
+
+
diff --git a/src/ui/batch-add-files.ui b/src/ui/batch-add-files.ui new file mode 100644 index 0000000..21f9240 --- /dev/null +++ b/src/ui/batch-add-files.ui @@ -0,0 +1,357 @@ + + + + + + 5 + Compress + False + center + normal + + + True + vertical + 2 + + + True + end + + + gtk-cancel + True + False + False + True + + + False + False + 0 + + + + + True + True + True + True + False + False + True + + + + + + False + False + 1 + + + + + gtk-help + True + True + False + False + True + + + False + False + 2 + True + + + + + False + True + end + 0 + + + + + True + 5 + 18 + + + 64 + 64 + True + 0 + + + False + False + 0 + + + + + True + vertical + 6 + + + True + 2 + 2 + 12 + 6 + + + True + 0 + _Filename: + True + center + a_add_to_entry + + + GTK_FILL + + + + + + True + 0 + _Location: + True + a_location_filechooserbutton + + + 1 + 2 + GTK_FILL + + + + + + True + False + select-folder + Location + 15 + + + 1 + 2 + 1 + 2 + GTK_FILL + GTK_FILL + + + + + True + 6 + + + True + True + True + 35 + + + 0 + + + + + True + + + + + + 1 + + + + + 1 + 2 + GTK_FILL + GTK_FILL + + + + + 0 + False + False + + + + + True + True + 6 + 6 + True + + + True + 6 + 12 + + + True + 3 + 2 + 12 + 6 + + + True + 0 + _Password: + True + a_password_entry + + + GTK_FILL + + + + + + True + True + False + + + + 1 + 2 + + + + + + _Encrypt the file list too + True + True + False + True + True + + + 2 + 1 + 2 + GTK_FILL + + + + + + True + 6 + + + Split into _volumes of + True + True + False + True + True + + + False + False + 0 + + + + + True + True + 6 + volume_adjustment + 1 + 1 + True + + + False + 1 + + + + + True + MB + + + False + False + 2 + + + + + 2 + 2 + 3 + GTK_FILL + + + + + + + + + + + + True + _Other Options + True + + + + + 1 + False + False + + + + + 1 + + + + + True + end + 1 + + + + + + a_cancel_button + a_add_button + a_help_button + + + + 10 + 0.10000000000000001 + 9999999999 + 0.10000000000000001 + 10 + + diff --git a/src/ui/batch-password.ui b/src/ui/batch-password.ui new file mode 100644 index 0000000..faeedcd --- /dev/null +++ b/src/ui/batch-password.ui @@ -0,0 +1,163 @@ + + + + + + 5 + False + center-on-parent + dialog + + + True + 2 + + + True + 5 + 18 + + + True + 12 + + + True + 0 + 0 + gtk-dialog-authentication + 6 + + + False + 0 + + + + + True + 12 + + + True + 0 + <span weight="bold" size="larger">Password required</span> + True + + + False + False + 0 + + + + + True + 0 + + + False + False + 1 + + + + + True + 12 + + + True + _Password: + True + pw_password_entry + + + False + False + 0 + + + + + True + True + False + + True + + + 1 + + + + + 2 + + + + + 1 + + + + + 0 + + + + + 1 + + + + + True + end + + + gtk-cancel + True + True + True + False + True + + + False + False + 0 + + + + + gtk-ok + True + True + True + True + True + False + True + + + False + False + 1 + + + + + False + end + 0 + + + + + + pw_cancel_button + pw_ok_button + + + diff --git a/src/ui/delete.ui b/src/ui/delete.ui new file mode 100644 index 0000000..a54a4f8 --- /dev/null +++ b/src/ui/delete.ui @@ -0,0 +1,140 @@ + + + + + + 5 + Delete + False + center-on-parent + dialog + + + True + 2 + + + True + 5 + 3 + 2 + 12 + 6 + + + _Files: + True + True + False + True + True + + + 2 + 3 + GTK_FILL + + + + + + True + True + example: *.txt; *.doc + + + 1 + 2 + 2 + 3 + + + + + + _All files + True + True + False + True + True + d_files_radio + + + 2 + GTK_FILL + + + + + + _Selected files + True + True + False + True + True + d_files_radio + + + 2 + 1 + 2 + GTK_FILL + + + + + + 1 + + + + + True + end + + + gtk-cancel + True + True + False + True + + + False + False + 0 + + + + + gtk-delete + True + True + True + True + False + True + + + False + False + 1 + + + + + False + end + 0 + + + + + + d_cancel_button + d_ok_button + + + diff --git a/src/ui/menus-toolbars.ui b/src/ui/menus-toolbars.ui new file mode 100644 index 0000000..b6b68ed --- /dev/null +++ b/src/ui/menus-toolbars.ui @@ -0,0 +1,106 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/ui/new.ui b/src/ui/new.ui new file mode 100644 index 0000000..91454e7 --- /dev/null +++ b/src/ui/new.ui @@ -0,0 +1,254 @@ + + + + + + 5 + True + center-on-parent + normal + extra_widget + save + True + + + True + vertical + 2 + + + + + + True + end + + + gtk-cancel + True + True + False + True + + + False + False + 0 + + + + + gtk-new + True + True + True + False + True + + + False + False + 1 + + + + + gtk-help + True + True + False + True + + + False + False + 2 + True + + + + + False + end + 0 + + + + + + n_cancel_button + n_new_button + n_help_button + + + + 0.10000000149 + 1000 + 10 + 0.10000000149 + 10 + + + True + vertical + 12 + + + True + vertical + + + + + + 0 + + + + + True + True + True + + + True + 6 + + + True + vertical + 6 + + + True + + + True + 3 + 2 + 12 + 6 + + + True + 0 + _Password: + True + n_password_entry + + + 2 + + + + + 300 + True + True + False + + + + 1 + 2 + 2 + + + + + _Encrypt the file list too + True + True + False + True + True + + + 1 + 2 + 2 + 3 + + + + + + + + False + False + 0 + + + + + 0 + + + + + True + 6 + + + Split into _volumes of + True + True + False + True + True + + + False + 0 + + + + + True + True + + volume_adjustment + 1 + 1 + True + + + False + 1 + + + + + True + MB + + + False + 2 + + + + + 1 + + + + + + + + + True + _Other Options + True + + + + + False + 1 + + + + diff --git a/src/ui/password.ui b/src/ui/password.ui new file mode 100644 index 0000000..638f668 --- /dev/null +++ b/src/ui/password.ui @@ -0,0 +1,166 @@ + + + + + + 5 + Password + False + center-on-parent + dialog + + + True + 2 + + + True + 5 + 12 + + + True + 2 + 2 + 12 + 6 + + + _Encrypt the file list + True + True + False + True + True + + + 1 + 2 + 1 + 2 + GTK_FILL + + + + + + True + _Password: + True + pw_password_entry + + + GTK_FILL + + + + + + True + True + False + + True + + + 1 + 2 + + + + + + + + + 0 + + + + + True + 6 + + + True + gtk-dialog-info + 6 + + + False + False + 0 + + + + + True + <i><b>Note:</b> the password will be used to encrypt files you add to the current archive, and to decrypt files you extract from the current archive. When the archive is closed the password will be deleted.</i> + True + True + + + 1 + + + + + 1 + + + + + 1 + + + + + True + end + + + gtk-cancel + True + True + True + False + True + + + False + False + 0 + + + + + gtk-ok + True + True + True + True + True + False + True + + + False + False + 1 + + + + + False + end + 0 + + + + + + pw_cancel_button + pw_ok_button + + + diff --git a/src/ui/properties.ui b/src/ui/properties.ui new file mode 100644 index 0000000..a478887 --- /dev/null +++ b/src/ui/properties.ui @@ -0,0 +1,275 @@ + + + + + + 5 + center-on-parent + dialog + + + True + 2 + + + True + 5 + 7 + 2 + 12 + 6 + + + True + 0 + center + + + GTK_FILL + + + + + + True + 0 + center + + + 3 + 4 + GTK_FILL + + + + + + True + True + 0 + True + + + 1 + 2 + 3 + 4 + GTK_FILL + + + + + + True + 0 + center + + + 1 + 2 + GTK_FILL + + + + + + True + True + 0 + True + + + 1 + 2 + 5 + 6 + GTK_FILL + + + + + + True + 0 + + + 5 + 6 + GTK_FILL + + + + + + True + True + 0 + True + + + 1 + 2 + 2 + 3 + GTK_FILL + + + + + + True + 0 + center + + + 2 + 3 + GTK_FILL + + + + + + True + 0 + + + 4 + 5 + GTK_FILL + + + + + + True + True + 0 + True + + + 1 + 2 + 4 + 5 + GTK_FILL + + + + + + True + True + 0 + True + + + 1 + 2 + 6 + 7 + GTK_FILL + + + + + + True + 0 + center + + + 6 + 7 + GTK_FILL + + + + + + True + True + 0 + True + start + + + 1 + 2 + 1 + 2 + + + + + + True + True + 0 + True + end + 30 + + + 1 + 2 + + + + + + 1 + + + + + True + end + + + gtk-help + True + True + True + True + True + False + True + + + False + False + 0 + True + + + + + gtk-close + True + True + True + False + True + + + False + False + 1 + + + + + False + end + 0 + + + + + + p_help_button + p_ok_button + + + diff --git a/src/ui/update.ui b/src/ui/update.ui new file mode 100644 index 0000000..f3bcf21 --- /dev/null +++ b/src/ui/update.ui @@ -0,0 +1,360 @@ + + + + + + 5 + dialog + + + True + vertical + 14 + + + True + 5 + 18 + + + True + vertical + + + True + gtk-dialog-warning + 6 + + + False + 0 + + + + + 0 + + + + + True + vertical + 12 + + + True + 0 + True + True + + + False + False + 0 + + + + + True + 0 + The file has been modified with an external application. If you don't update the file in the archive, all of your changes will be lost. + True + + + False + False + 1 + + + + + 1 + + + + + 1 + + + + + True + end + + + gtk-cancel + True + True + True + False + True + + + False + False + 0 + + + + + True + True + True + False + + + True + 0 + 0 + + + True + 2 + + + True + gtk-save + + + False + False + 0 + + + + + True + _Update + True + + + False + False + 1 + + + + + + + + + False + False + 1 + + + + + False + end + 0 + + + + + + update_file_cancel_button + update_file_ok_button + + + + 5 + dialog + + + True + vertical + 14 + + + True + 5 + 18 + + + True + vertical + + + True + gtk-dialog-warning + 6 + + + False + 0 + + + + + 0 + + + + + True + vertical + 12 + + + True + 0 + True + True + + + False + False + 0 + + + + + True + 0 + True + + + False + False + 1 + + + + + True + vertical + 6 + + + True + 0 + S_elect the files you want to update: + True + update_files_treeview + + + False + False + 0 + + + + + 400 + 120 + True + True + never + in + + + True + True + False + + + + + 1 + + + + + 2 + + + + + 1 + + + + + 1 + + + + + True + end + + + gtk-cancel + True + True + True + False + True + + + False + False + 0 + + + + + True + True + True + False + + + True + 0 + 0 + + + True + 2 + + + True + gtk-save + + + False + False + 0 + + + + + True + _Update + True + + + False + False + 1 + + + + + + + + + False + False + 1 + + + + + False + end + 0 + + + + + + update_files_cancel_button + update_files_ok_button + + + -- cgit v1.2.1