/mainwindow.ui

http://nscow.googlecode.com/ · Unknown · 671 lines · 671 code · 0 blank · 0 comment · 0 complexity · 0bd032a8b14cd6ba0abc322a1e8e1ddb MD5 · raw file

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>MainWindow</class>
  4. <widget class="QMainWindow" name="MainWindow">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>860</width>
  10. <height>538</height>
  11. </rect>
  12. </property>
  13. <property name="windowTitle">
  14. <string>Navier-Stokes's Cow</string>
  15. </property>
  16. <property name="windowIcon">
  17. <iconset>
  18. <normaloff>:/img/purplecow.png</normaloff>:/img/purplecow.png</iconset>
  19. </property>
  20. <widget class="QWidget" name="centralWidget">
  21. <layout class="QVBoxLayout" name="verticalLayout_2">
  22. <item>
  23. <layout class="QHBoxLayout" name="horizontalLayout">
  24. <item>
  25. <spacer name="horizontalSpacer_5">
  26. <property name="orientation">
  27. <enum>Qt::Horizontal</enum>
  28. </property>
  29. <property name="sizeHint" stdset="0">
  30. <size>
  31. <width>40</width>
  32. <height>20</height>
  33. </size>
  34. </property>
  35. </spacer>
  36. </item>
  37. <item>
  38. <widget class="DrawBox" name="drawBox">
  39. <property name="sizePolicy">
  40. <sizepolicy hsizetype="Maximum" vsizetype="Maximum">
  41. <horstretch>0</horstretch>
  42. <verstretch>0</verstretch>
  43. </sizepolicy>
  44. </property>
  45. <property name="cursor">
  46. <cursorShape>ArrowCursor</cursorShape>
  47. </property>
  48. <property name="mouseTracking">
  49. <bool>false</bool>
  50. </property>
  51. <property name="frameShape">
  52. <enum>QFrame::StyledPanel</enum>
  53. </property>
  54. <property name="frameShadow">
  55. <enum>QFrame::Sunken</enum>
  56. </property>
  57. <property name="text">
  58. <string/>
  59. </property>
  60. <property name="alignment">
  61. <set>Qt::AlignCenter</set>
  62. </property>
  63. </widget>
  64. </item>
  65. <item>
  66. <spacer name="horizontalSpacer_4">
  67. <property name="orientation">
  68. <enum>Qt::Horizontal</enum>
  69. </property>
  70. <property name="sizeType">
  71. <enum>QSizePolicy::Fixed</enum>
  72. </property>
  73. <property name="sizeHint" stdset="0">
  74. <size>
  75. <width>40</width>
  76. <height>20</height>
  77. </size>
  78. </property>
  79. </spacer>
  80. </item>
  81. <item>
  82. <layout class="QGridLayout" name="gridLayout">
  83. <property name="rightMargin">
  84. <number>0</number>
  85. </property>
  86. <item row="0" column="0">
  87. <widget class="QLabel" name="label">
  88. <property name="text">
  89. <string>Viscosity</string>
  90. </property>
  91. <property name="alignment">
  92. <set>Qt::AlignCenter</set>
  93. </property>
  94. </widget>
  95. </item>
  96. <item row="1" column="0">
  97. <layout class="QHBoxLayout" name="horizontalLayout_3">
  98. <item>
  99. <widget class="QSlider" name="nuSlider">
  100. <property name="styleSheet">
  101. <string notr="true"/>
  102. </property>
  103. <property name="minimum">
  104. <number>1</number>
  105. </property>
  106. <property name="maximum">
  107. <number>100</number>
  108. </property>
  109. <property name="orientation">
  110. <enum>Qt::Vertical</enum>
  111. </property>
  112. </widget>
  113. </item>
  114. </layout>
  115. </item>
  116. <item row="2" column="0">
  117. <widget class="QLabel" name="nuValue">
  118. <property name="text">
  119. <string/>
  120. </property>
  121. <property name="alignment">
  122. <set>Qt::AlignCenter</set>
  123. </property>
  124. </widget>
  125. </item>
  126. <item row="3" column="0">
  127. <widget class="QLabel" name="label_7">
  128. <property name="text">
  129. <string>Tool Radius</string>
  130. </property>
  131. <property name="alignment">
  132. <set>Qt::AlignCenter</set>
  133. </property>
  134. </widget>
  135. </item>
  136. <item row="5" column="0">
  137. <widget class="QLabel" name="rToolValue">
  138. <property name="text">
  139. <string/>
  140. </property>
  141. <property name="alignment">
  142. <set>Qt::AlignCenter</set>
  143. </property>
  144. </widget>
  145. </item>
  146. <item row="0" column="1">
  147. <widget class="QLabel" name="label_4">
  148. <property name="text">
  149. <string>Time Step</string>
  150. </property>
  151. <property name="alignment">
  152. <set>Qt::AlignCenter</set>
  153. </property>
  154. </widget>
  155. </item>
  156. <item row="1" column="1">
  157. <layout class="QHBoxLayout" name="horizontalLayout_4">
  158. <item>
  159. <widget class="QSlider" name="dtSlider">
  160. <property name="minimum">
  161. <number>1</number>
  162. </property>
  163. <property name="maximum">
  164. <number>1000</number>
  165. </property>
  166. <property name="orientation">
  167. <enum>Qt::Vertical</enum>
  168. </property>
  169. </widget>
  170. </item>
  171. </layout>
  172. </item>
  173. <item row="2" column="1">
  174. <widget class="QLabel" name="dtValue">
  175. <property name="text">
  176. <string/>
  177. </property>
  178. <property name="alignment">
  179. <set>Qt::AlignCenter</set>
  180. </property>
  181. </widget>
  182. </item>
  183. <item row="3" column="1">
  184. <widget class="QLabel" name="label_8">
  185. <property name="text">
  186. <string>Tool Strength</string>
  187. </property>
  188. </widget>
  189. </item>
  190. <item row="0" column="2">
  191. <widget class="QLabel" name="label_5">
  192. <property name="text">
  193. <string>Grid Scale</string>
  194. </property>
  195. <property name="alignment">
  196. <set>Qt::AlignCenter</set>
  197. </property>
  198. </widget>
  199. </item>
  200. <item row="2" column="2">
  201. <widget class="QLabel" name="dxValue">
  202. <property name="text">
  203. <string/>
  204. </property>
  205. <property name="alignment">
  206. <set>Qt::AlignCenter</set>
  207. </property>
  208. </widget>
  209. </item>
  210. <item row="1" column="2">
  211. <layout class="QHBoxLayout" name="horizontalLayout_5">
  212. <item>
  213. <widget class="QSlider" name="dxSlider">
  214. <property name="minimum">
  215. <number>1</number>
  216. </property>
  217. <property name="maximum">
  218. <number>1000</number>
  219. </property>
  220. <property name="orientation">
  221. <enum>Qt::Vertical</enum>
  222. </property>
  223. </widget>
  224. </item>
  225. </layout>
  226. </item>
  227. <item row="4" column="0">
  228. <layout class="QHBoxLayout" name="horizontalLayout_7">
  229. <item>
  230. <widget class="QSlider" name="rToolSlider">
  231. <property name="minimum">
  232. <number>1</number>
  233. </property>
  234. <property name="maximum">
  235. <number>10</number>
  236. </property>
  237. <property name="orientation">
  238. <enum>Qt::Vertical</enum>
  239. </property>
  240. </widget>
  241. </item>
  242. </layout>
  243. </item>
  244. <item row="4" column="1">
  245. <layout class="QHBoxLayout" name="horizontalLayout_8">
  246. <item>
  247. <widget class="QSlider" name="magToolSlider">
  248. <property name="minimum">
  249. <number>1</number>
  250. </property>
  251. <property name="maximum">
  252. <number>10</number>
  253. </property>
  254. <property name="orientation">
  255. <enum>Qt::Vertical</enum>
  256. </property>
  257. </widget>
  258. </item>
  259. </layout>
  260. </item>
  261. <item row="3" column="2">
  262. <widget class="QLabel" name="label_6">
  263. <property name="text">
  264. <string>Vorticity Factor</string>
  265. </property>
  266. <property name="alignment">
  267. <set>Qt::AlignCenter</set>
  268. </property>
  269. </widget>
  270. </item>
  271. <item row="4" column="2">
  272. <layout class="QHBoxLayout" name="horizontalLayout_6">
  273. <item>
  274. <widget class="QSlider" name="eSlider">
  275. <property name="maximum">
  276. <number>100</number>
  277. </property>
  278. <property name="orientation">
  279. <enum>Qt::Vertical</enum>
  280. </property>
  281. </widget>
  282. </item>
  283. </layout>
  284. </item>
  285. <item row="5" column="2">
  286. <widget class="QLabel" name="eValue">
  287. <property name="text">
  288. <string/>
  289. </property>
  290. <property name="alignment">
  291. <set>Qt::AlignCenter</set>
  292. </property>
  293. </widget>
  294. </item>
  295. <item row="0" column="3">
  296. <widget class="QLabel" name="label_9">
  297. <property name="text">
  298. <string>Dye Dispersion</string>
  299. </property>
  300. </widget>
  301. </item>
  302. <item row="1" column="3">
  303. <layout class="QHBoxLayout" name="horizontalLayout_9">
  304. <item>
  305. <widget class="QSlider" name="dcSlider">
  306. <property name="minimum">
  307. <number>1</number>
  308. </property>
  309. <property name="maximum">
  310. <number>100</number>
  311. </property>
  312. <property name="orientation">
  313. <enum>Qt::Vertical</enum>
  314. </property>
  315. </widget>
  316. </item>
  317. </layout>
  318. </item>
  319. <item row="5" column="1">
  320. <widget class="QLabel" name="magToolValue">
  321. <property name="text">
  322. <string/>
  323. </property>
  324. <property name="alignment">
  325. <set>Qt::AlignCenter</set>
  326. </property>
  327. </widget>
  328. </item>
  329. <item row="2" column="3">
  330. <widget class="QLabel" name="dcValue">
  331. <property name="text">
  332. <string/>
  333. </property>
  334. <property name="alignment">
  335. <set>Qt::AlignCenter</set>
  336. </property>
  337. </widget>
  338. </item>
  339. </layout>
  340. </item>
  341. <item>
  342. <spacer name="horizontalSpacer">
  343. <property name="orientation">
  344. <enum>Qt::Horizontal</enum>
  345. </property>
  346. <property name="sizeHint" stdset="0">
  347. <size>
  348. <width>40</width>
  349. <height>20</height>
  350. </size>
  351. </property>
  352. </spacer>
  353. </item>
  354. </layout>
  355. </item>
  356. <item>
  357. <layout class="QHBoxLayout" name="horizontalLayout_2">
  358. <item>
  359. <spacer name="horizontalSpacer_6">
  360. <property name="orientation">
  361. <enum>Qt::Horizontal</enum>
  362. </property>
  363. <property name="sizeHint" stdset="0">
  364. <size>
  365. <width>40</width>
  366. <height>20</height>
  367. </size>
  368. </property>
  369. </spacer>
  370. </item>
  371. <item>
  372. <widget class="QPushButton" name="runButton">
  373. <property name="text">
  374. <string>&amp;Run...</string>
  375. </property>
  376. </widget>
  377. </item>
  378. <item>
  379. <widget class="QPushButton" name="stopButton">
  380. <property name="enabled">
  381. <bool>false</bool>
  382. </property>
  383. <property name="text">
  384. <string>&amp;Stop</string>
  385. </property>
  386. </widget>
  387. </item>
  388. <item>
  389. <spacer name="horizontalSpacer_3">
  390. <property name="orientation">
  391. <enum>Qt::Horizontal</enum>
  392. </property>
  393. <property name="sizeType">
  394. <enum>QSizePolicy::Fixed</enum>
  395. </property>
  396. <property name="sizeHint" stdset="0">
  397. <size>
  398. <width>40</width>
  399. <height>20</height>
  400. </size>
  401. </property>
  402. </spacer>
  403. </item>
  404. <item>
  405. <widget class="QLabel" name="label_3">
  406. <property name="text">
  407. <string>Resolution:</string>
  408. </property>
  409. </widget>
  410. </item>
  411. <item>
  412. <widget class="QLineEdit" name="xdimValue">
  413. <property name="maximumSize">
  414. <size>
  415. <width>50</width>
  416. <height>16777215</height>
  417. </size>
  418. </property>
  419. <property name="layoutDirection">
  420. <enum>Qt::RightToLeft</enum>
  421. </property>
  422. <property name="text">
  423. <string>50</string>
  424. </property>
  425. </widget>
  426. </item>
  427. <item>
  428. <widget class="QLabel" name="label_2">
  429. <property name="text">
  430. <string>x</string>
  431. </property>
  432. </widget>
  433. </item>
  434. <item>
  435. <widget class="QLineEdit" name="ydimValue">
  436. <property name="maximumSize">
  437. <size>
  438. <width>50</width>
  439. <height>16777215</height>
  440. </size>
  441. </property>
  442. <property name="layoutDirection">
  443. <enum>Qt::RightToLeft</enum>
  444. </property>
  445. <property name="text">
  446. <string>50</string>
  447. </property>
  448. </widget>
  449. </item>
  450. <item>
  451. <widget class="QComboBox" name="outputBox">
  452. <item>
  453. <property name="text">
  454. <string>Density</string>
  455. </property>
  456. </item>
  457. <item>
  458. <property name="text">
  459. <string>Velocity Field</string>
  460. </property>
  461. </item>
  462. <item>
  463. <property name="text">
  464. <string>Pressure Field</string>
  465. </property>
  466. </item>
  467. <item>
  468. <property name="text">
  469. <string>Vorticity</string>
  470. </property>
  471. </item>
  472. </widget>
  473. </item>
  474. <item>
  475. <spacer name="horizontalSpacer_2">
  476. <property name="orientation">
  477. <enum>Qt::Horizontal</enum>
  478. </property>
  479. <property name="sizeHint" stdset="0">
  480. <size>
  481. <width>40</width>
  482. <height>20</height>
  483. </size>
  484. </property>
  485. </spacer>
  486. </item>
  487. </layout>
  488. </item>
  489. <item>
  490. <spacer name="verticalSpacer">
  491. <property name="orientation">
  492. <enum>Qt::Vertical</enum>
  493. </property>
  494. <property name="sizeType">
  495. <enum>QSizePolicy::MinimumExpanding</enum>
  496. </property>
  497. <property name="sizeHint" stdset="0">
  498. <size>
  499. <width>20</width>
  500. <height>1</height>
  501. </size>
  502. </property>
  503. </spacer>
  504. </item>
  505. </layout>
  506. </widget>
  507. <widget class="QStatusBar" name="statusBar"/>
  508. <widget class="QToolBar" name="toolBar">
  509. <property name="windowTitle">
  510. <string>toolBar</string>
  511. </property>
  512. <attribute name="toolBarArea">
  513. <enum>TopToolBarArea</enum>
  514. </attribute>
  515. <attribute name="toolBarBreak">
  516. <bool>false</bool>
  517. </attribute>
  518. <addaction name="actionAdd_Force"/>
  519. <addaction name="actionAdd_Dye"/>
  520. <addaction name="actionOutward_Force"/>
  521. <addaction name="actionInward_Force"/>
  522. <addaction name="separator"/>
  523. <addaction name="actionAbout"/>
  524. <addaction name="actionExit"/>
  525. </widget>
  526. <action name="actionAdd_Force">
  527. <property name="checkable">
  528. <bool>true</bool>
  529. </property>
  530. <property name="checked">
  531. <bool>true</bool>
  532. </property>
  533. <property name="icon">
  534. <iconset>
  535. <normaloff>:/img/Logo_physics.png</normaloff>:/img/Logo_physics.png</iconset>
  536. </property>
  537. <property name="text">
  538. <string>Add Force</string>
  539. </property>
  540. <property name="toolTip">
  541. <string>Add Force</string>
  542. </property>
  543. <property name="shortcut">
  544. <string>F</string>
  545. </property>
  546. </action>
  547. <action name="actionAdd_Dye">
  548. <property name="checkable">
  549. <bool>true</bool>
  550. </property>
  551. <property name="icon">
  552. <iconset>
  553. <normaloff>:/img/Beakerblue.png</normaloff>:/img/Beakerblue.png</iconset>
  554. </property>
  555. <property name="text">
  556. <string>Add Dye</string>
  557. </property>
  558. <property name="shortcut">
  559. <string>D</string>
  560. </property>
  561. </action>
  562. <action name="actionOutward_Force">
  563. <property name="checkable">
  564. <bool>true</bool>
  565. </property>
  566. <property name="icon">
  567. <iconset>
  568. <normaloff>:/img/Arrow_out.png</normaloff>:/img/Arrow_out.png</iconset>
  569. </property>
  570. <property name="text">
  571. <string>Outward Force</string>
  572. </property>
  573. <property name="toolTip">
  574. <string>Outward Force</string>
  575. </property>
  576. <property name="shortcut">
  577. <string>O</string>
  578. </property>
  579. </action>
  580. <action name="actionInward_Force">
  581. <property name="checkable">
  582. <bool>true</bool>
  583. </property>
  584. <property name="icon">
  585. <iconset>
  586. <normaloff>:/img/Arrow_in.png</normaloff>:/img/Arrow_in.png</iconset>
  587. </property>
  588. <property name="text">
  589. <string>Inward Force</string>
  590. </property>
  591. <property name="shortcut">
  592. <string>I</string>
  593. </property>
  594. </action>
  595. <action name="actionAbout">
  596. <property name="icon">
  597. <iconset>
  598. <normaloff>:/img/purplecow.png</normaloff>:/img/purplecow.png</iconset>
  599. </property>
  600. <property name="text">
  601. <string>&amp;About</string>
  602. </property>
  603. <property name="shortcut">
  604. <string>A</string>
  605. </property>
  606. </action>
  607. <action name="actionExit">
  608. <property name="icon">
  609. <iconset>
  610. <normaloff>:/img/Gnome-application-exit.png</normaloff>:/img/Gnome-application-exit.png</iconset>
  611. </property>
  612. <property name="text">
  613. <string>&amp;Exit</string>
  614. </property>
  615. <property name="shortcut">
  616. <string>Ctrl+Q</string>
  617. </property>
  618. </action>
  619. </widget>
  620. <layoutdefault spacing="6" margin="11"/>
  621. <customwidgets>
  622. <customwidget>
  623. <class>DrawBox</class>
  624. <extends>QLabel</extends>
  625. <header>drawbox.h</header>
  626. <slots>
  627. <signal>setNuValue()</signal>
  628. </slots>
  629. </customwidget>
  630. </customwidgets>
  631. <resources/>
  632. <connections>
  633. <connection>
  634. <sender>runButton</sender>
  635. <signal>clicked()</signal>
  636. <receiver>MainWindow</receiver>
  637. <slot>run()</slot>
  638. <hints>
  639. <hint type="sourcelabel">
  640. <x>202</x>
  641. <y>387</y>
  642. </hint>
  643. <hint type="destinationlabel">
  644. <x>299</x>
  645. <y>199</y>
  646. </hint>
  647. </hints>
  648. </connection>
  649. <connection>
  650. <sender>actionExit</sender>
  651. <signal>triggered()</signal>
  652. <receiver>MainWindow</receiver>
  653. <slot>close()</slot>
  654. <hints>
  655. <hint type="sourcelabel">
  656. <x>-1</x>
  657. <y>-1</y>
  658. </hint>
  659. <hint type="destinationlabel">
  660. <x>429</x>
  661. <y>268</y>
  662. </hint>
  663. </hints>
  664. </connection>
  665. </connections>
  666. <slots>
  667. <slot>updatePixmap(QImage)</slot>
  668. <slot>run()</slot>
  669. <slot>resetUi()</slot>
  670. </slots>
  671. </ui>