+ def selectionChanged(self):
+ current = self["config"].getCurrent()
+ if current == self.MailEntry:
+ self["status"].setText(_("Decide what should be done when crashlogs are found."))
+ self.disableVKeyIcon()
+ elif current == self.LogEntry:
+ self["status"].setText(_("Decide what should happen to the crashlogs after submission."))
+ self.disableVKeyIcon()
+ elif current == self.addEmailEntry:
+ self["status"].setText(_("Do you want to submit your email address and name so that we can contact you if needed?"))
+ self.disableVKeyIcon()
+ elif current == self.EmailEntry:
+ self["status"].setText(_("Enter your email address so that we can contact you if needed."))
+ self.enableVKeyIcon()
+ self.showKeypad()
+ elif current == self.NameEntry:
+ self["status"].setText(_("Optionally enter your name if you want to."))
+ self.enableVKeyIcon()
+ self.showKeypad()
+ elif current == self.AnonCrashlogEntry:
+ self["status"].setText(_("Adds enigma2 settings and dreambox model informations like SN, rev... if enabled."))
+ self.disableVKeyIcon()
+ elif current == self.NetworkEntry:
+ self["status"].setText(_("Adds network configuration if enabled."))
+ self.disableVKeyIcon()
+ elif current == self.WlanEntry:
+ self["status"].setText(_("Adds wlan configuration if enabled."))
+ self.disableVKeyIcon()
+
+ def enableVKeyIcon(self):
+ self["VKeyIcon"].show()
+ self["VirtualKB"].setEnabled(True)
+
+ def showKeypad(self):
+ current = self["config"].getCurrent()
+ helpwindowpos = self["HelpWindow"].getPosition()
+ if hasattr(current[1], 'help_window'):
+ if current[1].help_window.instance is not None:
+ current[1].help_window.instance.show()
+ current[1].help_window.instance.move(ePoint(helpwindowpos[0],helpwindowpos[1]))
+
+ def disableVKeyIcon(self):
+ self["VKeyIcon"].hide()
+ self["VirtualKB"].setEnabled(False)
+
+ def hideKeypad(self):
+ current = self["config"].getCurrent()
+ if hasattr(current[1], 'help_window'):
+ if current[1].help_window.instance is not None:
+ current[1].help_window.instance.hide()
+
+ def cancelConfirm(self, result):
+ if not result:
+ self.showKeypad()
+ return