mainwindow.ui 8.4 KB

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