mainwindow.ui 13 KB

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