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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611
  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. </object>
  199. <packing>
  200. <property name="left_attach">0</property>
  201. <property name="top_attach">0</property>
  202. </packing>
  203. </child>
  204. <child>
  205. <object class="GtkLabel">
  206. <property name="visible">True</property>
  207. <property name="can_focus">False</property>
  208. <property name="halign">start</property>
  209. <property name="label" translatable="yes">V</property>
  210. </object>
  211. <packing>
  212. <property name="left_attach">2</property>
  213. <property name="top_attach">0</property>
  214. </packing>
  215. </child>
  216. <child>
  217. <object class="GtkSpinButton" id="voltage-spinbutton">
  218. <property name="visible">True</property>
  219. <property name="can_focus">True</property>
  220. <property name="width_chars">5</property>
  221. <property name="text" translatable="yes">0.00</property>
  222. <property name="xalign">1</property>
  223. <property name="input_purpose">number</property>
  224. <property name="adjustment">voltage-adjustment</property>
  225. <property name="digits">2</property>
  226. <property name="numeric">True</property>
  227. </object>
  228. <packing>
  229. <property name="left_attach">1</property>
  230. <property name="top_attach">0</property>
  231. </packing>
  232. </child>
  233. </object>
  234. </child>
  235. </object>
  236. </child>
  237. <child>
  238. <object class="GtkListBoxRow">
  239. <property name="width_request">100</property>
  240. <property name="visible">True</property>
  241. <property name="can_focus">True</property>
  242. <property name="activatable">False</property>
  243. <child>
  244. <object class="GtkGrid">
  245. <property name="visible">True</property>
  246. <property name="can_focus">False</property>
  247. <property name="valign">center</property>
  248. <property name="margin_left">12</property>
  249. <property name="margin_right">6</property>
  250. <property name="margin_top">6</property>
  251. <property name="margin_bottom">6</property>
  252. <property name="column_spacing">12</property>
  253. <child>
  254. <object class="GtkLabel">
  255. <property name="visible">True</property>
  256. <property name="can_focus">False</property>
  257. <property name="halign">start</property>
  258. <property name="hexpand">True</property>
  259. <property name="label" translatable="yes">_Current</property>
  260. <property name="use_underline">True</property>
  261. <property name="justify">right</property>
  262. <property name="mnemonic_widget">current-spinbutton</property>
  263. </object>
  264. <packing>
  265. <property name="left_attach">0</property>
  266. <property name="top_attach">0</property>
  267. </packing>
  268. </child>
  269. <child>
  270. <object class="GtkSpinButton" id="current-spinbutton">
  271. <property name="visible">True</property>
  272. <property name="can_focus">True</property>
  273. <property name="margin_left">12</property>
  274. <property name="width_chars">5</property>
  275. <property name="xalign">1</property>
  276. <property name="input_purpose">number</property>
  277. <property name="adjustment">current-adjustment</property>
  278. <property name="digits">2</property>
  279. <property name="numeric">True</property>
  280. </object>
  281. <packing>
  282. <property name="left_attach">1</property>
  283. <property name="top_attach">0</property>
  284. </packing>
  285. </child>
  286. <child>
  287. <object class="GtkLabel">
  288. <property name="visible">True</property>
  289. <property name="can_focus">False</property>
  290. <property name="halign">start</property>
  291. <property name="label" translatable="yes">A</property>
  292. </object>
  293. <packing>
  294. <property name="left_attach">2</property>
  295. <property name="top_attach">0</property>
  296. </packing>
  297. </child>
  298. </object>
  299. </child>
  300. </object>
  301. </child>
  302. <child>
  303. <object class="GtkListBoxRow">
  304. <property name="width_request">100</property>
  305. <property name="visible">True</property>
  306. <property name="can_focus">True</property>
  307. <property name="activatable">False</property>
  308. <child>
  309. <object class="GtkGrid">
  310. <property name="visible">True</property>
  311. <property name="can_focus">False</property>
  312. <property name="valign">center</property>
  313. <property name="margin_left">12</property>
  314. <property name="margin_right">6</property>
  315. <property name="margin_top">6</property>
  316. <property name="margin_bottom">6</property>
  317. <property name="column_spacing">12</property>
  318. <child>
  319. <object class="GtkLabel">
  320. <property name="visible">True</property>
  321. <property name="can_focus">False</property>
  322. <property name="halign">start</property>
  323. <property name="hexpand">True</property>
  324. <property name="label" translatable="yes">Flags</property>
  325. <property name="justify">right</property>
  326. </object>
  327. <packing>
  328. <property name="left_attach">0</property>
  329. <property name="top_attach">0</property>
  330. </packing>
  331. </child>
  332. <child>
  333. <object class="GtkButtonBox">
  334. <property name="visible">True</property>
  335. <property name="can_focus">False</property>
  336. <property name="halign">start</property>
  337. <property name="layout_style">expand</property>
  338. <child>
  339. <object class="GtkToggleButton" id="giveback-toggle">
  340. <property name="label" translatable="yes">_GiveBack</property>
  341. <property name="visible">True</property>
  342. <property name="can_focus">True</property>
  343. <property name="receives_default">True</property>
  344. <property name="use_underline">True</property>
  345. <signal name="toggled" handler="on_giveback_toggle_toggled" swapped="no"/>
  346. </object>
  347. <packing>
  348. <property name="expand">True</property>
  349. <property name="fill">True</property>
  350. <property name="position">0</property>
  351. </packing>
  352. </child>
  353. </object>
  354. <packing>
  355. <property name="left_attach">1</property>
  356. <property name="top_attach">0</property>
  357. <property name="width">2</property>
  358. </packing>
  359. </child>
  360. </object>
  361. </child>
  362. </object>
  363. </child>
  364. </object>
  365. </child>
  366. <child type="label_item">
  367. <placeholder/>
  368. </child>
  369. </object>
  370. <packing>
  371. <property name="expand">False</property>
  372. <property name="fill">True</property>
  373. <property name="position">1</property>
  374. </packing>
  375. </child>
  376. </object>
  377. <packing>
  378. <property name="expand">False</property>
  379. <property name="fill">True</property>
  380. <property name="position">0</property>
  381. </packing>
  382. </child>
  383. <child>
  384. <object class="GtkFrame" id="power-delivery-frame">
  385. <property name="visible">True</property>
  386. <property name="can_focus">False</property>
  387. <property name="label_xalign">0</property>
  388. <property name="shadow_type">none</property>
  389. <child>
  390. <object class="GtkFrame">
  391. <property name="visible">True</property>
  392. <property name="can_focus">False</property>
  393. <property name="margin_top">6</property>
  394. <property name="margin_bottom">6</property>
  395. <property name="label_xalign">0</property>
  396. <child>
  397. <object class="GtkListBox" id="power-delivery-list">
  398. <property name="visible">True</property>
  399. <property name="can_focus">False</property>
  400. <property name="selection_mode">none</property>
  401. <signal name="row-activated" handler="on_source_cap_row_activated" swapped="no"/>
  402. <child>
  403. <object class="GtkListBoxRow">
  404. <property name="width_request">100</property>
  405. <property name="visible">True</property>
  406. <property name="can_focus">True</property>
  407. <property name="vexpand">False</property>
  408. <property name="activatable">False</property>
  409. <child>
  410. <object class="GtkGrid">
  411. <property name="visible">True</property>
  412. <property name="can_focus">False</property>
  413. <property name="valign">center</property>
  414. <property name="margin_left">12</property>
  415. <property name="margin_right">6</property>
  416. <property name="margin_top">6</property>
  417. <property name="margin_bottom">6</property>
  418. <property name="column_spacing">12</property>
  419. <child>
  420. <object class="GtkLabel">
  421. <property name="visible">True</property>
  422. <property name="can_focus">False</property>
  423. <property name="halign">start</property>
  424. <property name="hexpand">True</property>
  425. <property name="label" translatable="yes">_Output</property>
  426. <property name="use_underline">True</property>
  427. <property name="justify">right</property>
  428. <property name="mnemonic_widget">output-switch</property>
  429. </object>
  430. <packing>
  431. <property name="left_attach">0</property>
  432. <property name="top_attach">0</property>
  433. </packing>
  434. </child>
  435. <child>
  436. <object class="GtkSwitch" id="output-switch">
  437. <property name="visible">True</property>
  438. <property name="can_focus">True</property>
  439. <signal name="state-set" handler="on_output_switch_state_set" swapped="no"/>
  440. </object>
  441. <packing>
  442. <property name="left_attach">1</property>
  443. <property name="top_attach">0</property>
  444. <property name="width">2</property>
  445. </packing>
  446. </child>
  447. </object>
  448. </child>
  449. </object>
  450. </child>
  451. <child>
  452. <object class="GtkListBoxRow" id="source-cap-row">
  453. <property name="width_request">100</property>
  454. <property name="visible">True</property>
  455. <property name="can_focus">True</property>
  456. <child>
  457. <object class="GtkGrid">
  458. <property name="visible">True</property>
  459. <property name="can_focus">False</property>
  460. <property name="valign">center</property>
  461. <property name="margin_left">12</property>
  462. <property name="margin_right">6</property>
  463. <property name="margin_top">6</property>
  464. <property name="margin_bottom">6</property>
  465. <property name="column_spacing">12</property>
  466. <child>
  467. <object class="GtkLabel">
  468. <property name="visible">True</property>
  469. <property name="can_focus">False</property>
  470. <property name="halign">start</property>
  471. <property name="label" translatable="yes">_Source Capabilities</property>
  472. <property name="use_underline">True</property>
  473. <property name="justify">right</property>
  474. <property name="mnemonic_widget">source-cap-row</property>
  475. </object>
  476. <packing>
  477. <property name="left_attach">0</property>
  478. <property name="top_attach">0</property>
  479. </packing>
  480. </child>
  481. <child>
  482. <object class="GtkImage" id="source-cap-arrow">
  483. <property name="visible">True</property>
  484. <property name="can_focus">False</property>
  485. <property name="icon_name">go-next-symbolic</property>
  486. </object>
  487. <packing>
  488. <property name="left_attach">3</property>
  489. <property name="top_attach">0</property>
  490. </packing>
  491. </child>
  492. <child>
  493. <object class="GtkLabel" id="short-source-cap-label">
  494. <property name="visible">True</property>
  495. <property name="can_focus">False</property>
  496. <property name="halign">end</property>
  497. <property name="hexpand">True</property>
  498. <property name="label" translatable="yes">label</property>
  499. <style>
  500. <class name="dim-label"/>
  501. </style>
  502. </object>
  503. <packing>
  504. <property name="left_attach">2</property>
  505. <property name="top_attach">0</property>
  506. </packing>
  507. </child>
  508. <child>
  509. <object class="GtkImage" id="source-cap-warning">
  510. <property name="can_focus">False</property>
  511. <property name="tooltip_text" translatable="yes">Source violates the USB PD Power Rules</property>
  512. <property name="halign">start</property>
  513. <property name="icon_name">dialog-warning-symbolic</property>
  514. </object>
  515. <packing>
  516. <property name="left_attach">1</property>
  517. <property name="top_attach">0</property>
  518. </packing>
  519. </child>
  520. </object>
  521. </child>
  522. </object>
  523. </child>
  524. </object>
  525. </child>
  526. <child type="label_item">
  527. <placeholder/>
  528. </child>
  529. </object>
  530. </child>
  531. <child type="label">
  532. <object class="GtkLabel">
  533. <property name="visible">True</property>
  534. <property name="can_focus">False</property>
  535. <property name="label" translatable="yes">Power Delivery</property>
  536. <attributes>
  537. <attribute name="weight" value="bold"/>
  538. </attributes>
  539. </object>
  540. </child>
  541. </object>
  542. <packing>
  543. <property name="expand">False</property>
  544. <property name="fill">True</property>
  545. <property name="position">1</property>
  546. </packing>
  547. </child>
  548. </object>
  549. <packing>
  550. <property name="expand">False</property>
  551. <property name="fill">True</property>
  552. <property name="position">0</property>
  553. </packing>
  554. </child>
  555. </object>
  556. </child>
  557. </object>
  558. </child>
  559. </object>
  560. <packing>
  561. <property name="name">page1</property>
  562. <property name="title" translatable="yes">page1</property>
  563. <property name="position">1</property>
  564. </packing>
  565. </child>
  566. </object>
  567. </child>
  568. <child type="titlebar">
  569. <object class="GtkStack" id="header-stack">
  570. <property name="visible">True</property>
  571. <property name="can_focus">False</property>
  572. <property name="transition_type">crossfade</property>
  573. <child>
  574. <object class="GtkHeaderBar" id="header-select">
  575. <property name="visible">True</property>
  576. <property name="can_focus">False</property>
  577. <property name="title">Select Device</property>
  578. <property name="show_close_button">True</property>
  579. </object>
  580. <packing>
  581. <property name="name">page0</property>
  582. <property name="title" translatable="yes">page0</property>
  583. </packing>
  584. </child>
  585. <child>
  586. <object class="GtkHeaderBar" id="header-sink">
  587. <property name="visible">True</property>
  588. <property name="can_focus">False</property>
  589. <property name="title">PD Buddy Sink</property>
  590. <property name="show_close_button">True</property>
  591. <child>
  592. <object class="GtkButton" id="header-sink-back">
  593. <property name="visible">True</property>
  594. <property name="can_focus">True</property>
  595. <property name="receives_default">True</property>
  596. <property name="image">back-image</property>
  597. <signal name="clicked" handler="on_header_sink_back_clicked" swapped="no"/>
  598. <accelerator key="Left" signal="clicked" modifiers="GDK_MOD1_MASK"/>
  599. </object>
  600. </child>
  601. </object>
  602. <packing>
  603. <property name="name">page1</property>
  604. <property name="title" translatable="yes">page1</property>
  605. <property name="position">1</property>
  606. </packing>
  607. </child>
  608. </object>
  609. </child>
  610. </object>
  611. </interface>