mainwindow.ui 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  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>668</width>
  10. <height>300</height>
  11. </rect>
  12. </property>
  13. <property name="windowTitle">
  14. <string>ZeroTier One</string>
  15. </property>
  16. <property name="windowIcon">
  17. <iconset resource="resources.qrc">
  18. <normaloff>:/img/zt1icon.png</normaloff>:/img/zt1icon.png</iconset>
  19. </property>
  20. <widget class="QWidget" name="centralWidget">
  21. <layout class="QVBoxLayout" name="verticalLayout">
  22. <property name="spacing">
  23. <number>0</number>
  24. </property>
  25. <property name="leftMargin">
  26. <number>0</number>
  27. </property>
  28. <property name="topMargin">
  29. <number>0</number>
  30. </property>
  31. <property name="rightMargin">
  32. <number>0</number>
  33. </property>
  34. <property name="bottomMargin">
  35. <number>0</number>
  36. </property>
  37. <item>
  38. <widget class="QListWidget" name="networkListWidget">
  39. <property name="focusPolicy">
  40. <enum>Qt::NoFocus</enum>
  41. </property>
  42. <property name="styleSheet">
  43. <string notr="true">QListWidget#networkListWidget::Item {
  44. background-color: rgba(0,0,0,10);
  45. padding: 0;
  46. margin: 0 0.15em 0.15em 0.15em;
  47. }</string>
  48. </property>
  49. <property name="frameShape">
  50. <enum>QFrame::NoFrame</enum>
  51. </property>
  52. <property name="horizontalScrollBarPolicy">
  53. <enum>Qt::ScrollBarAlwaysOff</enum>
  54. </property>
  55. <property name="autoScroll">
  56. <bool>false</bool>
  57. </property>
  58. <property name="editTriggers">
  59. <set>QAbstractItemView::NoEditTriggers</set>
  60. </property>
  61. <property name="selectionMode">
  62. <enum>QAbstractItemView::NoSelection</enum>
  63. </property>
  64. <property name="spacing">
  65. <number>0</number>
  66. </property>
  67. <property name="uniformItemSizes">
  68. <bool>true</bool>
  69. </property>
  70. </widget>
  71. </item>
  72. <item>
  73. <widget class="QWidget" name="bottomContainerWidget" native="true">
  74. <layout class="QHBoxLayout" name="horizontalLayout">
  75. <property name="spacing">
  76. <number>0</number>
  77. </property>
  78. <property name="leftMargin">
  79. <number>0</number>
  80. </property>
  81. <property name="topMargin">
  82. <number>0</number>
  83. </property>
  84. <property name="rightMargin">
  85. <number>0</number>
  86. </property>
  87. <property name="bottomMargin">
  88. <number>0</number>
  89. </property>
  90. <item>
  91. <widget class="QPushButton" name="addressButton">
  92. <property name="sizePolicy">
  93. <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
  94. <horstretch>0</horstretch>
  95. <verstretch>0</verstretch>
  96. </sizepolicy>
  97. </property>
  98. <property name="font">
  99. <font>
  100. <family>Courier</family>
  101. <pointsize>12</pointsize>
  102. <weight>75</weight>
  103. <bold>true</bold>
  104. </font>
  105. </property>
  106. <property name="statusTip">
  107. <string>Your 10-digit ZeroTier address; click to copy to clipboard.</string>
  108. </property>
  109. <property name="styleSheet">
  110. <string notr="true">QPushButton {
  111. border: 0;
  112. text-align: left;
  113. padding: 0 5px 0 5px;
  114. background-color: transparent;
  115. }
  116. QPushButton:focus {
  117. background-color: rgba(0,0,0,15);
  118. }
  119. QPushButton:hover {
  120. background-color: rgba(0,0,0,15);
  121. }
  122. QPushButton:pressed {
  123. background-color: rgba(0,0,0,75);
  124. }
  125. s</string>
  126. </property>
  127. <property name="text">
  128. <string>##########</string>
  129. </property>
  130. <property name="flat">
  131. <bool>true</bool>
  132. </property>
  133. </widget>
  134. </item>
  135. <item>
  136. <widget class="QLabel" name="statusLabel">
  137. <property name="sizePolicy">
  138. <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
  139. <horstretch>0</horstretch>
  140. <verstretch>0</verstretch>
  141. </sizepolicy>
  142. </property>
  143. <property name="font">
  144. <font>
  145. <pointsize>10</pointsize>
  146. </font>
  147. </property>
  148. <property name="statusTip">
  149. <string>Your network connection status.</string>
  150. </property>
  151. <property name="styleSheet">
  152. <string notr="true">padding: 0 0.75em 0 0.75em;</string>
  153. </property>
  154. <property name="text">
  155. <string>STATUS, etc.</string>
  156. </property>
  157. <property name="textFormat">
  158. <enum>Qt::PlainText</enum>
  159. </property>
  160. </widget>
  161. </item>
  162. <item>
  163. <widget class="QLineEdit" name="networkIdLineEdit">
  164. <property name="sizePolicy">
  165. <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
  166. <horstretch>0</horstretch>
  167. <verstretch>0</verstretch>
  168. </sizepolicy>
  169. </property>
  170. <property name="font">
  171. <font>
  172. <family>Courier</family>
  173. <pointsize>12</pointsize>
  174. </font>
  175. </property>
  176. <property name="statusTip">
  177. <string>Enter a hexadecimal network ID to join a network.</string>
  178. </property>
  179. <property name="maxLength">
  180. <number>16</number>
  181. </property>
  182. <property name="frame">
  183. <bool>true</bool>
  184. </property>
  185. <property name="placeholderText">
  186. <string>################</string>
  187. </property>
  188. </widget>
  189. </item>
  190. <item>
  191. <widget class="QPushButton" name="joinNetworkButton">
  192. <property name="sizePolicy">
  193. <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
  194. <horstretch>0</horstretch>
  195. <verstretch>0</verstretch>
  196. </sizepolicy>
  197. </property>
  198. <property name="font">
  199. <font>
  200. <family>Courier</family>
  201. <pointsize>16</pointsize>
  202. <weight>75</weight>
  203. <bold>true</bold>
  204. </font>
  205. </property>
  206. <property name="statusTip">
  207. <string>Join this network.</string>
  208. </property>
  209. <property name="styleSheet">
  210. <string notr="true">QPushButton {
  211. padding: 0 0.8em 0 0.8em;
  212. margin: 0;
  213. border: 0;
  214. background: transparent;
  215. }
  216. QPushButton:focus {
  217. background-color: rgba(0,0,0,25);
  218. }
  219. QPushButton:hover {
  220. background-color: rgba(0,0,0,25);
  221. }
  222. QPushButton:pressed {
  223. background-color: rgba(0,0,0,75);
  224. }
  225. </string>
  226. </property>
  227. <property name="text">
  228. <string notr="true">+</string>
  229. </property>
  230. <property name="flat">
  231. <bool>true</bool>
  232. </property>
  233. </widget>
  234. </item>
  235. </layout>
  236. </widget>
  237. </item>
  238. </layout>
  239. </widget>
  240. <widget class="QMenuBar" name="menuBar">
  241. <property name="geometry">
  242. <rect>
  243. <x>0</x>
  244. <y>0</y>
  245. <width>668</width>
  246. <height>22</height>
  247. </rect>
  248. </property>
  249. <property name="layoutDirection">
  250. <enum>Qt::LeftToRight</enum>
  251. </property>
  252. <widget class="QMenu" name="menuHelp">
  253. <property name="title">
  254. <string>Help</string>
  255. </property>
  256. <addaction name="actionAbout"/>
  257. </widget>
  258. <widget class="QMenu" name="menuFile">
  259. <property name="title">
  260. <string>File</string>
  261. </property>
  262. <addaction name="separator"/>
  263. <addaction name="actionExit"/>
  264. </widget>
  265. <addaction name="menuFile"/>
  266. <addaction name="menuHelp"/>
  267. </widget>
  268. <widget class="QStatusBar" name="statusBar">
  269. <property name="font">
  270. <font>
  271. <pointsize>12</pointsize>
  272. </font>
  273. </property>
  274. </widget>
  275. <action name="actionAbout">
  276. <property name="text">
  277. <string>About</string>
  278. </property>
  279. </action>
  280. <action name="actionExit">
  281. <property name="text">
  282. <string>Exit</string>
  283. </property>
  284. </action>
  285. </widget>
  286. <layoutdefault spacing="6" margin="11"/>
  287. <resources>
  288. <include location="resources.qrc"/>
  289. </resources>
  290. <connections>
  291. <connection>
  292. <sender>actionExit</sender>
  293. <signal>triggered()</signal>
  294. <receiver>MainWindow</receiver>
  295. <slot>close()</slot>
  296. <hints>
  297. <hint type="sourcelabel">
  298. <x>-1</x>
  299. <y>-1</y>
  300. </hint>
  301. <hint type="destinationlabel">
  302. <x>333</x>
  303. <y>149</y>
  304. </hint>
  305. </hints>
  306. </connection>
  307. </connections>
  308. </ui>