PageRenderTime 35ms CodeModel.GetById 10ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/newview/skins/default/xui/en/panel_prim_media_controls.xml

https://bitbucket.org/lindenlab/viewer-beta/
XML | 586 lines | 578 code | 0 blank | 8 comment | 0 complexity | 73af0a85794c0a3ac62d228e87ece891 MD5 | raw file
Possible License(s): LGPL-2.1
  1. <?xml version="1.0" encoding="utf-8" standalone="yes" ?>
  2. <panel
  3. follows="left|right|top|bottom"
  4. name="MediaControls"
  5. background_visible="false"
  6. height="200"
  7. layout="topleft"
  8. help_topic="prim_media_controls"
  9. mouse_opaque="false"
  10. min_width="300"
  11. width="800">
  12. <string name="control_background_image_name">Inspector_Background</string>
  13. <string name="skip_step">0.2</string>
  14. <string name="min_width">300</string>
  15. <string name="min_height">75</string>
  16. <string name="zoom_near_padding">1.0</string>
  17. <string name="zoom_medium_padding">1.1</string>
  18. <string name="zoom_far_padding">1.5</string>
  19. <string name="top_world_view_avoid_zone">50</string>
  20. <layout_stack
  21. name="progress_indicator_area"
  22. follows="left|right|top"
  23. height="8"
  24. layout="topleft"
  25. animate="false"
  26. left="0"
  27. orientation="horizontal"
  28. top="22">
  29. <!-- outer layout_panels center the inner one -->
  30. <layout_panel
  31. width="0"
  32. name="left_bookend_bottom"
  33. mouse_opaque="false"
  34. layout="topleft"/>
  35. <layout_panel
  36. name="media_progress_indicator"
  37. mouse_opaque="false"
  38. height="8"
  39. layout="topleft"
  40. left="0"
  41. top="0"
  42. auto_resize="false"
  43. min_width="100"
  44. width="200">
  45. <progress_bar
  46. name="media_progress_bar"
  47. color_bg="1 1 1 1"
  48. color_bar="1 1 1 0.96"
  49. follows="left|right|top"
  50. height="8"
  51. layout="topleft"
  52. top="0"
  53. left="0"
  54. tool_tip="Media is Loading"/>
  55. </layout_panel>
  56. <layout_panel
  57. name="right_bookend_bottom"
  58. width="0"
  59. mouse_opaque="false"
  60. layout="topleft"/>
  61. </layout_stack>
  62. <layout_stack
  63. name="media_controls"
  64. follows="left|right|top"
  65. animate="false"
  66. height="75"
  67. layout="topleft"
  68. top="0"
  69. left="0"
  70. border_size="0"
  71. mouse_opaque="false"
  72. orientation="horizontal">
  73. <!-- outer layout_panels center the inner one -->
  74. <layout_panel
  75. name="left_bookend"
  76. top="0"
  77. width="0"
  78. mouse_opaque="false"
  79. layout="topleft"/>
  80. <layout_panel
  81. name="back"
  82. top="0"
  83. auto_resize="false"
  84. layout="topleft"
  85. mouse_opaque="false"
  86. min_width="22"
  87. width="22">
  88. <button
  89. name="back_btn"
  90. follows="top"
  91. image_overlay="Arrow_Left_Off"
  92. image_disabled="PushButton_Disabled"
  93. image_disabled_selected="PushButton_Disabled"
  94. image_selected="PushButton_Selected"
  95. image_unselected="PushButton_Off"
  96. hover_glow_amount="0.15"
  97. auto_resize="false"
  98. layout="topleft"
  99. tool_tip="Navigate back"
  100. top="0"
  101. left="0"
  102. width="22"
  103. height="22">
  104. <button.commit_callback
  105. function="MediaCtrl.Back" />
  106. </button>
  107. </layout_panel>
  108. <layout_panel
  109. name="fwd"
  110. mouse_opaque="false"
  111. auto_resize="false"
  112. layout="topleft"
  113. min_width="22"
  114. top="0"
  115. height="22"
  116. width="22">
  117. <button
  118. name="fwd_btn"
  119. follows="top"
  120. image_overlay="Arrow_Right_Off"
  121. image_disabled="PushButton_Disabled"
  122. image_disabled_selected="PushButton_Disabled"
  123. image_selected="PushButton_Selected"
  124. image_unselected="PushButton_Off"
  125. hover_glow_amount="0.15"
  126. top="0"
  127. height="22"
  128. width="22"
  129. layout="topleft"
  130. tool_tip="Navigate forward">
  131. <button.commit_callback
  132. function="MediaCtrl.Forward" />
  133. </button>
  134. </layout_panel>
  135. <layout_panel
  136. name="home"
  137. mouse_opaque="false"
  138. auto_resize="false"
  139. layout="topleft"
  140. top="0"
  141. height="22"
  142. min_width="22"
  143. width="22">
  144. <button
  145. name="home_btn"
  146. follows="top"
  147. image_overlay="Home_Off"
  148. image_disabled="PushButton_Disabled"
  149. image_disabled_selected="PushButton_Disabled"
  150. image_selected="PushButton_Selected"
  151. image_unselected="PushButton_Off"
  152. hover_glow_amount="0.15"
  153. layout="topleft"
  154. tool_tip="Home page"
  155. top="0"
  156. height="22"
  157. width="22">
  158. <button.commit_callback
  159. function="MediaCtrl.Home" />
  160. </button>
  161. </layout_panel>
  162. <layout_panel
  163. name="media_stop"
  164. mouse_opaque="false"
  165. auto_resize="false"
  166. layout="topleft"
  167. top="0"
  168. height="22"
  169. min_width="22"
  170. width="22">
  171. <button
  172. name="media_stop_btn"
  173. follows="top"
  174. image_overlay="Stop_Off"
  175. image_disabled="PushButton_Disabled"
  176. image_disabled_selected="PushButton_Disabled"
  177. image_selected="PushButton_Selected"
  178. image_unselected="PushButton_Off"
  179. hover_glow_amount="0.15"
  180. layout="topleft"
  181. tool_tip="Stop media"
  182. top="0"
  183. height="22"
  184. width="22">
  185. <button.commit_callback
  186. function="MediaCtrl.MediaStop" />
  187. </button>
  188. </layout_panel>
  189. <layout_panel
  190. name="reload"
  191. mouse_opaque="false"
  192. auto_resize="false"
  193. layout="topleft"
  194. top="0"
  195. height="22"
  196. min_width="22"
  197. width="22">
  198. <button
  199. name="reload_btn"
  200. follows="top"
  201. image_overlay="Refresh_Off"
  202. image_disabled="PushButton_Disabled"
  203. image_disabled_selected="PushButton_Disabled"
  204. image_selected="PushButton_Selected"
  205. image_unselected="PushButton_Off"
  206. hover_glow_amount="0.15"
  207. layout="topleft"
  208. tool_tip="Reload"
  209. top="0"
  210. height="22"
  211. width="22">
  212. <button.commit_callback
  213. function="MediaCtrl.Reload" />
  214. </button>
  215. </layout_panel>
  216. <layout_panel
  217. name="stop"
  218. mouse_opaque="false"
  219. auto_resize="false"
  220. layout="topleft"
  221. top="0"
  222. height="22"
  223. min_width="22"
  224. width="22">
  225. <button
  226. name="stop_btn"
  227. follows="top"
  228. image_overlay="StopReload_Off"
  229. image_disabled="PushButton_Disabled"
  230. image_disabled_selected="PushButton_Disabled"
  231. image_selected="PushButton_Selected"
  232. image_unselected="PushButton_Off"
  233. hover_glow_amount="0.15"
  234. layout="topleft"
  235. tool_tip = "Stop loading"
  236. top="0"
  237. height="22"
  238. width="22">
  239. <button.commit_callback
  240. function="MediaCtrl.Stop" />
  241. </button>
  242. </layout_panel>
  243. <layout_panel
  244. name="play"
  245. mouse_opaque="false"
  246. auto_resize="false"
  247. layout="topleft"
  248. top="0"
  249. height="22"
  250. min_width="22"
  251. width="22">
  252. <button
  253. name="play_btn"
  254. follows="top"
  255. image_overlay="Play_Off"
  256. image_disabled="PushButton_Disabled"
  257. image_disabled_selected="PushButton_Disabled"
  258. image_selected="PushButton_Selected"
  259. image_unselected="PushButton_Off"
  260. hover_glow_amount="0.15"
  261. layout="topleft"
  262. tool_tip = "Play media"
  263. top="0"
  264. height="22"
  265. width="22">
  266. <button.commit_callback
  267. function="MediaCtrl.Play" />
  268. </button>
  269. </layout_panel>
  270. <layout_panel
  271. name="pause"
  272. mouse_opaque="false"
  273. auto_resize="false"
  274. layout="topleft"
  275. top="0"
  276. min_width="22"
  277. width="22">
  278. <button
  279. name="pause_btn"
  280. follows="top"
  281. image_overlay="Pause_Off"
  282. image_disabled="PushButton_Disabled"
  283. image_disabled_selected="PushButton_Disabled"
  284. image_selected="PushButton_Selected"
  285. image_unselected="PushButton_Off"
  286. hover_glow_amount="0.15"
  287. layout="topleft"
  288. top="0"
  289. height="22"
  290. width="22"
  291. tool_tip = "Pause media">
  292. <button.commit_callback
  293. function="MediaCtrl.Pause" />
  294. </button>
  295. </layout_panel>
  296. <!-- media URL entry -->
  297. <layout_panel
  298. name="media_address"
  299. mouse_opaque="false"
  300. auto_resize="true"
  301. height="24"
  302. follows="left|right|bottom"
  303. layout="topleft"
  304. top="0"
  305. width="190"
  306. min_width="90">
  307. <line_editor
  308. name="media_address_url"
  309. max_length_bytes="1023"
  310. follows="top|left|right"
  311. height="22"
  312. top="0"
  313. tool_tip="Media URL"
  314. text_pad_right="16">
  315. <line_editor.commit_callback
  316. function="MediaCtrl.CommitURL"/>
  317. </line_editor>
  318. <layout_stack
  319. name="media_address_url_icons"
  320. animate="false"
  321. follows="top|right"
  322. height="20"
  323. width="38"
  324. top="0"
  325. right="-1"
  326. border_size="0"
  327. mouse_opaque="false"
  328. orientation="horizontal">
  329. <layout_panel
  330. layout="topleft"
  331. width="16"
  332. mouse_opaque="false"
  333. auto_resize="false">
  334. <icon
  335. name="media_whitelist_flag"
  336. follows="top|right"
  337. height="16"
  338. image_name="Flag"
  339. layout="topleft"
  340. tool_tip="White List enabled"
  341. width="16" />
  342. </layout_panel>
  343. <layout_panel
  344. layout="topleft"
  345. width="16"
  346. mouse_opaque="false"
  347. auto_resize="false">
  348. <icon
  349. name="media_secure_lock_flag"
  350. height="16"
  351. image_name="Lock2"
  352. layout="topleft"
  353. tool_tip="Secured Browsing"
  354. width="16" />
  355. </layout_panel>
  356. </layout_stack>
  357. </layout_panel>
  358. <layout_panel
  359. name="media_play_position"
  360. mouse_opaque="false"
  361. auto_resize="true"
  362. follows="left|right"
  363. layout="topleft"
  364. top="0"
  365. height="22"
  366. min_width="100"
  367. width="200">
  368. <slider_bar
  369. name="media_play_slider"
  370. follows="left|right|top"
  371. top="0"
  372. height="22"
  373. increment="0.01"
  374. initial_value="0.5"
  375. layout="topleft"
  376. tool_tip="Movie play progress"
  377. width="200">
  378. <slider_bar.commit_callback
  379. function="MediaCtrl.JumpProgress" />
  380. </slider_bar>
  381. </layout_panel>
  382. <layout_panel
  383. name="skip_back"
  384. mouse_opaque="false"
  385. auto_resize="false"
  386. layout="topleft"
  387. top="0"
  388. min_width="22"
  389. width="22">
  390. <button
  391. name="skip_back_btn"
  392. follows="top"
  393. image_overlay="SkipBackward_Off"
  394. image_disabled="PushButton_Disabled"
  395. image_disabled_selected="PushButton_Disabled"
  396. image_selected="PushButton_Selected"
  397. image_unselected="PushButton_Off"
  398. hover_glow_amount="0.15"
  399. auto_resize="false"
  400. height="22"
  401. layout="topleft"
  402. tool_tip="Step back"
  403. top="0"
  404. width="22"
  405. left="0">
  406. <button.commit_callback
  407. function="MediaCtrl.SkipBack" />
  408. </button>
  409. </layout_panel>
  410. <layout_panel
  411. name="skip_forward"
  412. mouse_opaque="false"
  413. auto_resize="false"
  414. layout="topleft"
  415. top="0"
  416. min_width="22"
  417. width="22">
  418. <button
  419. name="skip_forward_btn"
  420. follows="top"
  421. image_overlay="SkipForward_Off"
  422. image_disabled="PushButton_Disabled"
  423. image_disabled_selected="PushButton_Disabled"
  424. image_selected="PushButton_Selected"
  425. image_unselected="PushButton_Off"
  426. hover_glow_amount="0.15"
  427. height="22"
  428. layout="topleft"
  429. tool_tip="Step forward"
  430. top="0"
  431. width="22">
  432. <button.commit_callback
  433. function="MediaCtrl.SkipForward" />
  434. </button>
  435. </layout_panel>
  436. <layout_panel
  437. name="media_volume"
  438. mouse_opaque="false"
  439. auto_resize="false"
  440. layout="topleft"
  441. top="0"
  442. height="72"
  443. min_width="22"
  444. width="22">
  445. <!-- Note: this is not quite right either...the mute button is not the -->
  446. <!-- same as the others because it cannot have the "image_overlay" be -->
  447. <!-- two different images. -->
  448. <!-- Note also: the button and the slider must overlap! -->
  449. <button
  450. name="media_mute_button"
  451. follows="top"
  452. image_disabled="PushButton_Disabled"
  453. image_disabled_selected="PushButton_Disabled"
  454. image_selected="AudioMute_Off"
  455. image_unselected="Audio_Off"
  456. hover_glow_amount="0.15"
  457. is_toggle="true"
  458. layout="topleft"
  459. scale_image="false"
  460. tool_tip="Mute This Media"
  461. top="0"
  462. height="20"
  463. width="22" >
  464. <button.commit_callback
  465. function="MediaCtrl.ToggleMute" />
  466. <button.mouseenter_callback
  467. function="MediaCtrl.ShowVolumeSlider" />
  468. <button.mouseleave_callback
  469. function="MediaCtrl.HideVolumeSlider" />
  470. </button>
  471. <slider
  472. orientation="vertical"
  473. left="0"
  474. top="16"
  475. height="50"
  476. layout="topleft"
  477. increment="0.01"
  478. initial_value="0.5"
  479. name="volume_slider"
  480. tool_tip="Media Volume"
  481. show_text="false"
  482. volume="true">
  483. <slider.commit_callback
  484. function="MediaCtrl.Volume"/>
  485. <slider.mouseenter_callback
  486. function="MediaCtrl.ShowVolumeSlider" />
  487. <slider.mouseleave_callback
  488. function="MediaCtrl.HideVolumeSlider" />
  489. </slider>
  490. </layout_panel>
  491. <layout_panel
  492. name="zoom_frame"
  493. mouse_opaque="false"
  494. auto_resize="false"
  495. layout="topleft"
  496. top="0"
  497. height="28"
  498. min_width="22"
  499. width="22">
  500. <button
  501. name="zoom_frame_btn"
  502. follows="top"
  503. image_overlay="Zoom_Off"
  504. image_disabled="PushButton_Disabled"
  505. image_disabled_selected="PushButton_Disabled"
  506. image_selected="PushButton_Selected"
  507. image_unselected="PushButton_Off"
  508. hover_glow_amount="0.15"
  509. top="0"
  510. height="22"
  511. layout="topleft"
  512. tool_tip="Zoom into media"
  513. width="22">
  514. <button.commit_callback
  515. function="MediaCtrl.Zoom" />
  516. </button>
  517. </layout_panel>
  518. <layout_panel
  519. name="close"
  520. mouse_opaque="false"
  521. auto_resize="false"
  522. layout="topleft"
  523. top="0"
  524. min_width="21"
  525. width="21" >
  526. <button
  527. name="close_btn"
  528. follows="top"
  529. image_overlay="UnZoom_Off"
  530. image_disabled="PushButton_Disabled"
  531. image_disabled_selected="PushButton_Disabled"
  532. image_selected="PushButton_Selected"
  533. image_unselected="PushButton_Off"
  534. hover_glow_amount="0.15"
  535. top="0"
  536. height="22"
  537. layout="topleft"
  538. tool_tip ="Zoom Back"
  539. top_delta="-4"
  540. width="21" >
  541. <button.commit_callback
  542. function="MediaCtrl.Close" />
  543. </button>
  544. </layout_panel>
  545. <layout_panel
  546. name="new_window"
  547. mouse_opaque="false"
  548. auto_resize="false"
  549. layout="topleft"
  550. top="0"
  551. min_width="22"
  552. width="22">
  553. <button
  554. name="new_window_btn"
  555. follows="top"
  556. image_overlay="ExternalBrowser_Off"
  557. image_disabled="PushButton_Disabled"
  558. image_disabled_selected="PushButton_Disabled"
  559. image_selected="PushButton_Selected"
  560. image_unselected="PushButton_Off"
  561. hover_glow_amount="0.15"
  562. height="22"
  563. layout="topleft"
  564. tool_tip = "Open URL in browser"
  565. top="0"
  566. width="24" >
  567. <button.commit_callback
  568. function="MediaCtrl.Open" />
  569. </button>
  570. </layout_panel>
  571. <!-- bookend panel -->
  572. <layout_panel
  573. name="right_bookend"
  574. mouse_opaque="false"
  575. top="0"
  576. width="0"
  577. layout="topleft"/>
  578. </layout_stack>
  579. <panel
  580. name="media_region"
  581. height="100"
  582. follows="left|right|top|bottom"
  583. layout="topleft"
  584. mouse_opaque="false"
  585. top="30" />
  586. </panel>