Added run button and parameter dialog
This commit is contained in:
35
BEdit/ui/graph_parameters_dialog.ui
Normal file
35
BEdit/ui/graph_parameters_dialog.ui
Normal file
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>GraphParametersDialog</class>
|
||||
<widget class="QDialog" name="GraphParametersDialog">
|
||||
<property name="geometry"><rect><x>0</x><y>0</y><width>620</width><height>480</height></rect></property>
|
||||
<property name="windowTitle"><string>Graph Parameters</string></property>
|
||||
<layout class="QVBoxLayout" name="dialogLayout">
|
||||
<item>
|
||||
<widget class="QLabel" name="descriptionLabel">
|
||||
<property name="text"><string>Edit parameter values throughout the active component tree.</string></property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QTreeWidget" name="parameterTree">
|
||||
<property name="alternatingRowColors"><bool>true</bool></property>
|
||||
<property name="rootIsDecorated"><bool>true</bool></property>
|
||||
<property name="columnCount"><number>3</number></property>
|
||||
<column><property name="text"><string>Component / Parameter</string></property></column>
|
||||
<column><property name="text"><string>Type</string></property></column>
|
||||
<column><property name="text"><string>Value</string></property></column>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QDialogButtonBox" name="buttonBox">
|
||||
<property name="standardButtons"><set>QDialogButtonBox::StandardButton::Cancel|QDialogButtonBox::StandardButton::Ok</set></property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections>
|
||||
<connection><sender>buttonBox</sender><signal>accepted()</signal><receiver>GraphParametersDialog</receiver><slot>accept()</slot><hints/></connection>
|
||||
<connection><sender>buttonBox</sender><signal>rejected()</signal><receiver>GraphParametersDialog</receiver><slot>reject()</slot><hints/></connection>
|
||||
</connections>
|
||||
</ui>
|
||||
@@ -633,7 +633,9 @@
|
||||
<bool>false</bool>
|
||||
</attribute>
|
||||
<addaction name="actionSimulationSettings"/>
|
||||
<addaction name="actionGraphParameters"/>
|
||||
<addaction name="actionCompile"/>
|
||||
<addaction name="actionRunSimulation"/>
|
||||
</widget>
|
||||
<action name="actionSimulationSettings">
|
||||
<property name="icon">
|
||||
@@ -647,6 +649,14 @@
|
||||
<string>Edit settings stored in the active graph</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionGraphParameters">
|
||||
<property name="icon">
|
||||
<iconset resource="../resources/resources.qrc">
|
||||
<normaloff>:/icons/icons/configure.png</normaloff>:/icons/icons/configure.png</iconset>
|
||||
</property>
|
||||
<property name="text"><string>Graph Parameters</string></property>
|
||||
<property name="statusTip"><string>Edit parameters throughout the active graph</string></property>
|
||||
</action>
|
||||
<action name="actionCompile">
|
||||
<property name="icon">
|
||||
<iconset resource="../resources/resources.qrc">
|
||||
@@ -662,6 +672,15 @@
|
||||
<string>F5</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionRunSimulation">
|
||||
<property name="icon">
|
||||
<iconset resource="../resources/resources.qrc">
|
||||
<normaloff>:/icons/icons/media-playback-start.png</normaloff>:/icons/icons/media-playback-start.png</iconset>
|
||||
</property>
|
||||
<property name="text"><string>Run</string></property>
|
||||
<property name="statusTip"><string>Run the simulation</string></property>
|
||||
<property name="shortcut"><string>F6</string></property>
|
||||
</action>
|
||||
<action name="actionNew">
|
||||
<property name="icon">
|
||||
<iconset resource="../resources/resources.qrc">
|
||||
|
||||
@@ -86,6 +86,27 @@
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="simulationTab">
|
||||
<attribute name="title"><string>Simulation</string></attribute>
|
||||
<layout class="QVBoxLayout" name="simulationTabLayout">
|
||||
<item>
|
||||
<widget class="QGroupBox" name="openModelicaGroupBox">
|
||||
<property name="title"><string>OpenModelica</string></property>
|
||||
<layout class="QVBoxLayout" name="openModelicaLayout">
|
||||
<item><widget class="QLabel" name="openModelicaPathLabel"><property name="text"><string>OpenModelica executable:</string></property></widget></item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="openModelicaPathLayout">
|
||||
<item><widget class="QLineEdit" name="openModelicaPathEdit"><property name="placeholderText"><string>Leave empty to find omc on PATH</string></property></widget></item>
|
||||
<item><widget class="QPushButton" name="browseOpenModelicaButton"><property name="text"><string>Browse…</string></property></widget></item>
|
||||
</layout>
|
||||
</item>
|
||||
<item><widget class="QLabel" name="openModelicaHintLabel"><property name="text"><string>Select the omc executable, for example ~/.local/bin/omc.</string></property><property name="wordWrap"><bool>true</bool></property></widget></item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item><spacer name="simulationSpacer"><property name="orientation"><enum>Qt::Orientation::Vertical</enum></property><property name="sizeHint" stdset="0"><size><width>20</width><height>40</height></size></property></spacer></item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="syntaxTab">
|
||||
<attribute name="title"><string>Text highlighting</string></attribute>
|
||||
<layout class="QVBoxLayout" name="syntaxTabLayout">
|
||||
|
||||
Reference in New Issue
Block a user