261 lines
11 KiB
XML
261 lines
11 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>SettingsDialog</class>
|
|
<widget class="QDialog" name="SettingsDialog">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>480</width>
|
|
<height>520</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>Settings</string>
|
|
</property>
|
|
<property name="modal">
|
|
<bool>true</bool>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="dialogLayout">
|
|
<item>
|
|
<widget class="QTabWidget" name="settingsTabs">
|
|
<property name="currentIndex">
|
|
<number>0</number>
|
|
</property>
|
|
<widget class="QWidget" name="generalTab">
|
|
<attribute name="title">
|
|
<string>General</string>
|
|
</attribute>
|
|
<layout class="QVBoxLayout" name="generalLayout">
|
|
<item>
|
|
<widget class="QGroupBox" name="autosaveGroupBox">
|
|
<property name="title">
|
|
<string>Automatic saving</string>
|
|
</property>
|
|
<property name="checkable">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="checked">
|
|
<bool>false</bool>
|
|
</property>
|
|
<layout class="QFormLayout" name="autosaveLayout">
|
|
<item row="0" column="1">
|
|
<widget class="QSpinBox" name="autosaveIntervalSpinBox">
|
|
<property name="suffix">
|
|
<string> minutes</string>
|
|
</property>
|
|
<property name="minimum">
|
|
<number>1</number>
|
|
</property>
|
|
<property name="maximum">
|
|
<number>120</number>
|
|
</property>
|
|
<property name="value">
|
|
<number>5</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QGroupBox" name="editorGridsGroupBox">
|
|
<property name="title"><string>Editor grids</string></property>
|
|
<layout class="QFormLayout" name="editorGridsLayout">
|
|
<item row="0" column="0"><widget class="QLabel" name="graphGridLabel"><property name="text"><string>Workspace grid size:</string></property></widget></item>
|
|
<item row="0" column="1"><widget class="QSpinBox" name="graphGridSpinBox"><property name="suffix"><string> units</string></property><property name="minimum"><number>8</number></property><property name="maximum"><number>512</number></property><property name="value"><number>64</number></property></widget></item>
|
|
<item row="1" column="0"><widget class="QLabel" name="graphSnapLabel"><property name="text"><string>Workspace snapping size:</string></property></widget></item>
|
|
<item row="1" column="1"><widget class="QSpinBox" name="graphSnapSpinBox"><property name="suffix"><string> units</string></property><property name="minimum"><number>1</number></property><property name="maximum"><number>128</number></property><property name="value"><number>8</number></property></widget></item>
|
|
<item row="2" column="0"><widget class="QLabel" name="iconGridLabel"><property name="text"><string>Icon grid size:</string></property></widget></item>
|
|
<item row="2" column="1"><widget class="QSpinBox" name="iconGridSpinBox"><property name="suffix"><string> units</string></property><property name="minimum"><number>1</number></property><property name="maximum"><number>64</number></property><property name="value"><number>8</number></property></widget></item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<spacer name="generalSpacer">
|
|
<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="bondGraphTab">
|
|
<attribute name="title">
|
|
<string>Bond graph</string>
|
|
</attribute>
|
|
<layout class="QVBoxLayout" name="bondGraphLayout">
|
|
<item>
|
|
<widget class="QGroupBox" name="causalityGroupBox">
|
|
<property name="title">
|
|
<string>Causality</string>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="causalityLayout">
|
|
<item>
|
|
<widget class="QCheckBox" name="automaticCausalityCheckBox">
|
|
<property name="text">
|
|
<string>Infer causality when connections are added or removed</string>
|
|
</property>
|
|
<property name="checked">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLabel" name="automaticCausalityHintLabel">
|
|
<property name="text">
|
|
<string>When disabled, displayed causalities are updated only when compiling, exporting, or running the model.</string>
|
|
</property>
|
|
<property name="wordWrap">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<spacer name="bondGraphSpacer">
|
|
<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="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">
|
|
<item><widget class="QLabel" name="syntaxHintLabel"><property name="text"><string>Double-click a colour cell to choose a colour. Word lists remain editable in data/syntax/openmodelica.json.</string></property><property name="wordWrap"><bool>true</bool></property></widget></item>
|
|
<item><widget class="QTableWidget" name="syntaxStylesTable"><property name="selectionBehavior"><enum>QAbstractItemView::SelectionBehavior::SelectRows</enum></property><property name="columnCount"><number>4</number></property><column><property name="text"><string>Expression type</string></property></column><column><property name="text"><string>Colour</string></property></column><column><property name="text"><string>Bold</string></property></column><column><property name="text"><string>Italic</string></property></column></widget></item>
|
|
</layout>
|
|
</widget>
|
|
<widget class="QWidget" name="librariesTab">
|
|
<attribute name="title">
|
|
<string>Libraries</string>
|
|
</attribute>
|
|
<layout class="QVBoxLayout" name="librariesTabLayout">
|
|
<item>
|
|
<widget class="QLabel" name="libraryPathsLabel">
|
|
<property name="text">
|
|
<string>Load library JSON or BEdit Binary files from these files or folders at startup:</string>
|
|
</property>
|
|
<property name="wordWrap">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QListWidget" name="libraryPathsList"/>
|
|
</item>
|
|
<item>
|
|
<layout class="QHBoxLayout" name="libraryPathButtonsLayout">
|
|
<item>
|
|
<widget class="QPushButton" name="addLibraryFileButton">
|
|
<property name="text"><string>Add File…</string></property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="addLibraryFolderButton">
|
|
<property name="text"><string>Add Folder…</string></property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="removeLibraryPathButton">
|
|
<property name="text"><string>Remove</string></property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<spacer name="libraryButtonsSpacer">
|
|
<property name="orientation"><enum>Qt::Orientation::Horizontal</enum></property>
|
|
<property name="sizeHint" stdset="0"><size><width>40</width><height>20</height></size></property>
|
|
</spacer>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QDialogButtonBox" name="buttonBox">
|
|
<property name="orientation">
|
|
<enum>Qt::Orientation::Horizontal</enum>
|
|
</property>
|
|
<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>SettingsDialog</receiver>
|
|
<slot>accept()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>390</x>
|
|
<y>275</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>240</x>
|
|
<y>150</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>buttonBox</sender>
|
|
<signal>rejected()</signal>
|
|
<receiver>SettingsDialog</receiver>
|
|
<slot>reject()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>390</x>
|
|
<y>275</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>240</x>
|
|
<y>150</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
</connections>
|
|
</ui>
|