From e0fed2fb2e9ad6456d39a5fec3035a6b75e8ade6 Mon Sep 17 00:00:00 2001 From: IgorA Date: Fri, 31 Dec 2010 17:11:57 +0000 Subject: [PATCH] update 'kol_f_edit', added example of connecting the library 'buf2d.obj' git-svn-id: svn://kolibrios.org@1732 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/develop/kol_f_edit/buf2d.ced | Bin 0 -> 25042 bytes programs/develop/kol_f_edit/ced_code_g.inc | 110 +++++++++++------- .../develop/kol_f_edit/docs/prop_incl.png | Bin 0 -> 6716 bytes programs/develop/kol_f_edit/docs/readme.htm | 35 ++++-- programs/develop/kol_f_edit/kol_f_edit.asm | 2 +- 5 files changed, 98 insertions(+), 49 deletions(-) create mode 100644 programs/develop/kol_f_edit/buf2d.ced create mode 100644 programs/develop/kol_f_edit/docs/prop_incl.png diff --git a/programs/develop/kol_f_edit/buf2d.ced b/programs/develop/kol_f_edit/buf2d.ced new file mode 100644 index 0000000000000000000000000000000000000000..4b175e1c07e2c7c9ab6e68df462a7a5123f0bef2 GIT binary patch literal 25042 zcmeI4>u%e~6@cY#Tfjy24g(aZz0k$F*p7GoW7ka_G(fUj>^eY;MLNl4ceX|MUk{9YIGT0j0Q+Dni_?lgs!NiXSz7Q-?~D|4 z1zFJ;v)Im5^%c{K{Jw;$`q@dTs-vUwQKejKl+Jb3sm(v$l#d|c(kP?y#bwQCl$`u! zD}Se$te6+I&gjv`K&>#e<;;cl9Hp~n?J%4ou$tgRk2W+88FOxxJycAV5p&z_Q_`{_)>v?5@2Gk2?rXJV>LxQ2&()((^^ziW%yCyS%Qhwr@my_Eh@S){HQoZE-;)d z$rRe3J!YpX!;ebNW>rCBcF5|!-&~fh=*sY;%1W}#Gk8?puf`<#Eh@S)JXB#4t!5*S zy>j+Y=7sfo!?-$cTp3MNK1B<#D51z|T+H{oHZgf}n+h~hzuA1aHF=FjpuwDrDkce8 zqP5#EMj)7G5p$tmJH^K|nQYiMTU3g;y+dNG*`mtGnkMHQ<8=$o6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s/develop/kol_f_edit/ced_code_g.inc index 51d7f117ee..8c372a7b81 100644 --- a/programs/develop/kol_f_edit/ced_code_g.inc +++ b/programs/develop/kol_f_edit/ced_code_g.inc @@ -137,15 +137,6 @@ macro insert_reg8 reg_name stdcall [ted_text_add], tedit0,reg_name,2,ted_opt_ed_move_cursor } -; -macro insert_but_beg -{ - stdcall [ted_text_add], tedit0,txt_but_1,txt_but_2-txt_but_1,ted_opt_ed_move_cursor -} -macro insert_but_end -{ - stdcall [ted_text_add], tedit0,txt_but_2,txt_but_3-txt_but_2,ted_opt_ed_move_cursor -} ; macro insert_key_beg { @@ -200,7 +191,7 @@ popad ; esi - 㪠§ â¥«ì ­  㧥« align 4 code_gen_obj: -push ebx edx +push eax ebx edx .beg_iterat: cmp esi,0 je .find_no @@ -233,27 +224,15 @@ push ebx edx stdcall insert_text, txt_skob_fo @@: insert_nl - - stdcall dword[tl_node_poi_get_next_info], esi,tree2 - pop esi ;¯¥à¥å®¤¨¬ ª á«¥¤ã饬ã 㧫ã - cmp esi,0 - je .end_st - cmp byte[esi+2],bl ;lev - jle .end_st - push bx - mov bl,byte[esi+2] - call code_gen_obj ;४ãàᨢ­ë© ¢ë§®¢ ¤®ç¥à­¨å ®¡ê¥ªâ®¢ - pop bx - .end_st: + stdcall get_code_children_objects, esi + call move_next_no_child_objects ;¯à®¯ã᪠¤®ç¥à­¨å ®¡¥ªâ®¢ cmp byte[edx],0 je @f ;¥á«¨ áâàãªâãà  § ¤ ­  ¬ ªà®á®¬ stdcall insert_text, txt_skob_fc insert_nl - jmp .beg_iterat @@: stdcall insert_text,txt_ends - jmp .beg_iterat .no_struct: cmp dword[eax],C_TXT jne @f @@ -270,10 +249,14 @@ push ebx edx cmp dword[eax],C_WND jne @f stdcall get_code_window,eax ;®¡à ¡®âª  ®¡ê¥ªâ  + stdcall get_code_children_objects, esi ;®¡à ¡®âª  ¤®ç¥à­¨å ®¡¥ªâ®¢ + call move_next_no_child_objects ;¯à®¯ã᪠¤®ç¥à­¨å ®¡¥ªâ®¢ + stdcall insert_text, txt_draw_we ;ª®¤ § ¢¥àè î騩 äã­ªæ¨î à¨á®¢ ­¨ï @@: cmp dword[eax],C_ACO jne @f - stdcall get_code_auto,eax ;®¡à ¡®âª  ®¡ê¥ªâ  + stdcall get_code_auto,esi ;®¡à ¡®âª  ®¡ê¥ªâ  + call move_next_no_child_objects ;¯à®¯ã᪠¤®ç¥à­¨å ®¡¥ªâ®¢ @@: cmp dword[eax],C_KEY ;ª« ¢¨ âãà  jne @f @@ -285,7 +268,49 @@ push ebx edx jmp .beg_iterat .find_no: -pop edx ebx +pop edx ebx eax + ret + +;¢§ïâì ª®¤ë ¤®ç¥à­¨å ®¡ê¥ªâ®¢ +align 4 +proc get_code_children_objects, p_node:dword + push ebx esi + mov esi,[p_node] + mov bl,byte[esi+2] ;á®å࠭塞 ã஢¥­ì ⥪ã饣® ®¡ê¥ªâ  + + stdcall dword[tl_node_poi_get_next_info], esi,tree2 + pop esi ;¯¥à¥å®¤¨¬ ª á«¥¤ã饬ã 㧫ã + cmp esi,0 ;¥á«¨ ¤®á⨣«¨ ª®­æ  ᯨ᪠ ®¡ê¥ªâ®¢ + je @f + cmp byte[esi+2],bl ;¥á«¨ ã஢¥­ì á«¥¤ãî饣® ®¡ê¥ªâ  ¡®«ìè¥ ¨«¨ à ¢¥­ ⥪ã饬ã + jle @f ;â® ¤®ç¥à­¨å 㧫®¢ ­¥â + mov bl,byte[esi+2] + call code_gen_obj ;४ãàᨢ­ë© ¢ë§®¢ ¤®ç¥à­¨å ®¡ê¥ªâ®¢ + @@: + pop esi ebx + ret +endp + +;¯à®¯ã᪠¢á¥å ¤®ç¥à­¨å ®¡ê¥ªâ®¢ +;input: +; esi - 㪠§ â¥«ì ­  㧥« +;outpet: +; esi - 㪠§ â¥«ì á«¥¤ã騩 ­¥ ¤®ç¥à­¨© (®â­®á¨â¥«ì­® ¢å®¤ï饣®) ­  㧥« +align 4 +move_next_no_child_objects: + push eax ebx + mov bl,byte[esi+2] ;á®å࠭塞 ã஢¥­ì ⥪ã饣® ®¡ê¥ªâ  + @@: + stdcall dword[tl_node_poi_get_next_info], esi,tree2 + pop eax ;¯¥à¥å®¤¨¬ ª á«¥¤ã饬ã 㧫ã + cmp eax,0 ;¥á«¨ ¤®á⨣«¨ ª®­æ  ᯨ᪠ ®¡ê¥ªâ®¢ + je @f + cmp byte[eax+2],bl ;¥á«¨ ã஢¥­ì á«¥¤ãî饣® ®¡ê¥ªâ  ¡®«ìè¥ ¨«¨ à ¢¥­ ⥪ã饬ã + jle @f ;â® ¤®ç¥à­¨å 㧫®¢ ­¥â + mov esi,eax ;¥á«¨ á«¥¤ã騩 㧥« ®ª § «áï ¤®ç¥à­¨¬, ¯¥à¥áâ ¢«ï¥¬ 㪠§ â¥«ì + jmp @b + @@: + pop ebx eax ret ;¤®¡ ¢«¥­¨¥ ®¡ê¥ªâ  á ¯à®£à ¬­ë¬ ª®¤®¬ (⥪á⮬) @@ -301,10 +326,13 @@ endp ;®¡à ¡®âª  ®¡ê¥ªâ  ᮧ¤ î饣®  ¢â®¬ â¨ç¥ªá¨¥ ª®¤ë align 4 -proc get_code_auto, p_obj:dword +proc get_code_auto, p_node:dword pushad insert_nl - mov ebx,dword[p_obj] + mov esi,dword[p_node] + stdcall dword[tl_node_poi_get_data], esi,tree2 + pop ebx ;¯®«ãç ¥¬ ¤ ­­ë¥ 㧫  + test_bool_prop ebx,BIT_MOD_ACI jae @f mov edx,C_CHB @@ -321,9 +349,13 @@ proc get_code_auto, p_obj:dword test_bool_prop ebx,BIT_MOD_ABU jae @f ;ᮧ¤ ­¨¥ ä㭪樨 button - insert_but_beg + stdcall insert_text, txt_but_beg call get_code_auto_but ;ª®¤ë ¢ë§®¢  ª­®¯®ª - insert_but_end + stdcall insert_text, txt_but_mid + stdcall get_code_children_objects, esi + ;ª®­¥æ ä㭪樨 button (ª­®¯ª  id=-1, § ¢¥à襭¨¥ ¯à®£à ¬¬ë) + stdcall insert_text, txt_but_end + call get_code_a_but_fun ;ª®¤ë ä㭪権, ¢ë§ë¢ ¥¬ëå ¯à¨ ­ ¦ â¨¨ ª­®¯®ª @@: test_bool_prop ebx,BIT_MOD_ACD @@ -1105,8 +1137,6 @@ proc get_code_window, p_obj:dword insert_nl call get_code_draw_obj - - stdcall insert_text, txt_draw_we ;ª®¤ § ¢¥àè î騩 äã­ªæ¨î à¨á®¢ ­¨ï popad ret endp @@ -1423,16 +1453,14 @@ txt_cb_b db 13,'check_boxes:',0 txt_cb_e db 'check_boxes_end:',13,0 txt_ebox db ' edit_box',0 -txt_editb_draw: - db 9,'stdcall [edit_box_draw], ',0 -txt_cbox_draw: - db 9,'stdcall [check_box_draw], ',0 +txt_editb_draw db 9,'stdcall [edit_box_draw], ',0 +txt_cbox_draw db 9,'stdcall [check_box_draw], ',0 -txt_but_1: -db 'align 4',13,'button:',13,9,'mcall 17',13 -txt_but_2: -db 9,'cmp ah,1',13,9,'jne still',13,'.exit:',13,9,'mcall -1',13 -txt_but_3: +;­ ç «® ä㭪樨 ª­®¯®ª +txt_but_beg db 'align 4',13,'button:',13,9,'mcall 17',13,0 +txt_but_mid db 9,'cmp ah,1',13,9,'jne still',13,'.exit:',13,0 +;ª®­¥æ ä㭪樨 ª­®¯®ª (§ ¢¥à襭¨¥ ¯à®£à ¬ë) +txt_but_end db 9,'mcall -1',13,0 txt_key_1: db 'align 4',13,'key:',13,9,'mcall 2',13 diff --git a/programs/develop/kol_f_edit/docs/prop_incl.png b/programs/develop/kol_f_edit/docs/prop_incl.png new file mode 100644 index 0000000000000000000000000000000000000000..9660caec10d30ec86f7703e997008008fc73e286 GIT binary patch literal 6716 zcmeHLXHZk!y54{&h}aNNgpW^DkP>=_fFeb@1VRVtB?w5DmY`yxi$H)#Q6Q8+=n#T5 z3!nrNAcSf_rNmIAgY+BEow;-FnYnY%&->%h>>n1At4v^tEqUJak;5Mkd-* zqB~Zn@L?Wd2OV8!I#QIM#R#y4pM7Q7ce_ZQ9hOn=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PMN zu1RFXJAMRKLJ)LnuTV}lEOaN;-{1ja3vM8-mv>B>4Hlr)h3H+>>32oGxcyV(slmGA z)Of5RXM+7$8mOi~rxkE|#SMBe2%Qn(v#=0roOABHt!CTUY}G#sa*sw397VaQ5QEup zzeA)h;n2-6>ps)XtQ@~f1K$LEa$_DP8HseHO-cb^+?puRQoueHt&@x17sP&ZTEwB_7lfQmP=UOAYA$;NRlja zWP@$U4xz&*f{!2{)k$d0Zj2ZYmN}++6m-{p^L#2M?NMh$WD8#+lJ9;J7H@~%2kQ=p z;TN^J7oL`%U~=jUFffM}LORVU@1zDWc9_r}Xa#O>MuKC2IYz+%T2gL(!=dr{&R*Fd z#_k8&P;9HbBIUj9Ts(ttf3bg3`FlW*#b$Nz1Yge=U1J@_ba*;LqsSVlo@=PGqL>p+ zV9gEn&^>ug z$oOuNJ!nA8gN()!<9xot>*92znOtCf2>{&k+4q8tmhg)&A? -

