diff options
author | ZenWalker <[email protected]> | 2016-06-24 11:17:22 +0200 |
---|---|---|
committer | ZenWalker <[email protected]> | 2016-06-24 23:14:17 +0200 |
commit | 0d3a5b087f4bb6c118abe34a14ea27b86583f812 (patch) | |
tree | 79e93750318b932a626668fe9e046b7ab2c896df /src | |
parent | bcee9bdc706d1cf65bf800c2bcc96b236dab6ec5 (diff) | |
download | engrampa-0d3a5b087f4bb6c118abe34a14ea27b86583f812.tar.bz2 engrampa-0d3a5b087f4bb6c118abe34a14ea27b86583f812.tar.xz |
use GResource to store ui files
file-roller commit:
https://git.gnome.org/browse/file-roller/commit/?id=47619b987b77bdc258af9a554ba022c1f8834774
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 17 | ||||
-rw-r--r-- | src/dlg-add-folder.c | 2 | ||||
-rw-r--r-- | src/dlg-ask-password.c | 2 | ||||
-rw-r--r-- | src/dlg-batch-add.c | 2 | ||||
-rw-r--r-- | src/dlg-delete.c | 2 | ||||
-rw-r--r-- | src/dlg-new.c | 2 | ||||
-rw-r--r-- | src/dlg-password.c | 2 | ||||
-rw-r--r-- | src/dlg-prop.c | 2 | ||||
-rw-r--r-- | src/dlg-update.c | 2 | ||||
-rw-r--r-- | src/engrampa.gresource.xml | 15 | ||||
-rw-r--r-- | src/fr-window.c | 2 | ||||
-rw-r--r-- | src/gtk-utils.c | 19 | ||||
-rw-r--r-- | src/gtk-utils.h | 2 | ||||
-rw-r--r-- | src/ui.h | 119 | ||||
-rw-r--r-- | src/ui/Makefile.am | 13 | ||||
-rw-r--r-- | src/ui/add-options.ui | 124 | ||||
-rw-r--r-- | src/ui/app-menu.ui | 18 | ||||
-rw-r--r-- | src/ui/batch-add-files.ui | 357 | ||||
-rw-r--r-- | src/ui/batch-password.ui | 163 | ||||
-rw-r--r-- | src/ui/delete.ui | 140 | ||||
-rw-r--r-- | src/ui/menus-toolbars.ui | 106 | ||||
-rw-r--r-- | src/ui/new.ui | 254 | ||||
-rw-r--r-- | src/ui/password.ui | 166 | ||||
-rw-r--r-- | src/ui/properties.ui | 275 | ||||
-rw-r--r-- | src/ui/update.ui | 360 |
25 files changed, 2035 insertions, 131 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 494b527..c4da5ed 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,4 +1,4 @@ -SUBDIRS = commands sh +SUBDIRS = commands sh ui bin_PROGRAMS = engrampa libexec_PROGRAMS = engrampa-server @@ -45,7 +45,10 @@ BUILT_SOURCES = \ fr-marshal.c \ fr-marshal.h \ fr-enum-types.h \ - fr-enum-types.c + fr-enum-types.c \ + fr-resources.c \ + fr-resources.h \ + $(NULL) COMMON_SOURCES = \ actions.h \ @@ -190,6 +193,12 @@ fr-enum-types.c: typedefs.h fr-enum-types.h && (cmp -s xgen-$(@F) fr-enum-types.c || cp xgen-$(@F) fr-enum-types.c ) \ && rm -f xgen-$(@F) ) +fr-resources.c: engrampa.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies engrampa.gresource.xml) + $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate --c-name fr $(srcdir)/engrampa.gresource.xml + +fr-resources.h: engrampa.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies engrampa.gresource.xml) + $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate --c-name fr $(srcdir)/engrampa.gresource.xml + engrampa_SOURCES = \ $(COMMON_SOURCES) \ main.c @@ -214,7 +223,9 @@ if ENABLE_MAGIC engrampa_LDADD += $(MAGIC_LIBS) endif -EXTRA_DIST = fr-marshal.list +EXTRA_DIST = \ + engrampa.gresource.xml \ + fr-marshal.list CLEANFILES = $(BUILT_SOURCES) diff --git a/src/dlg-add-folder.c b/src/dlg-add-folder.c index 5531100..9d74d50 100644 --- a/src/dlg-add-folder.c +++ b/src/dlg-add-folder.c @@ -801,7 +801,7 @@ load_options_cb (GtkWidget *w, aod_data = g_new0 (LoadOptionsDialogData, 1); aod_data->data = data; - aod_data->builder = _gtk_builder_new_from_file ("add-options.ui"); + aod_data->builder = _gtk_builder_new_from_resource ("add-options.ui"); if (aod_data->builder == NULL) { g_free (aod_data); return; diff --git a/src/dlg-ask-password.c b/src/dlg-ask-password.c index a29d55b..af791bf 100644 --- a/src/dlg-ask-password.c +++ b/src/dlg-ask-password.c @@ -98,7 +98,7 @@ dlg_ask_password__common (FrWindow *window, data = g_new0 (DialogData, 1); - data->builder = _gtk_builder_new_from_file ("batch-password.ui"); + data->builder = _gtk_builder_new_from_resource ("batch-password.ui"); if (data->builder == NULL) { g_free (data); return; diff --git a/src/dlg-batch-add.c b/src/dlg-batch-add.c index e192ca1..ae82eee 100644 --- a/src/dlg-batch-add.c +++ b/src/dlg-batch-add.c @@ -475,7 +475,7 @@ dlg_batch_add_files (FrWindow *window, data->settings = g_settings_new (ENGRAMPA_SCHEMA_BATCH_ADD); data->settings_general = g_settings_new (ENGRAMPA_SCHEMA_GENERAL); - data->builder = _gtk_builder_new_from_file ("batch-add-files.ui"); + data->builder = _gtk_builder_new_from_resource ("batch-add-files.ui"); if (data->builder == NULL) { g_free (data); return; diff --git a/src/dlg-delete.c b/src/dlg-delete.c index e8abe86..26f5cfd 100644 --- a/src/dlg-delete.c +++ b/src/dlg-delete.c @@ -115,7 +115,7 @@ dlg_delete__common (FrWindow *window, data->window = window; data->selected_files = selected_files; - data->builder = _gtk_builder_new_from_file ("delete.ui"); + data->builder = _gtk_builder_new_from_resource ("delete.ui"); if (data->builder == NULL) { g_free (data); return; diff --git a/src/dlg-new.c b/src/dlg-new.c index c10602d..e658abc 100644 --- a/src/dlg-new.c +++ b/src/dlg-new.c @@ -275,7 +275,7 @@ dlg_new_archive (FrWindow *window, data = g_new0 (DlgNewData, 1); - data->builder = _gtk_builder_new_from_file ("new.ui"); + data->builder = _gtk_builder_new_from_resource ("new.ui"); if (data->builder == NULL) { g_free (data); return NULL; diff --git a/src/dlg-password.c b/src/dlg-password.c index 73e8ad8..7a717b7 100644 --- a/src/dlg-password.c +++ b/src/dlg-password.c @@ -89,7 +89,7 @@ dlg_password (GtkWidget *widget, data = g_new0 (DialogData, 1); - data->builder = _gtk_builder_new_from_file ("password.ui"); + data->builder = _gtk_builder_new_from_resource ("password.ui"); if (data->builder == NULL) { g_free (data); return; diff --git a/src/dlg-prop.c b/src/dlg-prop.c index 475737d..4993826 100644 --- a/src/dlg-prop.c +++ b/src/dlg-prop.c @@ -89,7 +89,7 @@ dlg_prop (FrWindow *window) data = g_new (DialogData, 1); - data->builder = _gtk_builder_new_from_file ("properties.ui"); + data->builder = _gtk_builder_new_from_resource ("properties.ui"); if (data->builder == NULL) { g_free (data); return; diff --git a/src/dlg-update.c b/src/dlg-update.c index ddd3cac..197d24d 100644 --- a/src/dlg-update.c +++ b/src/dlg-update.c @@ -285,7 +285,7 @@ dlg_update (FrWindow *window) data = g_new0 (DialogData, 1); - data->builder = _gtk_builder_new_from_file ("update.ui"); + data->builder = _gtk_builder_new_from_resource ("update.ui"); if (data->builder == NULL) { g_free (data); return NULL; diff --git a/src/engrampa.gresource.xml b/src/engrampa.gresource.xml new file mode 100644 index 0000000..0b944bf --- /dev/null +++ b/src/engrampa.gresource.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<gresources> + <gresource prefix="/org/mate/Engrampa"> + <file compressed="true">ui/add-options.ui</file> + <file compressed="true">ui/app-menu.ui</file> + <file compressed="true">ui/batch-add-files.ui</file> + <file compressed="true">ui/batch-password.ui</file> + <file compressed="true">ui/delete.ui</file> + <file compressed="true">ui/menus-toolbars.ui</file> + <file compressed="true">ui/new.ui</file> + <file compressed="true">ui/password.ui</file> + <file compressed="true">ui/properties.ui</file> + <file compressed="true">ui/update.ui</file> + </gresource> +</gresources> diff --git a/src/fr-window.c b/src/fr-window.c index 9a734be..df03e6c 100644 --- a/src/fr-window.c +++ b/src/fr-window.c @@ -5888,7 +5888,7 @@ fr_window_construct (FrWindow *window) g_cclosure_new_swap (G_CALLBACK (fr_window_close), window, NULL)); - if (!gtk_ui_manager_add_ui_from_string (ui, ui_info, -1, &error)) { + if (! gtk_ui_manager_add_ui_from_resource (ui, "/org/mate/Engrampa/ui/menus-toolbars.ui", &error)) { g_message ("building menus failed: %s", error->message); g_error_free (error); } diff --git a/src/gtk-utils.c b/src/gtk-utils.c index 5835eb6..ce4758b 100644 --- a/src/gtk-utils.c +++ b/src/gtk-utils.c @@ -26,6 +26,7 @@ #include "gtk-utils.h" #define LOAD_BUFFER_SIZE 65536 +#define ENGRAMPA_RESOURCE_UI_PATH "/org/mate/Engrampa/ui/" static void count_selected (GtkTreeModel *model, @@ -804,6 +805,24 @@ _gtk_builder_new_from_file (const char *ui_file) return builder; } +GtkBuilder * +_gtk_builder_new_from_resource (const char *resource_path) +{ + GtkBuilder *builder; + char *full_path; + GError *error = NULL; + + builder = gtk_builder_new (); + full_path = g_strconcat (ENGRAMPA_RESOURCE_UI_PATH, resource_path, NULL); + if (! gtk_builder_add_from_resource (builder, full_path, &error)) { + g_warning ("%s\n", error->message); + g_clear_error (&error); + } + g_free (full_path); + + return builder; +} + GtkWidget * _gtk_builder_get_widget (GtkBuilder *builder, diff --git a/src/gtk-utils.h b/src/gtk-utils.h index 64ff68a..8c5c36a 100644 --- a/src/gtk-utils.h +++ b/src/gtk-utils.h @@ -85,6 +85,8 @@ void show_help_dialog (GtkWindow *parent, const char *section); GtkBuilder * _gtk_builder_new_from_file (const char *filename); +GtkBuilder * + _gtk_builder_new_from_resource (const char *resource_path); GtkWidget * _gtk_builder_get_widget (GtkBuilder *builder, const char *name); @@ -271,123 +271,4 @@ static GtkRadioActionEntry sort_by_entries[] = { static guint n_sort_by_entries = G_N_ELEMENTS (sort_by_entries); -static const gchar *ui_info = -"<ui>" -" <menubar name='MenuBar'>" -" <menu name='Archive' action='FileMenu'>" -" <menuitem action='New'/>" -" <menuitem action='Open'/>" -" <menuitem action='OpenRecent'/>" -" <menuitem action='SaveAs'/>" -" <separator/>" -" <menuitem action='Extract'/>" -" <menuitem action='TestArchive'/>" -" <separator/>" -" <menuitem action='Properties'/>" -" <separator/>" -" <menuitem action='Close'/>" -" </menu>" -" <menu action='EditMenu'>" -" <menuitem action='Cut'/>" -" <menuitem action='Copy'/>" -" <menuitem action='Paste'/>" -" <menuitem action='Rename'/>" -" <menuitem action='Delete'/>" -" <separator/>" -" <menuitem action='SelectAll'/>" -" <menuitem action='DeselectAll'/>" -" <separator/>" -" <menuitem action='Find'/>" -" <separator/>" -" <menuitem action='AddFiles'/>" -" <menuitem action='AddFolder'/>" -" <separator/>" -" <menuitem action='Password'/>" -" </menu>" -" <menu action='ViewMenu'>" -" <menuitem action='ViewToolbar'/>" -" <menuitem action='ViewStatusbar'/>" -" <menuitem action='ViewFolders'/>" -" <separator/>" -" <menuitem action='ViewAllFiles'/>" -" <menuitem action='ViewAsFolder'/>" -/*" <separator/>" -" <menu action='ArrangeFilesMenu'>" -" <menuitem action='SortByName'/>" -" <menuitem action='SortBySize'/>" -" <menuitem action='SortByType'/>" -" <menuitem action='SortByDate'/>" -" <menuitem action='SortByLocation'/>" -" <separator/>" -" <menuitem action='SortReverseOrder'/>" -" </menu>"*/ -" <separator/>" -" <menuitem action='LastOutput'/>" -" <separator/>" -" <menuitem action='Stop'/>" -" <menuitem action='Reload'/>" -" </menu>" -" <menu action='HelpMenu'>" -" <menuitem action='Contents'/>" -" <menuitem action='About'/>" -" </menu>" -" </menubar>" -" <toolbar name='ToolBar'>" -" <toolitem action='New'/>" -" <toolitem action='OpenRecent_Toolbar'/>" -" <separator/>" -" <toolitem action='Extract_Toolbar'/>" -" <separator/>" -" <toolitem action='AddFiles_Toolbar'/>" -" <toolitem action='AddFolder_Toolbar'/>" -" <separator/>" -" <toolitem action='Stop'/>" -" </toolbar>" -" <toolbar name='LocationBar'>" -" <toolitem action='GoBack'/>" -" <toolitem action='GoForward'/>" -" <toolitem action='GoUp'/>" -" <toolitem action='GoHome'/>" -" </toolbar>" -" <popup name='FilePopupMenu'>" -" <menuitem action='ViewSelection'/>" -" <menuitem action='OpenSelection'/>" -" <separator/>" -" <menuitem action='Extract'/>" -" <separator/>" -" <menuitem action='Cut'/>" -" <menuitem action='Copy'/>" -" <menuitem action='Paste'/>" -" <menuitem action='Rename'/>" -" <menuitem action='Delete'/>" -" </popup>" -" <popup name='FolderPopupMenu'>" -" <menuitem action='OpenFolder'/>" -" <separator/>" -" <menuitem action='Extract'/>" -" <separator/>" -" <menuitem action='Cut'/>" -" <menuitem action='Copy'/>" -" <menuitem action='Paste'/>" -" <menuitem action='Rename'/>" -" <menuitem action='Delete'/>" -" </popup>" -" <popup name='AddMenu'>" -" <menuitem action='AddFiles'/>" -" <menuitem action='AddFolder'/>" -" </popup>" -" <popup name='SidebarFolderPopupMenu'>" -" <menuitem action='OpenFolderFromSidebar'/>" -" <separator/>" -" <menuitem action='ExtractFolderFromSidebar'/>" -" <separator/>" -" <menuitem action='CutFolderFromSidebar'/>" -" <menuitem action='CopyFolderFromSidebar'/>" -" <menuitem action='PasteFolderFromSidebar'/>" -" <menuitem action='RenameFolderFromSidebar'/>" -" <menuitem action='DeleteFolderFromSidebar'/>" -" </popup>" -"</ui>"; - - #endif /* UI_H */ 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 @@ +<?xml version="1.0"?> +<interface> + <requires lib="gtk+" version="2.14"/> + <!-- interface-naming-policy toplevel-contextual --> + <object class="GtkDialog" id="add_options_dialog"> + <property name="border_width">5</property> + <property name="title" translatable="yes">Load Options</property> + <property name="window_position">center-on-parent</property> + <property name="type_hint">dialog</property> + <child internal-child="vbox"> + <object class="GtkVBox" id="dialog-vbox19"> + <property name="visible">True</property> + <property name="spacing">2</property> + <child> + <object class="GtkTable" id="table4"> + <property name="visible">True</property> + <property name="border_width">5</property> + <property name="n_columns">2</property> + <property name="column_spacing">6</property> + <property name="row_spacing">6</property> + <child> + <object class="GtkVBox" id="vbox18"> + <property name="visible">True</property> + <property name="spacing">6</property> + <child> + <object class="GtkButton" id="aod_remove_button"> + <property name="label">gtk-remove</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">False</property> + <property name="use_stock">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <placeholder/> + </child> + <child> + <placeholder/> + </child> + </object> + <packing> + <property name="left_attach">1</property> + <property name="right_attach">2</property> + <property name="x_options">GTK_FILL</property> + <property name="y_options">GTK_FILL</property> + </packing> + </child> + <child> + <object class="GtkScrolledWindow" id="scrolledwindow11"> + <property name="width_request">280</property> + <property name="height_request">150</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="hscrollbar_policy">automatic</property> + <property name="vscrollbar_policy">automatic</property> + <property name="shadow_type">in</property> + <child> + <object class="GtkTreeView" id="aod_treeview"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="headers_visible">False</property> + </object> + </child> + </object> + </child> + </object> + <packing> + <property name="position">1</property> + </packing> + </child> + <child internal-child="action_area"> + <object class="GtkHButtonBox" id="dialog-action_area19"> + <property name="visible">True</property> + <property name="layout_style">end</property> + <child> + <object class="GtkButton" id="aod_cancelbutton"> + <property name="label">gtk-close</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="can_default">True</property> + <property name="receives_default">False</property> + <property name="use_stock">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkButton" id="aod_okbutton"> + <property name="label">gtk-apply</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="can_default">True</property> + <property name="receives_default">False</property> + <property name="use_stock">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="pack_type">end</property> + <property name="position">0</property> + </packing> + </child> + </object> + </child> + <action-widgets> + <action-widget response="-7">aod_cancelbutton</action-widget> + <action-widget response="-10">aod_okbutton</action-widget> + </action-widgets> + </object> +</interface> 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 @@ +<interface> + <menu id="app-menu"> + <section> + <item> + <attribute name="action">app.help</attribute> + <attribute name="label" translatable="yes">_Help</attribute> + </item> + <item> + <attribute name="action">app.about</attribute> + <attribute name="label" translatable="yes">_About Archive Manager</attribute> + </item> + <item> + <attribute name="action">app.quit</attribute> + <attribute name="label" translatable="yes">_Quit</attribute> + </item> + </section> + </menu> +</interface> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <requires lib="gtk+" version="2.14"/> + <!-- interface-naming-policy toplevel-contextual --> + <object class="GtkDialog" id="dialog"> + <property name="border_width">5</property> + <property name="title" translatable="yes">Compress</property> + <property name="resizable">False</property> + <property name="window_position">center</property> + <property name="type_hint">normal</property> + <child internal-child="vbox"> + <object class="GtkVBox" id="dialog-vbox11"> + <property name="visible">True</property> + <property name="orientation">vertical</property> + <property name="spacing">2</property> + <child internal-child="action_area"> + <object class="GtkButtonBox" id="dialog-action_area11"> + <property name="visible">True</property> + <property name="layout_style">end</property> + <child> + <object class="GtkButton" id="a_cancel_button"> + <property name="label">gtk-cancel</property> + <property name="visible">True</property> + <property name="receives_default">False</property> + <property name="use_action_appearance">False</property> + <property name="use_stock">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkButton" id="a_add_button"> + <property name="visible">True</property> + <property name="has_focus">True</property> + <property name="can_default">True</property> + <property name="has_default">True</property> + <property name="receives_default">False</property> + <property name="use_action_appearance">False</property> + <property name="use_underline">True</property> + <child> + <placeholder/> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">1</property> + </packing> + </child> + <child> + <object class="GtkButton" id="a_help_button"> + <property name="label">gtk-help</property> + <property name="visible">True</property> + <property name="can_default">True</property> + <property name="receives_default">False</property> + <property name="use_action_appearance">False</property> + <property name="use_stock">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">2</property> + <property name="secondary">True</property> + </packing> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="pack_type">end</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkHBox" id="hbox28"> + <property name="visible">True</property> + <property name="border_width">5</property> + <property name="spacing">18</property> + <child> + <object class="GtkImage" id="archive_icon_image"> + <property name="width_request">64</property> + <property name="height_request">64</property> + <property name="visible">True</property> + <property name="yalign">0</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkVBox" id="vbox8"> + <property name="visible">True</property> + <property name="orientation">vertical</property> + <property name="spacing">6</property> + <child> + <object class="GtkTable" id="table5"> + <property name="visible">True</property> + <property name="n_rows">2</property> + <property name="n_columns">2</property> + <property name="column_spacing">12</property> + <property name="row_spacing">6</property> + <child> + <object class="GtkLabel" id="a_archive_label"> + <property name="visible">True</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">_Filename:</property> + <property name="use_underline">True</property> + <property name="justify">center</property> + <property name="mnemonic_widget">a_add_to_entry</property> + </object> + <packing> + <property name="x_options">GTK_FILL</property> + <property name="y_options"></property> + </packing> + </child> + <child> + <object class="GtkLabel" id="a_location_label"> + <property name="visible">True</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">_Location:</property> + <property name="use_underline">True</property> + <property name="mnemonic_widget">a_location_filechooserbutton</property> + </object> + <packing> + <property name="top_attach">1</property> + <property name="bottom_attach">2</property> + <property name="x_options">GTK_FILL</property> + <property name="y_options"></property> + </packing> + </child> + <child> + <object class="GtkFileChooserButton" id="a_location_filechooserbutton"> + <property name="visible">True</property> + <property name="local_only">False</property> + <property name="action">select-folder</property> + <property name="title" translatable="yes">Location</property> + <property name="width_chars">15</property> + </object> + <packing> + <property name="left_attach">1</property> + <property name="right_attach">2</property> + <property name="top_attach">1</property> + <property name="bottom_attach">2</property> + <property name="x_options">GTK_FILL</property> + <property name="y_options">GTK_FILL</property> + </packing> + </child> + <child> + <object class="GtkHBox" id="hbox30"> + <property name="visible">True</property> + <property name="spacing">6</property> + <child> + <object class="GtkEntry" id="a_add_to_entry"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="activates_default">True</property> + <property name="width_chars">35</property> + </object> + <packing> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkHBox" id="a_archive_type_box"> + <property name="visible">True</property> + <child> + <placeholder/> + </child> + </object> + <packing> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="left_attach">1</property> + <property name="right_attach">2</property> + <property name="x_options">GTK_FILL</property> + <property name="y_options">GTK_FILL</property> + </packing> + </child> + </object> + <packing> + <property name="position">0</property> + <property name="expand">False</property> + <property name="fill">False</property> + </packing> + </child> + <child> + <object class="GtkExpander" id="a_other_options_expander"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="margin_top">6</property> + <property name="margin_bottom">6</property> + <property name="expanded">True</property> + <child> + <object class="GtkAlignment" id="alignment2"> + <property name="visible">True</property> + <property name="top_padding">6</property> + <property name="left_padding">12</property> + <child> + <object class="GtkTable" id="table6"> + <property name="visible">True</property> + <property name="n_rows">3</property> + <property name="n_columns">2</property> + <property name="column_spacing">12</property> + <property name="row_spacing">6</property> + <child> + <object class="GtkLabel" id="a_password_label"> + <property name="visible">True</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">_Password:</property> + <property name="use_underline">True</property> + <property name="mnemonic_widget">a_password_entry</property> + </object> + <packing> + <property name="x_options">GTK_FILL</property> + <property name="y_options"></property> + </packing> + </child> + <child> + <object class="GtkEntry" id="a_password_entry"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="visibility">False</property> + <property name="invisible_char">●</property> + </object> + <packing> + <property name="left_attach">1</property> + <property name="right_attach">2</property> + <property name="y_options"></property> + </packing> + </child> + <child> + <object class="GtkCheckButton" id="a_encrypt_header_checkbutton"> + <property name="label" translatable="yes">_Encrypt the file list too</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">False</property> + <property name="use_underline">True</property> + <property name="draw_indicator">True</property> + </object> + <packing> + <property name="right_attach">2</property> + <property name="top_attach">1</property> + <property name="bottom_attach">2</property> + <property name="x_options">GTK_FILL</property> + <property name="y_options"></property> + </packing> + </child> + <child> + <object class="GtkHBox" id="a_volume_box"> + <property name="visible">True</property> + <property name="spacing">6</property> + <child> + <object class="GtkCheckButton" id="a_volume_checkbutton"> + <property name="label" translatable="yes" comments="this is part of a sentence, for example "split into volumes of 10.0 MB", where MB stands for megabyte.">Split into _volumes of</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">False</property> + <property name="use_underline">True</property> + <property name="draw_indicator">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkSpinButton" id="a_volume_spinbutton"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="width_chars">6</property> + <property name="adjustment">volume_adjustment</property> + <property name="climb_rate">1</property> + <property name="digits">1</property> + <property name="numeric">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="position">1</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="label50"> + <property name="visible">True</property> + <property name="label" translatable="yes" comments="MB means megabytes">MB</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">2</property> + </packing> + </child> + </object> + <packing> + <property name="right_attach">2</property> + <property name="top_attach">2</property> + <property name="bottom_attach">3</property> + <property name="x_options">GTK_FILL</property> + </packing> + </child> + <child> + <placeholder/> + </child> + </object> + </child> + </object> + </child> + <child type="label"> + <object class="GtkLabel" id="label48"> + <property name="visible">True</property> + <property name="label" translatable="yes">_Other Options</property> + <property name="use_underline">True</property> + </object> + </child> + </object> + <packing> + <property name="position">1</property> + <property name="expand">False</property> + <property name="fill">False</property> + </packing> + </child> + </object> + <packing> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="expand">True</property> + <property name="pack_type">end</property> + <property name="position">1</property> + </packing> + </child> + </object> + </child> + <action-widgets> + <action-widget response="0">a_cancel_button</action-widget> + <action-widget response="0">a_add_button</action-widget> + <action-widget response="-11">a_help_button</action-widget> + </action-widgets> + </object> + <object class="GtkAdjustment" id="volume_adjustment"> + <property name="value">10</property> + <property name="lower">0.10000000000000001</property> + <property name="upper">9999999999</property> + <property name="step_increment">0.10000000000000001</property> + <property name="page_increment">10</property> + </object> +</interface> 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 @@ +<?xml version="1.0"?> +<interface> + <requires lib="gtk+" version="2.14"/> + <!-- interface-naming-policy toplevel-contextual --> + <object class="GtkDialog" id="password_dialog"> + <property name="border_width">5</property> + <property name="resizable">False</property> + <property name="window_position">center-on-parent</property> + <property name="type_hint">dialog</property> + <child internal-child="vbox"> + <object class="GtkVBox" id="dialog-vbox15"> + <property name="visible">True</property> + <property name="spacing">2</property> + <child> + <object class="GtkVBox" id="vbox11"> + <property name="visible">True</property> + <property name="border_width">5</property> + <property name="spacing">18</property> + <child> + <object class="GtkHBox" id="hbox29"> + <property name="visible">True</property> + <property name="spacing">12</property> + <child> + <object class="GtkImage" id="image2"> + <property name="visible">True</property> + <property name="xalign">0</property> + <property name="yalign">0</property> + <property name="stock">gtk-dialog-authentication</property> + <property name="icon-size">6</property> + </object> + <packing> + <property name="expand">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkVBox" id="vbox18"> + <property name="visible">True</property> + <property name="spacing">12</property> + <child> + <object class="GtkLabel" id="label44"> + <property name="visible">True</property> + <property name="xalign">0</property> + <property name="label" translatable="yes"><span weight="bold" size="larger">Password required</span></property> + <property name="use_markup">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="pw_password_label"> + <property name="visible">True</property> + <property name="xalign">0</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">1</property> + </packing> + </child> + <child> + <object class="GtkHBox" id="hbox18"> + <property name="visible">True</property> + <property name="spacing">12</property> + <child> + <object class="GtkLabel" id="label34"> + <property name="visible">True</property> + <property name="label" translatable="yes">_Password:</property> + <property name="use_underline">True</property> + <property name="mnemonic_widget">pw_password_entry</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkEntry" id="pw_password_entry"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="visibility">False</property> + <property name="invisible_char">●</property> + <property name="activates_default">True</property> + </object> + <packing> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="position">2</property> + </packing> + </child> + </object> + <packing> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="position">0</property> + </packing> + </child> + </object> + <packing> + <property name="position">1</property> + </packing> + </child> + <child internal-child="action_area"> + <object class="GtkHButtonBox" id="dialog-action_area15"> + <property name="visible">True</property> + <property name="layout_style">end</property> + <child> + <object class="GtkButton" id="pw_cancel_button"> + <property name="label">gtk-cancel</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="can_default">True</property> + <property name="receives_default">False</property> + <property name="use_stock">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkButton" id="pw_ok_button"> + <property name="label">gtk-ok</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="has_focus">True</property> + <property name="can_default">True</property> + <property name="has_default">True</property> + <property name="receives_default">False</property> + <property name="use_stock">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="pack_type">end</property> + <property name="position">0</property> + </packing> + </child> + </object> + </child> + <action-widgets> + <action-widget response="-6">pw_cancel_button</action-widget> + <action-widget response="-5">pw_ok_button</action-widget> + </action-widgets> + </object> +</interface> 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 @@ +<?xml version="1.0"?> +<interface> + <requires lib="gtk+" version="2.14"/> + <!-- interface-naming-policy toplevel-contextual --> + <object class="GtkDialog" id="delete_dialog"> + <property name="border_width">5</property> + <property name="title" translatable="yes">Delete</property> + <property name="resizable">False</property> + <property name="window_position">center-on-parent</property> + <property name="type_hint">dialog</property> + <child internal-child="vbox"> + <object class="GtkVBox" id="dialog-vbox14"> + <property name="visible">True</property> + <property name="spacing">2</property> + <child> + <object class="GtkTable" id="table2"> + <property name="visible">True</property> + <property name="border_width">5</property> + <property name="n_rows">3</property> + <property name="n_columns">2</property> + <property name="column_spacing">12</property> + <property name="row_spacing">6</property> + <child> + <object class="GtkRadioButton" id="d_files_radio"> + <property name="label" translatable="yes">_Files:</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">False</property> + <property name="use_underline">True</property> + <property name="draw_indicator">True</property> + </object> + <packing> + <property name="top_attach">2</property> + <property name="bottom_attach">3</property> + <property name="x_options">GTK_FILL</property> + <property name="y_options"></property> + </packing> + </child> + <child> + <object class="GtkEntry" id="d_files_entry"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="tooltip_text" translatable="yes">example: *.txt; *.doc</property> + </object> + <packing> + <property name="left_attach">1</property> + <property name="right_attach">2</property> + <property name="top_attach">2</property> + <property name="bottom_attach">3</property> + <property name="y_options"></property> + </packing> + </child> + <child> + <object class="GtkRadioButton" id="d_all_files_radio"> + <property name="label" translatable="yes">_All files</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">False</property> + <property name="use_underline">True</property> + <property name="draw_indicator">True</property> + <property name="group">d_files_radio</property> + </object> + <packing> + <property name="right_attach">2</property> + <property name="x_options">GTK_FILL</property> + <property name="y_options"></property> + </packing> + </child> + <child> + <object class="GtkRadioButton" id="d_selected_files_radio"> + <property name="label" translatable="yes">_Selected files</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">False</property> + <property name="use_underline">True</property> + <property name="draw_indicator">True</property> + <property name="group">d_files_radio</property> + </object> + <packing> + <property name="right_attach">2</property> + <property name="top_attach">1</property> + <property name="bottom_attach">2</property> + <property name="x_options">GTK_FILL</property> + <property name="y_options"></property> + </packing> + </child> + </object> + <packing> + <property name="position">1</property> + </packing> + </child> + <child internal-child="action_area"> + <object class="GtkHButtonBox" id="dialog-action_area14"> + <property name="visible">True</property> + <property name="layout_style">end</property> + <child> + <object class="GtkButton" id="d_cancel_button"> + <property name="label">gtk-cancel</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">False</property> + <property name="use_stock">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkButton" id="d_ok_button"> + <property name="label">gtk-delete</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="can_default">True</property> + <property name="has_default">True</property> + <property name="receives_default">False</property> + <property name="use_stock">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="pack_type">end</property> + <property name="position">0</property> + </packing> + </child> + </object> + </child> + <action-widgets> + <action-widget response="0">d_cancel_button</action-widget> + <action-widget response="0">d_ok_button</action-widget> + </action-widgets> + </object> +</interface> 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 @@ +<ui> + <menubar name="MenuBar"> + <menu name="Archive" action="FileMenu"> + <menuitem action="New"/> + <menuitem action="Open"/> + <menuitem action="OpenRecent"/> + <menuitem action="SaveAs"/> + <separator/> + <menuitem action="Extract"/> + <menuitem action="TestArchive"/> + <separator/> + <menuitem action="Properties"/> + <separator/> + <menuitem action="Close"/> + </menu> + <menu action="EditMenu"> + <menuitem action="Cut"/> + <menuitem action="Copy"/> + <menuitem action="Paste"/> + <menuitem action="Rename"/> + <menuitem action="Delete"/> + <separator/> + <menuitem action="SelectAll"/> + <menuitem action="DeselectAll"/> + <separator/> + <menuitem action="Find"/> + <separator/> + <menuitem action="AddFiles"/> + <menuitem action="AddFolder"/> + <separator/> + <menuitem action="Password"/> + </menu> + <menu action="ViewMenu"> + <menuitem action="ViewToolbar"/> + <menuitem action="ViewStatusbar"/> + <menuitem action="ViewFolders"/> + <separator/> + <menuitem action="ViewAllFiles"/> + <menuitem action="ViewAsFolder"/> + <separator/> + <menuitem action="LastOutput"/> + <separator/> + <menuitem action="Stop"/> + <menuitem action="Reload"/> + </menu> + <menu action="HelpMenu"> + <menuitem action="Contents"/> + <menuitem action="About"/> + </menu> + </menubar> + <toolbar name="ToolBar"> + <toolitem action="New"/> + <toolitem action="OpenRecent_Toolbar"/> + <separator/> + <toolitem action="Extract_Toolbar"/> + <separator/> + <toolitem action="AddFiles_Toolbar"/> + <toolitem action="AddFolder_Toolbar"/> + <separator/> + <toolitem action="Stop"/> + </toolbar> + <toolbar name="LocationBar"> + <toolitem action="GoBack"/> + <toolitem action="GoForward"/> + <toolitem action="GoUp"/> + <toolitem action="GoHome"/> + </toolbar> + <popup name="FilePopupMenu"> + <menuitem action="ViewSelection"/> + <menuitem action="OpenSelection"/> + <separator/> + <menuitem action="Extract"/> + <separator/> + <menuitem action="Cut"/> + <menuitem action="Copy"/> + <menuitem action="Paste"/> + <menuitem action="Rename"/> + <menuitem action="Delete"/> + </popup> + <popup name="FolderPopupMenu"> + <menuitem action="OpenFolder"/> + <separator/> + <menuitem action="Extract"/> + <separator/> + <menuitem action="Cut"/> + <menuitem action="Copy"/> + <menuitem action="Paste"/> + <menuitem action="Rename"/> + <menuitem action="Delete"/> + </popup> + <popup name="AddMenu"> + <menuitem action="AddFiles"/> + <menuitem action="AddFolder"/> + </popup> + <popup name="SidebarFolderPopupMenu"> + <menuitem action="OpenFolderFromSidebar"/> + <separator/> + <menuitem action="ExtractFolderFromSidebar"/> + <separator/> + <menuitem action="CutFolderFromSidebar"/> + <menuitem action="CopyFolderFromSidebar"/> + <menuitem action="PasteFolderFromSidebar"/> + <menuitem action="RenameFolderFromSidebar"/> + <menuitem action="DeleteFolderFromSidebar"/> + </popup> +</ui> 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 @@ +<?xml version="1.0"?> +<interface> + <requires lib="gtk+" version="2.14"/> + <!-- interface-naming-policy toplevel-contextual --> + <object class="GtkFileChooserDialog" id="filechooserdialog"> + <property name="border_width">5</property> + <property name="modal">True</property> + <property name="window_position">center-on-parent</property> + <property name="type_hint">normal</property> + <property name="extra_widget">extra_widget</property> + <property name="action">save</property> + <property name="do_overwrite_confirmation">True</property> + <child internal-child="vbox"> + <object class="GtkVBox" id="dialog-vbox1"> + <property name="visible">True</property> + <property name="orientation">vertical</property> + <property name="spacing">2</property> + <child> + <placeholder/> + </child> + <child internal-child="action_area"> + <object class="GtkHButtonBox" id="dialog-action_area1"> + <property name="visible">True</property> + <property name="layout_style">end</property> + <child> + <object class="GtkButton" id="n_cancel_button"> + <property name="label">gtk-cancel</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">False</property> + <property name="use_stock">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkButton" id="n_new_button"> + <property name="label">gtk-new</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="can_default">True</property> + <property name="receives_default">False</property> + <property name="use_stock">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">1</property> + </packing> + </child> + <child> + <object class="GtkButton" id="n_help_button"> + <property name="label">gtk-help</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">False</property> + <property name="use_stock">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">2</property> + <property name="secondary">True</property> + </packing> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="pack_type">end</property> + <property name="position">0</property> + </packing> + </child> + </object> + </child> + <action-widgets> + <action-widget response="-6">n_cancel_button</action-widget> + <action-widget response="-5">n_new_button</action-widget> + <action-widget response="-11">n_help_button</action-widget> + </action-widgets> + </object> + <object class="GtkAdjustment" id="volume_adjustment"> + <property name="lower">0.10000000149</property> + <property name="upper">1000</property> + <property name="value">10</property> + <property name="step_increment">0.10000000149</property> + <property name="page_increment">10</property> + </object> + <object class="GtkVBox" id="extra_widget"> + <property name="visible">True</property> + <property name="orientation">vertical</property> + <property name="spacing">12</property> + <child> + <object class="GtkVBox" id="format_chooser_box"> + <property name="visible">True</property> + <property name="orientation">vertical</property> + <child> + <placeholder/> + </child> + </object> + <packing> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkExpander" id="n_other_options_expander"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="expanded">True</property> + <child> + <object class="GtkAlignment" id="other_oprtions_alignment"> + <property name="visible">True</property> + <property name="top_padding">6</property> + <child> + <object class="GtkVBox" id="vbox2"> + <property name="visible">True</property> + <property name="orientation">vertical</property> + <property name="spacing">6</property> + <child> + <object class="GtkHBox" id="hbox2"> + <property name="visible">True</property> + <child> + <object class="GtkTable" id="table1"> + <property name="visible">True</property> + <property name="n_rows">3</property> + <property name="n_columns">2</property> + <property name="column_spacing">12</property> + <property name="row_spacing">6</property> + <child> + <object class="GtkLabel" id="n_password_label"> + <property name="visible">True</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">_Password:</property> + <property name="use_underline">True</property> + <property name="mnemonic_widget">n_password_entry</property> + </object> + <packing> + <property name="bottom_attach">2</property> + </packing> + </child> + <child> + <object class="GtkEntry" id="n_password_entry"> + <property name="width_request">300</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="visibility">False</property> + <property name="invisible_char">●</property> + </object> + <packing> + <property name="left_attach">1</property> + <property name="right_attach">2</property> + <property name="bottom_attach">2</property> + </packing> + </child> + <child> + <object class="GtkCheckButton" id="n_encrypt_header_checkbutton"> + <property name="label" translatable="yes">_Encrypt the file list too</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">False</property> + <property name="use_underline">True</property> + <property name="draw_indicator">True</property> + </object> + <packing> + <property name="left_attach">1</property> + <property name="right_attach">2</property> + <property name="top_attach">2</property> + <property name="bottom_attach">3</property> + </packing> + </child> + <child> + <placeholder/> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + </object> + <packing> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkHBox" id="n_volume_box"> + <property name="visible">True</property> + <property name="spacing">6</property> + <child> + <object class="GtkCheckButton" id="n_volume_checkbutton"> + <property name="label" translatable="yes">Split into _volumes of</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">False</property> + <property name="use_underline">True</property> + <property name="draw_indicator">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkSpinButton" id="n_volume_spinbutton"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="invisible_char">●</property> + <property name="adjustment">volume_adjustment</property> + <property name="climb_rate">1</property> + <property name="digits">1</property> + <property name="numeric">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="position">1</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="label4"> + <property name="visible">True</property> + <property name="label" translatable="yes" comments="MB means megabytes">MB</property> + </object> + <packing> + <property name="expand">False</property> + <property name="position">2</property> + </packing> + </child> + </object> + <packing> + <property name="position">1</property> + </packing> + </child> + </object> + </child> + </object> + </child> + <child type="label"> + <object class="GtkLabel" id="label2"> + <property name="visible">True</property> + <property name="label" translatable="yes">_Other Options</property> + <property name="use_underline">True</property> + </object> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="position">1</property> + </packing> + </child> + </object> +</interface> 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 @@ +<?xml version="1.0"?> +<interface> + <requires lib="gtk+" version="2.14"/> + <!-- interface-naming-policy toplevel-contextual --> + <object class="GtkDialog" id="password_dialog"> + <property name="border_width">5</property> + <property name="title" translatable="yes">Password</property> + <property name="resizable">False</property> + <property name="window_position">center-on-parent</property> + <property name="type_hint">dialog</property> + <child internal-child="vbox"> + <object class="GtkVBox" id="dialog-vbox15"> + <property name="visible">True</property> + <property name="spacing">2</property> + <child> + <object class="GtkVBox" id="vbox11"> + <property name="visible">True</property> + <property name="border_width">5</property> + <property name="spacing">12</property> + <child> + <object class="GtkTable" id="table1"> + <property name="visible">True</property> + <property name="n_rows">2</property> + <property name="n_columns">2</property> + <property name="column_spacing">12</property> + <property name="row_spacing">6</property> + <child> + <object class="GtkCheckButton" id="pw_encrypt_header_checkbutton"> + <property name="label" translatable="yes">_Encrypt the file list</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">False</property> + <property name="use_underline">True</property> + <property name="draw_indicator">True</property> + </object> + <packing> + <property name="left_attach">1</property> + <property name="right_attach">2</property> + <property name="top_attach">1</property> + <property name="bottom_attach">2</property> + <property name="x_options">GTK_FILL</property> + <property name="y_options"></property> + </packing> + </child> + <child> + <object class="GtkLabel" id="label34"> + <property name="visible">True</property> + <property name="label" translatable="yes">_Password:</property> + <property name="use_underline">True</property> + <property name="mnemonic_widget">pw_password_entry</property> + </object> + <packing> + <property name="x_options">GTK_FILL</property> + <property name="y_options"></property> + </packing> + </child> + <child> + <object class="GtkEntry" id="pw_password_entry"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="visibility">False</property> + <property name="invisible_char">●</property> + <property name="activates_default">True</property> + </object> + <packing> + <property name="left_attach">1</property> + <property name="right_attach">2</property> + <property name="y_options"></property> + </packing> + </child> + <child> + <placeholder/> + </child> + </object> + <packing> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkHBox" id="pw_note_hbox"> + <property name="visible">True</property> + <property name="spacing">6</property> + <child> + <object class="GtkImage" id="image2"> + <property name="visible">True</property> + <property name="stock">gtk-dialog-info</property> + <property name="icon-size">6</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="label33"> + <property name="visible">True</property> + <property name="label" translatable="yes"><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></property> + <property name="use_markup">True</property> + <property name="wrap">True</property> + </object> + <packing> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="position">1</property> + </packing> + </child> + <child internal-child="action_area"> + <object class="GtkHButtonBox" id="dialog-action_area15"> + <property name="visible">True</property> + <property name="layout_style">end</property> + <child> + <object class="GtkButton" id="pw_cancel_button"> + <property name="label">gtk-cancel</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="can_default">True</property> + <property name="receives_default">False</property> + <property name="use_stock">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkButton" id="pw_ok_button"> + <property name="label">gtk-ok</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="has_focus">True</property> + <property name="can_default">True</property> + <property name="has_default">True</property> + <property name="receives_default">False</property> + <property name="use_stock">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="pack_type">end</property> + <property name="position">0</property> + </packing> + </child> + </object> + </child> + <action-widgets> + <action-widget response="-6">pw_cancel_button</action-widget> + <action-widget response="-5">pw_ok_button</action-widget> + </action-widgets> + </object> +</interface> 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 @@ +<?xml version="1.0"?> +<interface> + <requires lib="gtk+" version="2.14"/> + <!-- interface-naming-policy toplevel-contextual --> + <object class="GtkDialog" id="prop_dialog"> + <property name="border_width">5</property> + <property name="window_position">center-on-parent</property> + <property name="type_hint">dialog</property> + <child internal-child="vbox"> + <object class="GtkVBox" id="dialog-vbox12"> + <property name="visible">True</property> + <property name="spacing">2</property> + <child> + <object class="GtkTable" id="table3"> + <property name="visible">True</property> + <property name="border_width">5</property> + <property name="n_rows">7</property> + <property name="n_columns">2</property> + <property name="column_spacing">12</property> + <property name="row_spacing">6</property> + <child> + <object class="GtkLabel" id="p_name_label_label"> + <property name="visible">True</property> + <property name="xalign">0</property> + <property name="justify">center</property> + </object> + <packing> + <property name="x_options">GTK_FILL</property> + <property name="y_options"></property> + </packing> + </child> + <child> + <object class="GtkLabel" id="p_size_label_label"> + <property name="visible">True</property> + <property name="xalign">0</property> + <property name="justify">center</property> + </object> + <packing> + <property name="top_attach">3</property> + <property name="bottom_attach">4</property> + <property name="x_options">GTK_FILL</property> + <property name="y_options"></property> + </packing> + </child> + <child> + <object class="GtkLabel" id="p_size_label"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="xalign">0</property> + <property name="selectable">True</property> + </object> + <packing> + <property name="left_attach">1</property> + <property name="right_attach">2</property> + <property name="top_attach">3</property> + <property name="bottom_attach">4</property> + <property name="x_options">GTK_FILL</property> + <property name="y_options"></property> + </packing> + </child> + <child> + <object class="GtkLabel" id="p_path_label_label"> + <property name="visible">True</property> + <property name="xalign">0</property> + <property name="justify">center</property> + </object> + <packing> + <property name="top_attach">1</property> + <property name="bottom_attach">2</property> + <property name="x_options">GTK_FILL</property> + <property name="y_options"></property> + </packing> + </child> + <child> + <object class="GtkLabel" id="p_cratio_label"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="xalign">0</property> + <property name="selectable">True</property> + </object> + <packing> + <property name="left_attach">1</property> + <property name="right_attach">2</property> + <property name="top_attach">5</property> + <property name="bottom_attach">6</property> + <property name="x_options">GTK_FILL</property> + <property name="y_options"></property> + </packing> + </child> + <child> + <object class="GtkLabel" id="p_cratio_label_label"> + <property name="visible">True</property> + <property name="xalign">0</property> + </object> + <packing> + <property name="top_attach">5</property> + <property name="bottom_attach">6</property> + <property name="x_options">GTK_FILL</property> + <property name="y_options"></property> + </packing> + </child> + <child> + <object class="GtkLabel" id="p_date_label"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="xalign">0</property> + <property name="selectable">True</property> + </object> + <packing> + <property name="left_attach">1</property> + <property name="right_attach">2</property> + <property name="top_attach">2</property> + <property name="bottom_attach">3</property> + <property name="x_options">GTK_FILL</property> + <property name="y_options"></property> + </packing> + </child> + <child> + <object class="GtkLabel" id="p_date_label_label"> + <property name="visible">True</property> + <property name="xalign">0</property> + <property name="justify">center</property> + </object> + <packing> + <property name="top_attach">2</property> + <property name="bottom_attach">3</property> + <property name="x_options">GTK_FILL</property> + <property name="y_options"></property> + </packing> + </child> + <child> + <object class="GtkLabel" id="p_uncomp_size_label_label"> + <property name="visible">True</property> + <property name="xalign">0</property> + </object> + <packing> + <property name="top_attach">4</property> + <property name="bottom_attach">5</property> + <property name="x_options">GTK_FILL</property> + <property name="y_options"></property> + </packing> + </child> + <child> + <object class="GtkLabel" id="p_uncomp_size_label"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="xalign">0</property> + <property name="selectable">True</property> + </object> + <packing> + <property name="left_attach">1</property> + <property name="right_attach">2</property> + <property name="top_attach">4</property> + <property name="bottom_attach">5</property> + <property name="x_options">GTK_FILL</property> + <property name="y_options"></property> + </packing> + </child> + <child> + <object class="GtkLabel" id="p_files_label"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="xalign">0</property> + <property name="selectable">True</property> + </object> + <packing> + <property name="left_attach">1</property> + <property name="right_attach">2</property> + <property name="top_attach">6</property> + <property name="bottom_attach">7</property> + <property name="x_options">GTK_FILL</property> + <property name="y_options"></property> + </packing> + </child> + <child> + <object class="GtkLabel" id="p_files_label_label"> + <property name="visible">True</property> + <property name="xalign">0</property> + <property name="justify">center</property> + </object> + <packing> + <property name="top_attach">6</property> + <property name="bottom_attach">7</property> + <property name="x_options">GTK_FILL</property> + <property name="y_options"></property> + </packing> + </child> + <child> + <object class="GtkLabel" id="p_path_label"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="xalign">0</property> + <property name="selectable">True</property> + <property name="ellipsize">start</property> + </object> + <packing> + <property name="left_attach">1</property> + <property name="right_attach">2</property> + <property name="top_attach">1</property> + <property name="bottom_attach">2</property> + <property name="y_options"></property> + </packing> + </child> + <child> + <object class="GtkLabel" id="p_name_label"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="xalign">0</property> + <property name="selectable">True</property> + <property name="ellipsize">end</property> + <property name="width_chars">30</property> + </object> + <packing> + <property name="left_attach">1</property> + <property name="right_attach">2</property> + <property name="y_options"></property> + </packing> + </child> + </object> + <packing> + <property name="position">1</property> + </packing> + </child> + <child internal-child="action_area"> + <object class="GtkHButtonBox" id="dialog-action_area12"> + <property name="visible">True</property> + <property name="layout_style">end</property> + <child> + <object class="GtkButton" id="p_help_button"> + <property name="label">gtk-help</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="has_focus">True</property> + <property name="can_default">True</property> + <property name="has_default">True</property> + <property name="receives_default">False</property> + <property name="use_stock">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + <property name="secondary">True</property> + </packing> + </child> + <child> + <object class="GtkButton" id="p_ok_button"> + <property name="label">gtk-close</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="can_default">True</property> + <property name="receives_default">False</property> + <property name="use_stock">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="pack_type">end</property> + <property name="position">0</property> + </packing> + </child> + </object> + </child> + <action-widgets> + <action-widget response="-11">p_help_button</action-widget> + <action-widget response="-7">p_ok_button</action-widget> + </action-widgets> + </object> +</interface> 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 @@ +<?xml version="1.0"?> +<interface> + <requires lib="gtk+" version="2.14"/> + <!-- interface-naming-policy toplevel-contextual --> + <object class="GtkDialog" id="update_file_dialog"> + <property name="border_width">5</property> + <property name="type_hint">dialog</property> + <child internal-child="vbox"> + <object class="GtkVBox" id="dialog-vbox1"> + <property name="visible">True</property> + <property name="orientation">vertical</property> + <property name="spacing">14</property> + <child> + <object class="GtkHBox" id="hbox2"> + <property name="visible">True</property> + <property name="border_width">5</property> + <property name="spacing">18</property> + <child> + <object class="GtkVBox" id="vbox1"> + <property name="visible">True</property> + <property name="orientation">vertical</property> + <child> + <object class="GtkImage" id="image2"> + <property name="visible">True</property> + <property name="stock">gtk-dialog-warning</property> + <property name="icon-size">6</property> + </object> + <packing> + <property name="expand">False</property> + <property name="position">0</property> + </packing> + </child> + </object> + <packing> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkVBox" id="vbox4"> + <property name="visible">True</property> + <property name="orientation">vertical</property> + <property name="spacing">12</property> + <child> + <object class="GtkLabel" id="update_file_primary_text_label"> + <property name="visible">True</property> + <property name="xalign">0</property> + <property name="use_markup">True</property> + <property name="wrap">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="update_file_secondary_text_label"> + <property name="visible">True</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">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.</property> + <property name="wrap">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="position">1</property> + </packing> + </child> + <child internal-child="action_area"> + <object class="GtkHButtonBox" id="dialog-action_area1"> + <property name="visible">True</property> + <property name="layout_style">end</property> + <child> + <object class="GtkButton" id="update_file_cancel_button"> + <property name="label">gtk-cancel</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="can_default">True</property> + <property name="receives_default">False</property> + <property name="use_stock">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkButton" id="update_file_ok_button"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="can_default">True</property> + <property name="receives_default">False</property> + <child> + <object class="GtkAlignment" id="alignment1"> + <property name="visible">True</property> + <property name="xscale">0</property> + <property name="yscale">0</property> + <child> + <object class="GtkHBox" id="hbox1"> + <property name="visible">True</property> + <property name="spacing">2</property> + <child> + <object class="GtkImage" id="image1"> + <property name="visible">True</property> + <property name="stock">gtk-save</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="label1"> + <property name="visible">True</property> + <property name="label" translatable="yes">_Update</property> + <property name="use_underline">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">1</property> + </packing> + </child> + </object> + </child> + </object> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="pack_type">end</property> + <property name="position">0</property> + </packing> + </child> + </object> + </child> + <action-widgets> + <action-widget response="-6">update_file_cancel_button</action-widget> + <action-widget response="-5">update_file_ok_button</action-widget> + </action-widgets> + </object> + <object class="GtkDialog" id="update_files_dialog"> + <property name="border_width">5</property> + <property name="type_hint">dialog</property> + <child internal-child="vbox"> + <object class="GtkVBox" id="vbox5"> + <property name="visible">True</property> + <property name="orientation">vertical</property> + <property name="spacing">14</property> + <child> + <object class="GtkHBox" id="hbox4"> + <property name="visible">True</property> + <property name="border_width">5</property> + <property name="spacing">18</property> + <child> + <object class="GtkVBox" id="vbox6"> + <property name="visible">True</property> + <property name="orientation">vertical</property> + <child> + <object class="GtkImage" id="image4"> + <property name="visible">True</property> + <property name="stock">gtk-dialog-warning</property> + <property name="icon-size">6</property> + </object> + <packing> + <property name="expand">False</property> + <property name="position">0</property> + </packing> + </child> + </object> + <packing> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkVBox" id="vbox7"> + <property name="visible">True</property> + <property name="orientation">vertical</property> + <property name="spacing">12</property> + <child> + <object class="GtkLabel" id="update_files_primary_text_label"> + <property name="visible">True</property> + <property name="xalign">0</property> + <property name="use_markup">True</property> + <property name="wrap">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="update_files_secondary_text_label"> + <property name="visible">True</property> + <property name="xalign">0</property> + <property name="wrap">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">1</property> + </packing> + </child> + <child> + <object class="GtkVBox" id="vbox8"> + <property name="visible">True</property> + <property name="orientation">vertical</property> + <property name="spacing">6</property> + <child> + <object class="GtkLabel" id="label9"> + <property name="visible">True</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">S_elect the files you want to update:</property> + <property name="use_underline">True</property> + <property name="mnemonic_widget">update_files_treeview</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkScrolledWindow" id="scrolledwindow2"> + <property name="width_request">400</property> + <property name="height_request">120</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="hscrollbar_policy">never</property> + <property name="shadow_type">in</property> + <child> + <object class="GtkTreeView" id="update_files_treeview"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="headers_visible">False</property> + </object> + </child> + </object> + <packing> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="position">2</property> + </packing> + </child> + </object> + <packing> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="position">1</property> + </packing> + </child> + <child internal-child="action_area"> + <object class="GtkHButtonBox" id="hbuttonbox1"> + <property name="visible">True</property> + <property name="layout_style">end</property> + <child> + <object class="GtkButton" id="update_files_cancel_button"> + <property name="label">gtk-cancel</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="can_default">True</property> + <property name="receives_default">False</property> + <property name="use_stock">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkButton" id="update_files_ok_button"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="can_default">True</property> + <property name="receives_default">False</property> + <child> + <object class="GtkAlignment" id="alignment2"> + <property name="visible">True</property> + <property name="xscale">0</property> + <property name="yscale">0</property> + <child> + <object class="GtkHBox" id="hbox3"> + <property name="visible">True</property> + <property name="spacing">2</property> + <child> + <object class="GtkImage" id="image3"> + <property name="visible">True</property> + <property name="stock">gtk-save</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="label6"> + <property name="visible">True</property> + <property name="label" translatable="yes">_Update</property> + <property name="use_underline">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">1</property> + </packing> + </child> + </object> + </child> + </object> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="pack_type">end</property> + <property name="position">0</property> + </packing> + </child> + </object> + </child> + <action-widgets> + <action-widget response="-6">update_files_cancel_button</action-widget> + <action-widget response="-5">update_files_ok_button</action-widget> + </action-widgets> + </object> +</interface> |