Skip to content

Commit

Permalink
Set user style sheet in parameter dialog help.
Browse files Browse the repository at this point in the history
git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@247 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
  • Loading branch information
cpolymeris@gmail.com committed Jun 15, 2012
1 parent a36a2a9 commit a5c7b56
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
3 changes: 3 additions & 0 deletions src/sextante/gui/ParametersDialog.py
Expand Up @@ -28,6 +28,7 @@
from sextante.outputs.OutputVector import OutputVector
from sextante.outputs.OutputTable import OutputTable
from sextante.core.WrongHelpFileException import WrongHelpFileException
import os

try:
_fromUtf8 = QtCore.QString.fromUtf8
Expand Down Expand Up @@ -74,6 +75,8 @@ def setupUi(self, dialog, alg):
self.tabWidget.addTab(self.scrollArea, "Parameters")
self.verticalLayout.addWidget(self.tabWidget)
self.webView = QtWebKit.QWebView()
cssUrl = QtCore.QUrl(os.path.join(os.path.dirname(__file__), "help", "help.css"))
self.webView.settings().setUserStyleSheetUrl(cssUrl)
html = None
try:
if self.alg.helpFile():
Expand Down
9 changes: 9 additions & 0 deletions src/sextante/gui/help/help.css
@@ -0,0 +1,9 @@
h1 { color: darkblue; font-size: 1.4em;}
h2 { color: darkblue; font-size: 1.2em; }
table { border: 1px solid darkblue; margin: 20px}
div.author { font-style: italic; font-size: small; }
div.description { text-indent:50px; text-align:justify; margin: 20px; }
dt { font-weight: bold; background-color: lightgrey; border-bottom: 1px solid grey; }
dd { font-style: normal; float: center; }
div.type { font-weight: normal; font-style: italic; float: right;}
div.constraints{ font-style: italic; }
9 changes: 0 additions & 9 deletions src/sextante/saga/help/help.css

This file was deleted.

1 change: 1 addition & 0 deletions src/sextante/saga/help/help.css

0 comments on commit a5c7b56

Please sign in to comment.