Kol_f_edit âåðñèÿ îò 22.12.2010

+

Kol_f_edit âåðñèÿ îò 31.12.2010

Îãëàâëåíèå

Î ïðîãðàììå

Ïðîãðàììà äëÿ àâòîìàòèçàöèè ñîçäàíèÿ èíòåðôåéñà. - Ìíîãèå ôóíêöèè ïðîãðàììû ïîêà åùå íå ñäåëàíû, ïîòîìó âîçìîæíîñòè åå ïðàêòè÷åñêîãî èñïîëüçîâàíèÿ ìèíèìàëüíûå. + Íåêîòîðûå èç ôóíêöèé ïðîãðàììû ïîêà åùå íå ñäåëàíû, ïîòîìó âîçìîæíîñòè åå ïðàêòè÷åñêîãî èñïîëüçîâàíèÿ îãðàíè÷åíû. Ëèöåíçèÿ ñâîáîäíàÿ.

Âíåøíèé âèä ïðîãðàììû.

Àëãîðèòì ðàáîòû ñ ïðîãðàììîé

-

1) Îòêðûâàåì øàáëîí ïðîãðàììû èç ôàéëà min_prog.ced èëè box_l.ced - (min_prog.ced - "ìèíèìàëüíàÿ" ïðîãðàììà, box_l.ced - ïðîãðàììà ñ ïîäêëþ÷åíèåì áèáëèîòåêè box_lib.obj, ïëàíèðóåòüñÿ äîáàâëåíèå äðóãèõ øàáëîíîâ)

