Experimenting with Go GTK+
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

332 lines
13 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Generated with glade 3.36.0 -->
  3. <interface>
  4. <requires lib="gtk+" version="3.22"/>
  5. <object class="GtkFileChooserDialog" id="dlg_new_file">
  6. <property name="can_focus">False</property>
  7. <property name="title" translatable="yes">Choose your file</property>
  8. <property name="type_hint">dialog</property>
  9. <signal name="file-activated" handler="on_new_file_selected" swapped="no"/>
  10. <child internal-child="vbox">
  11. <object class="GtkBox">
  12. <property name="can_focus">False</property>
  13. <property name="orientation">vertical</property>
  14. <property name="spacing">2</property>
  15. <child internal-child="action_area">
  16. <object class="GtkButtonBox">
  17. <property name="can_focus">False</property>
  18. <property name="layout_style">end</property>
  19. <child>
  20. <object class="GtkButton">
  21. <property name="label" translatable="yes">Accept</property>
  22. <property name="visible">True</property>
  23. <property name="can_focus">True</property>
  24. <property name="receives_default">True</property>
  25. </object>
  26. <packing>
  27. <property name="expand">True</property>
  28. <property name="fill">True</property>
  29. <property name="position">0</property>
  30. </packing>
  31. </child>
  32. <child>
  33. <object class="GtkButton">
  34. <property name="label" translatable="yes">Cancel</property>
  35. <property name="visible">True</property>
  36. <property name="can_focus">True</property>
  37. <property name="receives_default">True</property>
  38. </object>
  39. <packing>
  40. <property name="expand">True</property>
  41. <property name="fill">True</property>
  42. <property name="position">1</property>
  43. </packing>
  44. </child>
  45. </object>
  46. <packing>
  47. <property name="expand">False</property>
  48. <property name="fill">False</property>
  49. <property name="position">0</property>
  50. </packing>
  51. </child>
  52. <child>
  53. <placeholder/>
  54. </child>
  55. </object>
  56. </child>
  57. <child type="titlebar">
  58. <placeholder/>
  59. </child>
  60. </object>
  61. <object class="GtkMenu" id="menu1">
  62. <property name="visible">True</property>
  63. <property name="can_focus">False</property>
  64. <child>
  65. <object class="GtkMenuItem" id="menu_home">
  66. <property name="visible">True</property>
  67. <property name="can_focus">False</property>
  68. <property name="label" translatable="yes">Home</property>
  69. <property name="use_underline">True</property>
  70. <signal name="activate" handler="on_menu_home_activate" swapped="no"/>
  71. </object>
  72. </child>
  73. <child>
  74. <object class="GtkSeparatorMenuItem">
  75. <property name="visible">True</property>
  76. <property name="can_focus">False</property>
  77. </object>
  78. </child>
  79. <child>
  80. <object class="GtkMenuItem" id="menu_new">
  81. <property name="visible">True</property>
  82. <property name="can_focus">False</property>
  83. <property name="label" translatable="yes">New</property>
  84. <property name="use_underline">True</property>
  85. <signal name="activate" handler="on_menu_new_activate" swapped="no"/>
  86. <accelerator key="n" signal="activate" modifiers="GDK_CONTROL_MASK"/>
  87. </object>
  88. </child>
  89. <child>
  90. <object class="GtkMenuItem" id="menu_open">
  91. <property name="visible">True</property>
  92. <property name="can_focus">False</property>
  93. <property name="label" translatable="yes">Open</property>
  94. <property name="use_underline">True</property>
  95. <signal name="activate" handler="on_menu_open_activate" swapped="no"/>
  96. <accelerator key="o" signal="activate" modifiers="GDK_CONTROL_MASK"/>
  97. </object>
  98. </child>
  99. <child>
  100. <object class="GtkMenuItem" id="menu_save">
  101. <property name="visible">True</property>
  102. <property name="can_focus">False</property>
  103. <property name="label" translatable="yes">Save</property>
  104. <property name="use_underline">True</property>
  105. <signal name="activate" handler="on_menu_save_activate" swapped="no"/>
  106. <accelerator key="s" signal="activate" modifiers="GDK_CONTROL_MASK"/>
  107. </object>
  108. </child>
  109. <child>
  110. <object class="GtkSeparatorMenuItem">
  111. <property name="visible">True</property>
  112. <property name="can_focus">False</property>
  113. </object>
  114. </child>
  115. <child>
  116. <object class="GtkMenuItem" id="menu_quit">
  117. <property name="visible">True</property>
  118. <property name="can_focus">False</property>
  119. <property name="label" translatable="yes">Quit</property>
  120. <property name="use_underline">True</property>
  121. <signal name="activate" handler="on_menu_quit_activate" swapped="no"/>
  122. <accelerator key="F4" signal="activate" modifiers="GDK_MOD1_MASK"/>
  123. </object>
  124. </child>
  125. </object>
  126. <object class="GtkApplicationWindow" id="main_window">
  127. <property name="width_request">360</property>
  128. <property name="height_request">720</property>
  129. <property name="can_focus">False</property>
  130. <property name="show_menubar">False</property>
  131. <signal name="destroy" handler="on_main_window_destroy" swapped="no"/>
  132. <child>
  133. <object class="GtkStack" id="mw_stack">
  134. <property name="visible">True</property>
  135. <property name="can_focus">False</property>
  136. <property name="transition_type">slide-left</property>
  137. <child>
  138. <object class="GtkBox" id="box_main">
  139. <property name="visible">True</property>
  140. <property name="can_focus">False</property>
  141. <property name="orientation">vertical</property>
  142. <child>
  143. <object class="GtkListBox" id="mw_list">
  144. <property name="visible">True</property>
  145. <property name="can_focus">False</property>
  146. </object>
  147. <packing>
  148. <property name="expand">True</property>
  149. <property name="fill">True</property>
  150. <property name="position">0</property>
  151. </packing>
  152. </child>
  153. <child>
  154. <object class="GtkBox" id="dyn_btn_box">
  155. <property name="visible">True</property>
  156. <property name="can_focus">False</property>
  157. <property name="orientation">vertical</property>
  158. <child>
  159. <object class="GtkButton">
  160. <property name="label" translatable="yes">Glade button</property>
  161. <property name="visible">True</property>
  162. <property name="can_focus">True</property>
  163. <property name="receives_default">True</property>
  164. </object>
  165. <packing>
  166. <property name="expand">False</property>
  167. <property name="fill">True</property>
  168. <property name="position">0</property>
  169. </packing>
  170. </child>
  171. <child>
  172. <placeholder/>
  173. </child>
  174. <child>
  175. <placeholder/>
  176. </child>
  177. </object>
  178. <packing>
  179. <property name="expand">False</property>
  180. <property name="fill">True</property>
  181. <property name="position">1</property>
  182. </packing>
  183. </child>
  184. <child>
  185. <object class="GtkButton" id="btn_about">
  186. <property name="label" translatable="yes">About</property>
  187. <property name="visible">True</property>
  188. <property name="can_focus">True</property>
  189. <property name="receives_default">True</property>
  190. <signal name="clicked" handler="on_btn_about_clicked" swapped="no"/>
  191. </object>
  192. <packing>
  193. <property name="expand">False</property>
  194. <property name="fill">True</property>
  195. <property name="position">2</property>
  196. </packing>
  197. </child>
  198. </object>
  199. <packing>
  200. <property name="name">page0</property>
  201. <property name="title" translatable="yes">page0</property>
  202. </packing>
  203. </child>
  204. <child>
  205. <object class="GtkGrid" id="box_about">
  206. <property name="name">stack_about</property>
  207. <property name="visible">True</property>
  208. <property name="can_focus">False</property>
  209. <child>
  210. <object class="GtkLabel">
  211. <property name="visible">True</property>
  212. <property name="can_focus">False</property>
  213. <property name="label" translatable="yes">The About Screen!</property>
  214. </object>
  215. <packing>
  216. <property name="left_attach">1</property>
  217. <property name="top_attach">0</property>
  218. </packing>
  219. </child>
  220. <child>
  221. <object class="GtkButton" id="btn_about_back">
  222. <property name="label" translatable="yes">Back</property>
  223. <property name="visible">True</property>
  224. <property name="can_focus">True</property>
  225. <property name="receives_default">True</property>
  226. <signal name="clicked" handler="on_btn_about_back_clicked" swapped="no"/>
  227. </object>
  228. <packing>
  229. <property name="left_attach">1</property>
  230. <property name="top_attach">1</property>
  231. </packing>
  232. </child>
  233. <child>
  234. <placeholder/>
  235. </child>
  236. <child>
  237. <placeholder/>
  238. </child>
  239. <child>
  240. <placeholder/>
  241. </child>
  242. <child>
  243. <placeholder/>
  244. </child>
  245. <child>
  246. <placeholder/>
  247. </child>
  248. <child>
  249. <placeholder/>
  250. </child>
  251. <child>
  252. <placeholder/>
  253. </child>
  254. </object>
  255. <packing>
  256. <property name="name">page1</property>
  257. <property name="title" translatable="yes">page1</property>
  258. <property name="position">1</property>
  259. </packing>
  260. </child>
  261. <child>
  262. <object class="GtkBox" id="box_detail">
  263. <property name="visible">True</property>
  264. <property name="can_focus">False</property>
  265. <property name="orientation">vertical</property>
  266. <child>
  267. <object class="GtkLabel" id="box_detail_header">
  268. <property name="visible">True</property>
  269. <property name="can_focus">False</property>
  270. <property name="label" translatable="yes">label</property>
  271. <attributes>
  272. <attribute name="font-desc" value="Sans Bold 18"/>
  273. <attribute name="foreground" value="#cccc00000000"/>
  274. </attributes>
  275. </object>
  276. <packing>
  277. <property name="expand">False</property>
  278. <property name="fill">True</property>
  279. <property name="position">0</property>
  280. </packing>
  281. </child>
  282. <child>
  283. <object class="GtkButton" id="btn_detail_back">
  284. <property name="label" translatable="yes">Back to Menu</property>
  285. <property name="visible">True</property>
  286. <property name="can_focus">True</property>
  287. <property name="receives_default">True</property>
  288. <signal name="clicked" handler="on_btn_detail_back_clicked" swapped="no"/>
  289. </object>
  290. <packing>
  291. <property name="expand">False</property>
  292. <property name="fill">True</property>
  293. <property name="position">1</property>
  294. </packing>
  295. </child>
  296. <child>
  297. <placeholder/>
  298. </child>
  299. </object>
  300. <packing>
  301. <property name="name">page2</property>
  302. <property name="title" translatable="yes">page2</property>
  303. <property name="position">2</property>
  304. </packing>
  305. </child>
  306. </object>
  307. </child>
  308. <child type="titlebar">
  309. <object class="GtkHeaderBar">
  310. <property name="visible">True</property>
  311. <property name="can_focus">False</property>
  312. <property name="title" translatable="yes">Hello world</property>
  313. <property name="subtitle" translatable="yes">Test</property>
  314. <property name="show_close_button">True</property>
  315. <child>
  316. <object class="GtkMenuButton" id="main_menu">
  317. <property name="visible">True</property>
  318. <property name="can_focus">True</property>
  319. <property name="focus_on_click">False</property>
  320. <property name="receives_default">True</property>
  321. <property name="popup">menu1</property>
  322. <property name="use_popover">False</property>
  323. <child>
  324. <placeholder/>
  325. </child>
  326. </object>
  327. </child>
  328. </object>
  329. </child>
  330. </object>
  331. </interface>