Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
bump version to 2.5.0, only 1 dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
wilhelmberg committed Nov 8, 2014
1 parent 5fefbd7 commit ae48a2a
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 14 deletions.
Binary file modified VoGisProfilTool.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion VoGisProfilTool/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def description():


def version():
return "1.9.1"
return "2.5.0"


def icon():
Expand Down
2 changes: 1 addition & 1 deletion VoGisProfilTool/metadata.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ name=VoGIS-ProfilTool
qgisMinimumVersion=1.8
qgisMaximumVersion=2.99
description=Create profiles from DHMs using vector geometries or a digitized line.
version=1.9.1
version=2.5.0
author=BergWerk GIS
[email protected]

Expand Down
2 changes: 1 addition & 1 deletion VoGisProfilTool/resources_rc.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Resource object code
#
# Created: Di. Nov 4 13:50:01 2014
# Created: Sa. Nov 8 10:51:10 2014
# by: The Resource Compiler for PyQt (Qt v4.8.6)
#
# WARNING! All changes made in this file will be lost!
Expand Down
2 changes: 1 addition & 1 deletion VoGisProfilTool/ui/ui_vogisprofiltoolmain.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Form implementation generated from reading ui file 'ui/ui_vogisprofiltoolmain.ui'
#
# Created: Tue Nov 4 13:50:01 2014
# Created: Sat Nov 8 10:51:10 2014
# by: PyQt4 UI code generator 4.10.4
#
# WARNING! All changes made in this file will be lost!
Expand Down
2 changes: 1 addition & 1 deletion VoGisProfilTool/ui/ui_vogisprofiltoolplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Form implementation generated from reading ui file 'ui/ui_vogisprofiltoolplot.ui'
#
# Created: Tue Nov 4 13:50:01 2014
# Created: Sat Nov 8 10:51:10 2014
# by: PyQt4 UI code generator 4.10.4
#
# WARNING! All changes made in this file will be lost!
Expand Down
27 changes: 20 additions & 7 deletions VoGisProfilTool/vogisprofiltoolmain.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,15 @@ def unload(self):
# run method that performs all the real work
def run(self):

is_open = QSettings().value("vogisprofiltoolmain/isopen", False)
#Python treats almost everything as True````
#is_open = bool(is_open)
QgsMessageLog.logMessage(u'isopen: {0}'.format(is_open), 'VoGis')
#!!!string comparison
if is_open == 'true':
QgsMessageLog.logMessage(u'Dialog already opened', 'VoGis')
return

try:
import shapely
except ImportError:
Expand Down Expand Up @@ -118,13 +127,17 @@ def run(self):
self.settings.onlyHektoMode = True
self.settings.createHekto = True

# Create the dialog (after translation) and keep reference
self.dlg = VoGISProfilToolMainDialog(self.iface, self.settings)
# show the dialog
self.dlg.show()
# Run the dialog event loop
#result = self.dlg.exec_()
self.dlg.exec_()
try:
QSettings().setValue("vogisprofiltoolmain/isopen", True)
# Create the dialog (after translation) and keep reference
self.dlg = VoGISProfilToolMainDialog(self.iface, self.settings)
# show the dialog
self.dlg.show()
# Run the dialog event loop
#result = self.dlg.exec_()
self.dlg.exec_()
finally:
QSettings().setValue("vogisprofiltoolmain/isopen", False)


def __getMapData(self):
Expand Down
4 changes: 2 additions & 2 deletions plugins.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version = '1.0' encoding = 'UTF-8'?>
<plugins>
<pyqgis_plugin name="VoGIS-ProfilTool" version="1.9.1">
<pyqgis_plugin name="VoGIS-ProfilTool" version="2.5.0">
<description><![CDATA[Create profiles from DHMs using vector geometries or a digitized line.]]></description>
<version>1.9.1</version>
<version>2.5.0</version>
<qgis_minimum_version>1.8.0</qgis_minimum_version>
<qgis_maximum_version>2.99.0</qgis_maximum_version>
<homepage>https://github.com/BergWerkGIS/VoGIS-Profil-Tool/</homepage>
Expand Down

0 comments on commit ae48a2a

Please sign in to comment.