This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Mar 13th, 2013  |  syntax: C++  |  size: 18.54 KB  |  views: 29  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Baughn, the guy on the Bay12 forums helping Toady with the merge posted:
  2.  
  3.     Just for the record, his choice of C++ has more or less crippled the project. I mean, it works, but.. well, it's not exactly helping.
  4.  
  5.    ...the reason I say it's "crippled" the project (okay, that may have been a slight exaggeration) is mainly because it invites a highly interdependent style of programming. Although you can make objects independent in some senses, your code still usually ends up highly dependent on a certain order of operations.
  6.  
  7.  
  8. char standardstringentry(string &str,int maxlen,unsigned long flag)
  9. {
  10. unsigned char entry=255;
  11. if(flag & STRINGENTRY_LETTERS)
  12. {
  13. if(gview.keypress(INTERFACEKEY_STRING_A097))entry='a';
  14. if(gview.keypress(INTERFACEKEY_STRING_A098))entry='b';
  15. if(gview.keypress(INTERFACEKEY_STRING_A099))entry='c';
  16. if(gview.keypress(INTERFACEKEY_STRING_A100))entry='d';
  17. if(gview.keypress(INTERFACEKEY_STRING_A101))entry='e';
  18. if(gview.keypress(INTERFACEKEY_STRING_A102))entry='f';
  19. if(gview.keypress(INTERFACEKEY_STRING_A103))entry='g';
  20. if(gview.keypress(INTERFACEKEY_STRING_A104))entry='h';
  21. if(gview.keypress(INTERFACEKEY_STRING_A105))entry='i';
  22. if(gview.keypress(INTERFACEKEY_STRING_A106))entry='j';
  23. if(gview.keypress(INTERFACEKEY_STRING_A107))entry='k';
  24. if(gview.keypress(INTERFACEKEY_STRING_A108))entry='l';
  25. if(gview.keypress(INTERFACEKEY_STRING_A109))entry='m';
  26. if(gview.keypress(INTERFACEKEY_STRING_A110))entry='n';
  27. if(gview.keypress(INTERFACEKEY_STRING_A111))entry='o';
  28. if(gview.keypress(INTERFACEKEY_STRING_A112))entry='p';
  29. if(gview.keypress(INTERFACEKEY_STRING_A113))entry='q';
  30. if(gview.keypress(INTERFACEKEY_STRING_A114))entry='r';
  31. if(gview.keypress(INTERFACEKEY_STRING_A115))entry='s';
  32. if(gview.keypress(INTERFACEKEY_STRING_A116))entry='t';
  33. if(gview.keypress(INTERFACEKEY_STRING_A117))entry='u';
  34. if(gview.keypress(INTERFACEKEY_STRING_A118))entry='v';
  35. if(gview.keypress(INTERFACEKEY_STRING_A119))entry='w';
  36. if(gview.keypress(INTERFACEKEY_STRING_A120))entry='x';
  37. if(gview.keypress(INTERFACEKEY_STRING_A121))entry='y';
  38. if(gview.keypress(INTERFACEKEY_STRING_A122))entry='z';
  39. if(gview.keypress(INTERFACEKEY_STRING_A065))entry='A';
  40. if(gview.keypress(INTERFACEKEY_STRING_A066))entry='B';
  41. if(gview.keypress(INTERFACEKEY_STRING_A067))entry='C';
  42. if(gview.keypress(INTERFACEKEY_STRING_A068))entry='D';
  43. if(gview.keypress(INTERFACEKEY_STRING_A069))entry='E';
  44. if(gview.keypress(INTERFACEKEY_STRING_A070))entry='F';
  45. if(gview.keypress(INTERFACEKEY_STRING_A071))entry='G';
  46. if(gview.keypress(INTERFACEKEY_STRING_A072))entry='H';
  47. if(gview.keypress(INTERFACEKEY_STRING_A073))entry='I';
  48. if(gview.keypress(INTERFACEKEY_STRING_A074))entry='J';
  49. if(gview.keypress(INTERFACEKEY_STRING_A075))entry='K';
  50. if(gview.keypress(INTERFACEKEY_STRING_A076))entry='L';
  51. if(gview.keypress(INTERFACEKEY_STRING_A077))entry='M';
  52. if(gview.keypress(INTERFACEKEY_STRING_A078))entry='N';
  53. if(gview.keypress(INTERFACEKEY_STRING_A079))entry='O';
  54. if(gview.keypress(INTERFACEKEY_STRING_A080))entry='P';
  55. if(gview.keypress(INTERFACEKEY_STRING_A081))entry='Q';
  56. if(gview.keypress(INTERFACEKEY_STRING_A082))entry='R';
  57. if(gview.keypress(INTERFACEKEY_STRING_A083))entry='S';
  58. if(gview.keypress(INTERFACEKEY_STRING_A084))entry='T';
  59. if(gview.keypress(INTERFACEKEY_STRING_A085))entry='U';
  60. if(gview.keypress(INTERFACEKEY_STRING_A086))entry='V';
  61. if(gview.keypress(INTERFACEKEY_STRING_A087))entry='W';
  62. if(gview.keypress(INTERFACEKEY_STRING_A088))entry='X';
  63. if(gview.keypress(INTERFACEKEY_STRING_A089))entry='Y';
  64. if(gview.keypress(INTERFACEKEY_STRING_A090))entry='Z';
  65. }
  66. if(flag & STRINGENTRY_SPACE)
  67. {
  68. if(gview.keypress(INTERFACEKEY_STRING_A032))entry=' ';
  69. }
  70. if(gview.keypress(INTERFACEKEY_STRING_A000))entry='\x0';
  71. if(flag & STRINGENTRY_NUMBERS)
  72. {
  73. if(gview.keypress(INTERFACEKEY_STRING_A048))entry='0';
  74. if(gview.keypress(INTERFACEKEY_STRING_A049))entry='1';
  75. if(gview.keypress(INTERFACEKEY_STRING_A050))entry='2';
  76. if(gview.keypress(INTERFACEKEY_STRING_A051))entry='3';
  77. if(gview.keypress(INTERFACEKEY_STRING_A052))entry='4';
  78. if(gview.keypress(INTERFACEKEY_STRING_A053))entry='5';
  79. if(gview.keypress(INTERFACEKEY_STRING_A054))entry='6';
  80. if(gview.keypress(INTERFACEKEY_STRING_A055))entry='7';
  81. if(gview.keypress(INTERFACEKEY_STRING_A056))entry='8';
  82. if(gview.keypress(INTERFACEKEY_STRING_A057))entry='9';
  83. }
  84. if(flag & STRINGENTRY_SYMBOLS)
  85. {
  86. if(gview.keypress(INTERFACEKEY_STRING_A000))entry=0;
  87. if(gview.keypress(INTERFACEKEY_STRING_A001))entry=1;
  88. if(gview.keypress(INTERFACEKEY_STRING_A002))entry=2;
  89. if(gview.keypress(INTERFACEKEY_STRING_A003))entry=3;
  90. if(gview.keypress(INTERFACEKEY_STRING_A004))entry=4;
  91. if(gview.keypress(INTERFACEKEY_STRING_A005))entry=5;
  92. if(gview.keypress(INTERFACEKEY_STRING_A006))entry=6;
  93. if(gview.keypress(INTERFACEKEY_STRING_A007))entry=7;
  94. if(gview.keypress(INTERFACEKEY_STRING_A008))entry=8;
  95. if(gview.keypress(INTERFACEKEY_STRING_A009))entry=9;
  96. if(gview.keypress(INTERFACEKEY_STRING_A010))entry=10;
  97. if(gview.keypress(INTERFACEKEY_STRING_A011))entry=11;
  98. if(gview.keypress(INTERFACEKEY_STRING_A012))entry=12;
  99. if(gview.keypress(INTERFACEKEY_STRING_A013))entry=13;
  100. if(gview.keypress(INTERFACEKEY_STRING_A014))entry=14;
  101. if(gview.keypress(INTERFACEKEY_STRING_A015))entry=15;
  102. if(gview.keypress(INTERFACEKEY_STRING_A016))entry=16;
  103. if(gview.keypress(INTERFACEKEY_STRING_A017))entry=17;
  104. if(gview.keypress(INTERFACEKEY_STRING_A018))entry=18;
  105. if(gview.keypress(INTERFACEKEY_STRING_A019))entry=19;
  106. if(gview.keypress(INTERFACEKEY_STRING_A020))entry=20;
  107. if(gview.keypress(INTERFACEKEY_STRING_A021))entry=21;
  108. if(gview.keypress(INTERFACEKEY_STRING_A022))entry=22;
  109. if(gview.keypress(INTERFACEKEY_STRING_A023))entry=23;
  110. if(gview.keypress(INTERFACEKEY_STRING_A024))entry=24;
  111. if(gview.keypress(INTERFACEKEY_STRING_A025))entry=25;
  112. if(gview.keypress(INTERFACEKEY_STRING_A026))entry=26;
  113. if(gview.keypress(INTERFACEKEY_STRING_A027))entry=27;
  114. if(gview.keypress(INTERFACEKEY_STRING_A028))entry=28;
  115. if(gview.keypress(INTERFACEKEY_STRING_A029))entry=29;
  116. if(gview.keypress(INTERFACEKEY_STRING_A030))entry=30;
  117. if(gview.keypress(INTERFACEKEY_STRING_A031))entry=31;
  118. if(gview.keypress(INTERFACEKEY_STRING_A032))entry=32;
  119. if(gview.keypress(INTERFACEKEY_STRING_A033))entry=33;
  120. if(gview.keypress(INTERFACEKEY_STRING_A034))entry=34;
  121. if(gview.keypress(INTERFACEKEY_STRING_A035))entry=35;
  122. if(gview.keypress(INTERFACEKEY_STRING_A036))entry=36;
  123. if(gview.keypress(INTERFACEKEY_STRING_A037))entry=37;
  124. if(gview.keypress(INTERFACEKEY_STRING_A038))entry=38;
  125. if(gview.keypress(INTERFACEKEY_STRING_A039))entry=39;
  126. if(gview.keypress(INTERFACEKEY_STRING_A040))entry=40;
  127. if(gview.keypress(INTERFACEKEY_STRING_A041))entry=41;
  128. if(gview.keypress(INTERFACEKEY_STRING_A042))entry=42;
  129. if(gview.keypress(INTERFACEKEY_STRING_A043))entry=43;
  130. if(gview.keypress(INTERFACEKEY_STRING_A044))entry=44;
  131. if(gview.keypress(INTERFACEKEY_STRING_A045))entry=45;
  132. if(gview.keypress(INTERFACEKEY_STRING_A046))entry=46;
  133. if(gview.keypress(INTERFACEKEY_STRING_A047))entry=47;
  134. if(gview.keypress(INTERFACEKEY_STRING_A048))entry=48;
  135. if(gview.keypress(INTERFACEKEY_STRING_A049))entry=49;
  136. if(gview.keypress(INTERFACEKEY_STRING_A050))entry=50;
  137. if(gview.keypress(INTERFACEKEY_STRING_A051))entry=51;
  138. if(gview.keypress(INTERFACEKEY_STRING_A052))entry=52;
  139. if(gview.keypress(INTERFACEKEY_STRING_A053))entry=53;
  140. if(gview.keypress(INTERFACEKEY_STRING_A054))entry=54;
  141. if(gview.keypress(INTERFACEKEY_STRING_A055))entry=55;
  142. if(gview.keypress(INTERFACEKEY_STRING_A056))entry=56;
  143. if(gview.keypress(INTERFACEKEY_STRING_A057))entry=57;
  144. if(gview.keypress(INTERFACEKEY_STRING_A058))entry=58;
  145. if(gview.keypress(INTERFACEKEY_STRING_A059))entry=59;
  146. if(gview.keypress(INTERFACEKEY_STRING_A060))entry=60;
  147. if(gview.keypress(INTERFACEKEY_STRING_A061))entry=61;
  148. if(gview.keypress(INTERFACEKEY_STRING_A062))entry=62;
  149. if(gview.keypress(INTERFACEKEY_STRING_A063))entry=63;
  150. if(gview.keypress(INTERFACEKEY_STRING_A064))entry=64;
  151. if(gview.keypress(INTERFACEKEY_STRING_A065))entry=65;
  152. if(gview.keypress(INTERFACEKEY_STRING_A066))entry=66;
  153. if(gview.keypress(INTERFACEKEY_STRING_A067))entry=67;
  154. if(gview.keypress(INTERFACEKEY_STRING_A068))entry=68;
  155. if(gview.keypress(INTERFACEKEY_STRING_A069))entry=69;
  156. if(gview.keypress(INTERFACEKEY_STRING_A070))entry=70;
  157. if(gview.keypress(INTERFACEKEY_STRING_A071))entry=71;
  158. if(gview.keypress(INTERFACEKEY_STRING_A072))entry=72;
  159. if(gview.keypress(INTERFACEKEY_STRING_A073))entry=73;
  160. if(gview.keypress(INTERFACEKEY_STRING_A074))entry=74;
  161. if(gview.keypress(INTERFACEKEY_STRING_A075))entry=75;
  162. if(gview.keypress(INTERFACEKEY_STRING_A076))entry=76;
  163. if(gview.keypress(INTERFACEKEY_STRING_A077))entry=77;
  164. if(gview.keypress(INTERFACEKEY_STRING_A078))entry=78;
  165. if(gview.keypress(INTERFACEKEY_STRING_A079))entry=79;
  166. if(gview.keypress(INTERFACEKEY_STRING_A080))entry=80;
  167. if(gview.keypress(INTERFACEKEY_STRING_A081))entry=81;
  168. if(gview.keypress(INTERFACEKEY_STRING_A082))entry=82;
  169. if(gview.keypress(INTERFACEKEY_STRING_A083))entry=83;
  170. if(gview.keypress(INTERFACEKEY_STRING_A084))entry=84;
  171. if(gview.keypress(INTERFACEKEY_STRING_A085))entry=85;
  172. if(gview.keypress(INTERFACEKEY_STRING_A086))entry=86;
  173. if(gview.keypress(INTERFACEKEY_STRING_A087))entry=87;
  174. if(gview.keypress(INTERFACEKEY_STRING_A088))entry=88;
  175. if(gview.keypress(INTERFACEKEY_STRING_A089))entry=89;
  176. if(gview.keypress(INTERFACEKEY_STRING_A090))entry=90;
  177. if(gview.keypress(INTERFACEKEY_STRING_A091))entry=91;
  178. if(gview.keypress(INTERFACEKEY_STRING_A092))entry=92;
  179. if(gview.keypress(INTERFACEKEY_STRING_A093))entry=93;
  180. if(gview.keypress(INTERFACEKEY_STRING_A094))entry=94;
  181. if(gview.keypress(INTERFACEKEY_STRING_A095))entry=95;
  182. if(gview.keypress(INTERFACEKEY_STRING_A096))entry=96;
  183. if(gview.keypress(INTERFACEKEY_STRING_A097))entry=97;
  184. if(gview.keypress(INTERFACEKEY_STRING_A098))entry=98;
  185. if(gview.keypress(INTERFACEKEY_STRING_A099))entry=99;
  186. if(gview.keypress(INTERFACEKEY_STRING_A100))entry=100;
  187. if(gview.keypress(INTERFACEKEY_STRING_A101))entry=101;
  188. if(gview.keypress(INTERFACEKEY_STRING_A102))entry=102;
  189. if(gview.keypress(INTERFACEKEY_STRING_A103))entry=103;
  190. if(gview.keypress(INTERFACEKEY_STRING_A104))entry=104;
  191. if(gview.keypress(INTERFACEKEY_STRING_A105))entry=105;
  192. if(gview.keypress(INTERFACEKEY_STRING_A106))entry=106;
  193. if(gview.keypress(INTERFACEKEY_STRING_A107))entry=107;
  194. if(gview.keypress(INTERFACEKEY_STRING_A108))entry=108;
  195. if(gview.keypress(INTERFACEKEY_STRING_A109))entry=109;
  196. if(gview.keypress(INTERFACEKEY_STRING_A110))entry=110;
  197. if(gview.keypress(INTERFACEKEY_STRING_A111))entry=111;
  198. if(gview.keypress(INTERFACEKEY_STRING_A112))entry=112;
  199. if(gview.keypress(INTERFACEKEY_STRING_A113))entry=113;
  200. if(gview.keypress(INTERFACEKEY_STRING_A114))entry=114;
  201. if(gview.keypress(INTERFACEKEY_STRING_A115))entry=115;
  202. if(gview.keypress(INTERFACEKEY_STRING_A116))entry=116;
  203. if(gview.keypress(INTERFACEKEY_STRING_A117))entry=117;
  204. if(gview.keypress(INTERFACEKEY_STRING_A118))entry=118;
  205. if(gview.keypress(INTERFACEKEY_STRING_A119))entry=119;
  206. if(gview.keypress(INTERFACEKEY_STRING_A120))entry=120;
  207. if(gview.keypress(INTERFACEKEY_STRING_A121))entry=121;
  208. if(gview.keypress(INTERFACEKEY_STRING_A122))entry=122;
  209. if(gview.keypress(INTERFACEKEY_STRING_A123))entry=123;
  210. if(gview.keypress(INTERFACEKEY_STRING_A124))entry=124;
  211. if(gview.keypress(INTERFACEKEY_STRING_A125))entry=125;
  212. if(gview.keypress(INTERFACEKEY_STRING_A126))entry=126;
  213. if(gview.keypress(INTERFACEKEY_STRING_A127))entry=127;
  214. if(gview.keypress(INTERFACEKEY_STRING_A128))entry=128;
  215. if(gview.keypress(INTERFACEKEY_STRING_A129))entry=129;
  216. if(gview.keypress(INTERFACEKEY_STRING_A130))entry=130;
  217. if(gview.keypress(INTERFACEKEY_STRING_A131))entry=131;
  218. if(gview.keypress(INTERFACEKEY_STRING_A132))entry=132;
  219. if(gview.keypress(INTERFACEKEY_STRING_A133))entry=133;
  220. if(gview.keypress(INTERFACEKEY_STRING_A134))entry=134;
  221. if(gview.keypress(INTERFACEKEY_STRING_A135))entry=135;
  222. if(gview.keypress(INTERFACEKEY_STRING_A136))entry=136;
  223. if(gview.keypress(INTERFACEKEY_STRING_A137))entry=137;
  224. if(gview.keypress(INTERFACEKEY_STRING_A138))entry=138;
  225. if(gview.keypress(INTERFACEKEY_STRING_A139))entry=139;
  226. if(gview.keypress(INTERFACEKEY_STRING_A140))entry=140;
  227. if(gview.keypress(INTERFACEKEY_STRING_A141))entry=141;
  228. if(gview.keypress(INTERFACEKEY_STRING_A142))entry=142;
  229. if(gview.keypress(INTERFACEKEY_STRING_A143))entry=143;
  230. if(gview.keypress(INTERFACEKEY_STRING_A144))entry=144;
  231. if(gview.keypress(INTERFACEKEY_STRING_A145))entry=145;
  232. if(gview.keypress(INTERFACEKEY_STRING_A146))entry=146;
  233. if(gview.keypress(INTERFACEKEY_STRING_A147))entry=147;
  234. if(gview.keypress(INTERFACEKEY_STRING_A148))entry=148;
  235. if(gview.keypress(INTERFACEKEY_STRING_A149))entry=149;
  236. if(gview.keypress(INTERFACEKEY_STRING_A150))entry=150;
  237. if(gview.keypress(INTERFACEKEY_STRING_A151))entry=151;
  238. if(gview.keypress(INTERFACEKEY_STRING_A152))entry=152;
  239. if(gview.keypress(INTERFACEKEY_STRING_A153))entry=153;
  240. if(gview.keypress(INTERFACEKEY_STRING_A154))entry=154;
  241. if(gview.keypress(INTERFACEKEY_STRING_A155))entry=155;
  242. if(gview.keypress(INTERFACEKEY_STRING_A156))entry=156;
  243. if(gview.keypress(INTERFACEKEY_STRING_A157))entry=157;
  244. if(gview.keypress(INTERFACEKEY_STRING_A158))entry=158;
  245. if(gview.keypress(INTERFACEKEY_STRING_A159))entry=159;
  246. if(gview.keypress(INTERFACEKEY_STRING_A160))entry=160;
  247. if(gview.keypress(INTERFACEKEY_STRING_A161))entry=161;
  248. if(gview.keypress(INTERFACEKEY_STRING_A162))entry=162;
  249. if(gview.keypress(INTERFACEKEY_STRING_A163))entry=163;
  250. if(gview.keypress(INTERFACEKEY_STRING_A164))entry=164;
  251. if(gview.keypress(INTERFACEKEY_STRING_A165))entry=165;
  252. if(gview.keypress(INTERFACEKEY_STRING_A166))entry=166;
  253. if(gview.keypress(INTERFACEKEY_STRING_A167))entry=167;
  254. if(gview.keypress(INTERFACEKEY_STRING_A168))entry=168;
  255. if(gview.keypress(INTERFACEKEY_STRING_A169))entry=169;
  256. if(gview.keypress(INTERFACEKEY_STRING_A170))entry=170;
  257. if(gview.keypress(INTERFACEKEY_STRING_A171))entry=171;
  258. if(gview.keypress(INTERFACEKEY_STRING_A172))entry=172;
  259. if(gview.keypress(INTERFACEKEY_STRING_A173))entry=173;
  260. if(gview.keypress(INTERFACEKEY_STRING_A174))entry=174;
  261. if(gview.keypress(INTERFACEKEY_STRING_A175))entry=175;
  262. if(gview.keypress(INTERFACEKEY_STRING_A176))entry=176;
  263. if(gview.keypress(INTERFACEKEY_STRING_A177))entry=177;
  264. if(gview.keypress(INTERFACEKEY_STRING_A178))entry=178;
  265. if(gview.keypress(INTERFACEKEY_STRING_A179))entry=179;
  266. if(gview.keypress(INTERFACEKEY_STRING_A180))entry=180;
  267. if(gview.keypress(INTERFACEKEY_STRING_A181))entry=181;
  268. if(gview.keypress(INTERFACEKEY_STRING_A182))entry=182;
  269. if(gview.keypress(INTERFACEKEY_STRING_A183))entry=183;
  270. if(gview.keypress(INTERFACEKEY_STRING_A184))entry=184;
  271. if(gview.keypress(INTERFACEKEY_STRING_A185))entry=185;
  272. if(gview.keypress(INTERFACEKEY_STRING_A186))entry=186;
  273. if(gview.keypress(INTERFACEKEY_STRING_A187))entry=187;
  274. if(gview.keypress(INTERFACEKEY_STRING_A188))entry=188;
  275. if(gview.keypress(INTERFACEKEY_STRING_A189))entry=189;
  276. if(gview.keypress(INTERFACEKEY_STRING_A190))entry=190;
  277. if(gview.keypress(INTERFACEKEY_STRING_A191))entry=191;
  278. if(gview.keypress(INTERFACEKEY_STRING_A192))entry=192;
  279. if(gview.keypress(INTERFACEKEY_STRING_A193))entry=193;
  280. if(gview.keypress(INTERFACEKEY_STRING_A194))entry=194;
  281. if(gview.keypress(INTERFACEKEY_STRING_A195))entry=195;
  282. if(gview.keypress(INTERFACEKEY_STRING_A196))entry=196;
  283. if(gview.keypress(INTERFACEKEY_STRING_A197))entry=197;
  284. if(gview.keypress(INTERFACEKEY_STRING_A198))entry=198;
  285. if(gview.keypress(INTERFACEKEY_STRING_A199))entry=199;
  286. if(gview.keypress(INTERFACEKEY_STRING_A200))entry=200;
  287. if(gview.keypress(INTERFACEKEY_STRING_A201))entry=201;
  288. if(gview.keypress(INTERFACEKEY_STRING_A202))entry=202;
  289. if(gview.keypress(INTERFACEKEY_STRING_A203))entry=203;
  290. if(gview.keypress(INTERFACEKEY_STRING_A204))entry=204;
  291. if(gview.keypress(INTERFACEKEY_STRING_A205))entry=205;
  292. if(gview.keypress(INTERFACEKEY_STRING_A206))entry=206;
  293. if(gview.keypress(INTERFACEKEY_STRING_A207))entry=207;
  294. if(gview.keypress(INTERFACEKEY_STRING_A208))entry=208;
  295. if(gview.keypress(INTERFACEKEY_STRING_A209))entry=209;
  296. if(gview.keypress(INTERFACEKEY_STRING_A210))entry=210;
  297. if(gview.keypress(INTERFACEKEY_STRING_A211))entry=211;
  298. if(gview.keypress(INTERFACEKEY_STRING_A212))entry=212;
  299. if(gview.keypress(INTERFACEKEY_STRING_A213))entry=213;
  300. if(gview.keypress(INTERFACEKEY_STRING_A214))entry=214;
  301. if(gview.keypress(INTERFACEKEY_STRING_A215))entry=215;
  302. if(gview.keypress(INTERFACEKEY_STRING_A216))entry=216;
  303. if(gview.keypress(INTERFACEKEY_STRING_A217))entry=217;
  304. if(gview.keypress(INTERFACEKEY_STRING_A218))entry=218;
  305. if(gview.keypress(INTERFACEKEY_STRING_A219))entry=219;
  306. if(gview.keypress(INTERFACEKEY_STRING_A220))entry=220;
  307. if(gview.keypress(INTERFACEKEY_STRING_A221))entry=221;
  308. if(gview.keypress(INTERFACEKEY_STRING_A222))entry=222;
  309. if(gview.keypress(INTERFACEKEY_STRING_A223))entry=223;
  310. if(gview.keypress(INTERFACEKEY_STRING_A224))entry=224;
  311. if(gview.keypress(INTERFACEKEY_STRING_A225))entry=225;
  312. if(gview.keypress(INTERFACEKEY_STRING_A226))entry=226;
  313. if(gview.keypress(INTERFACEKEY_STRING_A227))entry=227;
  314. if(gview.keypress(INTERFACEKEY_STRING_A228))entry=228;
  315. if(gview.keypress(INTERFACEKEY_STRING_A229))entry=229;
  316. if(gview.keypress(INTERFACEKEY_STRING_A230))entry=230;
  317. if(gview.keypress(INTERFACEKEY_STRING_A231))entry=231;
  318. if(gview.keypress(INTERFACEKEY_STRING_A232))entry=232;
  319. if(gview.keypress(INTERFACEKEY_STRING_A233))entry=233;
  320. if(gview.keypress(INTERFACEKEY_STRING_A234))entry=234;
  321. if(gview.keypress(INTERFACEKEY_STRING_A235))entry=235;
  322. if(gview.keypress(INTERFACEKEY_STRING_A236))entry=236;
  323. if(gview.keypress(INTERFACEKEY_STRING_A237))entry=237;
  324. if(gview.keypress(INTERFACEKEY_STRING_A238))entry=238;
  325. if(gview.keypress(INTERFACEKEY_STRING_A239))entry=239;
  326. if(gview.keypress(INTERFACEKEY_STRING_A240))entry=240;
  327. if(gview.keypress(INTERFACEKEY_STRING_A241))entry=241;
  328. if(gview.keypress(INTERFACEKEY_STRING_A242))entry=242;
  329. if(gview.keypress(INTERFACEKEY_STRING_A243))entry=243;
  330. if(gview.keypress(INTERFACEKEY_STRING_A244))entry=244;
  331. if(gview.keypress(INTERFACEKEY_STRING_A245))entry=245;
  332. if(gview.keypress(INTERFACEKEY_STRING_A246))entry=246;
  333. if(gview.keypress(INTERFACEKEY_STRING_A247))entry=247;
  334. if(gview.keypress(INTERFACEKEY_STRING_A248))entry=248;
  335. if(gview.keypress(INTERFACEKEY_STRING_A249))entry=249;
  336. if(gview.keypress(INTERFACEKEY_STRING_A250))entry=250;
  337. if(gview.keypress(INTERFACEKEY_STRING_A251))entry=251;
  338. if(gview.keypress(INTERFACEKEY_STRING_A252))entry=252;
  339. if(gview.keypress(INTERFACEKEY_STRING_A253))entry=253;
  340. if(gview.keypress(INTERFACEKEY_STRING_A254))entry=254;
  341. if(gview.keypress(INTERFACEKEY_STRING_A255))entry=255;
  342. }
  343.  
  344. if(entry!=255)
  345. {
  346. if(entry=='\x0')
  347. {
  348. if(str.length()>0)str.resize(str.length()-1);
  349. }
  350. else
  351. {
  352. int cursor=str.length();
  353. if(cursor>=maxlen)cursor=maxlen-1;
  354. if(cursor<0)cursor=0;
  355.  
  356. if(str.length()<cursor+1)str.resize(cursor+1);
  357.  
  358. if(entry>='a'&&entry<='z'&&(flag & STRINGENTRY_CAPS))str[cursor]=entry+'A'-'a';
  359. else str[cursor]=entry;
  360. }
  361.  
  362. gview.c=0;
  363.  
  364. return 1;
  365. }
  366.  
  367. return 0;
  368. }
clone this paste RAW Paste Data