Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0, 2.0.1, and 2.0.2

stable qtlib: provide a method for opening online help

Changeset f26f3d33300a

Parent 43260dc7b785

by Steve Borho

Changes to 2 files · Browse files at f26f3d33300a Showing diff from parent 43260dc7b785 Diff from another changeset...

Change 1 of 1 Show Entire File ReleaseProcedure.txt Stacked
 
4
5
6
 
7
8
9
 
4
5
6
7
8
9
10
@@ -4,6 +4,7 @@
 * Pull latest translations from Launchpad  * set revision number in doc/source/conf.py  * tag stable branch of repository, push +* update url in qtlib.openhelpcontents() (major release only)  * build pdf hgbook, check into thg-winbuild (major release only)  * build release installer  * commit extension versions, tag, push thg-winbuild
 
37
38
39
 
 
 
 
 
 
 
 
 
 
 
 
 
40
41
42
 
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
@@ -37,6 +37,19 @@
  atexit.register(cleanup)   return tmproot   +def openhelpcontents(url): + 'Open online help, use local CHM file if available' + if not url.startswith('http'): + fullurl = 'http://tortoisehg.org/manual/2.0/' + url + # Use local CHM file if it can be found + if os.name == 'nt' and paths.bin_path: + chm = os.path.join(paths.bin_path, 'doc', 'TortoiseHg.chm') + if os.path.exists(chm): + fullurl = (r'mk:@MSITStore:%s::/' % chm) + url + QDesktopServices.openUrl(QUrl.fromLocalFile(fullurl)) + return + QDesktopServices.openUrl(QUrl(fullurl)) +  # _styles maps from ui labels to effects  # _effects maps an effect to font style properties. We define a limited  # set of _effects, since we convert color effect names to font style