Commit aa29546d authored by Roman Alifanov's avatar Roman Alifanov

added reset button

parent 4fca6280
......@@ -2,8 +2,8 @@ msgid ""
msgstr ""
"Project-Id-Version: ru.eepm.PlayGUI\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-10-14 21:46+0300\n"
"PO-Revision-Date: 2024-10-14 21:46+0300\n"
"POT-Creation-Date: 2024-10-15 00:03+0300\n"
"PO-Revision-Date: 2024-10-15 00:03+0300\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: ru\n"
......@@ -52,19 +52,19 @@ msgid ""
msgstr ""
"Иногда помогает получить последнюю версию программы. (Не рекомендуется)"
#: window.py:129
#: window.py:133
msgid "Remove and install applications"
msgstr "Удалить и установить программы"
#: window.py:130
#: window.py:134
msgid "Install applications"
msgstr "Установить программы"
#: window.py:131
#: window.py:135
msgid "Remove applications"
msgstr "Удалить программы"
#: window.py:132 window.ui:117
#: window.py:136 window.ui:117
msgid "Update applications"
msgstr "Обновить программы"
......@@ -96,7 +96,11 @@ msgstr "Изменённые"
msgid "Flag Selection dialog"
msgstr "Диалог выбора флагов"
#: window.ui:174
#: window.ui:144
msgid "Reset"
msgstr "Ресет"
#: window.ui:180
msgid "_About Eepm-play-gui"
msgstr "_О программе"
......
......@@ -38,7 +38,8 @@
(1,29,"AdwClamp",None,28,None,None,None,0,None,None),
(1,30,"GtkListBox",None,29,None,None,None,0,None,None),
(1,31,"AdwButtonRow","apply_button",30,None,None,None,0,None,None),
(1,32,"GtkButton","flags_button",28,None,"end",None,1,None,None)
(1,32,"GtkButton","flags_button",28,None,"end",None,1,None,None),
(1,33,"GtkButton","reset_button",28,None,"start",None,2,None,None)
</object>
<object_property>
(1,1,"GtkWidget","height-request","294",0,None,None,None,None,None,None,None,None),
......@@ -91,7 +92,9 @@
(1,29,"GtkWidget","margin-start","12",None,None,None,None,None,None,None,None,None),
(1,31,"AdwPreferencesRow","title","Update applications",1,None,None,None,None,None,None,None,None),
(1,32,"GtkButton","icon-name","emoji-flags-symbolic",None,None,None,None,None,None,None,None,None),
(1,32,"GtkWidget","tooltip-text","Flag Selection dialog",1,None,None,None,None,None,None,None,None)
(1,32,"GtkWidget","tooltip-text","Flag Selection dialog",1,None,None,None,None,None,None,None,None),
(1,33,"GtkButton","icon-name","view-refresh-symbolic",None,None,None,None,None,None,None,None,None),
(1,33,"GtkWidget","tooltip-text","Reset",1,None,None,None,None,None,None,None,None)
</object_property>
<object_data>
(1,14,"GtkStringList",1,1,None,None,None,None,None,None),
......
......@@ -44,6 +44,8 @@ class EepmPlayGuiWindow(Adw.ApplicationWindow):
main_stack = Gtk.Template.Child()
search_dropdown = Gtk.Template.Child()
choice_listbox = Gtk.Template.Child()
reset_button = Gtk.Template.Child()
apply_button = Gtk.Template.Child()
flags_button = Gtk.Template.Child()
......@@ -52,6 +54,8 @@ class EepmPlayGuiWindow(Adw.ApplicationWindow):
self.set_title("EPM PLAY")
self.checkboxes = None
self.reset_button.connect("clicked", lambda _: self.update_ui())
self.apply_button.connect("activated", self.on_apply_clicked)
self.flagsdialog = FlagsDialog()
......
<?xml version='1.0' encoding='UTF-8'?>
<!-- Created with Cambalache 0.92.0 -->
<!-- Created with Cambalache 0.92.1 -->
<interface domain="eepm-play-gui">
<!-- interface-name window.ui -->
<requires lib="gio" version="2.0"/>
......@@ -138,6 +138,12 @@
<property name="tooltip-text" translatable="yes">Flag Selection dialog</property>
</object>
</child>
<child type="start">
<object class="GtkButton" id="reset_button">
<property name="icon-name">view-refresh-symbolic</property>
<property name="tooltip-text" translatable="yes">Reset</property>
</object>
</child>
</object>
</child>
</object>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment