Skip to content

Commit

Permalink
Update links to FMI Specification documents
Browse files Browse the repository at this point in the history
fixes #677
  • Loading branch information
t-sommer committed Nov 20, 2024
1 parent 8f65d59 commit b38c61d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
3 changes: 2 additions & 1 deletion fmpy/gui/MainWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/')))
Expand Down
25 changes: 22 additions & 3 deletions fmpy/gui/forms/MainWindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -1303,6 +1303,8 @@ QToolButton:checked, QToolButton:hover:pressed {
<property name="title">
<string>FMI &amp;Specifications</string>
</property>
<addaction name="actionOpenFMI3Spec"/>
<addaction name="separator"/>
<addaction name="actionOpenFMI2Spec"/>
<addaction name="separator"/>
<addaction name="actionOpenFMI1SpecCS"/>
Expand Down Expand Up @@ -1725,21 +1727,27 @@ QToolButton:checked, QToolButton:hover:pressed {
</action>
<action name="actionOpenFMI2Spec">
<property name="text">
<string>FMI 2.0.3</string>
<string>FMI 2.0.4</string>
</property>
<property name="toolTip">
<string>FMI 2.0.2</string>
<string>Open FMI Specification 2.0.4</string>
</property>
</action>
<action name="actionOpenFMI1SpecCS">
<property name="text">
<string>FMI 1.0.1 Co-Simulation</string>
<string>FMI 1.0.1 for Co-Simulation</string>
</property>
<property name="toolTip">
<string>Open FMI 1.0.1 Specification for Co-Simulation</string>
</property>
</action>
<action name="actionOpenFMI1SpecME">
<property name="text">
<string>FMI 1.0.1 for Model Exchange</string>
</property>
<property name="toolTip">
<string>Open FMI Specification 1.0.1 for Model Exchange</string>
</property>
</action>
<action name="actionClose">
<property name="text">
Expand Down Expand Up @@ -1981,6 +1989,17 @@ QToolButton:checked, QToolButton:hover:pressed {
<string>&amp;Remove Source Code</string>
</property>
</action>
<action name="actionOpenFMI3Spec">
<property name="text">
<string>FMI 3.0.1</string>
</property>
<property name="toolTip">
<string>Open FMI Specification 3.0.1</string>
</property>
<property name="menuRole">
<enum>QAction::MenuRole::NoRole</enum>
</property>
</action>
</widget>
<customwidgets>
<customwidget>
Expand Down

0 comments on commit b38c61d

Please sign in to comment.