Skip to content

Commit

Permalink
fixed help visualization in Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mauroalberti committed Aug 27, 2018
1 parent 8ac7ec8 commit 09a9f8a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
annotation tools for field work
-------------------
begin : 2015.03.08
copyright : (C) 2015 Mauro DeDonatis
copyright : (C) 2015-2018 Mauro DeDonatis
email : [email protected]
***************************************************************************/
Expand Down
9 changes: 5 additions & 4 deletions beePen_QWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def setup_gui(self):

def open_help_page(self):

dialog = HelpDialog()
dialog = HelpDialog(self.plugin_name)
dialog.exec_()

def get_prjcrs_as_proj4str(self):
Expand Down Expand Up @@ -242,7 +242,7 @@ def error(self, msg):

class HelpDialog(QDialog):

def __init__(self, parent=None):
def __init__(self, plugin_nm, parent=None):

super(HelpDialog, self).__init__(parent)

Expand All @@ -252,14 +252,15 @@ def __init__(self, parent=None):

helpTextBrwsr = QTextBrowser(self)

helpTextBrwsr.setSource(QUrl('{}/help/help.html'.format(os.path.dirname(__file__))))
url_path = "file:///{}/help/help.html".format(os.path.dirname(__file__))
helpTextBrwsr.setSource(QUrl(url_path))
helpTextBrwsr.setSearchPaths(['{}/help'.format(os.path.dirname(__file__))])

layout.addWidget(helpTextBrwsr)

self.setLayout(layout)

self.setWindowTitle("beePen Help")
self.setWindowTitle("{} Help".format(plugin_nm))



3 changes: 2 additions & 1 deletion metadata.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ about=Plugin for drawing freehand lines with map-specified pen widths.
Its applications are for field mapping.
It is based on the "Freehand" plugin.
category=Vector
version=0.2.0
version=0.2.1
homepage=https://github.com/mauroalberti/beePen
tracker=https://github.com/mauroalberti/beePen/issues
repository=https://github.com/mauroalberti/beePen
Expand All @@ -19,6 +19,7 @@ icon=./icons/icon.png

; start of optional metadata
changelog=
0.2.1 : - fixed Help bug for Windows
0.2.0 : - porting to QGIS 3
0.1.1 : - removed prior layer editing requirement; added color choice; added notes
0.1.0 : - removed possibility to save annotation shapefile on an existing one
Expand Down

0 comments on commit 09a9f8a

Please sign in to comment.