/mainwindow.ui
http://nscow.googlecode.com/ · Unknown · 671 lines · 671 code · 0 blank · 0 comment · 0 complexity · 0bd032a8b14cd6ba0abc322a1e8e1ddb MD5 · raw file
- <?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>860</width>
- <height>538</height>
- </rect>
- </property>
- <property name="windowTitle">
- <string>Navier-Stokes's Cow</string>
- </property>
- <property name="windowIcon">
- <iconset>
- <normaloff>:/img/purplecow.png</normaloff>:/img/purplecow.png</iconset>
- </property>
- <widget class="QWidget" name="centralWidget">
- <layout class="QVBoxLayout" name="verticalLayout_2">
- <item>
- <layout class="QHBoxLayout" name="horizontalLayout">
- <item>
- <spacer name="horizontalSpacer_5">
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>40</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </item>
- <item>
- <widget class="DrawBox" name="drawBox">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Maximum" vsizetype="Maximum">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="cursor">
- <cursorShape>ArrowCursor</cursorShape>
- </property>
- <property name="mouseTracking">
- <bool>false</bool>
- </property>
- <property name="frameShape">
- <enum>QFrame::StyledPanel</enum>
- </property>
- <property name="frameShadow">
- <enum>QFrame::Sunken</enum>
- </property>
- <property name="text">
- <string/>
- </property>
- <property name="alignment">
- <set>Qt::AlignCenter</set>
- </property>
- </widget>
- </item>
- <item>
- <spacer name="horizontalSpacer_4">
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
- </property>
- <property name="sizeType">
- <enum>QSizePolicy::Fixed</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>40</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </item>
- <item>
- <layout class="QGridLayout" name="gridLayout">
- <property name="rightMargin">
- <number>0</number>
- </property>
- <item row="0" column="0">
- <widget class="QLabel" name="label">
- <property name="text">
- <string>Viscosity</string>
- </property>
- <property name="alignment">
- <set>Qt::AlignCenter</set>
- </property>
- </widget>
- </item>
- <item row="1" column="0">
- <layout class="QHBoxLayout" name="horizontalLayout_3">
- <item>
- <widget class="QSlider" name="nuSlider">
- <property name="styleSheet">
- <string notr="true"/>
- </property>
- <property name="minimum">
- <number>1</number>
- </property>
- <property name="maximum">
- <number>100</number>
- </property>
- <property name="orientation">
- <enum>Qt::Vertical</enum>
- </property>
- </widget>
- </item>
- </layout>
- </item>
- <item row="2" column="0">
- <widget class="QLabel" name="nuValue">
- <property name="text">
- <string/>
- </property>
- <property name="alignment">
- <set>Qt::AlignCenter</set>
- </property>
- </widget>
- </item>
- <item row="3" column="0">
- <widget class="QLabel" name="label_7">
- <property name="text">
- <string>Tool Radius</string>
- </property>
- <property name="alignment">
- <set>Qt::AlignCenter</set>
- </property>
- </widget>
- </item>
- <item row="5" column="0">
- <widget class="QLabel" name="rToolValue">
- <property name="text">
- <string/>
- </property>
- <property name="alignment">
- <set>Qt::AlignCenter</set>
- </property>
- </widget>
- </item>
- <item row="0" column="1">
- <widget class="QLabel" name="label_4">
- <property name="text">
- <string>Time Step</string>
- </property>
- <property name="alignment">
- <set>Qt::AlignCenter</set>
- </property>
- </widget>
- </item>
- <item row="1" column="1">
- <layout class="QHBoxLayout" name="horizontalLayout_4">
- <item>
- <widget class="QSlider" name="dtSlider">
- <property name="minimum">
- <number>1</number>
- </property>
- <property name="maximum">
- <number>1000</number>
- </property>
- <property name="orientation">
- <enum>Qt::Vertical</enum>
- </property>
- </widget>
- </item>
- </layout>
- </item>
- <item row="2" column="1">
- <widget class="QLabel" name="dtValue">
- <property name="text">
- <string/>
- </property>
- <property name="alignment">
- <set>Qt::AlignCenter</set>
- </property>
- </widget>
- </item>
- <item row="3" column="1">
- <widget class="QLabel" name="label_8">
- <property name="text">
- <string>Tool Strength</string>
- </property>
- </widget>
- </item>
- <item row="0" column="2">
- <widget class="QLabel" name="label_5">
- <property name="text">
- <string>Grid Scale</string>
- </property>
- <property name="alignment">
- <set>Qt::AlignCenter</set>
- </property>
- </widget>
- </item>
- <item row="2" column="2">
- <widget class="QLabel" name="dxValue">
- <property name="text">
- <string/>
- </property>
- <property name="alignment">
- <set>Qt::AlignCenter</set>
- </property>
- </widget>
- </item>
- <item row="1" column="2">
- <layout class="QHBoxLayout" name="horizontalLayout_5">
- <item>
- <widget class="QSlider" name="dxSlider">
- <property name="minimum">
- <number>1</number>
- </property>
- <property name="maximum">
- <number>1000</number>
- </property>
- <property name="orientation">
- <enum>Qt::Vertical</enum>
- </property>
- </widget>
- </item>
- </layout>
- </item>
- <item row="4" column="0">
- <layout class="QHBoxLayout" name="horizontalLayout_7">
- <item>
- <widget class="QSlider" name="rToolSlider">
- <property name="minimum">
- <number>1</number>
- </property>
- <property name="maximum">
- <number>10</number>
- </property>
- <property name="orientation">
- <enum>Qt::Vertical</enum>
- </property>
- </widget>
- </item>
- </layout>
- </item>
- <item row="4" column="1">
- <layout class="QHBoxLayout" name="horizontalLayout_8">
- <item>
- <widget class="QSlider" name="magToolSlider">
- <property name="minimum">
- <number>1</number>
- </property>
- <property name="maximum">
- <number>10</number>
- </property>
- <property name="orientation">
- <enum>Qt::Vertical</enum>
- </property>
- </widget>
- </item>
- </layout>
- </item>
- <item row="3" column="2">
- <widget class="QLabel" name="label_6">
- <property name="text">
- <string>Vorticity Factor</string>
- </property>
- <property name="alignment">
- <set>Qt::AlignCenter</set>
- </property>
- </widget>
- </item>
- <item row="4" column="2">
- <layout class="QHBoxLayout" name="horizontalLayout_6">
- <item>
- <widget class="QSlider" name="eSlider">
- <property name="maximum">
- <number>100</number>
- </property>
- <property name="orientation">
- <enum>Qt::Vertical</enum>
- </property>
- </widget>
- </item>
- </layout>
- </item>
- <item row="5" column="2">
- <widget class="QLabel" name="eValue">
- <property name="text">
- <string/>
- </property>
- <property name="alignment">
- <set>Qt::AlignCenter</set>
- </property>
- </widget>
- </item>
- <item row="0" column="3">
- <widget class="QLabel" name="label_9">
- <property name="text">
- <string>Dye Dispersion</string>
- </property>
- </widget>
- </item>
- <item row="1" column="3">
- <layout class="QHBoxLayout" name="horizontalLayout_9">
- <item>
- <widget class="QSlider" name="dcSlider">
- <property name="minimum">
- <number>1</number>
- </property>
- <property name="maximum">
- <number>100</number>
- </property>
- <property name="orientation">
- <enum>Qt::Vertical</enum>
- </property>
- </widget>
- </item>
- </layout>
- </item>
- <item row="5" column="1">
- <widget class="QLabel" name="magToolValue">
- <property name="text">
- <string/>
- </property>
- <property name="alignment">
- <set>Qt::AlignCenter</set>
- </property>
- </widget>
- </item>
- <item row="2" column="3">
- <widget class="QLabel" name="dcValue">
- <property name="text">
- <string/>
- </property>
- <property name="alignment">
- <set>Qt::AlignCenter</set>
- </property>
- </widget>
- </item>
- </layout>
- </item>
- <item>
- <spacer name="horizontalSpacer">
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>40</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </item>
- </layout>
- </item>
- <item>
- <layout class="QHBoxLayout" name="horizontalLayout_2">
- <item>
- <spacer name="horizontalSpacer_6">
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>40</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </item>
- <item>
- <widget class="QPushButton" name="runButton">
- <property name="text">
- <string>&Run...</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QPushButton" name="stopButton">
- <property name="enabled">
- <bool>false</bool>
- </property>
- <property name="text">
- <string>&Stop</string>
- </property>
- </widget>
- </item>
- <item>
- <spacer name="horizontalSpacer_3">
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
- </property>
- <property name="sizeType">
- <enum>QSizePolicy::Fixed</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>40</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </item>
- <item>
- <widget class="QLabel" name="label_3">
- <property name="text">
- <string>Resolution:</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QLineEdit" name="xdimValue">
- <property name="maximumSize">
- <size>
- <width>50</width>
- <height>16777215</height>
- </size>
- </property>
- <property name="layoutDirection">
- <enum>Qt::RightToLeft</enum>
- </property>
- <property name="text">
- <string>50</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QLabel" name="label_2">
- <property name="text">
- <string>x</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QLineEdit" name="ydimValue">
- <property name="maximumSize">
- <size>
- <width>50</width>
- <height>16777215</height>
- </size>
- </property>
- <property name="layoutDirection">
- <enum>Qt::RightToLeft</enum>
- </property>
- <property name="text">
- <string>50</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QComboBox" name="outputBox">
- <item>
- <property name="text">
- <string>Density</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>Velocity Field</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>Pressure Field</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>Vorticity</string>
- </property>
- </item>
- </widget>
- </item>
- <item>
- <spacer name="horizontalSpacer_2">
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>40</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </item>
- </layout>
- </item>
- <item>
- <spacer name="verticalSpacer">
- <property name="orientation">
- <enum>Qt::Vertical</enum>
- </property>
- <property name="sizeType">
- <enum>QSizePolicy::MinimumExpanding</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>20</width>
- <height>1</height>
- </size>
- </property>
- </spacer>
- </item>
- </layout>
- </widget>
- <widget class="QStatusBar" name="statusBar"/>
- <widget class="QToolBar" name="toolBar">
- <property name="windowTitle">
- <string>toolBar</string>
- </property>
- <attribute name="toolBarArea">
- <enum>TopToolBarArea</enum>
- </attribute>
- <attribute name="toolBarBreak">
- <bool>false</bool>
- </attribute>
- <addaction name="actionAdd_Force"/>
- <addaction name="actionAdd_Dye"/>
- <addaction name="actionOutward_Force"/>
- <addaction name="actionInward_Force"/>
- <addaction name="separator"/>
- <addaction name="actionAbout"/>
- <addaction name="actionExit"/>
- </widget>
- <action name="actionAdd_Force">
- <property name="checkable">
- <bool>true</bool>
- </property>
- <property name="checked">
- <bool>true</bool>
- </property>
- <property name="icon">
- <iconset>
- <normaloff>:/img/Logo_physics.png</normaloff>:/img/Logo_physics.png</iconset>
- </property>
- <property name="text">
- <string>Add Force</string>
- </property>
- <property name="toolTip">
- <string>Add Force</string>
- </property>
- <property name="shortcut">
- <string>F</string>
- </property>
- </action>
- <action name="actionAdd_Dye">
- <property name="checkable">
- <bool>true</bool>
- </property>
- <property name="icon">
- <iconset>
- <normaloff>:/img/Beakerblue.png</normaloff>:/img/Beakerblue.png</iconset>
- </property>
- <property name="text">
- <string>Add Dye</string>
- </property>
- <property name="shortcut">
- <string>D</string>
- </property>
- </action>
- <action name="actionOutward_Force">
- <property name="checkable">
- <bool>true</bool>
- </property>
- <property name="icon">
- <iconset>
- <normaloff>:/img/Arrow_out.png</normaloff>:/img/Arrow_out.png</iconset>
- </property>
- <property name="text">
- <string>Outward Force</string>
- </property>
- <property name="toolTip">
- <string>Outward Force</string>
- </property>
- <property name="shortcut">
- <string>O</string>
- </property>
- </action>
- <action name="actionInward_Force">
- <property name="checkable">
- <bool>true</bool>
- </property>
- <property name="icon">
- <iconset>
- <normaloff>:/img/Arrow_in.png</normaloff>:/img/Arrow_in.png</iconset>
- </property>
- <property name="text">
- <string>Inward Force</string>
- </property>
- <property name="shortcut">
- <string>I</string>
- </property>
- </action>
- <action name="actionAbout">
- <property name="icon">
- <iconset>
- <normaloff>:/img/purplecow.png</normaloff>:/img/purplecow.png</iconset>
- </property>
- <property name="text">
- <string>&About</string>
- </property>
- <property name="shortcut">
- <string>A</string>
- </property>
- </action>
- <action name="actionExit">
- <property name="icon">
- <iconset>
- <normaloff>:/img/Gnome-application-exit.png</normaloff>:/img/Gnome-application-exit.png</iconset>
- </property>
- <property name="text">
- <string>&Exit</string>
- </property>
- <property name="shortcut">
- <string>Ctrl+Q</string>
- </property>
- </action>
- </widget>
- <layoutdefault spacing="6" margin="11"/>
- <customwidgets>
- <customwidget>
- <class>DrawBox</class>
- <extends>QLabel</extends>
- <header>drawbox.h</header>
- <slots>
- <signal>setNuValue()</signal>
- </slots>
- </customwidget>
- </customwidgets>
- <resources/>
- <connections>
- <connection>
- <sender>runButton</sender>
- <signal>clicked()</signal>
- <receiver>MainWindow</receiver>
- <slot>run()</slot>
- <hints>
- <hint type="sourcelabel">
- <x>202</x>
- <y>387</y>
- </hint>
- <hint type="destinationlabel">
- <x>299</x>
- <y>199</y>
- </hint>
- </hints>
- </connection>
- <connection>
- <sender>actionExit</sender>
- <signal>triggered()</signal>
- <receiver>MainWindow</receiver>
- <slot>close()</slot>
- <hints>
- <hint type="sourcelabel">
- <x>-1</x>
- <y>-1</y>
- </hint>
- <hint type="destinationlabel">
- <x>429</x>
- <y>268</y>
- </hint>
- </hints>
- </connection>
- </connections>
- <slots>
- <slot>updatePixmap(QImage)</slot>
- <slot>run()</slot>
- <slot>resetUi()</slot>
- </slots>
- </ui>