Skip to content

Commit a5c7b56

Browse files
author
cpolymeris@gmail.com
committed
Set user style sheet in parameter dialog help.
git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@247 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
1 parent a36a2a9 commit a5c7b56

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

src/sextante/gui/ParametersDialog.py

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
from sextante.outputs.OutputVector import OutputVector
2929
from sextante.outputs.OutputTable import OutputTable
3030
from sextante.core.WrongHelpFileException import WrongHelpFileException
31+
import os
3132

3233
try:
3334
_fromUtf8 = QtCore.QString.fromUtf8
@@ -74,6 +75,8 @@ def setupUi(self, dialog, alg):
7475
self.tabWidget.addTab(self.scrollArea, "Parameters")
7576
self.verticalLayout.addWidget(self.tabWidget)
7677
self.webView = QtWebKit.QWebView()
78+
cssUrl = QtCore.QUrl(os.path.join(os.path.dirname(__file__), "help", "help.css"))
79+
self.webView.settings().setUserStyleSheetUrl(cssUrl)
7780
html = None
7881
try:
7982
if self.alg.helpFile():

src/sextante/gui/help/help.css

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
h1 { color: darkblue; font-size: 1.4em;}
2+
h2 { color: darkblue; font-size: 1.2em; }
3+
table { border: 1px solid darkblue; margin: 20px}
4+
div.author { font-style: italic; font-size: small; }
5+
div.description { text-indent:50px; text-align:justify; margin: 20px; }
6+
dt { font-weight: bold; background-color: lightgrey; border-bottom: 1px solid grey; }
7+
dd { font-style: normal; float: center; }
8+
div.type { font-weight: normal; font-style: italic; float: right;}
9+
div.constraints{ font-style: italic; }

src/sextante/saga/help/help.css

-9
This file was deleted.

src/sextante/saga/help/help.css

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../gui/help/help.css

0 commit comments

Comments
 (0)