basic openmodelica model emitting

This commit is contained in:
2026-07-20 17:34:18 +02:00
parent 42bf09610b
commit d368b36b8c
26 changed files with 1608 additions and 594 deletions

View File

@@ -365,81 +365,112 @@
</item>
<item>
<widget class="QSplitter" name="workspaceVerticalSplitter">
<property name="orientation"><enum>Qt::Orientation::Vertical</enum></property>
<property name="childrenCollapsible"><bool>false</bool></property>
<widget class="QStackedWidget" name="workspaceStack">
<property name="currentIndex">
<number>0</number>
<property name="orientation">
<enum>Qt::Orientation::Vertical</enum>
</property>
<widget class="QWidget" name="graphPage">
<layout class="QVBoxLayout" name="graphPageLayout">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="GraphWorkspaceView" name="graphView"/>
</item>
</layout>
</widget>
<widget class="QWidget" name="textPage">
<layout class="QVBoxLayout" name="textPageLayout">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="TextDefinitionEditor" name="textDefinitionEditor" native="true"/>
</item>
</layout>
</widget>
<widget class="QWidget" name="emptyPage">
<property name="styleSheet">
<string notr="true">background-color: #9a9a9a;</string>
<property name="childrenCollapsible">
<bool>false</bool>
</property>
<widget class="QStackedWidget" name="workspaceStack">
<property name="currentIndex">
<number>0</number>
</property>
<layout class="QVBoxLayout" name="emptyPageLayout">
<item>
<widget class="QLabel" name="emptyWorkspaceLabel">
<property name="styleSheet">
<string notr="true">background: transparent; color: #202020;</string>
</property>
<property name="text">
<string>No document open</string>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignCenter</set>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="graphPage">
<layout class="QVBoxLayout" name="graphPageLayout">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="GraphWorkspaceView" name="graphView"/>
</item>
</layout>
</widget>
<widget class="QWidget" name="textPage">
<layout class="QVBoxLayout" name="textPageLayout">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="TextDefinitionEditor" name="textDefinitionEditor" native="true"/>
</item>
</layout>
</widget>
<widget class="QWidget" name="emptyPage">
<property name="styleSheet">
<string notr="true">background-color: #9a9a9a;</string>
</property>
<layout class="QVBoxLayout" name="emptyPageLayout">
<item>
<widget class="QLabel" name="emptyWorkspaceLabel">
<property name="styleSheet">
<string notr="true">background: transparent; color: #202020;</string>
</property>
<property name="text">
<string>No document open</string>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignCenter</set>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
<widget class="QTabWidget" name="outputTabs">
<property name="minimumSize"><size><width>0</width><height>100</height></size></property>
<property name="minimumSize">
<size>
<width>0</width>
<height>100</height>
</size>
</property>
<widget class="QWidget" name="logTab">
<attribute name="title"><string>Log</string></attribute>
<attribute name="title">
<string>Log</string>
</attribute>
<layout class="QVBoxLayout" name="logTabLayout">
<property name="leftMargin"><number>0</number></property>
<property name="topMargin"><number>0</number></property>
<property name="rightMargin"><number>0</number></property>
<property name="bottomMargin"><number>0</number></property>
<item><widget class="QPlainTextEdit" name="logOutput"><property name="readOnly"><bool>true</bool></property><property name="maximumBlockCount"><number>5000</number></property><property name="placeholderText"><string>Application messages appear here.</string></property></widget></item>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QPlainTextEdit" name="logOutput">
<property name="readOnly">
<bool>true</bool>
</property>
<property name="maximumBlockCount">
<number>5000</number>
</property>
<property name="placeholderText">
<string>Application messages appear here.</string>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
@@ -467,6 +498,7 @@
<addaction name="actionNew"/>
<addaction name="actionOpen"/>
<addaction name="actionReloadLibraries"/>
<addaction name="actionReloadSimulation"/>
<addaction name="separator"/>
<addaction name="actionSave"/>
<addaction name="actionSaveAs"/>
@@ -626,6 +658,9 @@
<property name="statusTip">
<string>Compile the active graph for simulation</string>
</property>
<property name="shortcut">
<string>F5</string>
</property>
</action>
<action name="actionNew">
<property name="icon">
@@ -716,7 +751,18 @@
<string>Reload configured library files from disk</string>
</property>
<property name="shortcut">
<string>F5</string>
<string>Shift+F5</string>
</property>
</action>
<action name="actionReloadSimulation">
<property name="text">
<string>Reload &amp;Simulation Code</string>
</property>
<property name="statusTip">
<string>Reload the simulation package while preserving runtime state</string>
</property>
<property name="shortcut">
<string>Ctrl+F5</string>
</property>
</action>
<action name="actionSave">