From ca65f64a4ff0d593116685bf17e5516f14d8f93a Mon Sep 17 00:00:00 2001 From: DYefremov Date: Tue, 12 May 2020 14:13:01 +0300 Subject: [PATCH] changed some dialogs elements --- app/ui/epg_dialog.glade | 2 +- app/ui/main_app_window.py | 3 ++ app/ui/main_window.glade | 26 ++++++++++++-- app/ui/picons_manager.glade | 2 +- app/ui/satellites_dialog.glade | 66 +++++++++++++++++++++++++++++++--- app/ui/satellites_dialog.py | 6 ++-- app/ui/settings_dialog.glade | 6 ++-- 7 files changed, 98 insertions(+), 13 deletions(-) diff --git a/app/ui/epg_dialog.glade b/app/ui/epg_dialog.glade index 8e33f134..7c9815fb 100644 --- a/app/ui/epg_dialog.glade +++ b/app/ui/epg_dialog.glade @@ -36,7 +36,7 @@ Author: Dmitriy Yefremov True False - checkmark + document-save-symbolic 1 diff --git a/app/ui/main_app_window.py b/app/ui/main_app_window.py index f9c57665..84369a6a 100644 --- a/app/ui/main_app_window.py +++ b/app/ui/main_app_window.py @@ -212,6 +212,7 @@ class Application(Gtk.Application): self._bq_name_label = builder.get_object("bq_name_label") tool_bar = builder.get_object("top_toolbar") self._main_data_box.bind_property("visible", tool_bar, "visible") + self._telnet_tool_button = builder.get_object("telnet_tool_button") # App info self._app_info_box = builder.get_object("app_info_box") self._app_info_box.bind_property("visible", self._status_bar_box, "visible", 4) @@ -333,6 +334,7 @@ class Application(Gtk.Application): ac.connect("activate", self.on_telnet_client_show) self.add_action(ac) self.set_accels_for_action("app.on_telnet_client_show", ["t"]) + self._telnet_tool_button.set_visible(True) def init_keys(self): main_handlers = ("on_new_configuration", "on_data_open", "on_download", "on_settings", @@ -437,6 +439,7 @@ class Application(Gtk.Application): log("No valid [on, off] arguments for -t found!") return 1 log("Telnet support is {}. Restart the program to apply the settings!".format(t_op)) + self._settings.save() self.activate() return 0 diff --git a/app/ui/main_window.glade b/app/ui/main_window.glade index 547ea03a..03d484e1 100644 --- a/app/ui/main_window.glade +++ b/app/ui/main_window.glade @@ -854,6 +854,11 @@ Author: Dmitriy Yefremov + + True + False + network-workgroup-symbolic + True False @@ -1021,6 +1026,23 @@ Author: Dmitriy Yefremov 1 + + + + False + True + True + Telnet + app.on_telnet_client_show + telnet_image + True + + + True + True + 2 + + @@ -1035,7 +1057,7 @@ Author: Dmitriy Yefremov True True - 2 + 3 @@ -1053,7 +1075,7 @@ Author: Dmitriy Yefremov True True - 3 + 4 diff --git a/app/ui/picons_manager.glade b/app/ui/picons_manager.glade index cb196d63..86401330 100644 --- a/app/ui/picons_manager.glade +++ b/app/ui/picons_manager.glade @@ -35,7 +35,7 @@ Author: Dmitriy Yefremov True False - cancel + window-close-symbolic True diff --git a/app/ui/satellites_dialog.glade b/app/ui/satellites_dialog.glade index 0f1129e4..6d7d5443 100644 --- a/app/ui/satellites_dialog.glade +++ b/app/ui/satellites_dialog.glade @@ -384,6 +384,48 @@ Author: Dmitriy Yefremov + + True + False + document-save-symbolic + 1 + + + True + False + emblem-synchronizing-symbolic + 1 + + + True + False + network-receive-symbolic + 1 + + + True + False + window-close-symbolic + 1 + + + True + False + edit-find-replace-symbolic + 1 + + + True + False + emblem-synchronizing-symbolic + 1 + + + True + False + edit-find-symbolic + 1 + @@ -469,6 +511,8 @@ Author: Dmitriy Yefremov True True Save + sat_editor_save_image + True @@ -484,6 +528,8 @@ Author: Dmitriy Yefremov True True Update + sat_editor_update_image + True @@ -1395,6 +1441,8 @@ Author: Dmitriy Yefremov True Cancel center + sat_update_cancel_image + True @@ -1410,6 +1458,8 @@ Author: Dmitriy Yefremov True True Receive + sat_receive_image + True @@ -1425,8 +1475,10 @@ Author: Dmitriy Yefremov True True Filter + sat_update_filter_image + True - + False @@ -1441,8 +1493,10 @@ Author: Dmitriy Yefremov True True Find + sat_update_search_image + True - + False @@ -1492,6 +1546,8 @@ Author: Dmitriy Yefremov True Update center + sat_update_image + True @@ -1580,11 +1636,11 @@ Author: Dmitriy Yefremov 2 + - False diff --git a/app/ui/satellites_dialog.py b/app/ui/satellites_dialog.py index 5c9fa190..c64f2bb7 100644 --- a/app/ui/satellites_dialog.py +++ b/app/ui/satellites_dialog.py @@ -48,7 +48,8 @@ class SatellitesDialog: builder.set_translation_domain(TEXT_DOMAIN) builder.add_objects_from_string(get_dialogs_string(_UI_PATH), ("satellites_editor_window", "satellites_tree_store", "popup_menu", - "left_header_menu", "popup_menu_add_image", "popup_menu_add_image_2")) + "left_header_menu", "popup_menu_add_image", "popup_menu_add_image_2", + "sat_editor_save_image", "sat_editor_update_image")) builder.connect_signals(handlers) self._window = builder.get_object("satellites_editor_window") @@ -456,7 +457,8 @@ class SatellitesUpdateDialog: ("satellites_update_window", "update_source_store", "update_sat_list_store", "update_sat_list_model_filter", "update_sat_list_model_sort", "side_store", "pos_adjustment", "pos_adjustment2", "satellites_update_popup_menu", - "remove_selection_image")) + "remove_selection_image", "sat_update_cancel_image", "sat_receive_image", + "sat_update_filter_image", "sat_update_search_image", "sat_update_image")) builder.connect_signals(handlers) self._window = builder.get_object("satellites_update_window") diff --git a/app/ui/settings_dialog.glade b/app/ui/settings_dialog.glade index a51236b4..836b3fe5 100644 --- a/app/ui/settings_dialog.glade +++ b/app/ui/settings_dialog.glade @@ -156,7 +156,7 @@ Author: Dmitriy Yefremov Apply profile settings center - + False @@ -428,7 +428,7 @@ Author: Dmitriy Yefremov True emblem-default - + False @@ -1322,6 +1322,7 @@ Author: Dmitriy Yefremov True False Sets the profile folder as default to store picons, backups, etc. + center 5 5 5 @@ -1346,6 +1347,7 @@ Author: Dmitriy Yefremov True True + center