From 33fb425969fdab403eac75ae6ff6b414fd338853 Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Sun, 30 Oct 2016 22:47:57 +0000 Subject: [PATCH] Dicty 2.2: bigger font, no speaker Clipview 1.02: better show content git-svn-id: svn://kolibrios.org@6638 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/clipview/clipview | Bin 9471 -> 0 bytes programs/cmm/clipview/clipview.c | 24 +++++--- programs/cmm/dicty/dicty.c | 92 +++++++------------------------ programs/cmm/dicty/speaker.ico | Bin 7798 -> 0 bytes programs/cmm/dicty/speaker.raw | 1 - programs/cmm/lib/gui.h | 3 - 6 files changed, 38 insertions(+), 82 deletions(-) delete mode 100644 programs/cmm/clipview/clipview delete mode 100644 programs/cmm/dicty/speaker.ico delete mode 100644 programs/cmm/dicty/speaker.raw diff --git a/programs/cmm/clipview/clipview b/programs/cmm/clipview/clipview deleted file mode 100644 index 7c4a771639f741e95853c649d6d7cf1fcb20f1f1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 9471 zcmb7K4|G)JmH(2Nghv>BqXr#mN~fAgln@d^gix@f@Lu51;0VSB5aWj9QfEX@U-w!$}3g6vu(o+=G zc4rNqbJ})iYGtm$vrbzX7|R`l@3|I~3nx9G3#RTm>DfKxV#H>z&~|5XdXSYl2G6=| zWkTV_lb-fr#!{fq?jh%w6Mp6973fAlH(I%C@I9xkJX1UxaSndqvPB#uBa?TLU7?W% zP+8E*GdZ1eriXcdwe=3PW}4<|WG(s-3jdhoR$2wt;%aXd9{2-edqt(y!CL0Gw>qfW zk`}uj&I~S0y27EAIZZv10)j%tww@fYtXE&K7%^ebV(i&0Aoc42^(`UjdV+2wXfZ*#1dV?Ukb|IO5TjpOfS()CIy~xN zOp7?X)4QY#F<_Y?ITQ7^)(b51Kbj;APN%9;9Dt(Rr|RRXG#y(6QcZGb#H^+(lGCn8 z4!cnnS6bsN@_y`EYL7U&)6w3Q4xxtRFv_Nt)@c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P zTGze79P@uSsKW^P_Hz{LSl`ri^?v*MCL}WPAccE-J~gx-u$w5lp>J=n6At|Re?6$f z>L4-7S<0D|Q{&3Hl)+f4ayA8Tr|SJKb!(=UULp$!Y1v*PJH!rpp8-9Njq(~?oa40> zH|MyO=9m9;L%)Wa+YVGo=j-=>-_2zBR~r zz4QYK%jE2mGojTyc|KQ+o=HP+M z)DgLY#qK0UYF6P}htGo#T99HLl%lz^ofKx&O95An-(694BLt+-J-_TGm(9a}6q)1l z`}3^p_FzFp(6$Rh7|h+7yj?fn=lQm!4F7ebGaBBg4q?stcR)99(-wEW8!qy83u_ld zgpRRrhG)b0Cl$(&F#djpb|)Mg-#Py4HUwZ;FhX|yXV8&eaUHaUrNX;?W~oF<KE#i1uGvL>TlFH)M-S{r~jm$QqI~w{YUk!;ovnD z!A0;F2gq@>vOds%D~>V)Rrq;jBYs|WVVW7`f{(f(0_d(?x8QVGx>swlAMe8w@ceTb z=zGSIulyLulb!|9@X~Ewoo1z1W9@6`?!5v#gC@KFBh2*sl@Ve5`l-KMSz2D7;4f$HDqbU0Pk;r@~KOKXmG-j3ebE^LZ-Eh list.visible) list_last = list.visible; else list_last = list.count; for (i=0; i2) break; if (Form.height<140) { MoveSize(OLD,OLD,OLD,140); break; } @@ -102,6 +87,7 @@ void main() edit_box_draw stdcall(#edit1); DrawWideRectangle(edit1.left-2, edit1.top-2, edit1.width+3, 19, 2, 0xffffff); DrawRectangle(edit1.left-3, edit1.top-3, edit1.width+4, 20, system.color.work_graph); + WriteText(Form.width-120, edit1.top, 0x90, system.color.work_text, TEXT_VOCABULARIES); DrawTranslation(); DrawLangButtons(); } @@ -111,34 +97,16 @@ void main() void DrawLangButtons() { - DrawCaptButton(Form.width-130, edit1.top-3, 50,19, 10, system.color.work_button, system.color.work_button_text, TEXT_ENG_RUS); - DrawCaptButton(Form.width-70, edit1.top-3, 50,19, 11, system.color.work_button, system.color.work_button_text, TEXT_RUS_ENG); - PutShadow(-active_dict*60 + Form.width-70, edit1.top-3, 50,19, 1, 2); - SpeakerDraw(); -} - -void SpeakerDraw() -{ - dword x, y; - x = Form.cwidth-38; - y = Form.cheight-32; - if (active_dict) - { - DeleteButton(15); - DrawBar(x,y,23,20,0xFFFFFF); - } - else - { - DefineButton(x-5, y-5, 23+10, 20+9, 15+BT_HIDE+BT_NOFRAME, 0); - if (GetProcessSlot(speaker_id)==0)) _PutImage(x, y, 23,20, #speaker); else _PutImage(x, y, 23,20, 23*20*3+#speaker); - } + dword direction; + DefineButton(Form.width-88, edit1.top-4, 20, 20, BUTTON_CHANGE_LANGUAGE, system.color.work_button); + if (active_dict == ENG_RUS) direction = "\26"; else direction = "\27"; + WriteText(Form.width-82, edit1.top-1, 10000001b, system.color.work_button_text, direction); } void Translate() { dword translation_start, translation_end; - KillProcess(speaker_id); sprintf(#search_word, "\10%s\13", #edword); strupr(#search_word); @@ -165,7 +133,6 @@ void OpenDictionary(dword dict_id) { dword res; if (dict_id==active_dict) return; - KillProcess(speaker_id); active_dict = dict_id; if (io.buffer_data) free(io.buffer_data); if (active_dict==ENG_RUS) res=io.read("dictionaries/eng - rus.dict"); @@ -187,33 +154,16 @@ void OpenDictionary(dword dict_id) void DrawTranslation() { - int text_break=0; - char tt[4096]=''; - int y_pos=TOPH+1; char draw_buf[4096]; - strcpy(#draw_buf, #translate_result); + strlcpy(#draw_buf, #translate_result, sizeof(draw_buf)); DrawBar(0, y_pos, Form.width-9, Form.cheight - y_pos, 0xFFFFFF); strttl(#draw_buf); WriteTextB(10+1, y_pos+8, 10000001b, 0x800080, #search_word); - while (draw_buf) - { - text_break= Form.width/6-6; - if (text_break>strlen(#draw_buf)) - { - WriteText(10, y_pos+31, 0x80, 0, #draw_buf); - break; - } - while (draw_buf[text_break]<>' ') && (text_break>0) text_break--; - strcpy(#tt, #draw_buf+text_break+1); - draw_buf[text_break]=0x0; - WriteText(10, y_pos+31, 0x80, 0, #draw_buf); - strcpy(#draw_buf, #tt); - y_pos+=12; - if (y_pos+24+8>Form.cheight) break; - } - SpeakerDraw(); + + DrawTextViewArea(10, y_pos+31, Form.cwidth-20, Form.cheight-30, 15, + #draw_buf, -1, 0x000000); } diff --git a/programs/cmm/dicty/speaker.ico b/programs/cmm/dicty/speaker.ico deleted file mode 100644 index 23415bdbf05575fe1d1b425969243ef4a694d7c2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 7798 zcmd5>dvFz38NXCprRr2VW3d%#ozWJ@S34OCH@Ugldw1{d-Pe6@ZW5lYOb{JwXY>yl zN+(DZu^?|K5vCXl3I(k?j4egV6!L!YCxgKzho#2A=Q?3b*xLi-WTp4}{Fz9xT1&e@T96bQHALKq9 zw{PDjJO2C@X{fEg4{Vtfbv3o5Fp^KECW=UBXJ=;TUAzO02S{nj0&=Ol+l=h%>oePz zFI^^6fHxU7$cA<6O?;@vojZ5P)=gVTGL#_sdYsf%*U|7DTep*KF``g>vDc;i3Vqza1J4XJvri_F|jVySjg!cdVg<|R>X1AJ( z0q)N8oo0VkMJ3I>dGjWTNIJ#e-@S*dUbd3x0hQh(2H^8S-^r>i+!&h=?+?ap+q@NB zda(RW8_UV^#mkAt%O>~qEtI(UcdckC@#mE!^kfon!r#A5>6ooD&tUh4}7wca!yN*AbZ$$=qN3iuTW%K9l;0 z*{yPaiUR}dVeer5Z6BYaxh)?xo7l0VN69I`|F(Sx#HQB8lHa{Xq`ZKmS;t*6=T#aL z*P?{2|Gj(mnt44}dg%46Ke)~}tX)rIM6W=sRp5S`Dp9enwx3~Y5e0cEi{iLN_I6oa{&Jfg}`+Z!w zbcr<8H;~4L27-I`NRC6Gm%p{?r8OU)_W{^*8-Tyis0a*1RMjjgL|SFf5FYVp15CEhRNzIgE>odcYEhIL)IK=m?Y z(@XT7%&wP>_4Ne5ht8Zn!={`ZY;2-fdwV-s{s+)YK_LqlETsL@3#L&YF}vCI66dwH zDwDejxdCg3Z=Tm-FIHh+{Ix|d(RVT{H_l0IRW&v1oG|P{=LNF<^)e#+Br^AxbL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bg0pjKfeO&r)2Eh=|>@ zUIz6aMv*%hmS9Js>nIcmJ%Jb+YA9%6DXoXodKm@1wAaU`Z_!KC?x?71XfQsyrx=3p z2*XrW9doaGX}FEij7L!v`mKY{o?$Ur9*26Fu8B>(bgGdN(`|Ygl9Zq>Dw-D1%sCGW zs(@H17xv98gnwDJbps`k484y;OMM<}o^hSsO)nwl z%c6(Z&;s6o`5XgW;Mo-Br)$T`Yi*-mLVeuDYGgc%Op9}T-=Q4Y{(&{0r9X^0h~u|| zmCLC;m|l9l-tl}6AMm^VUt@WoYv1QRoaWE*%knpe-m6&7V0y{=@r+!)9IwK=IgQKa z=pKuExHV>|Hq0?y*G@4Wk7o?$_GsRTUIpSlk1-?RcH(3h@Qm_jXMf%8cAMW)lpOx2 Y>oP5cjO^E%kL`!jHZqpX=mF0E0bOV|AOHXW diff --git a/programs/cmm/dicty/speaker.raw b/programs/cmm/dicty/speaker.raw deleted file mode 100644 index b5ff4e707..000000000 --- a/programs/cmm/dicty/speaker.raw +++ /dev/null @@ -1 +0,0 @@ -鳧頸ヌトナヌナヌ俣疋;Aユメヤネヌヌヌトヌ゚゙゚鳬駑gkC;AC;Aナテトヘハベロ゙ヌナヌノヌノネニネSJPEDF>DF>DF>Dナテナネナヌネナヌ裙ワワワネナヌフヒフ聰皺ャュフハハ壕稀?EH?EH?EH?EH?EH?Eニナニルヨルネヌネヘヒヒネヌネネヌネ恫唔AG{tygafIAGIAGIAGIAGIAGIAGニトナハヌネハヌネハヌネハヌネ装KBH{c\aKBHKBHKBHKBHKBHKBHネナニハヌネハヌネハヌネハヌネ綜銑DJョ_X^LDJLDJLDJLDJLDJLDJネナニフハフハヌハ趺マホマハヌハ葢苺嵩NEK≦bZ_NEKNEKNEKNEKNEKNEKネナネホフフハネハ趺ムホマハネハ蒿茆繭OFLポhafOFLOFLOFLOFLOFLOFLノナネフネハフネハフネハフネハ・」QHN+~pinQHNQHNQHNQHNQHNQHNハニネフネハフネハフネハフネハ裘蓴ケオキTKQRIORIORIORIORIOハニノワルロフハフミヘホフハフフハフモミメd\aSKQSKQSKQSKQハネノヘハフヘハフ鉞゚ン゚ヘハフムママy}ULRULRULRハネハ矚゚ヘハフムマムヘヒヘヘハフ蒹ゥ」ヲWOUVNTヒネヒ韆醢ヒヘ矜睿ハヘホフホメホミミフホヘフヘ聶マフヘホヘヘ韆踈ーャョヤムモユモユ@8>D=C俣疋;AユメヤG>DB9?棟鳬駑gkC;AC;AナテトクオクTLRスサシ初垢;AJBHネニネRJPDDF>DF>DF>DナテナルヨラF>DF>Dヲ「・延宇>DVNT矜皹ャュフハハ壕季?EG?EG?EG?EG?EG?Eニナニy~G?ESLQタセタG?EG?E恬僮@F{sxg_dI@FI@FI@FI@FI@FI@FニトナフハフI@FI@F聰ンレワI@FI@Fリヨヨ桝弼BH{c\aJBHJBHJBHJBHJBHJBHニナニ鵯BHJBHニツナKCIJBHシケシ糟銑CI≦_W]LCILCILCILCILCILCIネナニULRLCIェ、ィ`X]LCI「泯武溺EK≦bZ_MEKMEKMEKMEKMEKMEKネナネVNTMEKェ・ゥbZ_MEK」「尠唹FLポhafOFLOFLOFLOFLOFLOFLノナネOFLOFLヌナニPGMOFLソシセ、」PHN{~oinPHNPHNPHNPHNPHNPHNハニネホフホPHNPHN蒹ンンンPHNPHNレリリ裘蓴ケオキTKQRIORIORIORIORIOハニノ≦RIO]U[テタツRIORIOモマメd[`SJPSJPSJPSJPハニノンロワSJPSJPャヲェ注心JPbY_y}ULRULRULRハネハ撫廼LRbZ_鷙OUULR「擇ゥ」ヲWNTVMSヒネヒュゥャZQWセコシ摎啖MS\SYミホミо\TZWOU撕ヒノハYPV]TZュァォヘハフ \ No newline at end of file diff --git a/programs/cmm/lib/gui.h b/programs/cmm/lib/gui.h index 63e6a5031..32f989bdc 100644 --- a/programs/cmm/lib/gui.h +++ b/programs/cmm/lib/gui.h @@ -291,9 +291,6 @@ TODO: scroll buf_end = strlen(buf_start) + buf_start; label_length_max = w / 8; // 8 big font char width - //DrawRectangle(x-2, y-2, w+4, h+4, system.color.work_graph); - //DrawRectangle3D(x-1, y-1, w+2, h+2, 0xDDDddd, 0xffffff); - loop() { if (bg_col!=-1) DrawBar(x, y, w+1, line_h, bg_col);