You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

349 lines
11 KiB

1 year ago
1 year ago
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>WidgetPlot2D</class>
  4. <widget class="QWidget" name="WidgetPlot2D">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>904</width>
  10. <height>531</height>
  11. </rect>
  12. </property>
  13. <property name="windowTitle">
  14. <string>Form</string>
  15. </property>
  16. <property name="styleSheet">
  17. <string notr="true">/******************** QGroupBox ***********************/
  18. QGroupBox#plotUiGroup, #plotShowGroup, #plotOperGroup, #plotSetupGroup
  19. {
  20. min-width: 150px;
  21. max-width: 150px;
  22. min-height: 100px;
  23. max-height: 100px;
  24. border: 1px solid darkGreen;
  25. border-radius: 8px;
  26. background: rgba(250, 240, 230, 0.7); /*背景半透明 */
  27. margin: 5px 0px 0px 0px;
  28. }
  29. QGroupBox#plotGroup
  30. {
  31. border: 1px solid darkGreen;
  32. border-radius: 3px;
  33. margin: 5px 0px 0px 0px;
  34. }
  35. QGroupBox::title
  36. {
  37. subcontrol-origin: margin;
  38. subcontrol-position: top;
  39. }
  40. /****************** QPushButton *******************/
  41. QPushButton#clearPBtn, #fullShowPBtn, #savePBtn, #openPBtn, #pausePBtn
  42. {
  43. border: 1px solid black;
  44. background-color: lightGray;
  45. width: 25px;
  46. height: 20px;
  47. border-radius: 5px; /* 边框圆角半径 */
  48. }
  49. QPushButton#clearPBtn:hover, #fullShowPBtn:hover, #savePBtn:hover, #openPBtn:hover, #pausePBtn:hover
  50. {
  51. border: 1px solid darkCyan;
  52. border-radius: 5px; /* 边框圆角半径 */
  53. }
  54. QPushButton#clearPBtn:pressed, #fullShowPBtn:pressed, #savePBtn:pressed, #openPBtn:pressed, #pausePBtn:pressed
  55. {
  56. color: white;
  57. border: 1px solid darkCyan;
  58. background-color: darkCyan; /* 背景 */
  59. border-radius: 5px; /* 边框圆角半径 */
  60. }
  61. /***********************QScrollBar****************************/
  62. </string>
  63. </property>
  64. <layout class="QHBoxLayout" name="horizontalLayout">
  65. <item>
  66. <widget class="QSplitter" name="splitter1">
  67. <property name="orientation">
  68. <enum>Qt::Horizontal</enum>
  69. </property>
  70. <widget class="QSplitter" name="splitter">
  71. <property name="orientation">
  72. <enum>Qt::Vertical</enum>
  73. </property>
  74. <widget class="QGroupBox" name="plotGroup">
  75. <property name="sizePolicy">
  76. <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
  77. <horstretch>0</horstretch>
  78. <verstretch>0</verstretch>
  79. </sizepolicy>
  80. </property>
  81. <property name="title">
  82. <string/>
  83. </property>
  84. <layout class="QVBoxLayout" name="verticalLayout_2">
  85. <property name="spacing">
  86. <number>1</number>
  87. </property>
  88. <property name="leftMargin">
  89. <number>1</number>
  90. </property>
  91. <property name="topMargin">
  92. <number>5</number>
  93. </property>
  94. <property name="rightMargin">
  95. <number>1</number>
  96. </property>
  97. <property name="bottomMargin">
  98. <number>1</number>
  99. </property>
  100. <item>
  101. <widget class="QCustomPlot" name="customPlot" native="true">
  102. <property name="sizePolicy">
  103. <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
  104. <horstretch>0</horstretch>
  105. <verstretch>0</verstretch>
  106. </sizepolicy>
  107. </property>
  108. </widget>
  109. </item>
  110. <item>
  111. <widget class="QScrollBar" name="horizontalScrollBar">
  112. <property name="orientation">
  113. <enum>Qt::Horizontal</enum>
  114. </property>
  115. </widget>
  116. </item>
  117. </layout>
  118. </widget>
  119. <widget class="QWidget" name="layoutWidget">
  120. <layout class="QVBoxLayout" name="verticalLayout">
  121. <item>
  122. <layout class="QHBoxLayout" name="horizontalLayout_2">
  123. <item>
  124. <widget class="QGroupBox" name="plotUiGroup">
  125. <property name="title">
  126. <string>颜色</string>
  127. </property>
  128. <property name="alignment">
  129. <set>Qt::AlignCenter</set>
  130. </property>
  131. <layout class="QGridLayout" name="gridLayout">
  132. <item row="0" column="1">
  133. <widget class="QComboBox" name="themeCombo"/>
  134. </item>
  135. <item row="1" column="0">
  136. <widget class="QLabel" name="label_2">
  137. <property name="text">
  138. <string>坐标颜色</string>
  139. </property>
  140. </widget>
  141. </item>
  142. <item row="0" column="0">
  143. <widget class="QLabel" name="label">
  144. <property name="text">
  145. <string>主题</string>
  146. </property>
  147. </widget>
  148. </item>
  149. <item row="2" column="0">
  150. <widget class="QLabel" name="label_3">
  151. <property name="text">
  152. <string>背景颜色</string>
  153. </property>
  154. </widget>
  155. </item>
  156. <item row="2" column="1">
  157. <widget class="QPushButton" name="backgroundColorPBtn">
  158. <property name="text">
  159. <string/>
  160. </property>
  161. </widget>
  162. </item>
  163. <item row="1" column="1">
  164. <widget class="QPushButton" name="axisColorPBtn">
  165. <property name="text">
  166. <string/>
  167. </property>
  168. </widget>
  169. </item>
  170. </layout>
  171. </widget>
  172. </item>
  173. <item>
  174. <widget class="QGroupBox" name="plotShowGroup">
  175. <property name="title">
  176. <string>显示</string>
  177. </property>
  178. <property name="alignment">
  179. <set>Qt::AlignCenter</set>
  180. </property>
  181. <layout class="QGridLayout" name="gridLayout_2">
  182. <item row="0" column="0" colspan="2">
  183. <widget class="QCheckBox" name="autoRangeCheck">
  184. <property name="text">
  185. <string>自适应量程</string>
  186. </property>
  187. </widget>
  188. </item>
  189. <item row="1" column="0" colspan="2">
  190. <widget class="QCheckBox" name="subGridCheck">
  191. <property name="text">
  192. <string>显示子网格</string>
  193. </property>
  194. </widget>
  195. </item>
  196. <item row="2" column="0">
  197. <widget class="QLabel" name="label_4">
  198. <property name="text">
  199. <string>时间轴:</string>
  200. </property>
  201. </widget>
  202. </item>
  203. <item row="2" column="1" colspan="2">
  204. <widget class="QSpinBox" name="timeAxisSpin">
  205. <property name="suffix">
  206. <string> s</string>
  207. </property>
  208. <property name="prefix">
  209. <string/>
  210. </property>
  211. <property name="minimum">
  212. <number>1</number>
  213. </property>
  214. <property name="maximum">
  215. <number>999999999</number>
  216. </property>
  217. <property name="value">
  218. <number>10</number>
  219. </property>
  220. </widget>
  221. </item>
  222. <item row="0" column="2">
  223. <widget class="QCheckBox" name="fullShowCheck">
  224. <property name="text">
  225. <string>全程</string>
  226. </property>
  227. </widget>
  228. </item>
  229. </layout>
  230. </widget>
  231. </item>
  232. <item>
  233. <widget class="QGroupBox" name="plotOperGroup">
  234. <property name="minimumSize">
  235. <size>
  236. <width>152</width>
  237. <height>107</height>
  238. </size>
  239. </property>
  240. <property name="title">
  241. <string>操作</string>
  242. </property>
  243. <property name="alignment">
  244. <set>Qt::AlignCenter</set>
  245. </property>
  246. <layout class="QGridLayout" name="gridLayout_3">
  247. <item row="0" column="2">
  248. <widget class="QPushButton" name="fullShowPBtn">
  249. <property name="text">
  250. <string>整图</string>
  251. </property>
  252. <property name="checkable">
  253. <bool>false</bool>
  254. </property>
  255. </widget>
  256. </item>
  257. <item row="0" column="0">
  258. <widget class="QPushButton" name="clearPBtn">
  259. <property name="text">
  260. <string>清除</string>
  261. </property>
  262. </widget>
  263. </item>
  264. <item row="1" column="0">
  265. <widget class="QPushButton" name="savePBtn">
  266. <property name="text">
  267. <string>保存</string>
  268. </property>
  269. </widget>
  270. </item>
  271. <item row="1" column="2">
  272. <widget class="QPushButton" name="pausePBtn">
  273. <property name="text">
  274. <string>暂停</string>
  275. </property>
  276. <property name="icon">
  277. <iconset>
  278. <normaloff>:/image/pause.png</normaloff>:/image/pause.png</iconset>
  279. </property>
  280. </widget>
  281. </item>
  282. </layout>
  283. </widget>
  284. </item>
  285. <item>
  286. <spacer name="horizontalSpacer">
  287. <property name="orientation">
  288. <enum>Qt::Horizontal</enum>
  289. </property>
  290. <property name="sizeHint" stdset="0">
  291. <size>
  292. <width>40</width>
  293. <height>20</height>
  294. </size>
  295. </property>
  296. </spacer>
  297. </item>
  298. </layout>
  299. </item>
  300. <item>
  301. <widget class="QLabel" name="statusLabel">
  302. <property name="sizePolicy">
  303. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  304. <horstretch>0</horstretch>
  305. <verstretch>0</verstretch>
  306. </sizepolicy>
  307. </property>
  308. <property name="text">
  309. <string>绘图状态</string>
  310. </property>
  311. </widget>
  312. </item>
  313. </layout>
  314. </widget>
  315. </widget>
  316. <widget class="QTreeWidget" name="treeWidget">
  317. <column>
  318. <property name="text">
  319. <string notr="true">1</string>
  320. </property>
  321. </column>
  322. </widget>
  323. </widget>
  324. </item>
  325. </layout>
  326. </widget>
  327. <customwidgets>
  328. <customwidget>
  329. <class>QCustomPlot</class>
  330. <extends>QWidget</extends>
  331. <header>qcustomplot.h</header>
  332. <container>1</container>
  333. </customwidget>
  334. </customwidgets>
  335. <resources/>
  336. <connections/>
  337. </ui>