From b38c61dd166a907695d2f4c50ce867968e7e0181 Mon Sep 17 00:00:00 2001 From: Torsten Sommer Date: Wed, 20 Nov 2024 16:19:54 +0100 Subject: [PATCH] Update links to FMI Specification documents fixes #677 --- fmpy/gui/MainWindow.py | 3 ++- fmpy/gui/forms/MainWindow.ui | 25 ++++++++++++++++++++++--- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/fmpy/gui/MainWindow.py b/fmpy/gui/MainWindow.py index b8f39c16..6e79d547 100644 --- a/fmpy/gui/MainWindow.py +++ b/fmpy/gui/MainWindow.py @@ -286,9 +286,10 @@ def __init__(self, parent=None): self.ui.actionAddCoSimulationWrapper.triggered.connect(self.addCoSimulationWrapper) # help menu + self.ui.actionOpenFMI3Spec.triggered.connect(lambda: QDesktopServices.openUrl(QUrl('https://fmi-standard.org/docs/3.0.1/'))) + self.ui.actionOpenFMI2Spec.triggered.connect(lambda: QDesktopServices.openUrl(QUrl('https://github.com/modelica/fmi-standard/releases/download/v2.0.4/FMI-Specification-2.0.4.pdf'))) self.ui.actionOpenFMI1SpecCS.triggered.connect(lambda: QDesktopServices.openUrl(QUrl('https://fmi-standard.org/assets/releases/FMI_for_CoSimulation_v1.0.1.pdf'))) self.ui.actionOpenFMI1SpecME.triggered.connect(lambda: QDesktopServices.openUrl(QUrl('https://fmi-standard.org/assets/releases/FMI_for_ModelExchange_v1.0.1.pdf'))) - self.ui.actionOpenFMI2Spec.triggered.connect(lambda: QDesktopServices.openUrl(QUrl('https://github.com/modelica/fmi-standard/releases/download/v2.0.3/FMI-Specification-2.0.3.pdf'))) self.ui.actionOpenTestFMUs.triggered.connect(lambda: QDesktopServices.openUrl(QUrl('https://github.com/modelica/fmi-cross-check/tree/master/fmus'))) self.ui.actionOpenWebsite.triggered.connect(lambda: QDesktopServices.openUrl(QUrl('https://github.com/CATIA-Systems/FMPy'))) self.ui.actionShowReleaseNotes.triggered.connect(lambda: QDesktopServices.openUrl(QUrl('https://fmpy.readthedocs.io/en/latest/changelog/'))) diff --git a/fmpy/gui/forms/MainWindow.ui b/fmpy/gui/forms/MainWindow.ui index 71793a13..081ceb7b 100644 --- a/fmpy/gui/forms/MainWindow.ui +++ b/fmpy/gui/forms/MainWindow.ui @@ -1303,6 +1303,8 @@ QToolButton:checked, QToolButton:hover:pressed { FMI &Specifications + + @@ -1725,21 +1727,27 @@ QToolButton:checked, QToolButton:hover:pressed { - FMI 2.0.3 + FMI 2.0.4 - FMI 2.0.2 + Open FMI Specification 2.0.4 - FMI 1.0.1 Co-Simulation + FMI 1.0.1 for Co-Simulation + + + Open FMI 1.0.1 Specification for Co-Simulation FMI 1.0.1 for Model Exchange + + Open FMI Specification 1.0.1 for Model Exchange + @@ -1981,6 +1989,17 @@ QToolButton:checked, QToolButton:hover:pressed { &Remove Source Code + + + FMI 3.0.1 + + + Open FMI Specification 3.0.1 + + + QAction::MenuRole::NoRole + +