diff options
author | Felix Zwettler <f.zwettler@posteo.de> | 2022-06-07 23:14:29 +0200 |
---|---|---|
committer | Felix Zwettler <f.zwettler@posteo.de> | 2022-06-07 23:34:00 +0200 |
commit | a510603825050a5face70d5387f0be830a4d685b (patch) | |
tree | aac28a23249c1d483da25304a9e75c925bda68f5 /src/gtk | |
parent | 67679138574b083d838294bf82b6058a54b6a13d (diff) | |
download | Furtherance-a510603825050a5face70d5387f0be830a4d685b.tar.zst |
add csv export
Diffstat (limited to 'src/gtk')
-rw-r--r-- | src/gtk/dialogs.ui | 100 | ||||
-rwxr-xr-x | src/gtk/window.ui | 4 |
2 files changed, 104 insertions, 0 deletions
diff --git a/src/gtk/dialogs.ui b/src/gtk/dialogs.ui new file mode 100644 index 0000000..a4c1e6f --- /dev/null +++ b/src/gtk/dialogs.ui @@ -0,0 +1,100 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + + <object class="GtkDialog" id="dialog_csv_export"> + <property name="use-header-bar">1</property> + <property name="modal">true</property> + <property name="title" translatable="yes">Export as CSV</property> + <child type="action"> + <object class="GtkButton" id="csv_export_cancelbutton"> + <property name="label" translatable="yes">Cancel</property> + </object> + </child> + <child type="action"> + <object class="GtkButton" id="csv_export_applybutton"> + <property name="label" translatable="yes">Export</property> + <style> + <class name="suggested-action" /> + </style> + </object> + </child> + <action-widgets> + <action-widget response="cancel">csv_export_cancelbutton</action-widget> + <action-widget response="apply" default="true">csv_export_applybutton</action-widget> + </action-widgets> + <child> + <object class="AdwClamp"> + <property name="maximum-size">800</property> + <property name="tightening-threshold">600</property> + <property name="hexpand">true</property> + <property name="vexpand">false</property> + <property name="valign">fill</property> + <property name="halign">fill</property> + <child> + <object class="GtkBox"> + <property name="orientation">vertical</property> + <property name="spacing">24</property> + <property name="margin-start">12</property> + <property name="margin-end">12</property> + <property name="margin-top">12</property> + <property name="margin-bottom">12</property> + <child> + <object class="GtkBox"> + <property name="orientation">horizontal</property> + <property name="spacing">12</property> + <child> + <object class="GtkLabel" id="csv_export_chosenfile_label"> + <property translatable="yes" name="label"> - no file selected - </property> + <property name="hexpand">true</property> + <property name="halign">start</property> + <property name="ellipsize">start</property> + <style> + <class name="dim-label" /> + </style> + </object> + </child> + <child> + <object class="GtkButton" id="csv_export_filechooser_button"> + <property name="icon-name">folder-open-symbolic</property> + </object> + </child> + </object> + </child> + <child> + <object class="AdwPreferencesGroup"> + <property name="title" translatable="yes">CSV export preferences</property> + <property name="halign">fill</property> + <child> + <object class="AdwComboRow" id="csv_export_tasksort_row"> + <property name="title">Sort by</property> + <property name="model"> + <object class="AdwEnumListModel"> + <property name="enum-type">TaskSort</property> + </object> + </property> + <property name="expression"> + <lookup type="AdwEnumListItem" name="nick" /> + </property> + </object> + </child> + <child> + <object class="AdwComboRow" id="csv_export_sortorder_row"> + <property name="title">Sort order</property> + <property name="model"> + <object class="AdwEnumListModel"> + <property name="enum-type">SortOrder</property> + </object> + </property> + <property name="expression"> + <lookup type="AdwEnumListItem" name="nick" /> + </property> + </object> + </child> + </object> + </child> + </object> + </child> + </object> + </child> + </object> +</interface> \ No newline at end of file diff --git a/src/gtk/window.ui b/src/gtk/window.ui index 174acc0..25b81ca 100755 --- a/src/gtk/window.ui +++ b/src/gtk/window.ui @@ -101,6 +101,10 @@ <attribute name="action">app.delete-history</attribute> </item> <item> + <attribute name="label" translatable="yes">_Export as CSV</attribute> + <attribute name="action">app.export-csv</attribute> + </item> + <item> <attribute name="label" translatable="yes">_About Furtherance</attribute> <attribute name="action">app.about</attribute> </item> |