460 lines
13 KiB
XML
460 lines
13 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>MainWindow</class>
|
|
<widget class="QMainWindow" name="MainWindow">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>683</width>
|
|
<height>499</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>PixelWars</string>
|
|
</property>
|
|
<widget class="QWidget" name="centralWidget">
|
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
|
<property name="spacing">
|
|
<number>0</number>
|
|
</property>
|
|
<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="DrawWidget" name="drawWidget"/>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<widget class="QDockWidget" name="dockWidget">
|
|
<attribute name="dockWidgetArea">
|
|
<number>1</number>
|
|
</attribute>
|
|
<widget class="QWidget" name="dockWidgetContents">
|
|
<layout class="QVBoxLayout" name="verticalLayout">
|
|
<property name="leftMargin">
|
|
<number>9</number>
|
|
</property>
|
|
<property name="topMargin">
|
|
<number>9</number>
|
|
</property>
|
|
<property name="rightMargin">
|
|
<number>9</number>
|
|
</property>
|
|
<property name="bottomMargin">
|
|
<number>9</number>
|
|
</property>
|
|
<item>
|
|
<widget class="QWidget" name="widget_2" native="true">
|
|
<layout class="QGridLayout" name="gridLayout_2" columnstretch="0,0,0">
|
|
<property name="leftMargin">
|
|
<number>5</number>
|
|
</property>
|
|
<property name="topMargin">
|
|
<number>5</number>
|
|
</property>
|
|
<property name="rightMargin">
|
|
<number>5</number>
|
|
</property>
|
|
<property name="bottomMargin">
|
|
<number>5</number>
|
|
</property>
|
|
<property name="spacing">
|
|
<number>10</number>
|
|
</property>
|
|
<item row="6" column="1" colspan="2">
|
|
<widget class="QLabel" name="dateLabel">
|
|
<property name="text">
|
|
<string>0</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="8" column="0">
|
|
<widget class="QLabel" name="label_6">
|
|
<property name="text">
|
|
<string>Population</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="8" column="1" colspan="2">
|
|
<widget class="QLabel" name="populationLabel">
|
|
<property name="text">
|
|
<string>0</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="5" column="0" colspan="3">
|
|
<widget class="QSlider" name="simSpeedSlider">
|
|
<property name="enabled">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="minimum">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="maximum">
|
|
<number>980</number>
|
|
</property>
|
|
<property name="singleStep">
|
|
<number>10</number>
|
|
</property>
|
|
<property name="pageStep">
|
|
<number>10</number>
|
|
</property>
|
|
<property name="value">
|
|
<number>980</number>
|
|
</property>
|
|
<property name="sliderPosition">
|
|
<number>980</number>
|
|
</property>
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="invertedAppearance">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="invertedControls">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="tickPosition">
|
|
<enum>QSlider::TicksBelow</enum>
|
|
</property>
|
|
<property name="tickInterval">
|
|
<number>100</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="6" column="0">
|
|
<widget class="QLabel" name="label_5">
|
|
<property name="text">
|
|
<string>Date</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="12" column="0" colspan="3">
|
|
<spacer name="verticalSpacer">
|
|
<property name="orientation">
|
|
<enum>Qt::Vertical</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>20</width>
|
|
<height>40</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
<item row="4" column="0">
|
|
<widget class="QLabel" name="label_3">
|
|
<property name="text">
|
|
<string>Simulation Speed</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="9" column="0" colspan="3">
|
|
<widget class="Line" name="line">
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="11" column="0" colspan="3">
|
|
<widget class="QGroupBox" name="advancedGroupBox">
|
|
<property name="title">
|
|
<string>Advanced Settings</string>
|
|
</property>
|
|
<property name="flat">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="checkable">
|
|
<bool>false</bool>
|
|
</property>
|
|
<layout class="QFormLayout" name="formLayout">
|
|
<property name="leftMargin">
|
|
<number>5</number>
|
|
</property>
|
|
<property name="topMargin">
|
|
<number>5</number>
|
|
</property>
|
|
<property name="rightMargin">
|
|
<number>5</number>
|
|
</property>
|
|
<property name="bottomMargin">
|
|
<number>5</number>
|
|
</property>
|
|
<item row="1" column="0">
|
|
<widget class="QLabel" name="label">
|
|
<property name="text">
|
|
<string>Spherical / Flat</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="1">
|
|
<widget class="QSlider" name="flatSphereSlider">
|
|
<property name="enabled">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="layoutDirection">
|
|
<enum>Qt::LeftToRight</enum>
|
|
</property>
|
|
<property name="maximum">
|
|
<number>100</number>
|
|
</property>
|
|
<property name="singleStep">
|
|
<number>5</number>
|
|
</property>
|
|
<property name="pageStep">
|
|
<number>5</number>
|
|
</property>
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="tickPosition">
|
|
<enum>QSlider::TicksBelow</enum>
|
|
</property>
|
|
<property name="tickInterval">
|
|
<number>10</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="0">
|
|
<widget class="QLabel" name="label_2">
|
|
<property name="text">
|
|
<string>surface ratio</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="1">
|
|
<widget class="QSlider" name="surfaceRatioSlider">
|
|
<property name="enabled">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="minimum">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="maximum">
|
|
<number>100</number>
|
|
</property>
|
|
<property name="singleStep">
|
|
<number>10</number>
|
|
</property>
|
|
<property name="pageStep">
|
|
<number>10</number>
|
|
</property>
|
|
<property name="value">
|
|
<number>50</number>
|
|
</property>
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="tickPosition">
|
|
<enum>QSlider::TicksBelow</enum>
|
|
</property>
|
|
<property name="tickInterval">
|
|
<number>10</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="0" colspan="2">
|
|
<widget class="QPushButton" name="resetToDefaultAdvanced">
|
|
<property name="text">
|
|
<string>Reset to default</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item row="10" column="0">
|
|
<widget class="QCheckBox" name="advancedCheckBox">
|
|
<property name="text">
|
|
<string>Advanced</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</widget>
|
|
<widget class="QToolBar" name="toolBar">
|
|
<property name="windowTitle">
|
|
<string>toolBar</string>
|
|
</property>
|
|
<property name="movable">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="allowedAreas">
|
|
<set>Qt::TopToolBarArea</set>
|
|
</property>
|
|
<property name="floatable">
|
|
<bool>false</bool>
|
|
</property>
|
|
<attribute name="toolBarArea">
|
|
<enum>TopToolBarArea</enum>
|
|
</attribute>
|
|
<attribute name="toolBarBreak">
|
|
<bool>false</bool>
|
|
</attribute>
|
|
<addaction name="actionCreate_new_simulation"/>
|
|
<addaction name="actionStop"/>
|
|
<addaction name="separator"/>
|
|
<addaction name="actionPlayPause"/>
|
|
<addaction name="actionAction_step"/>
|
|
<addaction name="separator"/>
|
|
<addaction name="actionControl_Panel"/>
|
|
</widget>
|
|
<widget class="QStatusBar" name="statusBar"/>
|
|
<action name="actionControl_Panel">
|
|
<property name="checkable">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="checked">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="text">
|
|
<string>Toggle Control Panel</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionPlayPause">
|
|
<property name="checkable">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="../resources.qrc">
|
|
<normaloff>:/qss_icons/rc/pause.png</normaloff>
|
|
<normalon>:/qss_icons/rc/play.png</normalon>:/qss_icons/rc/pause.png</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>PlayPause</string>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string><html><head/><body><p>Play / Pause</p></body></html></string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>Space</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionStop">
|
|
<property name="icon">
|
|
<iconset resource="../resources.qrc">
|
|
<normaloff>:/qss_icons/rc/stop.png</normaloff>:/qss_icons/rc/stop.png</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>Stop</string>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>Stop this simulation</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionCreate_new_simulation">
|
|
<property name="icon">
|
|
<iconset resource="../resources.qrc">
|
|
<normaloff>:/qss_icons/rc/PixelWars.png</normaloff>:/qss_icons/rc/PixelWars.png</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>Create new simulation</string>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>Create new simulation</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionAction_step">
|
|
<property name="icon">
|
|
<iconset resource="../resources.qrc">
|
|
<normaloff>:/qss_icons/rc/step.png</normaloff>:/qss_icons/rc/step.png</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>Action step</string>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>performs only one turn of simulation</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>Right</string>
|
|
</property>
|
|
</action>
|
|
</widget>
|
|
<layoutdefault spacing="6" margin="11"/>
|
|
<customwidgets>
|
|
<customwidget>
|
|
<class>DrawWidget</class>
|
|
<extends>QOpenGLWidget</extends>
|
|
<header>drawwidget.h</header>
|
|
<slots>
|
|
<signal>pauseEvent()</signal>
|
|
<signal>updateFPS(double,double)</signal>
|
|
<slot>addParticles()</slot>
|
|
<slot>addMesh()</slot>
|
|
<slot>resetScene()</slot>
|
|
<slot>setPaused(bool)</slot>
|
|
<slot>resetCamera()</slot>
|
|
<slot>setTimeRate(int)</slot>
|
|
<slot>setNbIterations(int)</slot>
|
|
</slots>
|
|
</customwidget>
|
|
</customwidgets>
|
|
<resources>
|
|
<include location="../resources.qrc"/>
|
|
</resources>
|
|
<connections>
|
|
<connection>
|
|
<sender>actionControl_Panel</sender>
|
|
<signal>toggled(bool)</signal>
|
|
<receiver>dockWidget</receiver>
|
|
<slot>setVisible(bool)</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>-1</x>
|
|
<y>-1</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>129</x>
|
|
<y>242</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>dockWidget</sender>
|
|
<signal>visibilityChanged(bool)</signal>
|
|
<receiver>actionControl_Panel</receiver>
|
|
<slot>setChecked(bool)</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>129</x>
|
|
<y>242</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>-1</x>
|
|
<y>-1</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>advancedCheckBox</sender>
|
|
<signal>toggled(bool)</signal>
|
|
<receiver>advancedGroupBox</receiver>
|
|
<slot>setVisible(bool)</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>54</x>
|
|
<y>183</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>102</x>
|
|
<y>240</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
</connections>
|
|
</ui>
|