mainwindow.ui 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  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 {
  44. background-color: transparent;
  45. }
  46. QListWidget#networkListWidget::Item {
  47. background-color: palette(base);
  48. border: 0;
  49. }</string>
  50. </property>
  51. <property name="frameShape">
  52. <enum>QFrame::NoFrame</enum>
  53. </property>
  54. <property name="horizontalScrollBarPolicy">
  55. <enum>Qt::ScrollBarAlwaysOff</enum>
  56. </property>
  57. <property name="autoScroll">
  58. <bool>false</bool>
  59. </property>
  60. <property name="editTriggers">
  61. <set>QAbstractItemView::NoEditTriggers</set>
  62. </property>
  63. <property name="selectionMode">
  64. <enum>QAbstractItemView::NoSelection</enum>
  65. </property>
  66. <property name="verticalScrollMode">
  67. <enum>QAbstractItemView::ScrollPerPixel</enum>
  68. </property>
  69. <property name="spacing">
  70. <number>2</number>
  71. </property>
  72. <property name="uniformItemSizes">
  73. <bool>true</bool>
  74. </property>
  75. </widget>
  76. </item>
  77. <item>
  78. <widget class="QWidget" name="bottomContainerWidget" native="true">
  79. <layout class="QHBoxLayout" name="horizontalLayout">
  80. <property name="spacing">
  81. <number>0</number>
  82. </property>
  83. <property name="leftMargin">
  84. <number>0</number>
  85. </property>
  86. <property name="topMargin">
  87. <number>0</number>
  88. </property>
  89. <property name="rightMargin">
  90. <number>0</number>
  91. </property>
  92. <property name="bottomMargin">
  93. <number>0</number>
  94. </property>
  95. <item>
  96. <widget class="QPushButton" name="addressButton">
  97. <property name="sizePolicy">
  98. <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
  99. <horstretch>0</horstretch>
  100. <verstretch>0</verstretch>
  101. </sizepolicy>
  102. </property>
  103. <property name="font">
  104. <font>
  105. <family>Courier</family>
  106. <pointsize>12</pointsize>
  107. <weight>75</weight>
  108. <bold>true</bold>
  109. </font>
  110. </property>
  111. <property name="statusTip">
  112. <string>Your 10-digit ZeroTier address; click to copy to clipboard.</string>
  113. </property>
  114. <property name="styleSheet">
  115. <string notr="true">QPushButton {
  116. border: 0;
  117. text-align: left;
  118. padding: 0 5px 0 5px;
  119. margin: 0;
  120. background-color: transparent;
  121. }
  122. QPushButton:focus {
  123. background-color: rgba(0,0,0,15);
  124. }
  125. QPushButton:hover {
  126. background-color: rgba(0,0,0,15);
  127. }
  128. QPushButton:pressed {
  129. background-color: rgba(0,0,0,75);
  130. }
  131. s</string>
  132. </property>
  133. <property name="text">
  134. <string> </string>
  135. </property>
  136. <property name="flat">
  137. <bool>true</bool>
  138. </property>
  139. </widget>
  140. </item>
  141. <item>
  142. <widget class="QLabel" name="statusLabel">
  143. <property name="sizePolicy">
  144. <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
  145. <horstretch>0</horstretch>
  146. <verstretch>0</verstretch>
  147. </sizepolicy>
  148. </property>
  149. <property name="font">
  150. <font>
  151. <pointsize>10</pointsize>
  152. </font>
  153. </property>
  154. <property name="statusTip">
  155. <string>Your network connection status.</string>
  156. </property>
  157. <property name="styleSheet">
  158. <string notr="true">padding: 0 0.75em 0 0.75em;
  159. margin: 0 4px 0 0;
  160. </string>
  161. </property>
  162. <property name="text">
  163. <string>STATUS, etc.</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="QPushButton" 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="styleSheet">
  218. <string notr="true">QPushButton {
  219. padding: 0 0.8em 0 0.8em;
  220. margin: 0;
  221. border: 0;
  222. background-color: rgba(0,0,0,25);
  223. }
  224. QPushButton:focus {
  225. background-color: rgba(0,0,0,33);
  226. }
  227. QPushButton:hover {
  228. background-color: rgba(0,0,0,33);
  229. }
  230. QPushButton:pressed {
  231. background-color: rgba(0,0,0,75);
  232. }
  233. </string>
  234. </property>
  235. <property name="text">
  236. <string notr="true">+</string>
  237. </property>
  238. <property name="flat">
  239. <bool>true</bool>
  240. </property>
  241. </widget>
  242. </item>
  243. </layout>
  244. </widget>
  245. </item>
  246. </layout>
  247. </widget>
  248. <widget class="QMenuBar" name="menuBar">
  249. <property name="geometry">
  250. <rect>
  251. <x>0</x>
  252. <y>0</y>
  253. <width>668</width>
  254. <height>22</height>
  255. </rect>
  256. </property>
  257. <property name="layoutDirection">
  258. <enum>Qt::LeftToRight</enum>
  259. </property>
  260. <widget class="QMenu" name="menuHelp">
  261. <property name="title">
  262. <string>Help</string>
  263. </property>
  264. <addaction name="actionAbout"/>
  265. </widget>
  266. <widget class="QMenu" name="menuFile">
  267. <property name="title">
  268. <string>File</string>
  269. </property>
  270. <addaction name="separator"/>
  271. <addaction name="actionExit"/>
  272. </widget>
  273. <addaction name="menuFile"/>
  274. <addaction name="menuHelp"/>
  275. </widget>
  276. <widget class="QStatusBar" name="statusBar">
  277. <property name="font">
  278. <font>
  279. <pointsize>12</pointsize>
  280. </font>
  281. </property>
  282. </widget>
  283. <action name="actionAbout">
  284. <property name="text">
  285. <string>About</string>
  286. </property>
  287. </action>
  288. <action name="actionExit">
  289. <property name="text">
  290. <string>Exit</string>
  291. </property>
  292. </action>
  293. </widget>
  294. <layoutdefault spacing="6" margin="11"/>
  295. <resources>
  296. <include location="resources.qrc"/>
  297. </resources>
  298. <connections>
  299. <connection>
  300. <sender>actionExit</sender>
  301. <signal>triggered()</signal>
  302. <receiver>MainWindow</receiver>
  303. <slot>close()</slot>
  304. <hints>
  305. <hint type="sourcelabel">
  306. <x>-1</x>
  307. <y>-1</y>
  308. </hint>
  309. <hint type="destinationlabel">
  310. <x>333</x>
  311. <y>149</y>
  312. </hint>
  313. </hints>
  314. </connection>
  315. </connections>
  316. </ui>