diff --git a/app/ui/epg_dialog.glade b/app/ui/epg_dialog.glade index 918c27c2..c2983a1b 100644 --- a/app/ui/epg_dialog.glade +++ b/app/ui/epg_dialog.glade @@ -170,30 +170,75 @@ Author: Dmitriy Yefremov True False + vertical 2 - + True False - Names source: + 2 + + + True + False + Names source: + + + False + True + 0 + + + + + lamedb + True + True + False + Service names source. + True + True + xml_radiobutton + + + + False + True + 1 + + + + + xml + True + True + False + Service names source. + True + True + lamedb_radiobutton + + + False + True + 2 + + - False + True True 0 - - lamedb + True - True - False - Service names source. - True - True - xml_radiobutton - + False + False + False + source_filefilter + Names source False @@ -202,15 +247,11 @@ Author: Dmitriy Yefremov - - xml + True - True - False - Service names source. - True - True - lamedb_radiobutton + False + center + Paths False @@ -218,30 +259,210 @@ Author: Dmitriy Yefremov 2 + + + True + False + start + Local: + + + False + True + 3 + + + + + True + True + /data/epg + gtk-edit + gtk-open + False + + + False + True + 4 + + + + + True + False + start + STB: + + + False + True + 5 + + + + + True + True + /etc/enigma2/ + gtk-edit + False + + + False + True + 6 + + - False + True True 0 - + True - False False - False - source_filefilter - Names source + 10 + 2 + True + + + True + True + end + + + + 1 + 0 + + + + + True + False + start + start + Use web source + + + 0 + 0 + + - False + True True - 1 + 4 - + + True + False + False + vertical + 2 + + + True + False + + + True + False + start + Update on start + + + False + True + 0 + + + + + True + True + end + + + + False + True + end + 1 + + + + + False + True + 0 + + + + + True + False + start + Url to epg.dat file: + + + False + True + 1 + + + + + True + True + gtk-connect + False + + + False + True + 2 + + + + + True + False + start + Url to channels*.xml file: + + + False + True + 3 + + + + + True + True + gtk-connect + False + + + False + True + 4 + + + + + True + True + 5 + @@ -251,11 +472,11 @@ Author: Dmitriy Yefremov False True - 3 + 15 - + True False 5 @@ -293,7 +514,48 @@ Author: Dmitriy Yefremov False True - 4 + 16 + + + + + + + False + + + True + False + 10 + 10 + 5 + 5 + vertical + 2 + + + True + True + True + Update from STB + + + False + True + 0 + + + + + True + True + True + Update from WEB + + + False + True + 1 @@ -357,6 +619,28 @@ Author: Dmitriy Yefremov 1 + + + True + True + True + Update + none + update_popover + + + True + False + gtk-refresh + + + + + False + True + 2 + + True diff --git a/app/ui/epg_dialog.py b/app/ui/epg_dialog.py index f6bd565b..4d6d4ed6 100644 --- a/app/ui/epg_dialog.py +++ b/app/ui/epg_dialog.py @@ -37,7 +37,9 @@ class EpgDialog: "on_drag_data_received": self.on_drag_data_received, "on_resize": self.on_resize, "on_names_source_changed": self.on_names_source_changed, - "on_options_save": self.on_options_save} + "on_options_save": self.on_options_save, + "on_use_web_source_switch": self.on_use_web_source_switch, + "on_update_on_start_switch": self.on_update_on_start_switch} self._services = services self._ex_fav_model = fav_model @@ -68,6 +70,7 @@ class EpgDialog: # Options self._lamedb_radiobutton = builder.get_object("lamedb_radiobutton") self._xml_chooser_button = builder.get_object("xml_chooser_button") + self._web_source_box = builder.get_object("web_source_box") # Setting the last size of the dialog window window_size = self._options.get("epg_tool_window_size", None) if window_size: @@ -262,7 +265,13 @@ class EpgDialog: def on_options_save(self, item): pass - + + def on_update_on_start_switch(self, switch, state): + pass + + def on_use_web_source_switch(self, switch, state): + self._web_source_box.set_sensitive(state) + if __name__ == "__main__": pass