GTK+ GUI for configuring PD Buddy Sink devices
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

pd-buddy-gtk.ui 39KB

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