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 39KB

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