widget_panel.fl 28 KB

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