diff --git a/app/ui/ftp.glade b/app/ui/ftp.glade index d822d32c..52309114 100644 --- a/app/ui/ftp.glade +++ b/app/ui/ftp.glade @@ -94,27 +94,97 @@ Author: Dmitriy Yefremov 0 in - - 320 - 240 + True - True - 5 - 5 - 5 - 5 + False vertical - True + 2 - + True False - vertical + 10 + 10 + 5 + 5 2 - + True False + True + Connect + + + + True + False + gtk-connect + + + + + False + True + 0 + + + + + False + True + Disconnect + + + + True + False + gtk-disconnect + + + + + False + True + 1 + + + + + False + bookmarks_list_store + 0 + + + False + True + 2 + + + + + False + True + 0 + + + + + 320 + 240 + True + True + 5 + 5 + 5 + 5 + True + + + True + False + vertical + 2 True @@ -124,9 +194,7 @@ Author: Dmitriy Yefremov True False - 10 FTP: - 1 @@ -142,7 +210,7 @@ Author: Dmitriy Yefremov True False end - 25 + 75 1 @@ -159,24 +227,158 @@ Author: Dmitriy Yefremov - + True - False - 2 + True + in + 100 - + True - False - True - Connect - - - - True - False - gtk-connect + True + ftp_list_store + 1 + True + + + + + + + + + + + + multiple + + + True + 100 + Name + True + 0.5 + 1 + + + 0.019999999552965164 + + + 0 + + + + + 0.019999999552965164 + end + + + + 1 + + + + + + + fixed + 75 + Size + 0.5 + 2 + + + 0.94999998807907104 + + + 2 + + + + + + + 75 + Date + 0.5 + 3 + + + + 3 + + + + + + + fixed + 85 + Attr. + 0.5 + 4 + + + 0.50999999046325684 + end + + + 4 + + + + + + + False + Extra + + + + 5 + + + + + + + + + True + True + 2 + + + + + True + True + + + + + True + False + vertical + 2 + + + True + False + 5 + 5 + + + True + False + start + 10 + PC: + + + False @@ -185,18 +387,11 @@ Author: Dmitriy Yefremov - + + True False - True - Disconnect - - - - True - False - gtk-disconnect - - + end + 75 False @@ -204,189 +399,6 @@ Author: Dmitriy Yefremov 1 - - - False - bookmarks_list_store - 0 - - - False - True - end - 2 - - - - - False - True - end - 1 - - - - - - - - False - True - 1 - - - - - True - True - in - 100 - - - True - True - ftp_list_store - 1 - True - - - - - - - - - - - - multiple - - - - - True - 100 - Name - True - 0.5 - 1 - - - 0.019999999552965164 - - - 0 - - - - - 0.019999999552965164 - end - - - - 1 - - - - - - - fixed - 75 - Size - 0.5 - 2 - - - 0.94999998807907104 - - - 2 - - - - - - - 75 - Date - 0.5 - 3 - - - - 3 - - - - - - - fixed - 50 - Attr. - 0.5 - 4 - - - 0.50999999046325684 - end - - - 4 - - - - - - - False - Extra - - - - 5 - - - - - - - - - True - True - 2 - - - - - True - True - - - - - True - False - vertical - 2 - - - True - False - 5 - - - True - False - start - 10 - PC: - - - False @@ -395,150 +407,137 @@ Author: Dmitriy Yefremov - + True - False - end - 32 + True + in + 100 + + + True + True + file_list_store + 1 + True + + + + + + + + + + + + multiple + + + + + True + 100 + Name + True + 0.5 + 1 + + + 0.20000000298023224 + + + 0 + + + + + end + + + + 1 + + + + + + + fixed + 75 + Size + 0.5 + 2 + + + 0.94999998807907104 + + + 2 + + + + + + + 75 + Date + 0.5 + 3 + + + + 3 + + + + + + + False + fixed + 50 + Path + 0.5 + + + + 4 + + + + + + + False + Extra + + + + 5 + + + + + + - False + True True 1 - False - True - 0 - - - - - True - True - in - 100 - - - True - True - file_list_store - 1 - True - - - - - - - - - - - - multiple - - - - - True - 100 - Name - True - 0.5 - 1 - - - 0.20000000298023224 - - - 0 - - - - - end - - - - 1 - - - - - - - fixed - 75 - Size - 0.5 - 2 - - - 0.94999998807907104 - - - 2 - - - - - - - 75 - Date - 0.5 - 3 - - - - 3 - - - - - - - False - fixed - 50 - Path - 0.5 - - - - 4 - - - - - - - False - Extra - - - - 5 - - - - - - - - - True - True - 1 + True + True - True - True + True + True + 1 @@ -584,7 +583,7 @@ Author: Dmitriy Yefremov rename_image False - + diff --git a/app/ui/main_app_window.py b/app/ui/main_app_window.py index 7c3823e9..ebbfbd4b 100644 --- a/app/ui/main_app_window.py +++ b/app/ui/main_app_window.py @@ -241,11 +241,16 @@ class Application(Gtk.Application): self._bq_name_label = builder.get_object("bq_name_label") # Setting custom sort function for position column. self._services_view.get_model().set_sort_func(Column.SRV_POS, self.position_sort_func, Column.SRV_POS) + # Header bar elements. + main_header_box = builder.get_object("main_header_box") + right_header_box = builder.get_object("right_header_box") + left_header_box = builder.get_object("left_header_box") + main_popover_menu_box = builder.get_object("main_popover_menu_box") # App info self._app_info_box = builder.get_object("app_info_box") self._app_info_box.bind_property("visible", builder.get_object("main_paned"), "visible", 4) - self._app_info_box.bind_property("visible", builder.get_object("right_header_box"), "visible", 4) - self._app_info_box.bind_property("visible", builder.get_object("left_header_box"), "visible", 4) + self._app_info_box.bind_property("visible", right_header_box, "visible", 4) + self._app_info_box.bind_property("visible", left_header_box, "visible", 4) # Status bar self._profile_combo_box = builder.get_object("profile_combo_box") self._receiver_info_box = builder.get_object("receiver_info_box") @@ -282,6 +287,14 @@ class Application(Gtk.Application): self._ftp_button = builder.get_object("ftp_button") self._ftp_revealer = builder.get_object("ftp_revealer") self._ftp_button.bind_property("active", self._ftp_revealer, "visible") + self._ftp_revealer.bind_property("visible", builder.get_object("main_box"), "visible", 4) + self._ftp_revealer.bind_property("visible", main_header_box, "visible", 4) + self._ftp_revealer.bind_property("visible", right_header_box, "visible", 4) + self._ftp_revealer.bind_property("visible", left_header_box, "visible", 4) + self._ftp_revealer.bind_property("visible", main_popover_menu_box, "visible", 4) + close_ftp_menu_button = builder.get_object("close_ftp_menu_button") + self._ftp_revealer.bind_property("visible", close_ftp_menu_button, "visible") + close_ftp_menu_button.connect("clicked", lambda b: self._ftp_button.set_active(False)) # Force Ctrl press event for view. Multiple selections in lists only with Space key(as in file managers)!!! self._services_view.connect("key-press-event", self.force_ctrl) self._fav_view.connect("key-press-event", self.force_ctrl) @@ -311,10 +324,10 @@ class Application(Gtk.Application): self._player_box.bind_property("visible", self._services_main_box, "visible", 4) self._fav_bouquets_paned = builder.get_object("fav_bouquets_paned") self._player_box.bind_property("visible", builder.get_object("close_player_menu_button"), "visible") - self._player_box.bind_property("visible", builder.get_object("left_header_box"), "visible", 4) - self._player_box.bind_property("visible", builder.get_object("right_header_box"), "visible", 4) - self._player_box.bind_property("visible", builder.get_object("main_popover_menu_box"), "visible", 4) - self._player_box.bind_property("visible", builder.get_object("main_header_box"), "visible", 4) + self._player_box.bind_property("visible", left_header_box, "visible", 4) + self._player_box.bind_property("visible", right_header_box, "visible", 4) + self._player_box.bind_property("visible", main_popover_menu_box, "visible", 4) + self._player_box.bind_property("visible", main_header_box, "visible", 4) self._player_box.bind_property("visible", builder.get_object("left_header_separator"), "visible", 4) self._player_box.bind_property("visible", builder.get_object("tools_button_box"), "visible", 4) self._player_box.bind_property("visible", self._profile_combo_box, "visible", 4) diff --git a/app/ui/main_window.glade b/app/ui/main_window.glade index 4664cfc7..2b77d3ea 100644 --- a/app/ui/main_window.glade +++ b/app/ui/main_window.glade @@ -728,6 +728,18 @@ Author: Dmitriy Yefremov 0 + + + True + True + Close + + + False + True + 1 + + True @@ -736,7 +748,7 @@ Author: Dmitriy Yefremov False True - 1 + 2 @@ -750,7 +762,7 @@ Author: Dmitriy Yefremov True True - 2 + 3 @@ -764,7 +776,7 @@ Author: Dmitriy Yefremov False True - 3 + 4 @@ -3468,13 +3480,13 @@ Author: Dmitriy Yefremov False True + end 1 False - end crossfade True @@ -3483,7 +3495,7 @@ Author: Dmitriy Yefremov - False + True True 2