home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 2: PC / frozenfish_august_1995.bin / bbs / d07xx / d0739.lha / IconAuthor / strings.c < prev   
C/C++ Source or Header  |  1992-09-26  |  25KB  |  710 lines

  1. /******************  strings.c  ******************
  2.  *                                               *
  3.  *                                               *
  4.  *                  IconAuthor                   *
  5.  *                                               *
  6.  *                  ⌐ by Koessi                  *
  7.  *                                               *
  8.  *             Thursday, 13 Aug 1992             *
  9.  *                                               *
  10.  *                                               *
  11.  *************************************************/
  12.  
  13. #include "defs.h"
  14.  
  15. #define VER {'$','V','E','R',':',' ' }
  16.  
  17. #ifdef DEMO
  18. Prototype char marilyn[];
  19. #endif
  20.  
  21. Prototype char rttxt0[];
  22. Prototype char rttxt1[];
  23. Prototype char rttxt2[];
  24.  
  25. Prototype char mttxt0[];
  26. Prototype char mttxt1[];
  27. Prototype char mttxt2[];
  28.  
  29. Prototype char sfx_iff[];
  30. Prototype char sfx_data[];
  31.  
  32. Prototype char unabletofindhyper[];
  33. Prototype char node_main[];
  34. Prototype char node_gads[];
  35. Prototype char node_edit[];
  36. Prototype char node_saveicon[];
  37. Prototype char node_saveset[];
  38.  
  39. Prototype char saveicon_txt[];
  40. Prototype char savebrush_txt[];
  41. Prototype char loadimage_txt[];
  42. Prototype char quit_txt[];
  43. Prototype char renderpic_txt[];
  44. Prototype char brightcontr_txt[];
  45. Prototype char editpicture_txt[];
  46. Prototype char save_txt[];
  47. Prototype char lastsaved_txt[];
  48. Prototype char cancel_txt[];
  49. Prototype char default_txt[];
  50. Prototype char use_txt[];
  51. Prototype char goback_txt[];
  52. Prototype char stack_txt[];
  53. Prototype char deftool_txt[];
  54. Prototype char template_txt[];
  55. Prototype char setfont_txt[];
  56. Prototype char okay_txt[];
  57. Prototype char pensize_txt[];
  58. Prototype char pensize_txt[];
  59. Prototype char magnify_txt[];
  60.  
  61. Prototype char saveimage_txt[];
  62. Prototype char swapimage_txt[];
  63.  
  64. Prototype char image1_txt[];
  65. Prototype char image2_txt[];
  66. Prototype char lock[];
  67.  
  68. Prototype char free_txt[];
  69. Prototype char lines_txt[];
  70. Prototype char rect_txt[];
  71. Prototype char circle_txt[];
  72. Prototype char fill_txt[];
  73. Prototype char brush_txt[];
  74. Prototype char text_txt[];
  75.  
  76. Prototype char flip_txt[];
  77. Prototype char neg_txt[];
  78. Prototype char pos_txt[];
  79.  
  80. Prototype char version[];
  81. Prototype char title[];
  82. Prototype char os20str[];
  83. Prototype char demo[];
  84.  
  85. Prototype char imageinfo1[];
  86. Prototype char imageinfo2[];
  87.  
  88. Prototype char opalname[];
  89. Prototype char topazname[];
  90.  
  91. Prototype char iffparsename[];
  92. Prototype char iconname[];
  93. Prototype char diskfontname[];
  94. Prototype char layersname[];
  95. Prototype char clipboardname[];
  96. Prototype char workbenchname[];
  97.  
  98. Prototype char picturescreen[];
  99. Prototype char picturewindow[];
  100. Prototype char forbodybuffer[];
  101. Prototype char fortmpras[];
  102. Prototype char forimagedata[];
  103. Prototype char forIFFresourc[];
  104. Prototype char forbitmap[];
  105.  
  106. Prototype char chooseyourfont[];
  107.  
  108. Prototype char introduction[];
  109. Prototype char saveicon[];
  110.  
  111. Prototype char docname[];
  112. Prototype char msgportname[];
  113. Prototype char portname[];
  114.  
  115. Prototype char hypertext[];
  116.  
  117. Prototype char loadingicon[];
  118. Prototype char loadingbrush[];
  119. Prototype char loadingclip[];
  120. Prototype char savingbrush[];
  121. Prototype char savingclip[];
  122. Prototype char savingicon[];
  123. Prototype char showingclip[];
  124. Prototype char savingset[];
  125.  
  126. Prototype char def_disk[];
  127. Prototype char def_drawer[];
  128. Prototype char def_tool[];
  129. Prototype char def_project[];
  130. Prototype char def_garbage[];
  131.  
  132. Prototype char envsys[];
  133. Prototype char envarcsys[];
  134.  
  135. Prototype char ram[];
  136. Prototype char defpro[];
  137. Prototype char defdisktool[];
  138. Prototype char defifftool[];
  139. Prototype char deftxttool[];
  140. Prototype char defpalette[];
  141. Prototype char defshowclip[];
  142. Prototype char defhypertext[];
  143. Prototype char palette[64];
  144. Prototype char showclip[64];
  145.  
  146. Prototype char icondrawer[64];
  147. Prototype char ilbmdrawer[64];
  148. Prototype char srcdrawer[64];
  149. Prototype char clipdrawer[64];
  150. Prototype char altdrawer[64];
  151.  
  152. Prototype char ProjName[128];
  153. Prototype char SaveName[128];
  154. Prototype char OldProj[128];
  155.  
  156. Prototype char basename[64];
  157. Prototype char TaskName[64];
  158. Prototype char deftool[64];
  159.  
  160. Prototype char zero;
  161. Prototype char space[];
  162. Prototype char untitled[];
  163.  
  164. Prototype char tt_clipunit[16];
  165. Prototype char tt_xmag[16];
  166. Prototype char tt_ymag[16];
  167. Prototype char tt_leftedge[24];
  168. Prototype char tt_topedge[24];
  169. Prototype char tt_frleftedge[24];
  170. Prototype char tt_frtopedge[24];
  171. Prototype char tt_frwidth[24];
  172. Prototype char tt_frheight[24];
  173. Prototype char tt_palette[80];
  174. Prototype char tt_showclip[80];
  175. Prototype char tt_hypertext[80];
  176. Prototype char tt_icondrawer[80];
  177. Prototype char tt_ilbmdrawer[80];
  178. Prototype char tt_srcdrawer[80];
  179. Prototype char tt_clipdrawer[80];
  180. Prototype char tt_altdrawer[80];
  181. Prototype char tt_projname[80];
  182. Prototype char tt_noicons[8];
  183. Prototype char tt_nogrid[8];
  184. Prototype char tt_src[8];
  185.  
  186. Prototype char pat[];
  187. Prototype char info[];
  188. Prototype char diskinfo[];
  189. Prototype char trashinfo[];
  190.  
  191. Prototype char BrushLoad[];
  192. Prototype char IconLoad[];
  193. Prototype char BrushSave[];
  194. Prototype char FileSave[];
  195. Prototype char IconSave[];
  196.  
  197. Prototype char fileexists[];
  198. Prototype char overwrite[];
  199.  
  200. Prototype char unabletosaveicon[];
  201. Prototype char unabletosaveasdefault[];
  202. Prototype char unabletowritec[];
  203. Prototype char notenoughmemory[];
  204. Prototype char objectnotfound[];
  205. Prototype char objecthasnoname[];
  206. Prototype char notanicon[];
  207. Prototype char notanifffile[];
  208. Prototype char nofilename[];
  209. Prototype char clipboarddoesnot[];
  210. Prototype char noimage[];
  211. Prototype char couldntlockpublicscreen[];
  212. Prototype char couldntobtainvisual[];
  213. Prototype char couldntinitgadgets[];
  214. Prototype char couldntinitmenues[];
  215. Prototype char couldntopeneditor[];
  216. Prototype char couldntobtainmessage[];
  217. Prototype char couldntobtainfilereq[];
  218. Prototype char couldntopentopaz[];
  219. Prototype char couldntsavebrush[];
  220. Prototype char couldntreadbrush[];
  221. Prototype char couldntwriteclip[];
  222. Prototype char couldntreadclip[];
  223. Prototype char couldntload[];
  224. Prototype char couldntwrite[];
  225. Prototype char couldntopen[];
  226. Prototype char errorwhilereading[];
  227. Prototype char errorloadiff[];
  228. Prototype char quitanyway[];
  229. Prototype char openanyway[];
  230. Prototype char startnewanyway[];
  231. Prototype char eraseanyway[];
  232. Prototype char restoreanyway[];
  233. Prototype char templateanyway[];
  234. Prototype char whichimagedoyouwant[];
  235. Prototype char savethenquit[];
  236. Prototype char savethenopen[];
  237. Prototype char savethenstartnew[];
  238. Prototype char savethenerase[];
  239. Prototype char savethenrestore[];
  240. Prototype char savethenreplace[];
  241. Prototype char loadbothimages[];
  242.  
  243. Prototype char continue_txt[];
  244. Prototype char sorry_txt[];
  245.  
  246. Prototype char data_header[];
  247. Prototype char data_header0[];
  248. Prototype char data_format[];
  249. Prototype char data_newlin[];
  250. Prototype char data_endstr[];
  251. Prototype char data_image[];
  252. Prototype char data_main[];
  253.  
  254. Prototype char m_project[];
  255. Prototype char m_new[];
  256. Prototype char m_open[];
  257. Prototype char m_save[];
  258. Prototype char m_saveas[];
  259. Prototype char m_savedef[];
  260. Prototype char m_saveasc[];
  261. Prototype char m_quit[];
  262. Prototype char m_edit[];
  263. Prototype char m_cut[];
  264. Prototype char m_copy[];
  265. Prototype char m_paste[];
  266. Prototype char m_erase[];
  267. Prototype char m_openclip[];
  268. Prototype char m_saveclip[];
  269. Prototype char m_showclip[];
  270. Prototype char m_type[];
  271. Prototype char m_disk[];
  272. Prototype char m_drawer[];
  273. Prototype char m_tool[];
  274. Prototype char m_project[];
  275. Prototype char m_garbage[];
  276. Prototype char m_device[];
  277. Prototype char m_kick[];
  278. Prototype char m_appicon[];
  279. Prototype char m_highlight[];
  280. Prototype char m_complement[];
  281. Prototype char m_backfill[];
  282. Prototype char m_image[];
  283. Prototype char m_images[];
  284. Prototype char m_exchange[];
  285. Prototype char m_copy[];
  286. Prototype char m_usetemplate[];
  287. Prototype char m_load[];
  288. Prototype char m_iffbrush[];
  289. Prototype char m_normal[];
  290. Prototype char m_selected[];
  291. Prototype char m_both[];
  292. Prototype char m_saveiff[];
  293. Prototype char m_restore[];
  294. Prototype char m_extras[];
  295. Prototype char m_recolor[];
  296. Prototype char m_autotopleft[];
  297. Prototype char m_color[];
  298. Prototype char m_settings[];
  299. Prototype char m_usegrid[];
  300. Prototype char m_saveicons[];
  301. Prototype char m_savesettings[];
  302.  
  303. Prototype char m_a[];
  304. Prototype char m_c[];
  305. Prototype char m_d[];
  306. Prototype char m_e[];
  307. Prototype char m_i[];
  308. Prototype char m_j[];
  309. Prototype char m_k[];
  310. Prototype char m_m[];
  311. Prototype char m_n[];
  312. Prototype char m_o[];
  313. Prototype char m_q[];
  314. Prototype char m_r[];
  315. Prototype char m_s[];
  316. Prototype char m_t[];
  317. Prototype char m_u[];
  318. Prototype char m_v[];
  319. Prototype char m_x[];
  320. Prototype char m_y[];
  321. Prototype char m_1[];
  322. Prototype char m_2[];
  323. Prototype char m_3[];
  324. Prototype char m_4[];
  325. Prototype char m_5[];
  326. Prototype char m_6[];
  327. Prototype char m_7[];
  328. Prototype char m_8[];
  329. Prototype char m_9[];
  330.  
  331. #ifdef DEMO
  332. char marilyn[]                  = "demo.pic";
  333. #endif
  334.  
  335. char version[]                  = VER;    /*  be nice to version questions */
  336. char title[]                    = "IconAuthor v1.0 ⌐ Koessi 92";
  337. char os20str[]                  = "RAW:0/11/320/11/ IconAuthor: Requires AmigaDOS 2.0 \8-)";
  338. #ifdef DEMO
  339. char demo[]                     = "only the demo... ";
  340. #endif
  341.  
  342. #ifndef DEMO
  343. char demo[]                     = "  Welcome to     ";
  344. #endif
  345.  
  346.  
  347. char opalname[]                 = "opal.font";
  348. char topazname[]                = "topaz.font";
  349.  
  350. char iffparsename[]             = "iffparse.library";
  351. char iconname[]                 = "icon.library";
  352. char diskfontname[]             = "diskfont.library";
  353. char layersname[]               = "layers.library";
  354. char clipboardname[]            = "clipboard.device";
  355. char workbenchname[]            = "workbench.library";
  356.  
  357. char envsys[]                   = "ENV:sys/";
  358. char envarcsys[]                = "ENVARC:sys/";
  359.  
  360. char ram[]                      = "RAM:";
  361. char defpro[]                   = "ENVARC:sys/def_tool";
  362. char defdisktool[]              = "SYS:System/DiskCopy";
  363. char deftxttool[]               = "SYS:Utilities/More";
  364. char defifftool[]               = "SYS:Utilities/Display";
  365. char defpalette[]               = "SYS:Prefs/Palette";
  366. char defshowclip[]              = "SYS:Utilities/Display -c";
  367. char deftool[64]                = "SYS:Utilities/Display";
  368. char defhypertext[]             = "SYS:Utilities/Hyper -b";
  369. char docname[64]                = "IconAuthor.hyper";
  370.  
  371. char introduction[]             = "Introduction";
  372. char saveicon[]                 = "SaveIcon";
  373.  
  374. char portname[]                  = "HYPER_RXPORT";
  375. char msgportname[]              = "Message Port";
  376.  
  377. char hypertext[64];
  378. char palette[64];
  379. char showclip[64];
  380.  
  381. char icondrawer[64];
  382. char ilbmdrawer[64];
  383. char srcdrawer[64];
  384. char clipdrawer[64];
  385. char altdrawer[64];
  386.  
  387. char ProjName[128];
  388. char SaveName[128];
  389. char OldProj[128];
  390. char TaskName[64];
  391.  
  392. char basename[64];
  393.  
  394. char space[]                    = " ";
  395. char zero                       = '\0';
  396. char untitled[]                 = "Untitled_Icon";
  397.  
  398. char rttxt0[]                   = " Command  ";
  399. char rttxt1[]                   = "Icon Style";
  400. char rttxt2[]                   = "  Lense   ";
  401.  
  402. char mttxt0[]                   = "Project";
  403. char mttxt1[]                   = "Icon Type";
  404. char mttxt2[]                   = " Editor  ";
  405.  
  406. char saveicon_txt[]             = "_Save Icon File";
  407. char savebrush_txt[]            = "Save IFF _Brush";
  408. char loadimage_txt[]            = "_Load Image";
  409. char quit_txt[]                 = "_Q U I T";
  410. char renderpic_txt[]            = "_Restore Image";
  411. char brightcontr_txt[]          = "Brightn. Contrast";
  412. char editpicture_txt[]          = "_Edit Picture";
  413. char save_txt[]                 = "_Save";
  414. char lastsaved_txt[]            = "_Last Saved";
  415. char cancel_txt[]               = "_Cancel";
  416. char default_txt[]              = "_Default";
  417. char use_txt[]                  = "_Use";
  418. char continue_txt[]             = "Continue";
  419. char sorry_txt[]                = "Sorry...";
  420. char goback_txt[]               = "Go _Back";
  421. char stack_txt[]                = "Stack:  ";
  422. char deftool_txt[]              = "Default Tool:    ";
  423.  
  424. char saveimage_txt[]            = "Save _Image Data";
  425. char swapimage_txt[]            = "Swap _Image Data";
  426.  
  427. char image1_txt[]               = "1";
  428. char image2_txt[]               = "2";
  429. char lock[]                     = "Locked";
  430.  
  431. char free_txt[]                 = "Free";
  432. char lines_txt[]                = "Lines";
  433. char rect_txt[]                 = "Rect";
  434. char circle_txt[]               = "Circle";
  435. char fill_txt[]                 = "Fill";
  436. char brush_txt[]                = "Brush";
  437. char text_txt[]                 = "Text";
  438.  
  439. char flip_txt[]                 = "flip";
  440. char neg_txt[]                  = "neg";
  441. char pos_txt[]                  = "pos";
  442. char template_txt[]             = "Tpl";
  443. char setfont_txt[]              = "Set_Font";
  444. char okay_txt[]                 = "_OKAY";
  445. char pensize_txt[]              = "PenSize ";
  446. char magnify_txt[]              = " Magnify    1 x%2ld ";
  447.  
  448. char picturescreen[]            = "ImageScreen";
  449. char picturewindow[]            = "picture window";
  450. char forbodybuffer[]            = "for bodybuffer";
  451. char fortmpras[]                = "for tmpras";
  452. char forimagedata[]             = "for imagedata";
  453. char forIFFresourc[]            = "for IFF resources";
  454. char forbitmap[]                = "for bitmap";
  455.  
  456. char chooseyourfont[]           = "Choose your font ...";
  457.  
  458. char imageinfo1[]               = "Image 1:   x   ";
  459. char imageinfo2[]               = "Image 2:   x   ";
  460.  
  461. char loadingicon[]              = "Loading Image from Icon ...";
  462. char loadingbrush[]             = "Loading Image from IFF-Brush ...";
  463. char loadingclip[]              = "Loading Image from Clip ...";
  464. char savingbrush[]              = "Saving Image to Brush ...";
  465. char savingclip[]               = "Saving Image to Clip ...";
  466. char savingicon[]               = "Saving Image to Icon ...";
  467. char showingclip[]              = "Showing Clip ...";
  468. char savingset[]                = "Saving Settings ...";
  469.  
  470.  
  471. char def_disk[]                 = "def_disk";
  472. char def_drawer[]               = "def_drawer";
  473. char def_tool[]                 = "def_tool";
  474. char def_project[]              = "def_project";
  475. char def_garbage[]              = "def_garbage";
  476.  
  477.  
  478. char tt_clipunit[16]            = "CLIPUNIT";   /* %d  */
  479. char tt_xmag[16]                = "XMAG";       /* %d  */
  480. char tt_ymag[16]                = "YMAG";       /* %d  */
  481. char tt_leftedge[24]            = "LEFTEDGE";   /* %d  */
  482. char tt_topedge[24]             = "TOPEDGE";    /* %d  */
  483. char tt_frleftedge[24]          = "FRLEFTEDGE"; /* %d  */
  484. char tt_frtopedge[24]           = "FRTOPEDGE";  /* %d  */
  485. char tt_frwidth[24]             = "FRWIDTH";    /* %d  */
  486. char tt_frheight[24]            = "FRHEIGHT";   /* %d  */
  487. char tt_palette[80]             = "PALETTE";    /* %s  */
  488. char tt_showclip[80]            = "SHOWCLIP";   /* %s  */
  489. char tt_hypertext[80]           = "HYPERTEXT";  /* %s  */
  490. char tt_icondrawer[80]          = "ICONDRAWER"; /* %s  */
  491. char tt_ilbmdrawer[80]          = "ILBMDRAWER"; /* %s  */
  492. char tt_srcdrawer[80]           = "SRCDRAWER";  /* %s  */
  493. char tt_clipdrawer[80]          = "CLIPDRAWER"; /* %s  */
  494. char tt_altdrawer[80]           = "ALTDRAWER";  /* %s  */
  495. char tt_projname[80]            = "PROJNAME";   /* %s  */
  496. char tt_noicons[8]              = "NOICONS";
  497. char tt_nogrid[8]               = "NOGRID";
  498. char tt_src[8]                  = "SRC";
  499.  
  500. char pat[]                      = "#?";
  501. char info[]                     = ".info";
  502. char sfx_iff[]                  = ".iff";
  503. char sfx_data[]                 = "_data.c";
  504. char diskinfo[]                 = "Disk.info";
  505. char trashinfo[]                = "Trashcan.info";
  506.  
  507. char BrushLoad[]                = "Select Brush to Load";
  508. char IconLoad[]                 = "Select Icon to Load";
  509. char BrushSave[]                = "Select Brush to Save";
  510. char FileSave[]                 = "Select File to Save";
  511. char IconSave[]                 = "Select Icon to Save";
  512.  
  513. char fileexists[]               = "File \"%s\" already exists !";
  514. char overwrite[]                = "OverWrite|Cancel";
  515.  
  516. char unabletosaveicon[]         = "Unable to save icon";
  517. char unabletosaveasdefault[]    = "Unable to save as default icon";
  518. char unabletowritec[]           = "Unable to write ''C'' source";
  519. char notenoughmemory[]          = "Not enough memory %s";
  520. char objectnotfound[]           = "Object not found";
  521. char objecthasnoname[]          = "Object has no name";
  522. char notanicon[]                = "Not an icon";
  523. char notanifffile[]             = "Not an iff-file";
  524. char nofilename[]               = "No file name specified";
  525. char clipboarddoesnot[]         = "Clipboard does not contain graphics";
  526. char noimage[]                  = "No image";
  527. char couldntlockpublicscreen[]  = "Couldn't lock default public screen";
  528. char couldntobtainvisual[]      = "Couldn't obtain visual information";
  529. char couldntinitgadgets[]       = "Couldn't init gadgets";
  530. char couldntinitmenues[]        = "Couldn't init menues";
  531. char couldntopeneditor[]        = "Couldn't open editor window";
  532. char couldntobtainmessage[]     = "Couldn't obtain message port";
  533. char couldntobtainfilereq[]     = "Couldn't obtain file requester";
  534. char couldntopentopaz[]         = "Couldn't open Topaz font";
  535. char couldntsavebrush[]         = "Couldn't save brush";
  536. char couldntreadbrush[]         = "Couldn't read brush";
  537. char couldntwriteclip[]         = "Couldn't write brush to clipboard";
  538. char couldntreadclip[]          = "Couldn't read brush from clipboard";
  539. char couldntload[]              = "Couldn't load \"%s\"";
  540. char couldntwrite[]             = "Couldn't write \"%s\"";
  541. char couldntopen[]              = "Couldn't open \"%s\"";
  542. char errorwhilereading[]        = "Error while reading \"%s\"";
  543. char errorloadiff[]             = "Default project \"%s\"\n"
  544.                                   "will be loaded as IFF picture";
  545.  
  546. char unabletofindhyper[]        = "Unable to find Hyper(-document)";
  547. char node_main[]                = "MAIN";
  548. char node_gads[]                = "GADGETS";
  549. char node_edit[]                = "EDITGADS";
  550. char node_saveicon[]            = "SAVEICON";
  551. char node_saveset[]             = "SAVESETTINGS";
  552.  
  553.  
  554.  
  555. char quitanyway[]               = "%s\nwill be lost. Quit anyway?";
  556. char openanyway[]               = "%s\nwill be lost. Open anyway?";
  557. char startnewanyway[]           = "%s\nwill be lost. Start New anyway?";
  558. char eraseanyway[]              = "%s\nwill be lost. Erase anyway?";
  559. char restoreanyway[]            = "%s\nwill be lost. Restore anyway?";
  560. char templateanyway[]           = "%s\nwill be lost. Replace by template anyway?";
  561.  
  562. char whichimagedoyouwant[]      = "Which image do you want to load ?";
  563.  
  564. char savethenquit[]             = "   Quit  |  Save then Quit   |Cancel";
  565. char savethenopen[]             = "   Open  |  Save then Open   |Cancel";
  566. char savethenstartnew[]         = "Start New|Save then Start New|Cancel";
  567. char savethenerase[]            = "  Erase  |  Save then Erase  |Cancel";
  568. char savethenrestore[]          = " Restore | Save then Restore |Cancel";
  569. char savethenreplace[]          = " Replace | Save then Replace |Cancel";
  570.  
  571. char loadbothimages[]           = " Second  | Load both images  |First ";
  572.  
  573.  
  574. char data_header[]              = "\n"
  575.                                   "/*\n"
  576.                                   " *\n"
  577.                                   " * %s\n"
  578.                                   " *\n"
  579.                                   " * MACHINE GENERATED\n"
  580.                                   " * by %s\n"
  581.                                   " * on %s %s\n"
  582.                                   " * at %s h\n"
  583.                                   " *\n"
  584.                                   " */\n\n";
  585.  
  586. char data_header0[]             = "#include <intuition/intuition.h>\n\n"
  587.                                   "extern UWORD  %s_data[]; \t/*  chip !!!  */\n"
  588.                                   "extern struct Image %s_image;\n"
  589.                                   "\n"
  590.                                   "UWORD %s_data[%ld] =\n"
  591.                                   "{\n  ";
  592.  
  593. char data_format[]              = "0x%04lx,";
  594. char data_newlin[]              = "\n  ";
  595. char data_endstr[]              = "\n};\n";
  596.  
  597. char data_image[]               = "\n\n"
  598.                                   "struct Image %s_image =\n"
  599.                                   "{\n"
  600.                                   "  0,         /* LeftEdge     */\n"
  601.                                   "  0,         /* TopEdge      */\n"
  602.                                   "  %3ld,       /* Width        */\n"
  603.                                   "  %3ld,       /* Height       */\n"
  604.                                   "  2,         /* Depth        */\n"
  605.                                   "  %s_data, \t/* ImageData    */\n"
  606.                                   "  0xFF,      /* PlanePick    */\n"
  607.                                   "  0,         /* PlaneOnOff   */\n"
  608.                                   "  0,         /* [NextImage]  */\n"
  609.                                   "};\n\n\n";
  610.  
  611. char data_main[]                = "\n"
  612.                                   "/******* to test your image uncomment this **************\n"
  613.                                   "\n"
  614.                                   "         compile for test purpose like this:\n"
  615.                                   "         dcc %s -2.0 -v -o test -chip\n"
  616.                                   "\n\n"
  617.                                   "void main(void)\n"
  618.                                   "{\n"
  619.                                   "  struct Window *window;\n"
  620.                                   "  if (window = (struct Window *)OpenWindowTags(NULL,\n"
  621.                                   "                                WA_InnerWidth,  %3ld,\n"
  622.                                   "                                WA_InnerHeight, %3ld,\n"
  623.                                   "                                TAG_DONE ))\n"
  624.                                   "  {\n"
  625.                                   "    DrawImage(window->RPort, &%s_image,\n"
  626.                                   "              window->BorderLeft,\n"
  627.                                   "              window->BorderTop);\n"
  628.                                   "    Delay(500);\n"
  629.                                   "    CloseWindow(window);\n"
  630.                                   "  }\n"
  631.                                   "}\n\n"
  632.                                   "*********************************************************/\n"
  633.                                   "\n";
  634.  
  635. char m_project[]                = "Project";
  636. char m_new[]                    = "New";
  637. char m_open[]                   = "Open...";
  638. char m_save[]                   = "Save";
  639. char m_saveas[]                 = "Save As...";
  640. char m_savedef[]                = "Save As Default Icon";
  641. char m_saveasc[]                = "Save As C...";
  642. char m_quit[]                   = "Quit";
  643. char m_edit[]                   = "Edit";
  644. char m_cut[]                    = "Cut";
  645. char m_copy[]                   = "Copy";
  646. char m_paste[]                  = "Paste";
  647. char m_erase[]                  = "Erase";
  648. char m_openclip[]               = "Open Clip...";
  649. char m_saveclip[]               = "Save Clip As...";
  650. char m_showclip[]               = "Show Clip...";
  651. char m_type[]                   = "Type";
  652. char m_disk[]                   = "Disk";
  653. char m_drawer[]                 = "Drawer";
  654. char m_tool[]                   = "Tool";
  655. char m_garbage[]                = "Garbage";
  656. char m_device[]                 = "Device";
  657. char m_kick[]                   = "Kick";
  658. char m_appicon[]                = "Appicon";
  659. char m_highlight[]              = "Highlight";
  660. char m_complement[]             = "Complement";
  661. char m_backfill[]               = "Backfill";
  662. char m_image[]                  = "Image";
  663. char m_images[]                 = "Images";
  664. char m_exchange[]               = "Exchange";
  665. char m_usetemplate[]            = "Use Template";
  666. char m_load[]                   = "Load";
  667. char m_iffbrush[]               = "IFF Brush...";
  668. char m_normal[]                 = "Normal Image...";
  669. char m_selected[]               = "Selected Image...";
  670. char m_both[]                   = "Both Images...";
  671. char m_saveiff[]                = "Save IFF Brush...";
  672. char m_restore[]                = "Restore";
  673. char m_extras[]                 = "Extras";
  674. char m_recolor[]                = "Recolor";
  675. char m_autotopleft[]            = "Auto TopLeft";
  676. char m_color[]                  = "Color Palette...";
  677. char m_settings[]               = "Settings";
  678. char m_usegrid[]                = "Use Grid?";
  679. char m_saveicons[]              = "Save Icons?";
  680. char m_savesettings[]           = "Save Settings";
  681.  
  682. char m_a[]                      = "A";
  683. char m_c[]                      = "C";
  684. char m_d[]                      = "D";
  685. char m_e[]                      = "E";
  686. char m_i[]                      = "I";
  687. char m_j[]                      = "J";
  688. char m_k[]                      = "K";
  689. char m_m[]                      = "M";
  690. char m_n[]                      = "N";
  691. char m_o[]                      = "O";
  692. char m_q[]                      = "Q";
  693. char m_r[]                      = "R";
  694. char m_s[]                      = "S";
  695. char m_t[]                      = "T";
  696. char m_u[]                      = "U";
  697. char m_v[]                      = "V";
  698. char m_x[]                      = "X";
  699. char m_y[]                      = "Y";
  700. char m_1[]                      = "1";
  701. char m_2[]                      = "2";
  702. char m_3[]                      = "3";
  703. char m_4[]                      = "4";
  704. char m_5[]                      = "5";
  705. char m_6[]                      = "6";
  706. char m_7[]                      = "7";
  707. char m_8[]                      = "8";
  708. char m_9[]                      = "9";
  709.  
  710.