From e1c0f968272d89191ffcdf1f591f8471ac4d8adb Mon Sep 17 00:00:00 2001 From: Gabriel Brand Date: Tue, 14 May 2024 12:39:31 +0200 Subject: csv export dialog: Port GtkDialog to AdwDialog - Use AdwToolbarView - GNOME HIG: Writing Style - GNOME HIG: Add access keys - Disable export button when no file is selected --- src/gtk/csv_export_dialog.ui | 110 +++++++++++++++++++++++++++++++++++++++++++ src/gtk/dialogs.ui | 101 --------------------------------------- 2 files changed, 110 insertions(+), 101 deletions(-) create mode 100644 src/gtk/csv_export_dialog.ui delete mode 100644 src/gtk/dialogs.ui (limited to 'src/gtk') diff --git a/src/gtk/csv_export_dialog.ui b/src/gtk/csv_export_dialog.ui new file mode 100644 index 0000000..7e37882 --- /dev/null +++ b/src/gtk/csv_export_dialog.ui @@ -0,0 +1,110 @@ + + + + Export as CSV + + + + + false + false + + + _Cancel + true + + + + + _Export + true + false + + + + + + + + 800 + 600 + true + false + fill + fill + + + vertical + 24 + 12 + 12 + 12 + 12 + + + horizontal + 12 + + + - No File Selected - + true + start + start + + + + + + folder-open-symbolic + Select File + + + + + + + Export Preferences + fill + + + Sort _By + true + + + + Start Time + Stop Time + Task Name + + + + + + + + Sort _Order + true + + + + Ascending + Descending + + + + + + + + + + + + + + + diff --git a/src/gtk/dialogs.ui b/src/gtk/dialogs.ui deleted file mode 100644 index ef141e0..0000000 --- a/src/gtk/dialogs.ui +++ /dev/null @@ -1,101 +0,0 @@ - - - - - 1 - true - Export as CSV - - - Cancel - - - - - Export - - - - - csv_export_cancelbutton - csv_export_applybutton - - - - 800 - 600 - true - false - fill - fill - - - vertical - 24 - 12 - 12 - 12 - 12 - - - horizontal - 12 - - - - no file selected - - true - start - start - - - - - - folder-open-symbolic - - - - - - - CSV export preferences - fill - - - Sort by - - - - Start time - Stop time - Task name - - - - - - - - Sort order - - - - Ascending - Descending - - - - - - - - - - - - - \ No newline at end of file -- cgit 1.4.1