sim window save/load

This commit is contained in:
2026-07-21 14:01:55 +02:00
parent cdfc891980
commit ddc004dee5
12 changed files with 532 additions and 164 deletions

View File

@@ -2,90 +2,90 @@
<ui version="4.0">
<class>SimulationWindow</class>
<widget class="QMainWindow" name="SimulationWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1031</width>
<height>881</height>
</rect>
</property>
<property name="windowTitle">
<string>Simulation</string>
</property>
<property name="geometry"><rect><x>0</x><y>0</y><width>900</width><height>650</height></rect></property>
<property name="windowTitle"><string>Simulation</string></property>
<widget class="QWidget" name="centralWidget">
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="resultsPlaceholder">
<property name="minimumSize">
<size>
<width>0</width>
<height>600</height>
</size>
</property>
<property name="text">
<string>Simulation graphs and result controls can be added here.</string>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="statusLabel">
<property name="text">
<string>No simulation has been run yet.</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QProgressBar" name="progressBar">
<property name="maximum">
<number>10000</number>
</property>
<property name="value">
<number>0</number>
</property>
<property name="format">
<string>%p%</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="timeLabel">
<property name="text">
<string>Time: 0 s</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QTabWidget" name="resultsTabs">
<property name="currentIndex">
<number>0</number>
</property>
<widget class="QWidget" name="logTab">
<attribute name="title">
<string>Simulation Log</string>
</attribute>
<layout class="QVBoxLayout" name="logLayout">
<item>
<widget class="QListWidget" name="messageList">
<property name="alternatingRowColors">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
</item>
</layout>
<property name="maximumSize"><size><width>0</width><height>0</height></size></property>
</widget>
<widget class="QMenuBar" name="menuBar">
<widget class="QMenu" name="menuFile">
<property name="title"><string>&amp;File</string></property>
<addaction name="actionOpen"/>
<addaction name="actionSave"/>
<addaction name="separator"/>
<addaction name="actionClear"/>
<addaction name="separator"/>
<addaction name="actionExit"/>
</widget>
<widget class="QMenu" name="menuView">
<property name="title"><string>&amp;View</string></property>
<widget class="QMenu" name="menuPanels"><property name="title"><string>&amp;Panels</string></property></widget>
<widget class="QMenu" name="menuToolbars"><property name="title"><string>&amp;Toolbars</string></property></widget>
<addaction name="menuPanels"/>
<addaction name="menuToolbars"/>
</widget>
<widget class="QMenu" name="menuHelp">
<property name="title"><string>&amp;Help</string></property>
<addaction name="actionAbout"/>
<addaction name="actionAboutQt"/>
</widget>
<addaction name="menuFile"/>
<addaction name="menuView"/>
<addaction name="menuHelp"/>
</widget>
<widget class="QToolBar" name="fileToolbar">
<property name="windowTitle"><string>File</string></property>
<property name="toolButtonStyle"><enum>Qt::ToolButtonStyle::ToolButtonIconOnly</enum></property>
<attribute name="toolBarArea"><enum>TopToolBarArea</enum></attribute>
<addaction name="actionOpen"/>
<addaction name="actionSave"/>
<addaction name="actionClear"/>
</widget>
<widget class="QDockWidget" name="resultsDock">
<property name="windowTitle"><string>Results</string></property>
<attribute name="dockWidgetArea"><number>2</number></attribute>
<widget class="QWidget" name="resultsDockContents">
<layout class="QVBoxLayout" name="resultsLayout">
<item><widget class="QLabel" name="resultsPlaceholder"><property name="text"><string>Simulation graphs and result controls can be added here.</string></property><property name="alignment"><set>Qt::AlignmentFlag::AlignCenter</set></property></widget></item>
</layout>
</widget>
</widget>
<widget class="QDockWidget" name="statusDock">
<property name="windowTitle"><string>Status</string></property>
<attribute name="dockWidgetArea"><number>8</number></attribute>
<widget class="QWidget" name="statusDockContents">
<layout class="QVBoxLayout" name="statusLayout">
<item><widget class="QLabel" name="statusLabel"><property name="text"><string>No simulation has been run yet.</string></property></widget></item>
<item><widget class="QProgressBar" name="progressBar"><property name="maximum"><number>10000</number></property><property name="value"><number>0</number></property><property name="format"><string>%p%</string></property></widget></item>
<item><widget class="QLabel" name="timeLabel"><property name="text"><string>Time: 0 s</string></property></widget></item>
</layout>
</widget>
</widget>
<widget class="QDockWidget" name="logDock">
<property name="windowTitle"><string>Log</string></property>
<attribute name="dockWidgetArea"><number>8</number></attribute>
<widget class="QWidget" name="logDockContents">
<layout class="QVBoxLayout" name="logLayout">
<item><widget class="QListWidget" name="messageList"><property name="alternatingRowColors"><bool>true</bool></property></widget></item>
</layout>
</widget>
</widget>
<action name="actionOpen">
<property name="icon"><iconset resource="../resources/resources.qrc"><normaloff>:/icons/icons/document-open.png</normaloff>:/icons/icons/document-open.png</iconset></property>
<property name="text"><string>&amp;Open…</string></property><property name="shortcut"><string>Ctrl+O</string></property>
</action>
<action name="actionSave">
<property name="icon"><iconset resource="../resources/resources.qrc"><normaloff>:/icons/icons/document-save.png</normaloff>:/icons/icons/document-save.png</iconset></property>
<property name="text"><string>&amp;Save…</string></property><property name="shortcut"><string>Ctrl+S</string></property>
</action>
<action name="actionClear">
<property name="icon"><iconset resource="../resources/resources.qrc"><normaloff>:/icons/icons/document-new.png</normaloff>:/icons/icons/document-new.png</iconset></property>
<property name="text"><string>&amp;Clear</string></property>
</action>
<action name="actionExit"><property name="text"><string>E&amp;xit</string></property><property name="shortcut"><string>Ctrl+W</string></property></action>
<action name="actionAbout"><property name="text"><string>&amp;About Simulation Window</string></property></action>
<action name="actionAboutQt"><property name="text"><string>About &amp;Qt</string></property></action>
</widget>
<resources/>
<resources><include location="../resources/resources.qrc"/></resources>
<connections/>
</ui>