mainwindow.ui 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  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>6</number>
  24. </property>
  25. <property name="leftMargin">
  26. <number>6</number>
  27. </property>
  28. <property name="topMargin">
  29. <number>6</number>
  30. </property>
  31. <property name="rightMargin">
  32. <number>6</number>
  33. </property>
  34. <property name="bottomMargin">
  35. <number>6</number>
  36. </property>
  37. <item>
  38. <widget class="QScrollArea" name="networksScrollArea">
  39. <property name="sizePolicy">
  40. <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
  41. <horstretch>0</horstretch>
  42. <verstretch>0</verstretch>
  43. </sizepolicy>
  44. </property>
  45. <property name="toolTip">
  46. <string/>
  47. </property>
  48. <property name="frameShape">
  49. <enum>QFrame::NoFrame</enum>
  50. </property>
  51. <property name="horizontalScrollBarPolicy">
  52. <enum>Qt::ScrollBarAlwaysOff</enum>
  53. </property>
  54. <property name="widgetResizable">
  55. <bool>true</bool>
  56. </property>
  57. <property name="alignment">
  58. <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
  59. </property>
  60. <widget class="QWidget" name="networksScrollAreaContentWidget">
  61. <property name="geometry">
  62. <rect>
  63. <x>0</x>
  64. <y>0</y>
  65. <width>656</width>
  66. <height>238</height>
  67. </rect>
  68. </property>
  69. <property name="sizePolicy">
  70. <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
  71. <horstretch>0</horstretch>
  72. <verstretch>0</verstretch>
  73. </sizepolicy>
  74. </property>
  75. </widget>
  76. </widget>
  77. </item>
  78. <item>
  79. <widget class="QWidget" name="bottomContainerWidget" native="true">
  80. <property name="sizePolicy">
  81. <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
  82. <horstretch>0</horstretch>
  83. <verstretch>0</verstretch>
  84. </sizepolicy>
  85. </property>
  86. <layout class="QHBoxLayout" name="horizontalLayout" stretch="0,0,0">
  87. <property name="spacing">
  88. <number>6</number>
  89. </property>
  90. <property name="sizeConstraint">
  91. <enum>QLayout::SetDefaultConstraint</enum>
  92. </property>
  93. <property name="leftMargin">
  94. <number>0</number>
  95. </property>
  96. <property name="topMargin">
  97. <number>0</number>
  98. </property>
  99. <property name="rightMargin">
  100. <number>0</number>
  101. </property>
  102. <property name="bottomMargin">
  103. <number>0</number>
  104. </property>
  105. <item>
  106. <widget class="QToolButton" name="statusAndAddressButton">
  107. <property name="sizePolicy">
  108. <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
  109. <horstretch>0</horstretch>
  110. <verstretch>0</verstretch>
  111. </sizepolicy>
  112. </property>
  113. <property name="font">
  114. <font>
  115. <family>Courier</family>
  116. <pointsize>12</pointsize>
  117. </font>
  118. </property>
  119. <property name="toolTip">
  120. <string>Click to Copy Address to Clipboard</string>
  121. </property>
  122. <property name="styleSheet">
  123. <string notr="true">border: 0;</string>
  124. </property>
  125. <property name="text">
  126. <string>0000000000 (OFFLINE, 0 peers) </string>
  127. </property>
  128. <property name="toolButtonStyle">
  129. <enum>Qt::ToolButtonTextOnly</enum>
  130. </property>
  131. </widget>
  132. </item>
  133. <item>
  134. <widget class="QLineEdit" name="networkIdLineEdit">
  135. <property name="sizePolicy">
  136. <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
  137. <horstretch>0</horstretch>
  138. <verstretch>0</verstretch>
  139. </sizepolicy>
  140. </property>
  141. <property name="font">
  142. <font>
  143. <family>Courier</family>
  144. <pointsize>12</pointsize>
  145. </font>
  146. </property>
  147. <property name="toolTip">
  148. <string>Enter Hexadecimal Network ID</string>
  149. </property>
  150. <property name="frame">
  151. <bool>true</bool>
  152. </property>
  153. <property name="placeholderText">
  154. <string>(Numeric ID of Network to Join)</string>
  155. </property>
  156. </widget>
  157. </item>
  158. <item>
  159. <widget class="QToolButton" name="joinNetworkButton">
  160. <property name="sizePolicy">
  161. <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
  162. <horstretch>0</horstretch>
  163. <verstretch>0</verstretch>
  164. </sizepolicy>
  165. </property>
  166. <property name="font">
  167. <font>
  168. <family>Courier</family>
  169. <pointsize>12</pointsize>
  170. <weight>50</weight>
  171. <bold>false</bold>
  172. <underline>false</underline>
  173. </font>
  174. </property>
  175. <property name="toolTip">
  176. <string>Join Network</string>
  177. </property>
  178. <property name="autoFillBackground">
  179. <bool>false</bool>
  180. </property>
  181. <property name="styleSheet">
  182. <string notr="true"/>
  183. </property>
  184. <property name="text">
  185. <string>Join</string>
  186. </property>
  187. <property name="toolButtonStyle">
  188. <enum>Qt::ToolButtonTextOnly</enum>
  189. </property>
  190. </widget>
  191. </item>
  192. </layout>
  193. </widget>
  194. </item>
  195. </layout>
  196. </widget>
  197. <widget class="QMenuBar" name="menuBar">
  198. <property name="geometry">
  199. <rect>
  200. <x>0</x>
  201. <y>0</y>
  202. <width>668</width>
  203. <height>22</height>
  204. </rect>
  205. </property>
  206. <property name="layoutDirection">
  207. <enum>Qt::LeftToRight</enum>
  208. </property>
  209. <widget class="QMenu" name="menuHelp">
  210. <property name="title">
  211. <string>Help</string>
  212. </property>
  213. <addaction name="actionAbout"/>
  214. </widget>
  215. <widget class="QMenu" name="menuFile">
  216. <property name="title">
  217. <string>File</string>
  218. </property>
  219. <addaction name="actionJoin_Network"/>
  220. <addaction name="separator"/>
  221. <addaction name="actionExit"/>
  222. </widget>
  223. <addaction name="menuFile"/>
  224. <addaction name="menuHelp"/>
  225. </widget>
  226. <action name="actionAbout">
  227. <property name="text">
  228. <string>About</string>
  229. </property>
  230. </action>
  231. <action name="actionJoin_Network">
  232. <property name="text">
  233. <string>Join Network</string>
  234. </property>
  235. </action>
  236. <action name="actionExit">
  237. <property name="text">
  238. <string>Exit</string>
  239. </property>
  240. </action>
  241. </widget>
  242. <layoutdefault spacing="6" margin="11"/>
  243. <resources>
  244. <include location="resources.qrc"/>
  245. </resources>
  246. <connections>
  247. <connection>
  248. <sender>actionExit</sender>
  249. <signal>triggered()</signal>
  250. <receiver>MainWindow</receiver>
  251. <slot>close()</slot>
  252. <hints>
  253. <hint type="sourcelabel">
  254. <x>-1</x>
  255. <y>-1</y>
  256. </hint>
  257. <hint type="destinationlabel">
  258. <x>333</x>
  259. <y>149</y>
  260. </hint>
  261. </hints>
  262. </connection>
  263. </connections>
  264. </ui>