mainwindow.ui 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>MainWindowClass</class>
  4. <widget class="QMainWindow" name="MainWindowClass">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>600</width>
  10. <height>400</height>
  11. </rect>
  12. </property>
  13. <property name="windowTitle">
  14. <string>自动生成</string>
  15. </property>
  16. <widget class="QWidget" name="centralWidget">
  17. <layout class="QVBoxLayout" name="verticalLayout">
  18. <item>
  19. <layout class="QHBoxLayout" name="horizontalLayout_3">
  20. <item>
  21. <widget class="QLabel" name="label_2">
  22. <property name="text">
  23. <string>实体类中文名</string>
  24. </property>
  25. </widget>
  26. </item>
  27. <item>
  28. <widget class="QLineEdit" name="name"/>
  29. </item>
  30. </layout>
  31. </item>
  32. <item>
  33. <layout class="QGridLayout" name="gridLayout_2">
  34. <item row="0" column="0">
  35. <widget class="QLabel" name="label">
  36. <property name="text">
  37. <string>entity名称</string>
  38. </property>
  39. </widget>
  40. </item>
  41. <item row="0" column="1">
  42. <widget class="QLineEdit" name="entityName"/>
  43. </item>
  44. <item row="1" column="0">
  45. <widget class="QLabel" name="label_3">
  46. <property name="text">
  47. <string>model名称</string>
  48. </property>
  49. </widget>
  50. </item>
  51. <item row="1" column="1">
  52. <widget class="QLineEdit" name="modelName">
  53. <property name="placeholderText">
  54. <string>默认实体类名称后+Model</string>
  55. </property>
  56. </widget>
  57. </item>
  58. <item row="2" column="0">
  59. <widget class="QLabel" name="label_4">
  60. <property name="text">
  61. <string>service名称</string>
  62. </property>
  63. </widget>
  64. </item>
  65. <item row="2" column="1">
  66. <widget class="QLineEdit" name="serviceName">
  67. <property name="placeholderText">
  68. <string>默认实体类名称后+Service</string>
  69. </property>
  70. </widget>
  71. </item>
  72. <item row="3" column="0">
  73. <widget class="QLabel" name="label_5">
  74. <property name="text">
  75. <string>Widget名称</string>
  76. </property>
  77. </widget>
  78. </item>
  79. <item row="3" column="1">
  80. <layout class="QHBoxLayout" name="horizontalLayout_2">
  81. <item>
  82. <widget class="QLineEdit" name="widgetName">
  83. <property name="placeholderText">
  84. <string>默认实体类名称后+Widget</string>
  85. </property>
  86. </widget>
  87. </item>
  88. <item>
  89. <widget class="QCheckBox" name="MultipleSelect">
  90. <property name="text">
  91. <string>多选</string>
  92. </property>
  93. </widget>
  94. </item>
  95. </layout>
  96. </item>
  97. </layout>
  98. </item>
  99. <item>
  100. <layout class="QGridLayout" name="gridLayout">
  101. <item row="0" column="0">
  102. <widget class="QLabel" name="label_6">
  103. <property name="text">
  104. <string>model路径</string>
  105. </property>
  106. </widget>
  107. </item>
  108. <item row="0" column="1">
  109. <widget class="QLineEdit" name="modelPath">
  110. <property name="text">
  111. <string/>
  112. </property>
  113. </widget>
  114. </item>
  115. <item row="0" column="2">
  116. <widget class="QPushButton" name="pbModelPath">
  117. <property name="text">
  118. <string>选择</string>
  119. </property>
  120. </widget>
  121. </item>
  122. <item row="1" column="0">
  123. <widget class="QLabel" name="label_8">
  124. <property name="text">
  125. <string>service路径</string>
  126. </property>
  127. </widget>
  128. </item>
  129. <item row="1" column="1">
  130. <widget class="QLineEdit" name="servicePath">
  131. <property name="text">
  132. <string/>
  133. </property>
  134. </widget>
  135. </item>
  136. <item row="1" column="2">
  137. <widget class="QPushButton" name="pbServicelPath">
  138. <property name="text">
  139. <string>选择</string>
  140. </property>
  141. </widget>
  142. </item>
  143. <item row="2" column="0">
  144. <widget class="QLabel" name="label_7">
  145. <property name="text">
  146. <string>Widget路径</string>
  147. </property>
  148. </widget>
  149. </item>
  150. <item row="2" column="1">
  151. <widget class="QLineEdit" name="widgetPath">
  152. <property name="text">
  153. <string/>
  154. </property>
  155. </widget>
  156. </item>
  157. <item row="2" column="2">
  158. <widget class="QPushButton" name="pbWidgetPath">
  159. <property name="sizePolicy">
  160. <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
  161. <horstretch>0</horstretch>
  162. <verstretch>0</verstretch>
  163. </sizepolicy>
  164. </property>
  165. <property name="text">
  166. <string>选择</string>
  167. </property>
  168. </widget>
  169. </item>
  170. </layout>
  171. </item>
  172. <item>
  173. <layout class="QHBoxLayout" name="horizontalLayout">
  174. <item>
  175. <spacer name="horizontalSpacer">
  176. <property name="orientation">
  177. <enum>Qt::Horizontal</enum>
  178. </property>
  179. <property name="sizeHint" stdset="0">
  180. <size>
  181. <width>40</width>
  182. <height>20</height>
  183. </size>
  184. </property>
  185. </spacer>
  186. </item>
  187. <item>
  188. <widget class="QPushButton" name="pbGenerate">
  189. <property name="sizePolicy">
  190. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  191. <horstretch>0</horstretch>
  192. <verstretch>0</verstretch>
  193. </sizepolicy>
  194. </property>
  195. <property name="text">
  196. <string>生成</string>
  197. </property>
  198. </widget>
  199. </item>
  200. </layout>
  201. </item>
  202. </layout>
  203. </widget>
  204. <widget class="QMenuBar" name="menuBar">
  205. <property name="geometry">
  206. <rect>
  207. <x>0</x>
  208. <y>0</y>
  209. <width>600</width>
  210. <height>23</height>
  211. </rect>
  212. </property>
  213. </widget>
  214. <widget class="QToolBar" name="mainToolBar">
  215. <attribute name="toolBarArea">
  216. <enum>TopToolBarArea</enum>
  217. </attribute>
  218. <attribute name="toolBarBreak">
  219. <bool>false</bool>
  220. </attribute>
  221. </widget>
  222. <widget class="QStatusBar" name="statusBar"/>
  223. </widget>
  224. <layoutdefault spacing="6" margin="11"/>
  225. <resources/>
  226. <connections>
  227. <connection>
  228. <sender>pbModelPath</sender>
  229. <signal>clicked()</signal>
  230. <receiver>MainWindowClass</receiver>
  231. <slot>onModelPath()</slot>
  232. <hints>
  233. <hint type="sourcelabel">
  234. <x>589</x>
  235. <y>182</y>
  236. </hint>
  237. <hint type="destinationlabel">
  238. <x>601</x>
  239. <y>292</y>
  240. </hint>
  241. </hints>
  242. </connection>
  243. <connection>
  244. <sender>pbServicelPath</sender>
  245. <signal>clicked()</signal>
  246. <receiver>MainWindowClass</receiver>
  247. <slot>onServicePath()</slot>
  248. <hints>
  249. <hint type="sourcelabel">
  250. <x>589</x>
  251. <y>216</y>
  252. </hint>
  253. <hint type="destinationlabel">
  254. <x>598</x>
  255. <y>335</y>
  256. </hint>
  257. </hints>
  258. </connection>
  259. <connection>
  260. <sender>pbWidgetPath</sender>
  261. <signal>clicked()</signal>
  262. <receiver>MainWindowClass</receiver>
  263. <slot>onWidgetPath()</slot>
  264. <hints>
  265. <hint type="sourcelabel">
  266. <x>589</x>
  267. <y>250</y>
  268. </hint>
  269. <hint type="destinationlabel">
  270. <x>600</x>
  271. <y>395</y>
  272. </hint>
  273. </hints>
  274. </connection>
  275. <connection>
  276. <sender>pbGenerate</sender>
  277. <signal>clicked()</signal>
  278. <receiver>MainWindowClass</receiver>
  279. <slot>onGenerate()</slot>
  280. <hints>
  281. <hint type="sourcelabel">
  282. <x>530</x>
  283. <y>315</y>
  284. </hint>
  285. <hint type="destinationlabel">
  286. <x>508</x>
  287. <y>406</y>
  288. </hint>
  289. </hints>
  290. </connection>
  291. </connections>
  292. <slots>
  293. <slot>onModelPath()</slot>
  294. <slot>onServicePath()</slot>
  295. <slot>onWidgetPath()</slot>
  296. <slot>onGenerate()</slot>
  297. </slots>
  298. </ui>