From f31c03d4f22c74929229520bad51fcf11e3d6e16 Mon Sep 17 00:00:00 2001 From: cage Date: Thu, 27 Jul 2023 16:36:41 +0200 Subject: [PATCH] - [GUI] added a button to refresh stream-frame; - updated italian translation. --- po/it.po | 14 +++++++++----- po/tinmop.pot | 12 ++++++++---- src/gui/client/stream-frame.lisp | 16 +++++++++++----- 3 files changed, 28 insertions(+), 14 deletions(-) diff --git a/po/it.po b/po/it.po index 2c7a554..374e856 100644 --- a/po/it.po +++ b/po/it.po @@ -8,8 +8,8 @@ msgid "" msgstr "" "Project-Id-Version: tinmop 0.0.1\n" "Report-Msgid-Bugs-To: https://codeberg.org/cage/tinmop/\n" -"POT-Creation-Date: 2023-07-27 16:28+0200\n" -"PO-Revision-Date: 2023-07-27 16:29+0200\n" +"POT-Creation-Date: 2023-07-27 16:35+0200\n" +"PO-Revision-Date: 2023-07-27 16:35+0200\n" "Last-Translator: cage \n" "Language-Team: Italian \n" @@ -804,15 +804,19 @@ msgstr "Stato" msgid "Number of octects downloaded" msgstr "Numero di ottetti scaricati" -#: src/gui/client/stream-frame.lisp:106 +#: src/gui/client/stream-frame.lisp:110 +msgid "refresh" +msgstr "aggiorna" + +#: src/gui/client/stream-frame.lisp:111 msgid "delete selected stream" msgstr "cancella i flussi selezionati" -#: src/gui/client/stream-frame.lisp:107 +#: src/gui/client/stream-frame.lisp:112 msgid "show selected stream" msgstr "Mostra i flussi selezionati" -#: src/gui/client/stream-frame.lisp:108 +#: src/gui/client/stream-frame.lisp:113 msgid "close" msgstr "chiudi" diff --git a/po/tinmop.pot b/po/tinmop.pot index 8f88432..b1a5696 100644 --- a/po/tinmop.pot +++ b/po/tinmop.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: tinmop 0.9.9.1414\n" "Report-Msgid-Bugs-To: https://codeberg.org/cage/tinmop/\n" -"POT-Creation-Date: 2023-07-27 16:28+0200\n" +"POT-Creation-Date: 2023-07-27 16:35+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -787,15 +787,19 @@ msgstr "" msgid "Number of octects downloaded" msgstr "" -#: src/gui/client/stream-frame.lisp:106 +#: src/gui/client/stream-frame.lisp:110 +msgid "refresh" +msgstr "" + +#: src/gui/client/stream-frame.lisp:111 msgid "delete selected stream" msgstr "" -#: src/gui/client/stream-frame.lisp:107 +#: src/gui/client/stream-frame.lisp:112 msgid "show selected stream" msgstr "" -#: src/gui/client/stream-frame.lisp:108 +#: src/gui/client/stream-frame.lisp:113 msgid "close" msgstr "" diff --git a/src/gui/client/stream-frame.lisp b/src/gui/client/stream-frame.lisp index 34a4a86..30cad42 100644 --- a/src/gui/client/stream-frame.lisp +++ b/src/gui/client/stream-frame.lisp @@ -89,7 +89,11 @@ (defun init-frame (main-window) (let* ((wrapper-frame (make-instance 'stream-frame :master main-window)) (table (make-instance 'stream-table :master wrapper-frame)) - (buttons-frame (make-instance 'gui:frame :master wrapper-frame)) + (buttons-frame (make-instance 'gui:frame :master wrapper-frame)) + (reload-button (make-instance 'gui:button :master buttons-frame + :image icons:*refresh* + :command (lambda () + (refresh-all-streams table)))) (delete-button (make-instance 'gui:button :master buttons-frame :image icons:*document-delete* @@ -103,14 +107,16 @@ :command (lambda () (gui:grid-forget wrapper-frame))))) (setf (table wrapper-frame) table) - (gui-goodies:attach-tooltips (delete-button (_ "delete selected stream")) + (gui-goodies:attach-tooltips (reload-button (_ "refresh")) + (delete-button (_ "delete selected stream")) (revive-button (_ "show selected stream")) (close-button (_ "close"))) (gui:grid table 0 0 :sticky :news) (gui:grid buttons-frame 1 0 :sticky :s) - (gui:grid delete-button 0 0 :sticky :s) - (gui:grid revive-button 0 1 :sticky :s) - (gui:grid close-button 0 2 :sticky :s) + (gui:grid reload-button 0 0 :sticky :s) + (gui:grid delete-button 0 1 :sticky :s) + (gui:grid revive-button 0 2 :sticky :s) + (gui:grid close-button 0 3 :sticky :s) (gui:grid-columnconfigure wrapper-frame 0 :weight 1) (gui:grid-rowconfigure wrapper-frame 1 :weight 1) wrapper-frame))