mainwindow.ui 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390
  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="QLabel" name="noNetworksLabel">
  39. <property name="palette">
  40. <palette>
  41. <active>
  42. <colorrole role="WindowText">
  43. <brush brushstyle="SolidPattern">
  44. <color alpha="64">
  45. <red>0</red>
  46. <green>0</green>
  47. <blue>0</blue>
  48. </color>
  49. </brush>
  50. </colorrole>
  51. </active>
  52. <inactive>
  53. <colorrole role="WindowText">
  54. <brush brushstyle="SolidPattern">
  55. <color alpha="64">
  56. <red>0</red>
  57. <green>0</green>
  58. <blue>0</blue>
  59. </color>
  60. </brush>
  61. </colorrole>
  62. </inactive>
  63. <disabled>
  64. <colorrole role="WindowText">
  65. <brush brushstyle="SolidPattern">
  66. <color alpha="255">
  67. <red>127</red>
  68. <green>127</green>
  69. <blue>127</blue>
  70. </color>
  71. </brush>
  72. </colorrole>
  73. </disabled>
  74. </palette>
  75. </property>
  76. <property name="font">
  77. <font>
  78. <pointsize>16</pointsize>
  79. </font>
  80. </property>
  81. <property name="frameShape">
  82. <enum>QFrame::NoFrame</enum>
  83. </property>
  84. <property name="text">
  85. <string>You Have Not Joined Any Networks</string>
  86. </property>
  87. <property name="textFormat">
  88. <enum>Qt::PlainText</enum>
  89. </property>
  90. <property name="alignment">
  91. <set>Qt::AlignCenter</set>
  92. </property>
  93. <property name="wordWrap">
  94. <bool>true</bool>
  95. </property>
  96. <property name="margin">
  97. <number>25</number>
  98. </property>
  99. <property name="textInteractionFlags">
  100. <set>Qt::NoTextInteraction</set>
  101. </property>
  102. </widget>
  103. </item>
  104. <item>
  105. <widget class="QListWidget" name="networkListWidget">
  106. <property name="focusPolicy">
  107. <enum>Qt::NoFocus</enum>
  108. </property>
  109. <property name="styleSheet">
  110. <string notr="true">QListWidget#networkListWidget {
  111. background-color: transparent;
  112. }
  113. QListWidget#networkListWidget::Item {
  114. background-color: palette(base);
  115. border: 0;
  116. }</string>
  117. </property>
  118. <property name="frameShape">
  119. <enum>QFrame::NoFrame</enum>
  120. </property>
  121. <property name="horizontalScrollBarPolicy">
  122. <enum>Qt::ScrollBarAlwaysOff</enum>
  123. </property>
  124. <property name="autoScroll">
  125. <bool>false</bool>
  126. </property>
  127. <property name="editTriggers">
  128. <set>QAbstractItemView::NoEditTriggers</set>
  129. </property>
  130. <property name="selectionMode">
  131. <enum>QAbstractItemView::NoSelection</enum>
  132. </property>
  133. <property name="verticalScrollMode">
  134. <enum>QAbstractItemView::ScrollPerPixel</enum>
  135. </property>
  136. <property name="spacing">
  137. <number>2</number>
  138. </property>
  139. <property name="uniformItemSizes">
  140. <bool>true</bool>
  141. </property>
  142. </widget>
  143. </item>
  144. <item>
  145. <widget class="QWidget" name="bottomContainerWidget" native="true">
  146. <layout class="QHBoxLayout" name="horizontalLayout">
  147. <property name="spacing">
  148. <number>0</number>
  149. </property>
  150. <property name="leftMargin">
  151. <number>0</number>
  152. </property>
  153. <property name="topMargin">
  154. <number>0</number>
  155. </property>
  156. <property name="rightMargin">
  157. <number>0</number>
  158. </property>
  159. <property name="bottomMargin">
  160. <number>0</number>
  161. </property>
  162. <item>
  163. <widget class="QPushButton" name="addressButton">
  164. <property name="sizePolicy">
  165. <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
  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. <weight>75</weight>
  175. <bold>true</bold>
  176. </font>
  177. </property>
  178. <property name="statusTip">
  179. <string>Your 10-digit ZeroTier address; click to copy to clipboard.</string>
  180. </property>
  181. <property name="styleSheet">
  182. <string notr="true">QPushButton {
  183. border: 0;
  184. text-align: left;
  185. padding: 0 5px 0 5px;
  186. margin: 0;
  187. background-color: transparent;
  188. }
  189. QPushButton:focus {
  190. background-color: rgba(0,0,0,15);
  191. }
  192. QPushButton:hover {
  193. background-color: rgba(0,0,0,15);
  194. }
  195. QPushButton:pressed {
  196. background-color: rgba(0,0,0,75);
  197. }
  198. s</string>
  199. </property>
  200. <property name="text">
  201. <string/>
  202. </property>
  203. <property name="flat">
  204. <bool>true</bool>
  205. </property>
  206. </widget>
  207. </item>
  208. <item>
  209. <widget class="QLabel" name="statusLabel">
  210. <property name="sizePolicy">
  211. <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
  212. <horstretch>0</horstretch>
  213. <verstretch>0</verstretch>
  214. </sizepolicy>
  215. </property>
  216. <property name="font">
  217. <font>
  218. <pointsize>10</pointsize>
  219. </font>
  220. </property>
  221. <property name="statusTip">
  222. <string>Your network connection status.</string>
  223. </property>
  224. <property name="styleSheet">
  225. <string notr="true">padding: 0 0.75em 0 0.75em;
  226. margin: 0 4px 0 0;
  227. </string>
  228. </property>
  229. <property name="text">
  230. <string/>
  231. </property>
  232. <property name="textFormat">
  233. <enum>Qt::PlainText</enum>
  234. </property>
  235. </widget>
  236. </item>
  237. <item>
  238. <widget class="QLineEdit" name="networkIdLineEdit">
  239. <property name="sizePolicy">
  240. <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
  241. <horstretch>0</horstretch>
  242. <verstretch>0</verstretch>
  243. </sizepolicy>
  244. </property>
  245. <property name="font">
  246. <font>
  247. <family>Courier</family>
  248. <pointsize>12</pointsize>
  249. </font>
  250. </property>
  251. <property name="statusTip">
  252. <string>Enter a hexadecimal network ID to join a network.</string>
  253. </property>
  254. <property name="maxLength">
  255. <number>16</number>
  256. </property>
  257. <property name="frame">
  258. <bool>true</bool>
  259. </property>
  260. <property name="placeholderText">
  261. <string>(Network ID)</string>
  262. </property>
  263. </widget>
  264. </item>
  265. <item>
  266. <widget class="QPushButton" name="joinNetworkButton">
  267. <property name="sizePolicy">
  268. <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
  269. <horstretch>0</horstretch>
  270. <verstretch>0</verstretch>
  271. </sizepolicy>
  272. </property>
  273. <property name="font">
  274. <font>
  275. <family>Courier</family>
  276. <pointsize>16</pointsize>
  277. <weight>75</weight>
  278. <bold>true</bold>
  279. </font>
  280. </property>
  281. <property name="statusTip">
  282. <string>Join this network.</string>
  283. </property>
  284. <property name="styleSheet">
  285. <string notr="true">QPushButton {
  286. padding: 0 0.8em 0 0.8em;
  287. margin: 0;
  288. border: 0;
  289. background-color: rgba(0,0,0,25);
  290. }
  291. QPushButton:focus {
  292. background-color: rgba(0,0,0,33);
  293. }
  294. QPushButton:hover {
  295. background-color: rgba(0,0,0,33);
  296. }
  297. QPushButton:pressed {
  298. background-color: rgba(0,0,0,75);
  299. }
  300. </string>
  301. </property>
  302. <property name="text">
  303. <string notr="true">+</string>
  304. </property>
  305. <property name="flat">
  306. <bool>true</bool>
  307. </property>
  308. </widget>
  309. </item>
  310. </layout>
  311. </widget>
  312. </item>
  313. </layout>
  314. </widget>
  315. <widget class="QMenuBar" name="menuBar">
  316. <property name="geometry">
  317. <rect>
  318. <x>0</x>
  319. <y>0</y>
  320. <width>668</width>
  321. <height>22</height>
  322. </rect>
  323. </property>
  324. <property name="layoutDirection">
  325. <enum>Qt::LeftToRight</enum>
  326. </property>
  327. <widget class="QMenu" name="menuHelp">
  328. <property name="title">
  329. <string>Help</string>
  330. </property>
  331. <addaction name="actionAbout"/>
  332. </widget>
  333. <widget class="QMenu" name="menuFile">
  334. <property name="title">
  335. <string>File</string>
  336. </property>
  337. <addaction name="separator"/>
  338. <addaction name="actionExit"/>
  339. </widget>
  340. <addaction name="menuFile"/>
  341. <addaction name="menuHelp"/>
  342. </widget>
  343. <widget class="QStatusBar" name="statusBar">
  344. <property name="font">
  345. <font>
  346. <pointsize>12</pointsize>
  347. </font>
  348. </property>
  349. </widget>
  350. <action name="actionAbout">
  351. <property name="text">
  352. <string>About</string>
  353. </property>
  354. </action>
  355. <action name="actionExit">
  356. <property name="text">
  357. <string>Exit</string>
  358. </property>
  359. </action>
  360. </widget>
  361. <layoutdefault spacing="6" margin="11"/>
  362. <resources>
  363. <include location="resources.qrc"/>
  364. </resources>
  365. <connections>
  366. <connection>
  367. <sender>actionExit</sender>
  368. <signal>triggered()</signal>
  369. <receiver>MainWindow</receiver>
  370. <slot>close()</slot>
  371. <hints>
  372. <hint type="sourcelabel">
  373. <x>-1</x>
  374. <y>-1</y>
  375. </hint>
  376. <hint type="destinationlabel">
  377. <x>333</x>
  378. <y>149</y>
  379. </hint>
  380. </hints>
  381. </connection>
  382. </connections>
  383. </ui>