+

1) Îòêðûâàåì øàáëîí ïðîãðàììû èç ôàéëà ñ ðàñøèðåíèåì .ced + (min_prog.ced - "ìèíèìàëüíàÿ" ïðîãðàììà, box_l.ced - ïðîãðàììà ñ ïîäêëþ÷åíèåì áèáëèîòåêè box_lib.obj, + buf2d.ced - ïðîãðàììà ñ ïîäêëþ÷åíèåì áèáëèîòåêè buf2d.obj, ïëàíèðóåòüñÿ äîáàâëåíèå äðóãèõ øàáëîíîâ)

2) Ðåäàêòèðóåì îáúåêòû â ïîäêëþ÷åííîì ôàéëå *.ced

-

3) Ñîçäàåì *.asm êîä â òåêñòîâîì îêíå êíîïêîé íà ïàíåëè. Ñîõðàíÿåì *.asm êîä íà äèñê (ðàáîòîñïîñîáíîñòü ïîëó÷èâøåãîñÿ ôàéëà íå ãàðàíòèðóåòñÿ, ò. ê. ìíîãèå ýëåìåíòû åùå äîêîíöà íå çàïðîãðàìèðîâàíû)

-

4) Ðåäàêòèðóåì ïîëó÷èâøèéñÿ *.asm ôàéë ëþáûì òåêñòîâûì ðåäàêòîðîì

