diff --git a/avaframeConnector_algorithm.py b/avaframeConnector_algorithm.py index 624112a..cedb782 100644 --- a/avaframeConnector_algorithm.py +++ b/avaframeConnector_algorithm.py @@ -351,14 +351,14 @@ def name(self): lowercase alphanumeric characters only and no spaces or other formatting characters. """ - return 'FullOperationalRun' + return 'fulloperationalrun' def displayName(self): """ Returns the translated algorithm name, which should be used for any user-visible display of the algorithm name. """ - return self.tr(self.name()) + return self.tr('Full Operational Run') def group(self): """ @@ -385,9 +385,12 @@ def shortHelpString(self) -> str: For more information go to: \n\ AvaFrame Documentation: https://docs.avaframe.org\n\ Homepage: https://avaframe.org\n\ - Praxisleitfaden: https://info.bml.gv.at/dam/jcr:edebd872-2a86-4edf-ac5e-635ef11e35fe/Praxisleitfaden%20LawSim%20WLV%202022%20Gr%C3%BCn.pdf\n' + Praxisleitfaden: https://avaframe.org/reports\n' return self.tr(hstring) + def helpUrl(self): + return "https://docs.avaframe.org/en/latest/connector.html" + def createInstance(self): return AvaFrameConnectorAlgorithm() diff --git a/avaframeGetVersion_algorithm.py b/avaframeGetVersion_algorithm.py index 89bdb28..7d77b7e 100644 --- a/avaframeGetVersion_algorithm.py +++ b/avaframeGetVersion_algorithm.py @@ -114,6 +114,10 @@ def shortHelpString(self) -> str: No need to add anything.' return self.tr(hstring) + + def helpUrl(self): + return "https://docs.avaframe.org/en/latest/connector.html" + def createInstance(self): return AvaFrameGetVersionAlgorithm() diff --git a/avaframeLayerRename_algorithm.py b/avaframeLayerRename_algorithm.py index ac87a16..eb72bd9 100644 --- a/avaframeLayerRename_algorithm.py +++ b/avaframeLayerRename_algorithm.py @@ -178,6 +178,18 @@ def groupId(self): def tr(self, string): return QCoreApplication.translate('Processing', string) + + def shortHelpString(self) -> str: + hstring = 'Renames com1DFA result layers by adding the values of the\ + given variable (from the configuration file). \n\ + For more information go to (or use the help button below): \n\ + AvaFrame Documentation: https://docs.avaframe.org\n\ + ' + + return self.tr(hstring) + + def helpUrl(self): + return "https://docs.avaframe.org/en/latest/connector.html" def createInstance(self): return AvaFrameLayerRenameAlgorithm() diff --git a/avaframeRunCom1DFA_algorithm.py b/avaframeRunCom1DFA_algorithm.py index 0252c15..1c741e6 100644 --- a/avaframeRunCom1DFA_algorithm.py +++ b/avaframeRunCom1DFA_algorithm.py @@ -271,14 +271,14 @@ def name(self): lowercase alphanumeric characters only and no spaces or other formatting characters. """ - return 'RunCom1DFA' + return 'denseflowstandard' def displayName(self): """ Returns the translated algorithm name, which should be used for any user-visible display of the algorithm name. """ - return self.tr(self.name()) + return self.tr('Dense Flow Standard (com1DFA)') def group(self): """ @@ -301,13 +301,17 @@ def tr(self, string): return QCoreApplication.translate('Processing', string) def shortHelpString(self) -> str: - hstring = 'Runs dense flow simulations via com1DFA. \n\ - For more information go to: \n\ + hstring = 'Runs dense flow simulations via module com1DFA. \n\ + For more information go to (or use the help button below): \n\ AvaFrame Documentation: https://docs.avaframe.org\n\ Homepage: https://avaframe.org\n\ - Praxisleitfaden: https://info.bml.gv.at/dam/jcr:edebd872-2a86-4edf-ac5e-635ef11e35fe/Praxisleitfaden%20LawSim%20WLV%202022%20Gr%C3%BCn.pdf\n' + Praxisleitfaden: https://avaframe.org/reports\n' return self.tr(hstring) + # Praxisleitfaden: https://info.bml.gv.at/dam/jcr:edebd872-2a86-4edf-ac5e-635ef11e35fe/Praxisleitfaden%20LawSim%20WLV%202022%20Gr%C3%BCn.pdf\n' + + def helpUrl(self): + return "https://docs.avaframe.org/en/latest/connector.html" def createInstance(self): return AvaFrameRunCom1DFAAlgorithm() diff --git a/avaframeUpdate_algorithm.py b/avaframeUpdate_algorithm.py index 9491820..e407b83 100644 --- a/avaframeUpdate_algorithm.py +++ b/avaframeUpdate_algorithm.py @@ -138,6 +138,9 @@ def shortHelpString(self) -> str: No need to add anything.' return self.tr(hstring) + + def helpUrl(self): + return "https://docs.avaframe.org/en/latest/connector.html" def createInstance(self): return AvaFrameUpdateAlgorithm() diff --git a/metadata.txt b/metadata.txt index ac4543d..00458b5 100644 --- a/metadata.txt +++ b/metadata.txt @@ -4,13 +4,13 @@ [general] name=AvaFrameConnector -qgisMinimumVersion=3.12 +qgisMinimumVersion=3.18 description=Connects to AvaFrame -version=1.1 +version=1.3 author=AvaFrame Team email=felix@avaframe.org -about=Connecting AvaFrame and QGis. NOTE: you need to install avaframe according to the installation instructions at http://docs.avaframe.org. +about=Connecting AvaFrame and QGis. NOTE: see installation instructions at http://docs.avaframe.org/installation.html. tracker=https://github.com/avaframe/QGisAF repository=https://github.com/avaframe/QGisAF @@ -20,7 +20,9 @@ repository=https://github.com/avaframe/QGisAF hasProcessingProvider=yes # Uncomment the following line and add your changelog: -changelog= 1.1 Follow variable renaming of AvaFrame +changelog= 1.3 Add secondary release, rename and update functions, + automatic AvaFrame python package installation + 1.1 Follow variable renaming of AvaFrame # Tags are comma separated with spaces allowed tags=python, avalanche