4515 |
4515 |
4516 def __showEricDoc(self): |
4516 def __showEricDoc(self): |
4517 """ |
4517 """ |
4518 Private slot to show the Eric documentation. |
4518 Private slot to show the Eric documentation. |
4519 """ |
4519 """ |
4520 home = Utilities.normjoinpath(getConfig('ericDocDir'), |
4520 ## home = Utilities.normjoinpath(getConfig('ericDocDir'), |
4521 "Source", "index.html") |
4521 ## "Source", "index.html") |
|
4522 home = "qthelp://org.eric5.ide/eric5/index.html" |
4522 |
4523 |
4523 if not home.startswith("http://") and \ |
4524 if not home.startswith("http://") and \ |
4524 not home.startswith("https://"): |
4525 not home.startswith("https://") and \ |
|
4526 not home.startswith("qthelp://"): |
4525 if not os.path.exists(home): |
4527 if not os.path.exists(home): |
4526 E5MessageBox.warning(self, |
4528 E5MessageBox.warning(self, |
4527 self.trUtf8("Documentation Missing"), |
4529 self.trUtf8("Documentation Missing"), |
4528 self.trUtf8("""<p>The documentation starting point""" |
4530 self.trUtf8("""<p>The documentation starting point""" |
4529 """ "<b>{0}</b>" could not be found.</p>""")\ |
4531 """ "<b>{0}</b>" could not be found.</p>""")\ |
4530 .format(home)) |
4532 .format(home)) |
4531 return |
4533 return |
4532 |
4534 |
4533 if Utilities.isWindowsPlatform(): |
4535 if Utilities.isWindowsPlatform(): |
4534 home = "file:///" + Utilities.fromNativeSeparators(home) |
4536 home = "file:///" + Utilities.fromNativeSeparators(home) |
4535 else: |
4537 else: |
4536 home = "file://" + home |
4538 home = "file://" + home |
4537 |
4539 |
4538 hvType = Preferences.getHelp("HelpViewerType") |
4540 hvType = Preferences.getHelp("HelpViewerType") |
4539 if hvType == 1: |
4541 if hvType == 1: |
4540 self.launchHelpViewer(home) |
4542 self.launchHelpViewer(home) |
4541 elif hvType == 2: |
4543 elif hvType == 2: |