function_panel.fl 32 KB

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