function_panel.fl 32 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024
  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: function_panel.fl 8864 2011-07-19 04:49:30Z greg.ercolano $"
  7. //
  8. // Code dialogs 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. } {in_source in_header
  23. }
  24. decl {\#include <FL/Fl_Pixmap.H>} {private local
  25. }
  26. decl {\#include "Fl_Type.h"} {private local
  27. }
  28. decl {\#include "undo.h"} {private local
  29. }
  30. decl {extern class Fl_Pixmap *pixmap[];} {private local
  31. }
  32. decl {extern class Fl_Type *Fl_Type_make(const char*);} {private local
  33. }
  34. decl {extern void select_only(Fl_Type*);} {private local
  35. }
  36. decl {extern void exit_cb(Fl_Widget*, void*);} {private global
  37. }
  38. decl {extern void toggle_widgetbin_cb(Fl_Widget*, void*);} {private global
  39. }
  40. decl {extern void update_widget_browser_position_cb(CodeViewer *source, CodeViewer *header, Fl_Input *ii);} {private global
  41. }
  42. Function {make_function_panel()} {} {
  43. Fl_Window function_panel {
  44. label {Function/Method Properties} open
  45. xywh {-32000 -32000 343 232} type Double hide resizable modal
  46. } {
  47. Fl_Group {} {open
  48. xywh {10 10 270 20}
  49. } {
  50. Fl_Choice f_public_member_choice {
  51. tooltip {Change member access attribute.} xywh {10 10 75 20} down_box BORDER_BOX labelsize 11 when 1 textsize 11
  52. } {
  53. MenuItem {} {
  54. label private
  55. user_data 0 user_data_type long
  56. xywh {5 5 100 20} labelsize 11
  57. }
  58. MenuItem {} {
  59. label public
  60. user_data 1 user_data_type long
  61. xywh {5 5 100 20} labelsize 11
  62. }
  63. MenuItem {} {
  64. label protected
  65. user_data 2 user_data_type long
  66. xywh {5 5 100 20} labelsize 11
  67. }
  68. }
  69. Fl_Choice f_public_choice {
  70. tooltip {Change widget accessibility.} xywh {10 10 75 20} down_box BORDER_BOX labelsize 11 when 1 textsize 11
  71. } {
  72. MenuItem {} {
  73. label local
  74. user_data 0 user_data_type long
  75. xywh {15 15 100 20} labelsize 11
  76. }
  77. MenuItem {} {
  78. label global
  79. user_data 1 user_data_type long
  80. xywh {15 15 100 20} labelsize 11
  81. }
  82. }
  83. Fl_Light_Button f_c_button {
  84. label {C declaration}
  85. tooltip {Declare with a C interface instead of C++.} xywh {95 10 80 20} labelsize 11
  86. }
  87. Fl_Box {} {
  88. xywh {235 10 45 20} resizable
  89. }
  90. }
  91. Fl_Input f_name_input {
  92. label {Name(args): (blank for main())}
  93. tooltip {The name of the function or method.} xywh {10 50 320 20} labelfont 1 labelsize 11 align 5 when 0 textfont 4 textsize 11
  94. }
  95. Fl_Input f_return_type_input {
  96. label {Return Type: (blank to return outermost widget)}
  97. tooltip {The return type of the function or method.} xywh {10 90 320 20} labelfont 1 labelsize 11 align 5 when 0 textfont 4 textsize 11
  98. }
  99. Fl_Group {} {
  100. xywh {10 200 320 20}
  101. } {
  102. Fl_Return_Button f_panel_ok {
  103. label OK
  104. tooltip {Apply the changes.} xywh {220 200 50 20} labelsize 11 hotspot
  105. }
  106. Fl_Button f_panel_cancel {
  107. label Cancel
  108. tooltip {Cancel the changes.} xywh {280 200 50 20} shortcut 0xff1b labelsize 11
  109. }
  110. Fl_Box {} {
  111. xywh {10 200 205 20} resizable
  112. }
  113. }
  114. Fl_Text_Editor f_comment_input {
  115. label {Comment:}
  116. tooltip {Function comment in Doxygen format} xywh {10 125 320 65} box DOWN_BOX labelfont 1 labelsize 11 align 5 textfont 4 textsize 11 resizable
  117. code0 {f_comment_input->buffer(new Fl_Text_Buffer());}
  118. }
  119. }
  120. }
  121. Function {make_code_panel()} {} {
  122. Fl_Window code_panel {
  123. label {Code Properties} open
  124. xywh {-32000 -32000 540 216} type Double labelsize 11 hide resizable
  125. code0 {o->size_range(200, 150);} modal
  126. } {
  127. Fl_Text_Editor code_input {
  128. xywh {10 45 520 130} box DOWN_BOX labelsize 11 textfont 4 textsize 11 resizable
  129. code0 {o->when(FL_WHEN_ENTER_KEY_CHANGED|FL_WHEN_RELEASE);}
  130. code1 {\#include "CodeEditor.h"}
  131. code2 {o->change_text_size(14);}
  132. class CodeEditor
  133. }
  134. Fl_Group {} {open
  135. xywh {10 185 520 20} labelsize 11
  136. } {
  137. Fl_Return_Button code_panel_ok {
  138. label OK
  139. xywh {400 185 60 20} labelsize 11 hotspot
  140. }
  141. Fl_Button code_panel_cancel {
  142. label Cancel
  143. xywh {470 185 60 20} shortcut 0xff1b labelsize 11
  144. }
  145. Fl_Box {} {
  146. xywh {10 185 380 20} labelsize 11 resizable
  147. }
  148. }
  149. Fl_Input code_parent {
  150. label {For:}
  151. xywh {40 11 490 24}
  152. }
  153. }
  154. }
  155. Function {make_codeblock_panel()} {} {
  156. Fl_Window codeblock_panel {
  157. label {Code Block Properties}
  158. xywh {468 221 300 115} type Double labelsize 11 hide resizable
  159. code0 {o->size_range(o->w(), o->h(), Fl::w(), o->h());} modal
  160. } {
  161. Fl_Input code_before_input {
  162. label {Conditional code block}
  163. tooltip {\#ifdef or similar conditional code block.} xywh {10 15 280 20} labelsize 11 align 5 when 0 textfont 4 textsize 11
  164. }
  165. Fl_Input code_after_input {
  166. label {"{...child code...}" is inserted here}
  167. tooltip {\#endif or similar conditional code block.} xywh {10 55 280 20} labelsize 11 align 5 when 0 textfont 4 textsize 11 resizable
  168. }
  169. Fl_Group {} {open
  170. xywh {10 85 280 20}
  171. } {
  172. Fl_Return_Button codeblock_panel_ok {
  173. label OK
  174. xywh {160 85 60 20} labelsize 11 hotspot
  175. }
  176. Fl_Button codeblock_panel_cancel {
  177. label Cancel
  178. xywh {230 85 60 20} shortcut 0xff1b labelsize 11
  179. }
  180. Fl_Box {} {
  181. xywh {10 85 140 20} resizable
  182. }
  183. }
  184. }
  185. }
  186. Function {make_block_panel()} {} {
  187. Fl_Window block_panel {
  188. label {Block Properties} open
  189. xywh {398 298 300 236} type Double labelsize 11 hide resizable
  190. code0 {o->size_range(o->w(), o->h(), Fl::w(), o->h());} modal
  191. } {
  192. Fl_Group {} {open
  193. xywh {10 10 280 20}
  194. } {
  195. Fl_Choice block_public_choice {open
  196. tooltip {Change widget accessibility.} xywh {10 10 140 20} down_box BORDER_BOX labelsize 11 when 0 textsize 11
  197. } {
  198. MenuItem {} {
  199. label {in source code only}
  200. user_data 0 user_data_type long
  201. xywh {25 25 100 20} labelsize 11
  202. }
  203. MenuItem {} {
  204. label {in header and source}
  205. user_data 1 user_data_type long
  206. xywh {25 25 100 20} labelsize 11
  207. }
  208. }
  209. Fl_Light_Button block_public_button_x {
  210. label public
  211. tooltip {Make the declaration publicly accessible.} xywh {10 10 60 20} labelsize 11 when 0 hide
  212. }
  213. Fl_Box {} {
  214. xywh {155 10 135 20} resizable
  215. }
  216. }
  217. Fl_Input block_name_input {
  218. label {name for this block}
  219. tooltip {\#endif or similar declaration code block.} xywh {10 50 280 20} labelsize 11 align 5 when 0 textfont 4 textsize 11
  220. }
  221. Fl_Input block_before_input {
  222. label {block begin mark}
  223. tooltip {\#ifdef or similar conditional declaration block.} xywh {10 89 280 20} labelsize 11 align 5 when 0 textfont 4 textsize 11 resizable
  224. }
  225. Fl_Input block_after_input {
  226. label {block end mark}
  227. tooltip {\#endif or similar declaration code block.} xywh {10 128 280 20} labelsize 11 align 5 when 0 textfont 4 textsize 11
  228. }
  229. Fl_Input block_file_name_input {
  230. label {file name for this block}
  231. tooltip {\#endif or similar declaration code block.} xywh {10 167 280 20} labelsize 11 align 5 when 0 textfont 4 textsize 11
  232. }
  233. Fl_Group {} {open
  234. xywh {10 205 280 20}
  235. } {
  236. Fl_Return_Button block_panel_ok {
  237. label OK
  238. xywh {160 205 60 20} labelsize 11 hotspot
  239. }
  240. Fl_Button block_panel_cancel {
  241. label Cancel
  242. xywh {230 205 60 20} shortcut 0xff1b labelsize 11
  243. }
  244. Fl_Box {} {
  245. xywh {10 205 140 20} resizable
  246. }
  247. }
  248. }
  249. }
  250. Function {make_declblock_panel()} {} {
  251. Fl_Window declblock_panel {
  252. label {Declaration Block Properties} open
  253. xywh {-32000 -32000 300 135} type Double labelsize 11 hide resizable
  254. code0 {o->size_range(o->w(), o->h(), Fl::w(), o->h());} modal
  255. } {
  256. Fl_Group {} {open
  257. xywh {10 10 280 20}
  258. } {
  259. Fl_Choice declblock_public_choice {open
  260. tooltip {Change widget accessibility.} xywh {10 10 140 20} down_box BORDER_BOX labelsize 11 when 0 textsize 11
  261. } {
  262. MenuItem {} {
  263. label {in source code only}
  264. user_data 0 user_data_type long
  265. xywh {25 25 100 20} labelsize 11
  266. }
  267. MenuItem {} {
  268. label {in header and source}
  269. user_data 1 user_data_type long
  270. xywh {25 25 100 20} labelsize 11
  271. }
  272. }
  273. Fl_Light_Button declblock_public_button_x {
  274. label public
  275. tooltip {Make the declaration publicly accessible.} xywh {10 10 60 20} labelsize 11 when 0 hide
  276. }
  277. Fl_Box {} {
  278. xywh {155 10 135 20} resizable
  279. }
  280. }
  281. Fl_Input decl_before_input {
  282. tooltip {\#ifdef or similar conditional declaration block.} xywh {10 40 280 20} labelsize 11 align 5 when 0 textfont 4 textsize 11 resizable
  283. }
  284. Fl_Input decl_after_input {
  285. label {"\\n...child code...\\n" is inserted here}
  286. tooltip {\#endif or similar declaration code block.} xywh {10 75 280 20} labelsize 11 align 5 when 0 textfont 4 textsize 11
  287. }
  288. Fl_Group {} {
  289. xywh {10 105 280 20}
  290. } {
  291. Fl_Return_Button declblock_panel_ok {
  292. label OK
  293. xywh {160 105 60 20} labelsize 11 hotspot
  294. }
  295. Fl_Button declblock_panel_cancel {
  296. label Cancel
  297. xywh {230 105 60 20} shortcut 0xff1b labelsize 11
  298. }
  299. Fl_Box {} {
  300. xywh {10 105 140 20} resizable
  301. }
  302. }
  303. }
  304. }
  305. Function {make_decl_panel()} {} {
  306. Fl_Window decl_panel {
  307. label {Declaration Properties} open
  308. xywh {-32000 -32000 343 338} type Double align 80 hide resizable size_range {343 237 0 0}
  309. } {
  310. Fl_Group {} {open
  311. xywh {10 10 270 20}
  312. } {
  313. Fl_Box {} {
  314. xywh {200 10 80 20} resizable
  315. }
  316. Fl_Choice decl_choice {
  317. xywh {10 10 185 20} down_box BORDER_BOX labelsize 11 textsize 11
  318. } {
  319. MenuItem {} {
  320. label {in source file only}
  321. xywh {0 0 100 20} labelsize 11
  322. }
  323. MenuItem {} {
  324. label {in header file only}
  325. xywh {0 0 100 20} labelsize 11
  326. }
  327. MenuItem {} {
  328. label {"static" in source file}
  329. xywh {0 0 100 20} labelsize 11
  330. }
  331. MenuItem {} {
  332. label {in source and "extern" in header}
  333. xywh {0 0 100 20} labelsize 11
  334. }
  335. }
  336. Fl_Choice decl_class_choice {
  337. xywh {10 10 75 20} down_box BORDER_BOX labelsize 11 textsize 11
  338. } {
  339. MenuItem {} {
  340. label private
  341. xywh {10 10 100 20} labelsize 11
  342. }
  343. MenuItem {} {
  344. label public
  345. xywh {10 10 100 20} labelsize 11
  346. }
  347. MenuItem {} {
  348. label protected
  349. xywh {10 10 100 20} labelsize 11
  350. }
  351. }
  352. }
  353. Fl_Text_Editor decl_input {
  354. label {This can be any declaration, like "int x;", an external symbol like "extern int foo();", a \#directive like "\#include <foo.h>", a comment like "//foo" or "/*foo*/", or typedef like "typedef char byte;" or "using std::list;".}
  355. tooltip {Declaration comment in Doxygen format} xywh {13 40 320 123} box DOWN_BOX labelsize 11 align 130 textfont 4 resizable
  356. code0 {decl_input->buffer(new Fl_Text_Buffer());}
  357. }
  358. Fl_Group {} {open
  359. xywh {10 308 320 20}
  360. } {
  361. Fl_Return_Button decl_panel_ok {
  362. label OK
  363. xywh {200 308 60 20} labelsize 11 hotspot
  364. }
  365. Fl_Button decl_panel_cancel {
  366. label Cancel
  367. xywh {270 308 60 20} shortcut 0xff1b labelsize 11
  368. }
  369. Fl_Box {} {
  370. xywh {10 308 185 20} resizable
  371. }
  372. }
  373. Fl_Text_Editor decl_comment_input {
  374. label {Comment:}
  375. tooltip {Declaration comment in Doxygen format} xywh {10 233 320 65} box DOWN_BOX labelfont 1 labelsize 11 align 5 textfont 4
  376. code0 {decl_comment_input->buffer(new Fl_Text_Buffer());}
  377. }
  378. Fl_Check_Button decl_has_initialization {
  379. label {has init}
  380. xywh {260 214 70 15} down_box DOWN_BOX
  381. }
  382. }
  383. }
  384. Function {make_data_panel()} {} {
  385. Fl_Window data_panel {
  386. label {Binary Data Properties} open
  387. xywh {-32000 -32000 343 237} type Double align 80 hide resizable size_range {343 237 0 0}
  388. } {
  389. Fl_Group {} {open
  390. xywh {10 10 270 20}
  391. } {
  392. Fl_Box {} {
  393. xywh {200 10 80 20} resizable
  394. }
  395. Fl_Choice data_choice {open
  396. xywh {10 10 185 20} down_box BORDER_BOX labelsize 11 textsize 11
  397. } {
  398. MenuItem {} {
  399. label {in source file only}
  400. xywh {0 0 100 20} labelsize 11
  401. }
  402. MenuItem {} {
  403. label {in header file only}
  404. xywh {0 0 100 20} labelsize 11 hide
  405. }
  406. MenuItem {} {
  407. label {"static" in source file}
  408. xywh {0 0 100 20} labelsize 11
  409. }
  410. MenuItem {} {
  411. label {in source and "extern" in header}
  412. xywh {0 0 100 20} labelsize 11
  413. }
  414. }
  415. Fl_Choice data_class_choice {open
  416. xywh {10 10 75 20} down_box BORDER_BOX labelsize 11 textsize 11
  417. } {
  418. MenuItem {} {
  419. label private
  420. xywh {10 10 100 20} labelsize 11
  421. }
  422. MenuItem {} {
  423. label public
  424. xywh {10 10 100 20} labelsize 11
  425. }
  426. MenuItem {} {
  427. label protected
  428. xywh {10 10 100 20} labelsize 11
  429. }
  430. }
  431. }
  432. Fl_Input data_input {
  433. label {Variable Name:}
  434. tooltip {Binary Data variables are declared "const unsigned char []".} xywh {10 52 320 20} labelfont 1 labelsize 11 align 133 when 0 textfont 4 textsize 11
  435. }
  436. Fl_Input data_filename {
  437. label {Filename:}
  438. tooltip {Name and path of binary file that will be included.} xywh {10 90 280 20} labelfont 1 labelsize 11 align 133 when 0 textfont 4 textsize 11
  439. }
  440. Fl_Button data_filebrowser {
  441. label {@fileopen}
  442. xywh {290 90 40 20} labelcolor 134
  443. }
  444. Fl_Group {} {open
  445. xywh {10 205 320 20}
  446. } {
  447. Fl_Return_Button data_panel_ok {
  448. label OK
  449. xywh {200 205 60 20} labelsize 11 hotspot
  450. }
  451. Fl_Button data_panel_cancel {
  452. label Cancel
  453. xywh {270 205 60 20} shortcut 0xff1b labelsize 11
  454. }
  455. Fl_Box {} {
  456. xywh {10 205 185 20} resizable
  457. }
  458. }
  459. Fl_Text_Editor data_comment_input {
  460. label {Comment:}
  461. tooltip {Declaration comment in Doxygen format} xywh {10 130 320 65} box DOWN_BOX labelfont 1 labelsize 11 align 5 textfont 4 textsize 11 resizable
  462. code0 {data_comment_input->buffer(new Fl_Text_Buffer());}
  463. }
  464. }
  465. }
  466. Function {make_class_panel()} {open
  467. } {
  468. Fl_Window class_panel {
  469. label {Class Properties} open selected
  470. xywh {537 130 342 193} type Double labelsize 11 resizable modal size_range {343 188 0 0} visible
  471. } {
  472. Fl_Group {} {open
  473. xywh {10 10 280 20} hide
  474. } {
  475. Fl_Light_Button c_public_button {
  476. label public
  477. tooltip {Make the class publicly accessible.} xywh {10 10 60 20} labelsize 11 when 0 hide
  478. }
  479. Fl_Box {} {
  480. xywh {80 10 210 20} resizable
  481. }
  482. }
  483. Fl_Input c_name_input {
  484. label {Name:}
  485. tooltip {Name of class.} xywh {10 20 320 20} labelfont 1 labelsize 11 align 5 when 0 textfont 4 textsize 11
  486. }
  487. Fl_Input c_subclass_input {
  488. label {Subclass of (text between : and \{)}
  489. tooltip {Name of subclass.} xywh {10 55 320 20} labelfont 1 labelsize 11 align 5 when 0 textfont 4 textsize 11
  490. }
  491. Fl_Text_Editor c_comment_input {
  492. label {Comment:}
  493. tooltip {Class comment in Doxygen format} xywh {10 94 320 65} box DOWN_BOX labelfont 1 labelsize 11 align 5 textfont 4 textsize 11 resizable
  494. code0 {c_comment_input->buffer(new Fl_Text_Buffer());}
  495. }
  496. Fl_Group {} {open
  497. xywh {10 169 320 20}
  498. } {
  499. Fl_Return_Button c_panel_ok {
  500. label OK
  501. xywh {200 169 60 20} labelsize 11 hotspot
  502. }
  503. Fl_Button c_panel_cancel {
  504. label Cancel
  505. xywh {270 169 60 20} shortcut 0xff1b labelsize 11
  506. }
  507. Fl_Box {} {
  508. xywh {10 169 185 20} resizable
  509. }
  510. }
  511. }
  512. }
  513. Function {make_comment_panel()} {} {
  514. Fl_Window comment_panel {
  515. label {Comment Properties} open
  516. xywh {-32000 -32000 550 280} type Double labelsize 11 hide resizable
  517. code0 {o->size_range(320, 180);} modal
  518. } {
  519. Fl_Text_Editor comment_input {
  520. xywh {110 10 430 230} box DOWN_BOX labelsize 11 textfont 4 textsize 11 resizable
  521. code0 {o->when(FL_WHEN_ENTER_KEY_CHANGED|FL_WHEN_RELEASE);}
  522. class CodeEditor
  523. }
  524. Fl_Group {} {open
  525. xywh {110 250 430 20} labelsize 11
  526. } {
  527. Fl_Return_Button comment_panel_ok {
  528. label OK
  529. xywh {370 250 80 20} labelsize 11 hotspot
  530. }
  531. Fl_Button comment_panel_cancel {
  532. label Cancel
  533. xywh {460 250 80 20} shortcut 0xff1b labelsize 11
  534. }
  535. Fl_Box {} {
  536. xywh {110 250 250 20} labelsize 11 resizable
  537. }
  538. }
  539. Fl_Group {} {open
  540. xywh {10 10 90 243} labelsize 11
  541. } {
  542. Fl_Light_Button comment_in_source {
  543. label {In Source}
  544. tooltip {Put the comment into the source (.cxx) file.} xywh {10 10 90 20} labelsize 11 when 0
  545. }
  546. Fl_Light_Button comment_in_header {
  547. label {In Header}
  548. tooltip {Put the comment into the header (.h) file.} xywh {10 40 90 20} labelsize 11 when 0
  549. }
  550. Fl_Menu_Button comment_predefined {
  551. label Predefined open
  552. xywh {10 70 90 20} labelsize 11 textsize 11
  553. } {}
  554. Fl_Button comment_load {
  555. label {Import...}
  556. xywh {10 100 90 20} labelsize 11
  557. }
  558. Fl_Box {} {
  559. xywh {10 132 90 121} labelsize 11 resizable
  560. }
  561. }
  562. }
  563. }
  564. Function {type_make_cb(Fl_Widget*,void*d)} {return_type void
  565. } {
  566. code {undo_checkpoint();
  567. Fl_Type *t = Fl_Type_make((char*)d);
  568. if (t) {
  569. select_only(t);
  570. set_modflag(1);
  571. t->open();
  572. } else {
  573. undo_current --;
  574. undo_last --;
  575. }} {}
  576. }
  577. Function {make_widgetbin()} {} {
  578. Fl_Window widgetbin_panel {
  579. label {Widget Bin}
  580. callback {if (Fl::event()==FL_SHORTCUT && Fl::event_key()==FL_Escape)
  581. exit_cb((Fl_Widget*)o, v);
  582. else
  583. toggle_widgetbin_cb((Fl_Widget*)o, v);}
  584. xywh {-32000 -32000 550 85} type Single align 80 hide non_modal
  585. } {
  586. Fl_Group {} {
  587. xywh {3 3 79 79}
  588. } {
  589. Fl_Button {} {
  590. user_data {"Function"}
  591. callback type_make_cb
  592. tooltip Function xywh {5 5 24 24} box THIN_UP_BOX
  593. code0 {o->image(pixmap[7]);}
  594. }
  595. Fl_Button {} {
  596. user_data {"Class"}
  597. callback type_make_cb
  598. tooltip Class xywh {30 5 24 24} box THIN_UP_BOX
  599. code0 {o->image(pixmap[12]);}
  600. }
  601. Fl_Button {} {
  602. user_data {"comment"}
  603. callback type_make_cb
  604. tooltip Comment xywh {55 5 24 24} box THIN_UP_BOX
  605. code0 {o->image(pixmap[46]);}
  606. }
  607. Fl_Button {} {
  608. user_data {"Code"}
  609. callback type_make_cb
  610. tooltip Code xywh {5 30 24 24} box THIN_UP_BOX
  611. code0 {o->image(pixmap[8]);}
  612. }
  613. Fl_Button {} {
  614. user_data {"CodeBlock"}
  615. callback type_make_cb
  616. tooltip {Code Block} xywh {30 30 24 24} box THIN_UP_BOX
  617. code0 {o->image(pixmap[9]);}
  618. }
  619. Fl_Button {} {
  620. user_data {"widget_class"}
  621. callback type_make_cb
  622. tooltip {Widget Class} xywh {55 30 24 24} box THIN_UP_BOX
  623. code0 {o->image(pixmap[48]);}
  624. }
  625. Fl_Button {} {
  626. user_data {"decl"}
  627. callback type_make_cb
  628. tooltip Declaration xywh {5 55 24 24} box THIN_UP_BOX
  629. code0 {o->image(pixmap[10]);}
  630. }
  631. Fl_Button {} {
  632. user_data {"declblock"}
  633. callback type_make_cb
  634. tooltip {Declaration Block} xywh {30 55 24 24} box THIN_UP_BOX
  635. code0 {o->image(pixmap[11]);}
  636. }
  637. Fl_Button {} {
  638. user_data {"data"}
  639. callback type_make_cb
  640. tooltip {Binary Data} xywh {55 55 24 24} box THIN_UP_BOX
  641. code0 {o->image(pixmap[49]);}
  642. }
  643. }
  644. Fl_Group {} {
  645. xywh {87 3 79 79}
  646. } {
  647. Fl_Button {} {
  648. user_data {"Fl_Window"}
  649. callback type_make_cb
  650. tooltip Window xywh {89 5 24 24} box THIN_UP_BOX
  651. code0 {o->image(pixmap[1]);}
  652. }
  653. Fl_Button {} {
  654. user_data {"Fl_Group"}
  655. callback type_make_cb
  656. tooltip Group xywh {114 5 24 24} box THIN_UP_BOX
  657. code0 {o->image(pixmap[6]);}
  658. }
  659. Fl_Button {} {
  660. user_data {"Fl_Pack"}
  661. callback type_make_cb
  662. tooltip Pack xywh {139 5 24 24} box THIN_UP_BOX
  663. code0 {o->image(pixmap[22]);}
  664. }
  665. Fl_Button {} {
  666. user_data {"Fl_Tabs"}
  667. callback type_make_cb
  668. tooltip Tabs xywh {89 30 24 24} box THIN_UP_BOX
  669. code0 {o->image(pixmap[13]);}
  670. }
  671. Fl_Button {} {
  672. user_data {"Fl_Scroll"}
  673. callback type_make_cb
  674. tooltip Scroll xywh {114 30 24 24} box THIN_UP_BOX
  675. code0 {o->image(pixmap[19]);}
  676. }
  677. Fl_Button {} {
  678. user_data {"Fl_Table"}
  679. callback type_make_cb
  680. tooltip Table xywh {139 30 24 24} box THIN_UP_BOX
  681. code0 {o->image(pixmap[51]);}
  682. }
  683. Fl_Button {} {
  684. user_data {"Fl_Tile"}
  685. callback type_make_cb
  686. tooltip Tile xywh {89 55 24 24} box THIN_UP_BOX
  687. code0 {o->image(pixmap[20]);}
  688. }
  689. Fl_Button {} {
  690. user_data {"Fl_Wizard"}
  691. callback type_make_cb
  692. tooltip Wizard xywh {114 55 24 24} box THIN_UP_BOX
  693. code0 {o->image(pixmap[21]);}
  694. }
  695. }
  696. Fl_Group {} {
  697. xywh {171 3 54 79}
  698. } {
  699. Fl_Button {} {
  700. user_data {"Fl_Button"}
  701. callback type_make_cb
  702. tooltip Button xywh {173 5 24 24} box THIN_UP_BOX
  703. code0 {o->image(pixmap[2]);}
  704. }
  705. Fl_Button {} {
  706. user_data {"Fl_Return_Button"}
  707. callback type_make_cb
  708. tooltip {Return Button} xywh {198 5 24 24} box THIN_UP_BOX
  709. code0 {o->image(pixmap[23]);}
  710. }
  711. Fl_Button {} {
  712. user_data {"Fl_Light_Button"}
  713. callback type_make_cb
  714. tooltip {Light Button} xywh {173 30 24 24} box THIN_UP_BOX
  715. code0 {o->image(pixmap[24]);}
  716. }
  717. Fl_Button {} {
  718. user_data {"Fl_Repeat_Button"}
  719. callback type_make_cb
  720. tooltip {Repeat Button} xywh {198 30 24 24} box THIN_UP_BOX
  721. code0 {o->image(pixmap[25]);}
  722. }
  723. Fl_Button {} {
  724. user_data {"Fl_Check_Button"}
  725. callback type_make_cb
  726. tooltip {Check Button} xywh {173 55 24 24} box THIN_UP_BOX
  727. code0 {o->image(pixmap[3]);}
  728. }
  729. Fl_Button {} {
  730. user_data {"Fl_Round_Button"}
  731. callback type_make_cb
  732. tooltip {Round Button} xywh {198 55 24 24} box THIN_UP_BOX
  733. code0 {o->image(pixmap[4]);}
  734. }
  735. }
  736. Fl_Group {} {
  737. xywh {230 3 104 79}
  738. } {
  739. Fl_Button {} {
  740. user_data {"Fl_Slider"}
  741. callback type_make_cb
  742. tooltip Slider xywh {232 5 24 24} box THIN_UP_BOX
  743. code0 {o->image(pixmap[37]);}
  744. }
  745. Fl_Button {} {
  746. user_data {"Fl_Scrollbar"}
  747. callback type_make_cb
  748. tooltip {Scroll Bar} xywh {257 5 24 24} box THIN_UP_BOX
  749. code0 {o->image(pixmap[38]);}
  750. }
  751. Fl_Button {} {
  752. user_data {"Fl_Value_Slider"}
  753. callback type_make_cb
  754. tooltip {Value Slider} xywh {282 5 24 24} box THIN_UP_BOX
  755. code0 {o->image(pixmap[39]);}
  756. }
  757. Fl_Button {} {
  758. user_data {"Fl_Value_Output"}
  759. callback type_make_cb
  760. tooltip {Value Output} xywh {307 5 24 24} box THIN_UP_BOX
  761. code0 {o->image(pixmap[45]);}
  762. }
  763. Fl_Button {} {
  764. user_data {"Fl_Adjuster"}
  765. callback type_make_cb
  766. tooltip Adjuster xywh {232 30 24 24} box THIN_UP_BOX
  767. code0 {o->image(pixmap[40]);}
  768. }
  769. Fl_Button {} {
  770. user_data {"Fl_Counter"}
  771. callback type_make_cb
  772. tooltip Counter xywh {257 30 24 24} box THIN_UP_BOX
  773. code0 {o->image(pixmap[41]);}
  774. }
  775. Fl_Button {} {
  776. user_data {"Fl_Dial"}
  777. callback type_make_cb
  778. tooltip Dial xywh {282 30 24 24} box THIN_UP_BOX
  779. code0 {o->image(pixmap[42]);}
  780. }
  781. Fl_Button {} {
  782. user_data {"Fl_Roller"}
  783. callback type_make_cb
  784. tooltip Roller xywh {232 55 24 24} box THIN_UP_BOX
  785. code0 {o->image(pixmap[43]);}
  786. }
  787. Fl_Button {} {
  788. user_data {"Fl_Spinner"}
  789. callback type_make_cb
  790. tooltip Spinner xywh {257 55 24 24} box THIN_UP_BOX
  791. code0 {o->image(pixmap[47]);}
  792. }
  793. Fl_Button {} {
  794. user_data {"Fl_Value_Input"}
  795. callback type_make_cb
  796. tooltip {Value Input} xywh {282 55 24 24} box THIN_UP_BOX
  797. code0 {o->image(pixmap[44]);}
  798. }
  799. }
  800. Fl_Group {} {
  801. xywh {339 3 54 79}
  802. } {
  803. Fl_Button {} {
  804. user_data {"Fl_Input"}
  805. callback type_make_cb
  806. tooltip Input xywh {341 5 24 24} box THIN_UP_BOX
  807. code0 {o->image(pixmap[14]);}
  808. }
  809. Fl_Button {} {
  810. user_data {"Fl_Output"}
  811. callback type_make_cb
  812. tooltip Output xywh {366 5 24 24} box THIN_UP_BOX
  813. code0 {o->image(pixmap[27]);}
  814. }
  815. Fl_Button {} {
  816. user_data {"Fl_Text_Editor"}
  817. callback type_make_cb
  818. tooltip {Text Edit} xywh {341 30 24 24} box THIN_UP_BOX
  819. code0 {o->image(pixmap[29]);}
  820. }
  821. Fl_Button {} {
  822. user_data {"Fl_Text_Display"}
  823. callback type_make_cb
  824. tooltip {Text Display} xywh {366 30 24 24} box THIN_UP_BOX
  825. code0 {o->image(pixmap[28]);}
  826. }
  827. Fl_Button {} {
  828. user_data {"Fl_File_Input"}
  829. callback type_make_cb
  830. tooltip {File Input} xywh {341 55 24 24} box THIN_UP_BOX
  831. code0 {o->image(pixmap[30]);}
  832. }
  833. }
  834. Fl_Group {} {
  835. xywh {398 3 54 79}
  836. } {
  837. Fl_Button {} {
  838. user_data {"Fl_Menu_Bar"}
  839. callback type_make_cb
  840. tooltip {Menu Bar} xywh {400 5 24 24} box THIN_UP_BOX
  841. code0 {o->image(pixmap[17]);}
  842. }
  843. Fl_Button {} {
  844. user_data {"Fl_Input_Choice"}
  845. callback type_make_cb
  846. tooltip {Input Choice} xywh {425 5 24 24} box THIN_UP_BOX
  847. code0 {o->image(pixmap[15]);}
  848. }
  849. Fl_Button {} {
  850. user_data {"Fl_Menu_Button"}
  851. callback type_make_cb
  852. tooltip {Menu Button} xywh {400 30 24 24} box THIN_UP_BOX
  853. code0 {o->image(pixmap[26]);}
  854. }
  855. Fl_Button {} {
  856. user_data {"menuitem"}
  857. callback type_make_cb
  858. tooltip {Menu Item} xywh {425 30 24 24} box THIN_UP_BOX
  859. code0 {o->image(pixmap[16]);}
  860. }
  861. Fl_Button {} {
  862. user_data {"Fl_Choice"}
  863. callback type_make_cb
  864. tooltip Choice xywh {400 55 24 24} box THIN_UP_BOX
  865. code0 {o->image(pixmap[15]);}
  866. }
  867. Fl_Button {} {
  868. user_data {"submenu"}
  869. callback type_make_cb
  870. tooltip {Sub Menu} xywh {425 55 24 24} box THIN_UP_BOX
  871. code0 {o->image(pixmap[18]);}
  872. }
  873. }
  874. Fl_Group {} {
  875. xywh {457 3 54 79}
  876. } {
  877. Fl_Button {} {
  878. user_data {"Fl_Browser"}
  879. callback type_make_cb
  880. tooltip Browser xywh {459 5 24 24} box THIN_UP_BOX
  881. code0 {o->image(pixmap[31]);}
  882. }
  883. Fl_Button {} {
  884. user_data {"Fl_Tree"}
  885. callback type_make_cb selected
  886. tooltip Tree xywh {484 5 24 24} box THIN_UP_BOX
  887. code0 {o->image(pixmap[50]);}
  888. }
  889. Fl_Button {} {
  890. user_data {"Fl_Check_Browser"}
  891. callback type_make_cb
  892. tooltip {Check Browser} xywh {459 30 24 24} box THIN_UP_BOX
  893. code0 {o->image(pixmap[32]);}
  894. }
  895. Fl_Button {} {
  896. user_data {"Fl_File_Browser"}
  897. callback type_make_cb
  898. tooltip {File Browser} xywh {459 55 24 24} box THIN_UP_BOX
  899. code0 {o->image(pixmap[33]);}
  900. }
  901. }
  902. Fl_Group {} {
  903. xywh {491 3 55 79}
  904. } {
  905. Fl_Button {} {
  906. user_data {"Fl_Box"}
  907. callback type_make_cb
  908. tooltip Box xywh {493 5 24 24} box THIN_UP_BOX
  909. code0 {o->image(pixmap[5]);}
  910. }
  911. Fl_Button {} {
  912. user_data {"Fl_Clock"}
  913. callback type_make_cb
  914. tooltip Clock xywh {518 5 24 24} box THIN_UP_BOX
  915. code0 {o->image(pixmap[34]);}
  916. }
  917. Fl_Button {} {
  918. user_data {"Fl_Help_View"}
  919. callback type_make_cb
  920. tooltip {Help Browser} xywh {493 30 24 24} box THIN_UP_BOX
  921. code0 {o->image(pixmap[35]);}
  922. }
  923. Fl_Button {} {
  924. user_data {"Fl_Progress"}
  925. callback type_make_cb
  926. tooltip Progress xywh {493 55 24 24} box THIN_UP_BOX
  927. code0 {o->image(pixmap[36]);}
  928. }
  929. }
  930. }
  931. }
  932. Function {make_sourceview()} {open
  933. } {
  934. Fl_Window sourceview_panel {
  935. label {Code View}
  936. callback toggle_sourceview_cb open
  937. xywh {476 104 520 490} type Double align 80 hide resizable size_range {384 120 0 0}
  938. } {
  939. Fl_Tabs sv_tab {
  940. callback update_sourceview_position_cb open
  941. xywh {10 10 500 440} selection_color 4 labelcolor 7 resizable
  942. } {
  943. Fl_Group {} {
  944. label Source open
  945. xywh {10 35 500 415} labelsize 13 resizable
  946. } {
  947. Fl_Text_Editor sv_source {
  948. callback {update_widget_browser_position_cb(o, NULL, sv_line_pos);}
  949. xywh {20 50 480 390} textfont 4 textsize 11 resizable
  950. code0 {\#include "CodeEditor.h"}
  951. class CodeViewer
  952. }
  953. }
  954. Fl_Group {} {
  955. label Header open
  956. xywh {10 35 500 415} labelsize 13 hide
  957. } {
  958. Fl_Text_Editor sv_header {
  959. callback {update_widget_browser_position_cb(NULL, o, sv_line_pos);}
  960. xywh {20 50 480 390} textfont 4 textsize 11 resizable
  961. code0 {\#include "CodeEditor.h"}
  962. class CodeViewer
  963. }
  964. }
  965. }
  966. Fl_Group {} {
  967. xywh {10 460 500 20}
  968. } {
  969. Fl_Button {} {
  970. label Refresh
  971. callback update_sourceview_cb
  972. xywh {10 460 61 20} labelsize 11
  973. }
  974. Fl_Light_Button sv_autorefresh {
  975. label {Auto-Refresh}
  976. xywh {76 460 91 20} labelsize 11
  977. code0 {o->callback((Fl_Callback*)update_sourceview_cb);}
  978. }
  979. Fl_Light_Button sv_autoposition {
  980. label {Auto-Position}
  981. xywh {172 460 89 20} labelsize 11
  982. }
  983. Fl_Button {} {
  984. label Close
  985. callback toggle_sourceview_b_cb
  986. xywh {460 460 50 20} labelsize 11
  987. }
  988. Fl_Box {} {
  989. xywh {265 460 190 20} resizable
  990. }
  991. }
  992. Fl_Input sv_line_pos {
  993. label {Line:}
  994. xywh {450 10 60 24} type Int
  995. }
  996. }
  997. }
  998. comment {
  999. //
  1000. // End of "$Id: function_panel.fl 8864 2011-07-19 04:49:30Z greg.ercolano $".
  1001. //} {in_source in_header
  1002. }