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.

691 lines
25KB

  1. # data file for the Fltk User Interface Designer (fluid)
  2. version 1.0300
  3. header_name {.h}
  4. code_name {.cxx}
  5. comment {//
  6. // "$Id: widget_panel.fl 7913 2010-11-29 18:18:27Z greg.ercolano $"
  7. //
  8. // Widget panel for the Fast Light Tool Kit (FLTK).
  9. //
  10. // Copyright 1998-2010 by Bill Spitzak and others.
  11. //
  12. // This library is free software; you can redistribute it and/or
  13. // modify it under the terms of the GNU Library General Public
  14. // License as published by the Free Software Foundation; either
  15. // version 2 of the License, or (at your option) any later version.
  16. //
  17. // This library is distributed in the hope that it will be useful,
  18. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  20. // Library General Public License for more details.
  21. //
  22. // You should have received a copy of the GNU Library General Public
  23. // License along with this library; if not, write to the Free Software
  24. // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
  25. // USA.
  26. //
  27. // Please report all bugs and problems on the following page:
  28. //
  29. // http://www.fltk.org/str.php
  30. //
  31. } {in_source in_header
  32. }
  33. Function {make_widget_panel()} {open
  34. } {
  35. Fl_Window {} {open
  36. xywh {383 206 420 360} type Double labelsize 11 align 80 resizable hotspot
  37. code0 {o->size_range(o->w(), o->h());} visible
  38. } {
  39. Fl_Tabs {} {
  40. callback {propagate_load((Fl_Group *)o,v);} open
  41. xywh {10 10 400 310} selection_color 12 labelsize 11 labelcolor 7 when 0 resizable
  42. } {
  43. Fl_Group {} {
  44. label GUI
  45. callback propagate_load open
  46. xywh {10 30 400 290} labelsize 11 when 0 resizable
  47. } {
  48. Fl_Group {} {
  49. label {Label:}
  50. callback propagate_load open
  51. xywh {95 40 309 20} labelfont 1 labelsize 11 align 4
  52. } {
  53. Fl_Input {} {
  54. callback label_cb
  55. tooltip {The label text for the widget.
  56. Use Ctrl-J for newlines.} xywh {95 40 190 20} labelfont 1 labelsize 11 when 1 textsize 11 resizable
  57. }
  58. Fl_Choice {} {
  59. callback labeltype_cb open
  60. tooltip {The label style for the widget.} xywh {284 40 120 20} box THIN_UP_BOX down_box BORDER_BOX labelfont 1 labelsize 11 textsize 11
  61. code0 {extern Fl_Menu_Item labeltypemenu[];}
  62. code1 {o->menu(labeltypemenu);}
  63. } {}
  64. }
  65. Fl_Group {} {
  66. label {Image:}
  67. callback propagate_load
  68. xywh {95 65 309 20} labelfont 1 labelsize 11 align 4
  69. } {
  70. Fl_Input {} {
  71. callback image_cb
  72. tooltip {The active image for the widget.} xywh {95 65 240 20} labelfont 1 labelsize 11 textsize 11 resizable
  73. }
  74. Fl_Button {} {
  75. label {Browse...}
  76. callback image_browse_cb
  77. tooltip {Click to choose the active image.} xywh {334 65 70 20} labelsize 11
  78. }
  79. }
  80. Fl_Group {} {
  81. label {Inactive:}
  82. callback propagate_load
  83. xywh {95 90 309 20} labelfont 1 labelsize 11 align 4
  84. } {
  85. Fl_Input {} {
  86. callback inactive_cb
  87. tooltip {The inactive image for the widget.} xywh {95 90 240 20} labelfont 1 labelsize 11 textsize 11 resizable
  88. }
  89. Fl_Button {} {
  90. label {Browse...}
  91. callback inactive_browse_cb
  92. tooltip {Click to choose the inactive image.} xywh {334 90 70 20} labelsize 11
  93. }
  94. }
  95. Fl_Group {} {
  96. label {Alignment:}
  97. callback propagate_load open
  98. xywh {95 115 300 20} labelfont 1 labelsize 11 align 4
  99. } {
  100. Fl_Button {} {
  101. label Clip
  102. user_data FL_ALIGN_CLIP
  103. callback align_cb
  104. tooltip {Clip the label to the inside of the widget.} xywh {95 115 30 20} type Toggle selection_color 8 labelsize 11 align 16
  105. }
  106. Fl_Button {} {
  107. label Wrap
  108. user_data FL_ALIGN_WRAP
  109. callback align_cb
  110. tooltip {Wrap the label text.} xywh {130 115 30 20} type Toggle selection_color 8 labelsize 11
  111. }
  112. Fl_Button {} {
  113. label {@-1<-}
  114. user_data FL_ALIGN_LEFT
  115. callback align_cb
  116. tooltip {Left-align the label.} xywh {270 115 20 20} type Toggle selection_color 8 labelsize 11 labelcolor 8 hide
  117. }
  118. Fl_Button {} {
  119. label {@-1->}
  120. user_data FL_ALIGN_RIGHT
  121. callback align_cb
  122. tooltip {Right-align the label.} xywh {295 115 20 20} type Toggle selection_color 8 labelsize 11 labelcolor 8 hide
  123. }
  124. Fl_Button {} {
  125. label {@-18}
  126. user_data FL_ALIGN_TOP
  127. callback align_cb
  128. tooltip {Top-align the label.} xywh {320 115 20 20} type Toggle selection_color 8 labelsize 11 labelcolor 8 hide
  129. }
  130. Fl_Button {} {
  131. label {@-12}
  132. user_data FL_ALIGN_BOTTOM
  133. callback align_cb
  134. tooltip {Bottom-align the label.} xywh {345 115 20 20} type Toggle selection_color 8 labelsize 11 labelcolor 8 hide
  135. }
  136. Fl_Choice {} {
  137. callback align_text_image_cb open selected
  138. xywh {165 115 110 20} down_box BORDER_BOX labelsize 11 textsize 11
  139. } {
  140. MenuItem {} {
  141. label { Image Alignment }
  142. user_data 0xFFFFFFFF
  143. xywh {145 145 100 20} labelfont 2 labelsize 11 deactivate
  144. }
  145. MenuItem {} {
  146. label {image over text}
  147. user_data FL_ALIGN_IMAGE_OVER_TEXT
  148. xywh {25 25 100 20} labelsize 11
  149. }
  150. MenuItem {} {
  151. label {text over image}
  152. user_data FL_ALIGN_TEXT_OVER_IMAGE
  153. xywh {15 15 100 20} labelsize 11
  154. }
  155. MenuItem {} {
  156. label {text next to image}
  157. user_data FL_ALIGN_TEXT_NEXT_TO_IMAGE
  158. xywh {35 35 100 20} labelsize 11
  159. }
  160. MenuItem {} {
  161. label {image next to text}
  162. user_data FL_ALIGN_IMAGE_NEXT_TO_TEXT
  163. xywh {45 45 100 20} labelsize 11
  164. }
  165. MenuItem {} {
  166. label {image is backdrop}
  167. user_data FL_ALIGN_IMAGE_BACKDROP
  168. xywh {55 55 100 20} labelsize 11
  169. }
  170. }
  171. Fl_Choice {} {
  172. callback align_position_cb open
  173. xywh {280 115 85 20} down_box BORDER_BOX labelsize 11 textsize 11
  174. } {
  175. MenuItem {} {
  176. label { Inside && Outside }
  177. user_data 0xFFFFFFFF
  178. xywh {135 135 100 20} labelfont 2 labelsize 11 deactivate
  179. }
  180. MenuItem {} {
  181. label {top left}
  182. user_data FL_ALIGN_TOP_LEFT
  183. xywh {45 45 100 20} labelsize 11
  184. }
  185. MenuItem {} {
  186. label top
  187. user_data FL_ALIGN_TOP
  188. xywh {55 55 100 20} labelsize 11
  189. }
  190. MenuItem {} {
  191. label {top right}
  192. user_data FL_ALIGN_TOP_RIGHT
  193. xywh {65 65 100 20} labelsize 11
  194. }
  195. MenuItem {} {
  196. label left
  197. user_data FL_ALIGN_LEFT
  198. xywh {75 75 100 20} labelsize 11
  199. }
  200. MenuItem {} {
  201. label center
  202. user_data FL_ALIGN_CENTER
  203. xywh {35 35 100 20} labelsize 11
  204. }
  205. MenuItem {} {
  206. label right
  207. user_data FL_ALIGN_RIGHT
  208. xywh {85 85 100 20} labelsize 11
  209. }
  210. MenuItem {} {
  211. label {bottom left}
  212. user_data FL_ALIGN_BOTTOM_LEFT
  213. xywh {95 95 100 20} labelsize 11
  214. }
  215. MenuItem {} {
  216. label bottom
  217. user_data FL_ALIGN_BOTTOM
  218. xywh {105 105 100 20} labelsize 11
  219. }
  220. MenuItem {} {
  221. label {bottom right}
  222. user_data FL_ALIGN_BOTTOM_RIGHT
  223. xywh {115 115 100 20} labelsize 11 divider
  224. }
  225. MenuItem {} {
  226. label { Outside Alignment }
  227. user_data 0xFFFFFFFF
  228. xywh {125 125 100 20} labelfont 2 labelsize 11 deactivate
  229. }
  230. MenuItem {} {
  231. label {left top}
  232. user_data FL_ALIGN_LEFT_TOP
  233. xywh {135 135 100 20} labelsize 11
  234. }
  235. MenuItem {} {
  236. label {right top}
  237. user_data FL_ALIGN_RIGHT_TOP
  238. xywh {145 145 100 20} labelsize 11
  239. }
  240. MenuItem {} {
  241. label {left bottom}
  242. user_data FL_ALIGN_LEFT_BOTTOM
  243. xywh {155 155 100 20} labelsize 11
  244. }
  245. MenuItem {} {
  246. label {right bottom}
  247. user_data FL_ALIGN_RIGHT_BOTTOM
  248. xywh {45 45 100 20} labelsize 11
  249. }
  250. }
  251. Fl_Button {} {
  252. label {@-3square}
  253. user_data FL_ALIGN_INSIDE
  254. callback align_cb
  255. tooltip {Show the label inside the widget.} xywh {370 115 20 20} type Toggle selection_color 8 labelsize 11 labelcolor 8
  256. }
  257. Fl_Box {} {
  258. xywh {395 115 0 20} labelsize 11 resizable
  259. }
  260. }
  261. Fl_Group {} {
  262. label {Position:}
  263. callback propagate_load
  264. xywh {95 150 300 20} labelfont 1 labelsize 11 align 4
  265. } {
  266. Fl_Value_Input widget_x_input {
  267. label {X:}
  268. callback x_cb
  269. tooltip {The X position of the widget.} xywh {95 150 55 20} labelsize 11 align 5 maximum 2048 step 1 textsize 11
  270. }
  271. Fl_Value_Input widget_y_input {
  272. label {Y:}
  273. callback y_cb
  274. tooltip {The Y position of the widget.} xywh {155 150 55 20} labelsize 11 align 5 maximum 2048 step 1 textsize 11
  275. }
  276. Fl_Value_Input widget_w_input {
  277. label {Width:}
  278. callback w_cb
  279. tooltip {The width of the widget.} xywh {215 150 55 20} labelsize 11 align 5 maximum 2048 step 1 textsize 11
  280. }
  281. Fl_Value_Input widget_h_input {
  282. label {Height:}
  283. callback h_cb
  284. tooltip {The height of the widget.} xywh {275 150 55 20} labelsize 11 align 5 maximum 2048 step 1 textsize 11
  285. }
  286. Fl_Light_Button {} {
  287. label Relative
  288. callback wc_relative_cb
  289. tooltip {If set, widgets inside a widget class of type Fl_Group are repositioned relative to the origin at construction time} xywh {335 150 55 20} labelsize 11
  290. }
  291. Fl_Box {} {
  292. xywh {394 150 1 20} resizable
  293. }
  294. }
  295. Fl_Group {} {
  296. label {Values:}
  297. callback propagate_load
  298. xywh {95 185 300 20} labelfont 1 labelsize 11 align 4
  299. } {
  300. Fl_Value_Input {} {
  301. label {Size:}
  302. callback slider_size_cb
  303. tooltip {The size of the slider.} xywh {95 185 55 20} labelsize 11 align 5 step 0.010101 textsize 11
  304. }
  305. Fl_Value_Input {} {
  306. label {Minimum:}
  307. callback min_cb
  308. tooltip {The minimum value of the widget.} xywh {155 185 55 20} labelsize 11 align 5 textsize 11
  309. }
  310. Fl_Value_Input {} {
  311. label {Maximum:}
  312. callback max_cb
  313. tooltip {The maximum value of the widget.} xywh {215 185 55 20} labelsize 11 align 5 value 1 textsize 11
  314. }
  315. Fl_Value_Input {} {
  316. label {Step:}
  317. callback step_cb
  318. tooltip {The resolution of the widget value.} xywh {275 185 55 20} labelsize 11 align 5 textsize 11
  319. }
  320. Fl_Value_Input {} {
  321. label {Value:}
  322. callback value_cb
  323. tooltip {The current widget value.} xywh {335 185 55 20} labelsize 11 align 5 textsize 11
  324. }
  325. Fl_Box {} {
  326. xywh {395 185 0 20} resizable
  327. }
  328. }
  329. Fl_Group {} {
  330. label {Size Range:}
  331. callback propagate_load
  332. xywh {95 185 300 20} labelfont 1 labelsize 11 align 4 hide
  333. } {
  334. Fl_Value_Input {} {
  335. label {Minimum Size:}
  336. callback min_w_cb
  337. tooltip {The size of the slider.} xywh {95 185 55 20} labelsize 11 align 5 maximum 2048 step 1 textsize 11
  338. }
  339. Fl_Value_Input {} {
  340. callback min_h_cb
  341. tooltip {The minimum value of the widget.} xywh {155 185 55 20} labelsize 11 align 5 maximum 2048 step 1 textsize 11
  342. }
  343. Fl_Button {} {
  344. label set
  345. callback set_min_size_cb
  346. xywh {215 185 25 20} labelsize 11
  347. }
  348. Fl_Value_Input {} {
  349. label {Maximum Size:}
  350. callback max_w_cb
  351. tooltip {The maximum value of the widget.} xywh {245 185 55 20} labelsize 11 align 5 maximum 2048 step 1 textsize 11
  352. }
  353. Fl_Value_Input {} {
  354. callback max_h_cb
  355. tooltip {The resolution of the widget value.} xywh {305 185 55 20} labelsize 11 align 5 maximum 2048 step 1 textsize 11
  356. }
  357. Fl_Button {} {
  358. label set
  359. callback set_max_size_cb
  360. xywh {365 185 25 20} labelsize 11
  361. }
  362. Fl_Box {} {
  363. xywh {395 185 0 20} resizable
  364. }
  365. }
  366. Fl_Button {} {
  367. label {Shortcut:}
  368. callback shortcut_in_cb
  369. tooltip {The shortcut key for the widget.} xywh {95 210 310 20} box DOWN_BOX color 7 selection_color 7 labelfont 1 labelsize 11 align 4
  370. code0 {\#include "Shortcut_Button.h"}
  371. class Shortcut_Button
  372. }
  373. Fl_Group {} {
  374. label {X Class:}
  375. callback propagate_load
  376. xywh {95 235 300 20} labelfont 1 labelsize 11 align 4
  377. } {
  378. Fl_Input {} {
  379. label {:}
  380. callback xclass_cb
  381. tooltip {The X resource class.} xywh {95 235 95 20} labelfont 1 labelsize 11 textsize 11 resizable
  382. }
  383. Fl_Light_Button {} {
  384. label Border
  385. callback border_cb
  386. tooltip {Add a border around the window.} xywh {195 235 60 20} selection_color 1 labelsize 11
  387. }
  388. Fl_Light_Button {} {
  389. label Modal
  390. callback modal_cb
  391. tooltip {Make the window modal.} xywh {260 235 55 20} selection_color 1 labelsize 11
  392. }
  393. Fl_Light_Button {} {
  394. label Nonmodal
  395. callback non_modal_cb
  396. tooltip {Make the window non-modal.} xywh {320 235 75 20} selection_color 1 labelsize 11 align 148
  397. }
  398. }
  399. Fl_Group {} {
  400. label {Attributes:}
  401. callback propagate_load
  402. xywh {95 260 305 20} labelfont 1 labelsize 11 align 4
  403. } {
  404. Fl_Light_Button {} {
  405. label Visible
  406. callback visible_cb
  407. tooltip {Show the widget.} xywh {95 260 60 20} selection_color 1 labelsize 11
  408. }
  409. Fl_Light_Button {} {
  410. label Active
  411. callback active_cb
  412. tooltip {Activate the widget.} xywh {160 260 60 20} selection_color 1 labelsize 11
  413. }
  414. Fl_Light_Button {} {
  415. label Resizable
  416. callback resizable_cb
  417. tooltip {Make the widget resizable.} xywh {225 260 75 20} selection_color 1 labelsize 11 when 1
  418. }
  419. Fl_Light_Button {} {
  420. label Hotspot
  421. callback hotspot_cb
  422. tooltip {Center the window under this widget.} xywh {305 260 70 20} selection_color 1 labelsize 11 when 1
  423. }
  424. Fl_Box {} {
  425. xywh {395 260 0 20} labelsize 11 resizable
  426. }
  427. }
  428. Fl_Input {} {
  429. label {Tooltip:}
  430. callback tooltip_cb
  431. tooltip {The tooltip text for the widget.
  432. Use Ctrl-J for newlines.} xywh {95 285 310 20} labelfont 1 labelsize 11 textsize 11
  433. }
  434. Fl_Box {} {
  435. xywh {95 305 300 5} labelsize 11 resizable
  436. }
  437. }
  438. Fl_Group {} {
  439. label Style
  440. callback propagate_load
  441. xywh {10 30 400 290} labelsize 11 when 0 hide
  442. } {
  443. Fl_Group {} {
  444. label {Label Font:}
  445. callback propagate_load
  446. xywh {95 40 309 20} labelfont 1 labelsize 11 align 4
  447. } {
  448. Fl_Choice {} {
  449. callback labelfont_cb open
  450. tooltip {The style of the label text.} xywh {95 40 170 20} box THIN_UP_BOX down_box BORDER_BOX labelfont 1 labelsize 11 textsize 11 resizable
  451. code0 {extern Fl_Menu_Item fontmenu[];}
  452. code1 {o->menu(fontmenu);}
  453. } {}
  454. Fl_Value_Input {} {
  455. callback labelsize_cb
  456. tooltip {The size of the label text.} xywh {264 40 50 20} labelsize 11 maximum 100 step 1 value 14 textsize 11
  457. }
  458. Fl_Button {} {
  459. label {Label Color}
  460. callback labelcolor_cb
  461. tooltip {The color of the label text.} xywh {314 40 90 20} labelsize 11
  462. }
  463. }
  464. Fl_Group {} {
  465. label {Box:}
  466. callback propagate_load
  467. xywh {95 65 309 20} labelfont 1 labelsize 11 align 4
  468. } {
  469. Fl_Choice {} {
  470. callback box_cb open
  471. tooltip {The "up" box of the widget.} xywh {95 65 219 20} box THIN_UP_BOX down_box BORDER_BOX labelfont 1 labelsize 11 textsize 11 resizable
  472. code0 {extern Fl_Menu_Item boxmenu[];}
  473. code1 {o->menu(boxmenu);}
  474. } {}
  475. Fl_Button {} {
  476. label Color
  477. callback color_cb
  478. tooltip {The background color of the widget.} xywh {314 65 90 20} labelsize 11
  479. }
  480. }
  481. Fl_Group {} {
  482. label {Down Box:}
  483. callback propagate_load
  484. xywh {95 90 309 20} labelfont 1 labelsize 11 align 4
  485. } {
  486. Fl_Choice {} {
  487. callback down_box_cb open
  488. tooltip {The "down" box of the widget.} xywh {95 90 219 20} box THIN_UP_BOX down_box BORDER_BOX labelfont 1 labelsize 11 textsize 11 resizable
  489. code0 {extern Fl_Menu_Item boxmenu[];}
  490. code1 {o->menu(boxmenu);}
  491. } {}
  492. Fl_Button {} {
  493. label {Select Color}
  494. callback color2_cb
  495. tooltip {The selection color of the widget.} xywh {314 90 90 20} labelsize 11
  496. }
  497. }
  498. Fl_Group {} {
  499. label {Text Font:}
  500. callback propagate_load
  501. xywh {95 115 309 20} labelfont 1 labelsize 11 align 4
  502. } {
  503. Fl_Choice {} {
  504. callback textfont_cb open
  505. tooltip {The value text style.} xywh {95 115 170 20} box DOWN_BOX down_box BORDER_BOX labelfont 1 labelsize 11 textsize 11 resizable
  506. code0 {extern Fl_Menu_Item fontmenu[];}
  507. code1 {o->menu(fontmenu);}
  508. } {}
  509. Fl_Value_Input {} {
  510. callback textsize_cb
  511. tooltip {The value text size.} xywh {264 115 50 20} labelsize 11 maximum 100 step 1 value 14 textsize 11
  512. }
  513. Fl_Button {} {
  514. label {Text Color}
  515. callback textcolor_cb
  516. tooltip {The value text color.} xywh {314 115 90 20} labelsize 11
  517. }
  518. }
  519. Fl_Box {} {
  520. xywh {95 140 300 40} labelsize 11 resizable
  521. }
  522. }
  523. Fl_Group {} {
  524. label {C++}
  525. callback propagate_load open
  526. xywh {10 30 400 290} labelsize 11 when 0 hide
  527. } {
  528. Fl_Group {} {
  529. label {Class:}
  530. callback propagate_load
  531. xywh {95 40 310 20} labelfont 1 labelsize 11 align 4
  532. } {
  533. Fl_Input {} {
  534. user_data 4
  535. callback subclass_cb
  536. tooltip {The widget subclass.} xywh {95 40 172 20} labelfont 1 labelsize 11 textfont 4 textsize 11 resizable
  537. }
  538. Fl_Choice {} {
  539. callback subtype_cb open
  540. tooltip {The widget subtype.} xywh {265 40 140 20} box THIN_UP_BOX down_box BORDER_BOX labelsize 11 textsize 11
  541. } {}
  542. }
  543. Fl_Group {} {
  544. label {Name:}
  545. callback propagate_load open
  546. xywh {95 65 310 20} labelfont 1 labelsize 11 align 4
  547. } {
  548. Fl_Input {} {
  549. callback name_cb
  550. tooltip {The name of the widget.} xywh {95 65 235 20} labelfont 1 labelsize 11 textsize 11 resizable
  551. }
  552. Fl_Choice {} {
  553. callback name_public_member_cb open
  554. tooltip {Change member access attribute.} xywh {330 65 75 20} down_box BORDER_BOX labelsize 11 when 1 textsize 11
  555. } {
  556. MenuItem {} {
  557. label private
  558. user_data 0 user_data_type long
  559. xywh {0 0 100 20} labelsize 11
  560. }
  561. MenuItem {} {
  562. label public
  563. user_data 1 user_data_type long
  564. xywh {0 0 100 20} labelsize 11
  565. }
  566. MenuItem {} {
  567. label protected
  568. user_data 2 user_data_type long
  569. xywh {0 0 100 20} labelsize 11
  570. }
  571. }
  572. Fl_Choice {} {
  573. callback name_public_cb open
  574. tooltip {Change widget accessibility.} xywh {330 65 75 20} down_box BORDER_BOX labelsize 11 when 1 textsize 11
  575. } {
  576. MenuItem {} {
  577. label local
  578. user_data 0 user_data_type long
  579. xywh {10 10 100 20} labelsize 11
  580. }
  581. MenuItem {} {
  582. label global
  583. user_data 1 user_data_type long
  584. xywh {10 10 100 20} labelsize 11
  585. }
  586. }
  587. }
  588. Fl_Input {v_input[0]} {
  589. label {Extra Code:}
  590. user_data 0
  591. callback v_input_cb
  592. tooltip {Extra initialization code for the widget.} xywh {95 90 310 20} labelfont 1 labelsize 11 textfont 4 textsize 11
  593. }
  594. Fl_Input {v_input[1]} {
  595. user_data 1
  596. callback v_input_cb
  597. tooltip {Extra initialization code for the widget.} xywh {95 110 310 20} labelsize 11 textfont 4 textsize 11
  598. }
  599. Fl_Input {v_input[2]} {
  600. user_data 2
  601. callback v_input_cb
  602. tooltip {Extra initialization code for the widget.} xywh {95 130 310 20} labelsize 11 textfont 4 textsize 11
  603. }
  604. Fl_Input {v_input[3]} {
  605. user_data 3
  606. callback v_input_cb
  607. tooltip {Extra initialization code for the widget.} xywh {95 150 310 20} labelsize 11 textfont 4 textsize 11
  608. }
  609. Fl_Text_Editor {} {
  610. label {Callback:}
  611. callback callback_cb
  612. tooltip {The callback function or code for the widget. Use the variable name 'o' to access the Widget pointer and 'v' to access the user value.} xywh {95 175 310 90} box DOWN_BOX labelfont 1 labelsize 11 align 4 textfont 4 textsize 11 resizable
  613. code0 {\#include "CodeEditor.h"}
  614. class CodeEditor
  615. }
  616. Fl_Group {} {
  617. label {User Data:}
  618. callback propagate_load
  619. xywh {95 270 310 20} labelfont 1 labelsize 11 align 4
  620. } {
  621. Fl_Input {} {
  622. callback user_data_cb
  623. tooltip {The user data to pass into the callback code.} xywh {95 270 158 20} labelfont 1 labelsize 11 textfont 4 textsize 11 resizable
  624. }
  625. Fl_Choice {} {
  626. label {When:}
  627. callback when_cb open
  628. tooltip {When to call the callback function.} xywh {300 270 105 20} box THIN_UP_BOX down_box BORDER_BOX labelfont 1 labelsize 11 when 1 textsize 11
  629. code0 {extern Fl_Menu_Item whenmenu[];}
  630. code1 {o->menu(whenmenu);}
  631. } {}
  632. }
  633. Fl_Group {} {
  634. label {Type:}
  635. callback propagate_load
  636. xywh {95 295 310 20} labelfont 1 labelsize 11 align 4
  637. } {
  638. Fl_Input {} {
  639. callback user_data_type_cb
  640. tooltip {The type of the user data.} xywh {95 295 158 20} labelfont 1 labelsize 11 textfont 4 textsize 11 resizable
  641. }
  642. Fl_Light_Button {} {
  643. label {No Change}
  644. callback when_button_cb
  645. tooltip {Call the callback even if the value has not changed.} xywh {300 295 105 20} selection_color 1 labelsize 11
  646. }
  647. }
  648. }
  649. }
  650. Fl_Group {} {open
  651. xywh {9 330 400 20} labelsize 11
  652. } {
  653. Fl_Box {} {
  654. xywh {9 330 20 20} labelsize 11 resizable
  655. }
  656. Fl_Button {} {
  657. label {Hide &Overlays}
  658. callback overlay_cb
  659. tooltip {Hide the widget overlay box.} xywh {240 330 99 20} labelsize 11 labelcolor 1
  660. }
  661. Fl_Button {} {
  662. label Revert
  663. callback revert_cb
  664. xywh {66 330 80 20} labelsize 11 hide
  665. }
  666. Fl_Return_Button {} {
  667. label Close
  668. callback ok_cb
  669. xywh {344 330 64 20} labelsize 11
  670. }
  671. Fl_Button {} {
  672. label Cancel
  673. callback cancel_cb
  674. xywh {339 330 70 20} labelsize 11 hide
  675. }
  676. Fl_Button wLiveMode {
  677. label {Live &Mode}
  678. callback live_mode_cb
  679. tooltip {Create a live duplicate of the selected widgets to test resizing and menu behavior.} xywh {151 330 84 20} type Toggle labelsize 11
  680. }
  681. }
  682. }
  683. }
  684. comment {
  685. //
  686. // End of "$Id: widget_panel.fl 7913 2010-11-29 18:18:27Z greg.ercolano $".
  687. //} {in_source in_header
  688. }