+

3) Ñîçäàåì *.asm êîä â òåêñòîâîì îêíå êíîïêîé íà ïàíåëè. Ñîõðàíÿåì *.asm êîä íà äèñê (ðàáîòîñïîñîáíîñòü ïîëó÷èâøåãîñÿ ôàéëà íå ãàðàíòèðóåòñÿ, ò. ê. íåêîòîðûå èç ýëåìåíòîâ åùå äîêîíöà íå ïðîðàáîòàíû)

+

4) Ðåäàêòèðóåì ïîëó÷èâøèéñÿ *.asm ôàéë ëþáûì òåêñòîâûì ðåäàêòîðîì. Äëÿ ýòîãî óáèðàåì â íà÷àëå ôàéëà îïèñàíèÿ ñòðóêòóð (ò. ê. îíè ñîäåðæàòñÿ â ïîäêëþ÷àåìûõ ôàéëàõ .inc) è äîïèñûâàåì ïóòè ê ïîäêëþ÷àåìûì ôàéëàì.

Âèäû îáúåêòîâ

Ïðîãðàìíûé êîä ñîçäàåòñÿ íà îñíîâå ñâîéñòâ îáúåêòîâ, âíåñåííûõ â ôàéë ïðîýêòà. Âñå îáúåêòû âíóòðè ïðîãðàìû ïðåäñòàâëÿþòüñÿ ñòðóêòóðàìè âèäà:

