|
10 | 10 |
|
11 | 11 | class AboutDialog(QDialog, Ui_DlgAbout): |
12 | 12 |
|
13 | | - def __init__(self, parent): |
| 13 | + def __init__(self): |
14 | 14 | QDialog.__init__(self) |
15 | 15 | self.setupUi(self) |
16 | 16 |
|
| 17 | + self.buttonBox.helpRequested.connect(self.openHelp) |
| 18 | + |
17 | 19 | self.setAboutText() |
18 | 20 |
|
19 | 21 | def setAboutText(self): |
20 | 22 | strAbout = self.tr(""" |
21 | | -<img src="qrc:/sextante/images/sextante_logo.png" /> |
22 | | -<h2>SEXTANTE for QGIS</h2> |
23 | | -<p>SEXTANTE, a geoprocessing platform for QGIS</p> |
24 | | -<p>A development by Victor Olaya (volayaf@gmail.com).</p> |
25 | | -<p>Portions of this software contributed by: |
26 | | -<ul> |
27 | | -<li>Alexander Bruy</li> |
28 | | -<li>Carson Farmer (fTools algorithms)</li> |
29 | | -<li>Julien Malik (Orfeo Toolbox connectors)</li> |
30 | | -<li>Evgeniy Nikulin (Original Field Pyculator code)</li> |
31 | | -<li>Michael Nimm (mmqgis algorithms)</li> |
32 | | -<li>Camilo Polymeris (Threading). Developed as part of Google Summer of Code 2012</li> |
33 | | -</ul> |
34 | | -</p> |
35 | | -<p>You are currently using SEXTANTE v%1</p> |
36 | | -<p>This software is distributed under the terms of the GNU GPL License v2. |
37 | | -<p>For more information, please visit our website at <a href="http://sextantegis.com">http://sextantegis.com</a></p> |
38 | | - """).arg(version()) |
| 23 | + <img src="qrc:/sextante/images/sextante_logo.png" /> |
| 24 | + <h2>SEXTANTE for QGIS</h2> |
| 25 | + <p>SEXTANTE, a geoprocessing platform for QGIS</p> |
| 26 | + <p>A development by Victor Olaya (volayaf@gmail.com).</p> |
| 27 | + <p>Portions of this software contributed by: |
| 28 | + <ul> |
| 29 | + <li>Alexander Bruy</li> |
| 30 | + <li>Carson Farmer (fTools algorithms)</li> |
| 31 | + <li>Julien Malik (Orfeo Toolbox connectors)</li> |
| 32 | + <li>Evgeniy Nikulin (Original Field Pyculator code)</li> |
| 33 | + <li>Michael Nimm (mmqgis algorithms)</li> |
| 34 | + <li>Camilo Polymeris (Threading). Developed as part of Google |
| 35 | + Summer of Code 2012</li> |
| 36 | + </ul> |
| 37 | + </p> |
| 38 | + <p>You are currently using SEXTANTE v%1</p> |
| 39 | + <p>This software is distributed under the terms of the GNU GPL License v2. |
| 40 | + <p>For more information, please visit our website at |
| 41 | + <a href="http://sextantegis.com">http://sextantegis.com</a></p> |
| 42 | + """).arg(version()) |
39 | 43 | self.webView.setHtml(strAbout) |
| 44 | + |
| 45 | + def openHelp(self): |
| 46 | + QDesktopServices.openUrl(QUrl(os.path.join(os.path.dirname(__file__), os.path.pardir) + "/help/index.html")) |
0 commit comments