GTK+ GUI for configuring PD Buddy Sink devices
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.

pd-buddy-gtk.ui 38KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Generated with glade 3.20.0 -->
  3. <interface>
  4. <requires lib="gtk+" version="3.20"/>
  5. <object class="GtkImage" id="back-image">
  6. <property name="visible">True</property>
  7. <property name="can_focus">False</property>
  8. <property name="icon_name">go-previous-symbolic</property>
  9. </object>
  10. <object class="GtkAdjustment" id="current-adjustment">
  11. <property name="upper">5</property>
  12. <property name="step_increment">1</property>
  13. <property name="page_increment">10</property>
  14. </object>
  15. <object class="GtkApplicationWindow" id="pdb-window">
  16. <property name="can_focus">False</property>
  17. <property name="show_menubar">False</property>
  18. <signal name="delete-event" handler="on_pdb_window_delete_event" swapped="no"/>
  19. <signal name="realize" handler="on_pdb_window_realize" swapped="no"/>
  20. <child>
  21. <object class="GtkStack" id="stack">
  22. <property name="visible">True</property>
  23. <property name="can_focus">False</property>
  24. <property name="transition_type">crossfade</property>
  25. <child>
  26. <object class="GtkScrolledWindow" id="select">
  27. <property name="visible">True</property>
  28. <property name="can_focus">True</property>
  29. <property name="hscrollbar_policy">never</property>
  30. <property name="min_content_height">300</property>
  31. <property name="propagate_natural_width">True</property>
  32. <child>
  33. <object class="GtkViewport">
  34. <property name="visible">True</property>
  35. <property name="can_focus">False</property>
  36. <child>
  37. <object class="GtkBox" id="select-box">
  38. <property name="visible">True</property>
  39. <property name="can_focus">False</property>
  40. <property name="orientation">vertical</property>
  41. <child>
  42. <placeholder/>
  43. </child>
  44. </object>
  45. </child>
  46. </object>
  47. </child>
  48. </object>
  49. <packing>
  50. <property name="name">page0</property>
  51. <property name="title" translatable="yes">page0</property>
  52. </packing>
  53. </child>
  54. <child>
  55. <object class="GtkScrolledWindow" id="sink">
  56. <property name="visible">True</property>
  57. <property name="can_focus">True</property>
  58. <property name="hscrollbar_policy">never</property>
  59. <property name="min_content_height">300</property>
  60. <property name="propagate_natural_width">True</property>
  61. <child>
  62. <object class="GtkViewport">
  63. <property name="visible">True</property>
  64. <property name="can_focus">False</property>
  65. <child>
  66. <object class="GtkBox">
  67. <property name="visible">True</property>
  68. <property name="can_focus">False</property>
  69. <property name="orientation">vertical</property>
  70. <child>
  71. <object class="GtkBox">
  72. <property name="visible">True</property>
  73. <property name="can_focus">False</property>
  74. <property name="halign">center</property>
  75. <property name="margin_left">18</property>
  76. <property name="margin_right">18</property>
  77. <property name="margin_top">18</property>
  78. <property name="margin_bottom">18</property>
  79. <property name="orientation">vertical</property>
  80. <property name="spacing">24</property>
  81. <child>
  82. <object class="GtkBox">
  83. <property name="visible">True</property>
  84. <property name="can_focus">False</property>
  85. <property name="orientation">vertical</property>
  86. <property name="spacing">8</property>
  87. <child>
  88. <object class="GtkBox">
  89. <property name="visible">True</property>
  90. <property name="can_focus">False</property>
  91. <child>
  92. <object class="GtkLabel">
  93. <property name="visible">True</property>
  94. <property name="can_focus">False</property>
  95. <property name="halign">start</property>
  96. <property name="label" translatable="yes">Configuration</property>
  97. <attributes>
  98. <attribute name="weight" value="bold"/>
  99. </attributes>
  100. </object>
  101. <packing>
  102. <property name="expand">True</property>
  103. <property name="fill">True</property>
  104. <property name="position">0</property>
  105. </packing>
  106. </child>
  107. <child>
  108. <object class="GtkRevealer" id="sink-save-revealer">
  109. <property name="visible">True</property>
  110. <property name="can_focus">False</property>
  111. <property name="transition_type">crossfade</property>
  112. <child>
  113. <object class="GtkButtonBox">
  114. <property name="visible">True</property>
  115. <property name="can_focus">False</property>
  116. <property name="orientation">vertical</property>
  117. <property name="layout_style">start</property>
  118. <child>
  119. <object class="GtkButton" id="sink-save">
  120. <property name="label">gtk-save</property>
  121. <property name="visible">True</property>
  122. <property name="can_focus">True</property>
  123. <property name="receives_default">True</property>
  124. <property name="use_stock">True</property>
  125. <signal name="clicked" handler="on_sink_save_clicked" swapped="no"/>
  126. <accelerator key="s" signal="clicked" modifiers="GDK_CONTROL_MASK"/>
  127. <style>
  128. <class name="suggested-action"/>
  129. </style>
  130. </object>
  131. <packing>
  132. <property name="expand">True</property>
  133. <property name="fill">True</property>
  134. <property name="position">0</property>
  135. </packing>
  136. </child>
  137. </object>
  138. </child>
  139. </object>
  140. <packing>
  141. <property name="expand">False</property>
  142. <property name="fill">True</property>
  143. <property name="position">1</property>
  144. </packing>
  145. </child>
  146. </object>
  147. <packing>
  148. <property name="expand">False</property>
  149. <property name="fill">True</property>
  150. <property name="position">0</property>
  151. </packing>
  152. </child>
  153. <child>
  154. <object class="GtkFrame">
  155. <property name="visible">True</property>
  156. <property name="can_focus">False</property>
  157. <property name="hexpand">False</property>
  158. <property name="label_xalign">0</property>
  159. <child>
  160. <object class="GtkListBox" id="sink-config-list">
  161. <property name="width_request">342</property>
  162. <property name="visible">True</property>
  163. <property name="can_focus">False</property>
  164. <property name="selection_mode">none</property>
  165. <child>
  166. <object class="GtkListBoxRow">
  167. <property name="width_request">100</property>
  168. <property name="visible">True</property>
  169. <property name="can_focus">True</property>
  170. <property name="vexpand">False</property>
  171. <property name="activatable">False</property>
  172. <child>
  173. <object class="GtkGrid">
  174. <property name="visible">True</property>
  175. <property name="can_focus">False</property>
  176. <property name="valign">center</property>
  177. <property name="margin_left">12</property>
  178. <property name="margin_right">6</property>
  179. <property name="margin_top">6</property>
  180. <property name="margin_bottom">6</property>
  181. <property name="column_spacing">12</property>
  182. <child>
  183. <object class="GtkLabel">
  184. <property name="visible">True</property>
  185. <property name="can_focus">False</property>
  186. <property name="halign">start</property>
  187. <property name="hexpand">True</property>
  188. <property name="label" translatable="yes">Voltage</property>
  189. <property name="justify">right</property>
  190. </object>
  191. <packing>
  192. <property name="left_attach">0</property>
  193. <property name="top_attach">0</property>
  194. </packing>
  195. </child>
  196. <child>
  197. <object class="GtkComboBoxText" id="voltage-combobox">
  198. <property name="visible">True</property>
  199. <property name="can_focus">False</property>
  200. <items>
  201. <item id="voltage-five" translatable="yes">5</item>
  202. <item id="voltage-nine" translatable="yes">9</item>
  203. <item id="voltage-twelve" translatable="yes">12</item>
  204. <item id="voltage-fifteen" translatable="yes">15</item>
  205. <item id="voltage-twenty" translatable="yes">20</item>
  206. </items>
  207. <signal name="changed" handler="on_voltage_combobox_changed" swapped="no"/>
  208. </object>
  209. <packing>
  210. <property name="left_attach">1</property>
  211. <property name="top_attach">0</property>
  212. </packing>
  213. </child>
  214. <child>
  215. <object class="GtkLabel">
  216. <property name="visible">True</property>
  217. <property name="can_focus">False</property>
  218. <property name="halign">start</property>
  219. <property name="label" translatable="yes">V</property>
  220. </object>
  221. <packing>
  222. <property name="left_attach">2</property>
  223. <property name="top_attach">0</property>
  224. </packing>
  225. </child>
  226. </object>
  227. </child>
  228. </object>
  229. </child>
  230. <child>
  231. <object class="GtkListBoxRow">
  232. <property name="width_request">100</property>
  233. <property name="visible">True</property>
  234. <property name="can_focus">True</property>
  235. <property name="activatable">False</property>
  236. <child>
  237. <object class="GtkGrid">
  238. <property name="visible">True</property>
  239. <property name="can_focus">False</property>
  240. <property name="valign">center</property>
  241. <property name="margin_left">12</property>
  242. <property name="margin_right">6</property>
  243. <property name="margin_top">6</property>
  244. <property name="margin_bottom">6</property>
  245. <property name="column_spacing">12</property>
  246. <child>
  247. <object class="GtkLabel">
  248. <property name="visible">True</property>
  249. <property name="can_focus">False</property>
  250. <property name="halign">start</property>
  251. <property name="hexpand">True</property>
  252. <property name="label" translatable="yes">Current</property>
  253. <property name="justify">right</property>
  254. </object>
  255. <packing>
  256. <property name="left_attach">0</property>
  257. <property name="top_attach">0</property>
  258. </packing>
  259. </child>
  260. <child>
  261. <object class="GtkSpinButton" id="current-spinbutton">
  262. <property name="visible">True</property>
  263. <property name="can_focus">True</property>
  264. <property name="margin_left">12</property>
  265. <property name="input_purpose">number</property>
  266. <property name="adjustment">current-adjustment</property>
  267. <property name="digits">2</property>
  268. <property name="numeric">True</property>
  269. <signal name="value-changed" handler="on_current_spinbutton_changed" swapped="no"/>
  270. </object>
  271. <packing>
  272. <property name="left_attach">1</property>
  273. <property name="top_attach">0</property>
  274. </packing>
  275. </child>
  276. <child>
  277. <object class="GtkLabel">
  278. <property name="visible">True</property>
  279. <property name="can_focus">False</property>
  280. <property name="halign">start</property>
  281. <property name="label" translatable="yes">A</property>
  282. </object>
  283. <packing>
  284. <property name="left_attach">2</property>
  285. <property name="top_attach">0</property>
  286. </packing>
  287. </child>
  288. </object>
  289. </child>
  290. </object>
  291. </child>
  292. <child>
  293. <object class="GtkListBoxRow">
  294. <property name="width_request">100</property>
  295. <property name="visible">True</property>
  296. <property name="can_focus">True</property>
  297. <property name="activatable">False</property>
  298. <child>
  299. <object class="GtkGrid">
  300. <property name="visible">True</property>
  301. <property name="can_focus">False</property>
  302. <property name="valign">center</property>
  303. <property name="margin_left">12</property>
  304. <property name="margin_right">6</property>
  305. <property name="margin_top">6</property>
  306. <property name="margin_bottom">6</property>
  307. <property name="column_spacing">12</property>
  308. <child>
  309. <object class="GtkLabel">
  310. <property name="visible">True</property>
  311. <property name="can_focus">False</property>
  312. <property name="halign">start</property>
  313. <property name="hexpand">True</property>
  314. <property name="label" translatable="yes">Flags</property>
  315. <property name="justify">right</property>
  316. </object>
  317. <packing>
  318. <property name="left_attach">0</property>
  319. <property name="top_attach">0</property>
  320. </packing>
  321. </child>
  322. <child>
  323. <object class="GtkButtonBox">
  324. <property name="visible">True</property>
  325. <property name="can_focus">False</property>
  326. <property name="halign">start</property>
  327. <property name="layout_style">expand</property>
  328. <child>
  329. <object class="GtkToggleButton" id="giveback-toggle">
  330. <property name="label" translatable="yes">GiveBack</property>
  331. <property name="visible">True</property>
  332. <property name="can_focus">True</property>
  333. <property name="receives_default">True</property>
  334. <signal name="toggled" handler="on_giveback_toggle_toggled" swapped="no"/>
  335. </object>
  336. <packing>
  337. <property name="expand">True</property>
  338. <property name="fill">True</property>
  339. <property name="position">0</property>
  340. </packing>
  341. </child>
  342. </object>
  343. <packing>
  344. <property name="left_attach">1</property>
  345. <property name="top_attach">0</property>
  346. <property name="width">2</property>
  347. </packing>
  348. </child>
  349. </object>
  350. </child>
  351. </object>
  352. </child>
  353. </object>
  354. </child>
  355. <child type="label_item">
  356. <placeholder/>
  357. </child>
  358. </object>
  359. <packing>
  360. <property name="expand">False</property>
  361. <property name="fill">True</property>
  362. <property name="position">1</property>
  363. </packing>
  364. </child>
  365. </object>
  366. <packing>
  367. <property name="expand">False</property>
  368. <property name="fill">True</property>
  369. <property name="position">0</property>
  370. </packing>
  371. </child>
  372. <child>
  373. <object class="GtkFrame" id="power-delivery-frame">
  374. <property name="visible">True</property>
  375. <property name="can_focus">False</property>
  376. <property name="label_xalign">0</property>
  377. <property name="shadow_type">none</property>
  378. <child>
  379. <object class="GtkFrame">
  380. <property name="visible">True</property>
  381. <property name="can_focus">False</property>
  382. <property name="margin_top">6</property>
  383. <property name="margin_bottom">6</property>
  384. <property name="label_xalign">0</property>
  385. <child>
  386. <object class="GtkListBox" id="power-delivery-list">
  387. <property name="visible">True</property>
  388. <property name="can_focus">False</property>
  389. <property name="selection_mode">none</property>
  390. <signal name="row-activated" handler="on_source_cap_row_activated" swapped="no"/>
  391. <child>
  392. <object class="GtkListBoxRow">
  393. <property name="width_request">100</property>
  394. <property name="visible">True</property>
  395. <property name="can_focus">True</property>
  396. <property name="vexpand">False</property>
  397. <property name="activatable">False</property>
  398. <child>
  399. <object class="GtkGrid">
  400. <property name="visible">True</property>
  401. <property name="can_focus">False</property>
  402. <property name="valign">center</property>
  403. <property name="margin_left">12</property>
  404. <property name="margin_right">6</property>
  405. <property name="margin_top">6</property>
  406. <property name="margin_bottom">6</property>
  407. <property name="column_spacing">12</property>
  408. <child>
  409. <object class="GtkLabel">
  410. <property name="visible">True</property>
  411. <property name="can_focus">False</property>
  412. <property name="halign">start</property>
  413. <property name="hexpand">True</property>
  414. <property name="label" translatable="yes">Output</property>
  415. <property name="justify">right</property>
  416. </object>
  417. <packing>
  418. <property name="left_attach">0</property>
  419. <property name="top_attach">0</property>
  420. </packing>
  421. </child>
  422. <child>
  423. <object class="GtkSwitch" id="output-switch">
  424. <property name="visible">True</property>
  425. <property name="can_focus">True</property>
  426. <signal name="state-set" handler="on_output_switch_state_set" swapped="no"/>
  427. </object>
  428. <packing>
  429. <property name="left_attach">1</property>
  430. <property name="top_attach">0</property>
  431. <property name="width">2</property>
  432. </packing>
  433. </child>
  434. </object>
  435. </child>
  436. </object>
  437. </child>
  438. <child>
  439. <object class="GtkListBoxRow" id="source-cap-row">
  440. <property name="width_request">100</property>
  441. <property name="visible">True</property>
  442. <property name="can_focus">True</property>
  443. <child>
  444. <object class="GtkGrid">
  445. <property name="visible">True</property>
  446. <property name="can_focus">False</property>
  447. <property name="valign">center</property>
  448. <property name="margin_left">12</property>
  449. <property name="margin_right">6</property>
  450. <property name="margin_top">6</property>
  451. <property name="margin_bottom">6</property>
  452. <property name="column_spacing">12</property>
  453. <child>
  454. <object class="GtkLabel">
  455. <property name="visible">True</property>
  456. <property name="can_focus">False</property>
  457. <property name="halign">start</property>
  458. <property name="label" translatable="yes">Source Capabilities</property>
  459. <property name="justify">right</property>
  460. </object>
  461. <packing>
  462. <property name="left_attach">0</property>
  463. <property name="top_attach">0</property>
  464. </packing>
  465. </child>
  466. <child>
  467. <object class="GtkImage">
  468. <property name="visible">True</property>
  469. <property name="can_focus">False</property>
  470. <property name="icon_name">go-next-symbolic</property>
  471. </object>
  472. <packing>
  473. <property name="left_attach">3</property>
  474. <property name="top_attach">0</property>
  475. </packing>
  476. </child>
  477. <child>
  478. <object class="GtkLabel" id="short-source-cap-label">
  479. <property name="visible">True</property>
  480. <property name="can_focus">False</property>
  481. <property name="halign">end</property>
  482. <property name="hexpand">True</property>
  483. <property name="label" translatable="yes">label</property>
  484. <style>
  485. <class name="dim-label"/>
  486. </style>
  487. </object>
  488. <packing>
  489. <property name="left_attach">2</property>
  490. <property name="top_attach">0</property>
  491. </packing>
  492. </child>
  493. <child>
  494. <object class="GtkImage" id="source-cap-warning">
  495. <property name="can_focus">False</property>
  496. <property name="tooltip_text" translatable="yes">Source violates the USB PD Power Rules</property>
  497. <property name="halign">start</property>
  498. <property name="icon_name">dialog-warning-symbolic</property>
  499. </object>
  500. <packing>
  501. <property name="left_attach">1</property>
  502. <property name="top_attach">0</property>
  503. </packing>
  504. </child>
  505. </object>
  506. </child>
  507. </object>
  508. </child>
  509. </object>
  510. </child>
  511. <child type="label_item">
  512. <placeholder/>
  513. </child>
  514. </object>
  515. </child>
  516. <child type="label">
  517. <object class="GtkLabel">
  518. <property name="visible">True</property>
  519. <property name="can_focus">False</property>
  520. <property name="label" translatable="yes">Power Delivery</property>
  521. <attributes>
  522. <attribute name="weight" value="bold"/>
  523. </attributes>
  524. </object>
  525. </child>
  526. </object>
  527. <packing>
  528. <property name="expand">False</property>
  529. <property name="fill">True</property>
  530. <property name="position">1</property>
  531. </packing>
  532. </child>
  533. </object>
  534. <packing>
  535. <property name="expand">False</property>
  536. <property name="fill">True</property>
  537. <property name="position">0</property>
  538. </packing>
  539. </child>
  540. </object>
  541. </child>
  542. </object>
  543. </child>
  544. </object>
  545. <packing>
  546. <property name="name">page1</property>
  547. <property name="title" translatable="yes">page1</property>
  548. <property name="position">1</property>
  549. </packing>
  550. </child>
  551. </object>
  552. </child>
  553. <child type="titlebar">
  554. <object class="GtkStack" id="header-stack">
  555. <property name="visible">True</property>
  556. <property name="can_focus">False</property>
  557. <property name="transition_type">crossfade</property>
  558. <child>
  559. <object class="GtkHeaderBar" id="header-select">
  560. <property name="visible">True</property>
  561. <property name="can_focus">False</property>
  562. <property name="title">Select Device</property>
  563. <property name="show_close_button">True</property>
  564. <child>
  565. <object class="GtkLabel" id="dummy">
  566. <property name="visible">True</property>
  567. <property name="can_focus">False</property>
  568. </object>
  569. <packing>
  570. <property name="pack_type">end</property>
  571. </packing>
  572. </child>
  573. </object>
  574. <packing>
  575. <property name="name">page0</property>
  576. <property name="title" translatable="yes">page0</property>
  577. </packing>
  578. </child>
  579. <child>
  580. <object class="GtkHeaderBar" id="header-sink">
  581. <property name="visible">True</property>
  582. <property name="can_focus">False</property>
  583. <property name="title">PD Buddy Sink</property>
  584. <property name="show_close_button">True</property>
  585. <child>
  586. <object class="GtkButton" id="header-sink-back">
  587. <property name="visible">True</property>
  588. <property name="can_focus">True</property>
  589. <property name="receives_default">True</property>
  590. <property name="image">back-image</property>
  591. <signal name="clicked" handler="on_header_sink_back_clicked" swapped="no"/>
  592. <accelerator key="Left" signal="clicked" modifiers="GDK_MOD1_MASK"/>
  593. </object>
  594. </child>
  595. </object>
  596. <packing>
  597. <property name="name">page1</property>
  598. <property name="title" translatable="yes">page1</property>
  599. <property name="position">1</property>
  600. </packing>
  601. </child>
  602. </object>
  603. </child>
  604. </object>
  605. </interface>