@@ -148,7 +151,25 @@ ends
  • òåêñò îøèáêè êîòîðûé ïîÿâëÿåòñÿ åñëè âîçíèêëè ïðîáëåìû ñ èìïîðòîì ôóíêöèé èç áèáëèîòåêè
  • Äëÿ ñîçäàíèÿ ïðîãðàìíîãî êîäà ýòîãî îáúåêòà íóæåí îáúåêò àâòî êîäà ñ âêëþ÷åííîé îïöèåé êîäû ýëåìåíòîâ. - Ýòîò îáúåêò èñïîëüçóåòñÿ âìåñòå ñ îáúåêòàìè ôóíêöèÿ èç áèáëèîòåêè, êîòîðûå äîëæíû áûòü äî÷åðíèìè äëÿ íåãî.

    + Ýòîò îáúåêò èñïîëüçóåòñÿ âìåñòå ñ îáúåêòàìè ôóíêöèÿ èç áèáëèîòåêè, êîòîðûå äîëæíû áûòü äî÷åðíèìè äëÿ íåãî.

    + +

    Ôóíêöèÿ èç áèáëèîòåêè

    + +

    Äàííûå îáúåêòû ñëóæàò äëÿ ñîçäàíèÿ óêàçàòåëåé íà ôóíêöèè èìïîðòèðóåìûå èç áèáëèîòåêè. Ñîäåðæèò ïàðàìåòðû:

    +
      +
    • ïðîãðàìíîå èìÿ ôóíêöèè (òî èìÿ êàêèì ôóíêöèÿ áóäåò íàçûâàòüñÿ â ïîëüçîâàòåëüñêîé ïðîãðàìå)
    • +
    • èìïîðòèðóåìîå èìÿ ôóíêöèè (òî èìÿ êîòîðîå çàïèñàíî â áèáëèîòåêå)
    • +
    +

     áîëüøèíñòâå ñëó÷àåâ ýòè ïàðàìåòðû áóäóò ñîâïàäàòü äðóã ñ äðóãîì. + Ýòè îáúåêòû èñïîëüçóåòñÿ âìåñòå ñ îáúåêòàìè èìïîðò áèáëèîòåêè, êîòîðûå äîëæíû áûòü ðîäèòåëüñêèìè äëÿ íèõ.

    + +

    Âêëþ÷åíèå ôàéëà

    + +

    Îáúåêò ñîçäàíèÿ êîäà ïîäêëþ÷åíèÿ ôàéëîâ, ÷åðåç êëþ÷åâîå ñëîâî include. Ñîäåðæèò ïàðàìåòðû:

    +
      +
    • èìÿ ôàéëà (âìåñòå ñ ïóòåì è îäèíàðíûìè êàâû÷êàìè)
    • +
    • êîììåíòàðèé (èñïîëüçóåòñÿ åñëè ïîëüçîâàòåëþ íåîáõîäèìî äîáàâèòü îïèñàíèå ïîäêëþ÷àåìîãî ôàéëà)
    • +

    diff --git a/programs/develop/kol_f_edit/kol_f_edit.asm b/programs/develop/kol_f_edit/kol_f_edit.asm index a0ce632d85..fe9e682a09 100644 --- a/programs/develop/kol_f_edit/kol_f_edit.asm +++ b/programs/develop/kol_f_edit/kol_f_edit.asm @@ -20,7 +20,7 @@ include 'obj_codes.inc' @use_library_mem mem.Alloc,mem.Free,mem.ReAlloc, dll.Load -hed db 'kol_f_edit 22.12.10',0 +hed db 'kol_f_edit 31.12.10',0 sizeof.TreeList equ 20 ;need for element 'tree_list'