|
@ -297,6 +297,7 @@ class GeneralTab(TabPanel): |
|
|
|
|
|
|
|
|
self.more_opts_label = self.crt_statictext("More options") |
|
|
self.more_opts_label = self.crt_statictext("More options") |
|
|
self.confirm_exit_checkbox = self.crt_checkbox("Confirm on exit") |
|
|
self.confirm_exit_checkbox = self.crt_checkbox("Confirm on exit") |
|
|
|
|
|
self.confirm_deletion_checkbox = self.crt_checkbox("Confirm item deletion") |
|
|
self.show_completion_popup_checkbox = self.crt_checkbox("Inform me on download completion") |
|
|
self.show_completion_popup_checkbox = self.crt_checkbox("Inform me on download completion") |
|
|
|
|
|
|
|
|
self.shutdown_checkbox = self.crt_checkbox("Shutdown on download completion", event_handler=self._on_shutdown) |
|
|
self.shutdown_checkbox = self.crt_checkbox("Shutdown on download completion", event_handler=self._on_shutdown) |
|
@ -334,6 +335,7 @@ class GeneralTab(TabPanel): |
|
|
|
|
|
|
|
|
vertical_sizer.Add(self.more_opts_label, flag=wx.TOP, border=5) |
|
|
vertical_sizer.Add(self.more_opts_label, flag=wx.TOP, border=5) |
|
|
vertical_sizer.Add(self.confirm_exit_checkbox, flag=wx.ALL, border=5) |
|
|
vertical_sizer.Add(self.confirm_exit_checkbox, flag=wx.ALL, border=5) |
|
|
|
|
|
vertical_sizer.Add(self.confirm_deletion_checkbox, flag=wx.LEFT | wx.RIGHT | wx.BOTTOM, border=5) |
|
|
vertical_sizer.Add(self.show_completion_popup_checkbox, flag=wx.LEFT | wx.RIGHT | wx.BOTTOM, border=5) |
|
|
vertical_sizer.Add(self.show_completion_popup_checkbox, flag=wx.LEFT | wx.RIGHT | wx.BOTTOM, border=5) |
|
|
|
|
|
|
|
|
shutdown_sizer = wx.BoxSizer(wx.HORIZONTAL) |
|
|
shutdown_sizer = wx.BoxSizer(wx.HORIZONTAL) |
|
@ -412,6 +414,7 @@ class GeneralTab(TabPanel): |
|
|
self.sudo_textctrl.SetValue(self.opt_manager.options["sudo_password"]) |
|
|
self.sudo_textctrl.SetValue(self.opt_manager.options["sudo_password"]) |
|
|
self.confirm_exit_checkbox.SetValue(self.opt_manager.options["confirm_exit"]) |
|
|
self.confirm_exit_checkbox.SetValue(self.opt_manager.options["confirm_exit"]) |
|
|
self.show_completion_popup_checkbox.SetValue(self.opt_manager.options["show_completion_popup"]) |
|
|
self.show_completion_popup_checkbox.SetValue(self.opt_manager.options["show_completion_popup"]) |
|
|
|
|
|
self.confirm_deletion_checkbox.SetValue(self.opt_manager.options["confirm_deletion"]) |
|
|
|
|
|
|
|
|
#REFACTOR Automatically call on the new methods |
|
|
#REFACTOR Automatically call on the new methods |
|
|
#save_options |
|
|
#save_options |
|
@ -429,6 +432,7 @@ class GeneralTab(TabPanel): |
|
|
self.opt_manager.options["sudo_password"] = self.sudo_textctrl.GetValue() |
|
|
self.opt_manager.options["sudo_password"] = self.sudo_textctrl.GetValue() |
|
|
self.opt_manager.options["confirm_exit"] = self.confirm_exit_checkbox.GetValue() |
|
|
self.opt_manager.options["confirm_exit"] = self.confirm_exit_checkbox.GetValue() |
|
|
self.opt_manager.options["show_completion_popup"] = self.show_completion_popup_checkbox.GetValue() |
|
|
self.opt_manager.options["show_completion_popup"] = self.show_completion_popup_checkbox.GetValue() |
|
|
|
|
|
self.opt_manager.options["confirm_deletion"] = self.confirm_deletion_checkbox.GetValue() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class FormatsTab(TabPanel): |
|
|
class FormatsTab(TabPanel): |
|
|