mainwindow.ui 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452
  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>2354</width>
  10. <height>1618</height>
  11. </rect>
  12. </property>
  13. <property name="windowTitle">
  14. <string>MainWindow</string>
  15. </property>
  16. <widget class="QWidget" name="centralWidget">
  17. <property name="sizePolicy">
  18. <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
  19. <horstretch>0</horstretch>
  20. <verstretch>0</verstretch>
  21. </sizepolicy>
  22. </property>
  23. <property name="minimumSize">
  24. <size>
  25. <width>450</width>
  26. <height>320</height>
  27. </size>
  28. </property>
  29. <widget class="QWidget" name="horizontalLayoutWidget">
  30. <property name="geometry">
  31. <rect>
  32. <x>0</x>
  33. <y>0</y>
  34. <width>2101</width>
  35. <height>1561</height>
  36. </rect>
  37. </property>
  38. <layout class="QHBoxLayout" name="columnsLayout">
  39. <item>
  40. <layout class="QVBoxLayout" name="graphicsLayout">
  41. <property name="sizeConstraint">
  42. <enum>QLayout::SetMaximumSize</enum>
  43. </property>
  44. <item>
  45. <widget class="QwtPlot" name="ADC1Plot">
  46. <property name="sizePolicy">
  47. <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
  48. <horstretch>0</horstretch>
  49. <verstretch>0</verstretch>
  50. </sizepolicy>
  51. </property>
  52. <property name="minimumSize">
  53. <size>
  54. <width>300</width>
  55. <height>150</height>
  56. </size>
  57. </property>
  58. </widget>
  59. </item>
  60. <item>
  61. <widget class="QwtPlot" name="ADC2Plot">
  62. <property name="sizePolicy">
  63. <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
  64. <horstretch>0</horstretch>
  65. <verstretch>0</verstretch>
  66. </sizepolicy>
  67. </property>
  68. <property name="minimumSize">
  69. <size>
  70. <width>300</width>
  71. <height>150</height>
  72. </size>
  73. </property>
  74. </widget>
  75. </item>
  76. <item>
  77. <spacer name="horizontalSpacer">
  78. <property name="orientation">
  79. <enum>Qt::Horizontal</enum>
  80. </property>
  81. <property name="sizeType">
  82. <enum>QSizePolicy::Expanding</enum>
  83. </property>
  84. <property name="sizeHint" stdset="0">
  85. <size>
  86. <width>40</width>
  87. <height>0</height>
  88. </size>
  89. </property>
  90. </spacer>
  91. </item>
  92. </layout>
  93. </item>
  94. <item>
  95. <layout class="QVBoxLayout" name="infoLayout">
  96. <property name="sizeConstraint">
  97. <enum>QLayout::SetMinimumSize</enum>
  98. </property>
  99. <item>
  100. <widget class="QLabel" name="ADC1Value">
  101. <property name="minimumSize">
  102. <size>
  103. <width>100</width>
  104. <height>0</height>
  105. </size>
  106. </property>
  107. <property name="text">
  108. <string>ADC1: NaN</string>
  109. </property>
  110. </widget>
  111. </item>
  112. <item>
  113. <widget class="QLabel" name="ADC2Value">
  114. <property name="minimumSize">
  115. <size>
  116. <width>100</width>
  117. <height>0</height>
  118. </size>
  119. </property>
  120. <property name="text">
  121. <string>ADC2: NaN</string>
  122. </property>
  123. </widget>
  124. </item>
  125. <item>
  126. <spacer name="infoVerticalSpacer">
  127. <property name="orientation">
  128. <enum>Qt::Vertical</enum>
  129. </property>
  130. <property name="sizeHint" stdset="0">
  131. <size>
  132. <width>20</width>
  133. <height>40</height>
  134. </size>
  135. </property>
  136. </spacer>
  137. </item>
  138. </layout>
  139. </item>
  140. </layout>
  141. </widget>
  142. </widget>
  143. <widget class="QMenuBar" name="menuBar">
  144. <property name="geometry">
  145. <rect>
  146. <x>0</x>
  147. <y>0</y>
  148. <width>2354</width>
  149. <height>19</height>
  150. </rect>
  151. </property>
  152. </widget>
  153. <widget class="QToolBar" name="mainToolBar">
  154. <attribute name="toolBarArea">
  155. <enum>TopToolBarArea</enum>
  156. </attribute>
  157. <attribute name="toolBarBreak">
  158. <bool>false</bool>
  159. </attribute>
  160. </widget>
  161. <widget class="QStatusBar" name="statusBar">
  162. <property name="sizePolicy">
  163. <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
  164. <horstretch>0</horstretch>
  165. <verstretch>0</verstretch>
  166. </sizepolicy>
  167. </property>
  168. </widget>
  169. <widget class="QDockWidget" name="dockWidget">
  170. <attribute name="dockWidgetArea">
  171. <number>1</number>
  172. </attribute>
  173. <widget class="QWidget" name="toolsWidget">
  174. <property name="minimumSize">
  175. <size>
  176. <width>250</width>
  177. <height>0</height>
  178. </size>
  179. </property>
  180. <widget class="QWidget" name="verticalLayoutWidget">
  181. <property name="geometry">
  182. <rect>
  183. <x>0</x>
  184. <y>0</y>
  185. <width>258</width>
  186. <height>1541</height>
  187. </rect>
  188. </property>
  189. <layout class="QVBoxLayout" name="toolsLayout">
  190. <property name="sizeConstraint">
  191. <enum>QLayout::SetMinimumSize</enum>
  192. </property>
  193. <item>
  194. <widget class="QWidget" name="motor0Widget" native="true">
  195. <property name="minimumSize">
  196. <size>
  197. <width>250</width>
  198. <height>22</height>
  199. </size>
  200. </property>
  201. <widget class="QWidget" name="horizontalLayoutWidget_6">
  202. <property name="geometry">
  203. <rect>
  204. <x>0</x>
  205. <y>0</y>
  206. <width>247</width>
  207. <height>22</height>
  208. </rect>
  209. </property>
  210. <layout class="QHBoxLayout" name="motor0Layout">
  211. <property name="sizeConstraint">
  212. <enum>QLayout::SetMinimumSize</enum>
  213. </property>
  214. <item>
  215. <widget class="QSlider" name="speedM0Slider">
  216. <property name="sizePolicy">
  217. <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
  218. <horstretch>0</horstretch>
  219. <verstretch>0</verstretch>
  220. </sizepolicy>
  221. </property>
  222. <property name="toolTip">
  223. <string/>
  224. </property>
  225. <property name="maximum">
  226. <number>200</number>
  227. </property>
  228. <property name="orientation">
  229. <enum>Qt::Horizontal</enum>
  230. </property>
  231. </widget>
  232. </item>
  233. <item>
  234. <widget class="QRadioButton" name="downM0Radio">
  235. <property name="maximumSize">
  236. <size>
  237. <width>60</width>
  238. <height>16777215</height>
  239. </size>
  240. </property>
  241. <property name="text">
  242. <string>down</string>
  243. </property>
  244. </widget>
  245. </item>
  246. <item>
  247. <widget class="QRadioButton" name="stopM0Radio">
  248. <property name="maximumSize">
  249. <size>
  250. <width>60</width>
  251. <height>16777215</height>
  252. </size>
  253. </property>
  254. <property name="text">
  255. <string>stop</string>
  256. </property>
  257. <property name="checked">
  258. <bool>true</bool>
  259. </property>
  260. </widget>
  261. </item>
  262. <item>
  263. <widget class="QRadioButton" name="upM0Radio">
  264. <property name="maximumSize">
  265. <size>
  266. <width>60</width>
  267. <height>16777215</height>
  268. </size>
  269. </property>
  270. <property name="text">
  271. <string>up</string>
  272. </property>
  273. </widget>
  274. </item>
  275. </layout>
  276. </widget>
  277. </widget>
  278. </item>
  279. <item>
  280. <widget class="QWidget" name="motor1Widget" native="true">
  281. <property name="minimumSize">
  282. <size>
  283. <width>250</width>
  284. <height>22</height>
  285. </size>
  286. </property>
  287. <widget class="QWidget" name="horizontalLayoutWidget_7">
  288. <property name="geometry">
  289. <rect>
  290. <x>0</x>
  291. <y>0</y>
  292. <width>247</width>
  293. <height>22</height>
  294. </rect>
  295. </property>
  296. <layout class="QHBoxLayout" name="motor1Layout">
  297. <property name="sizeConstraint">
  298. <enum>QLayout::SetMinimumSize</enum>
  299. </property>
  300. <item>
  301. <widget class="QSlider" name="speedM1Slider">
  302. <property name="sizePolicy">
  303. <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
  304. <horstretch>0</horstretch>
  305. <verstretch>0</verstretch>
  306. </sizepolicy>
  307. </property>
  308. <property name="maximumSize">
  309. <size>
  310. <width>16777215</width>
  311. <height>16777215</height>
  312. </size>
  313. </property>
  314. <property name="maximum">
  315. <number>200</number>
  316. </property>
  317. <property name="orientation">
  318. <enum>Qt::Horizontal</enum>
  319. </property>
  320. </widget>
  321. </item>
  322. <item>
  323. <widget class="QRadioButton" name="downM1Radio">
  324. <property name="maximumSize">
  325. <size>
  326. <width>60</width>
  327. <height>16777215</height>
  328. </size>
  329. </property>
  330. <property name="text">
  331. <string>down</string>
  332. </property>
  333. </widget>
  334. </item>
  335. <item>
  336. <widget class="QRadioButton" name="stopM1Radio">
  337. <property name="maximumSize">
  338. <size>
  339. <width>60</width>
  340. <height>16777215</height>
  341. </size>
  342. </property>
  343. <property name="text">
  344. <string>stop</string>
  345. </property>
  346. <property name="checked">
  347. <bool>true</bool>
  348. </property>
  349. </widget>
  350. </item>
  351. <item>
  352. <widget class="QRadioButton" name="upM1Radio">
  353. <property name="maximumSize">
  354. <size>
  355. <width>60</width>
  356. <height>16777215</height>
  357. </size>
  358. </property>
  359. <property name="text">
  360. <string>up</string>
  361. </property>
  362. </widget>
  363. </item>
  364. </layout>
  365. </widget>
  366. </widget>
  367. </item>
  368. <item>
  369. <spacer name="toolsVerticalSpacer">
  370. <property name="orientation">
  371. <enum>Qt::Vertical</enum>
  372. </property>
  373. <property name="sizeHint" stdset="0">
  374. <size>
  375. <width>20</width>
  376. <height>40</height>
  377. </size>
  378. </property>
  379. </spacer>
  380. </item>
  381. <item>
  382. <widget class="QLabel" name="ttyPathLabel">
  383. <property name="sizePolicy">
  384. <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
  385. <horstretch>0</horstretch>
  386. <verstretch>0</verstretch>
  387. </sizepolicy>
  388. </property>
  389. <property name="maximumSize">
  390. <size>
  391. <width>50</width>
  392. <height>16777215</height>
  393. </size>
  394. </property>
  395. <property name="text">
  396. <string>tty path:</string>
  397. </property>
  398. </widget>
  399. </item>
  400. <item>
  401. <widget class="QPlainTextEdit" name="ttyPathEdit">
  402. <property name="maximumSize">
  403. <size>
  404. <width>150</width>
  405. <height>22</height>
  406. </size>
  407. </property>
  408. <property name="verticalScrollBarPolicy">
  409. <enum>Qt::ScrollBarAlwaysOff</enum>
  410. </property>
  411. <property name="horizontalScrollBarPolicy">
  412. <enum>Qt::ScrollBarAlwaysOff</enum>
  413. </property>
  414. <property name="plainText">
  415. <string>/dev/ttyV0</string>
  416. </property>
  417. <property name="backgroundVisible">
  418. <bool>false</bool>
  419. </property>
  420. <property name="centerOnScroll">
  421. <bool>false</bool>
  422. </property>
  423. <property name="placeholderText">
  424. <string>tty device</string>
  425. </property>
  426. </widget>
  427. </item>
  428. <item>
  429. <widget class="QPushButton" name="ttyReconnectButton">
  430. <property name="text">
  431. <string>reconnect</string>
  432. </property>
  433. </widget>
  434. </item>
  435. </layout>
  436. </widget>
  437. </widget>
  438. </widget>
  439. </widget>
  440. <layoutdefault spacing="6" margin="11"/>
  441. <customwidgets>
  442. <customwidget>
  443. <class>QwtPlot</class>
  444. <extends>QFrame</extends>
  445. <header>qwt_plot.h</header>
  446. <container>1</container>
  447. </customwidget>
  448. </customwidgets>
  449. <resources/>
  450. <connections/>
  451. </ui>