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.

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