137,7 → 137,7 |
@@: |
cmp ah,ID_BUT_SYNTAX_MODE |
jne @f |
stdcall but_panel_choose_syntax, tedit0 |
call but_panel_choose_syntax |
jmp still |
@@: |
cmp ah,ID_BUT_CONVERT_1251_866 |
172,10 → 172,15 |
jmp still |
.no_change: |
cmp ah,203 ;§ ¬¥¨âì ¢á¥ |
jne .no_change_a |
jne @f |
call but_replace_all |
jmp still |
.no_change_a: |
@@: |
cmp ah,204 ;¯¥à¥©â¨ áâபã |
jne @f |
call but_goto_line |
jmp still |
@@: |
|
cmp ah,1 |
jne @f |
258,6 → 263,13 |
ret |
endp |
|
align 4 |
proc but_goto_line uses eax |
stdcall conv_str_to_int, buf_goto |
stdcall [ted_go_to_position], tedit0,eax,1 |
ret |
endp |
|
;input: |
; al = ª®¤ ®è¨¡ª¨ |
align 4 |
367,6 → 379,44 |
endp |
|
;description: |
; äãªæ¨ï ¢ë§ë¢ ¥¬ãî ¯à¨ ¦ ⨨ Ctrl+N,O,F,S,H,G |
align 4 |
proc ted_but_ctrl_all uses eax, opt_key:dword |
mov eax,[opt_key] |
cmp al,'N' ;Ctrl+N |
jne @f |
call ted_but_new_file |
jmp .end0 |
@@: |
cmp al,'O' ;Ctrl+O |
jne @f |
call ted_but_open_file |
jmp .end0 |
@@: |
cmp al,'S' ;Ctrl+S |
jne @f |
shr eax,8 |
call ted_but_save_file |
jmp .end0 |
@@: |
cmp al,'F' ;Ctrl+F |
jne @f |
call but_panel_find |
jmp .end0 |
@@: |
cmp al,'G' ;Ctrl+G |
jne @f |
call but_panel_goto |
jmp .end0 |
@@: |
cmp al,'H' ;Ctrl+H |
jne .end0 |
call but_panel_replace |
.end0: |
ret |
endp |
|
;description: |
; äãªæ¨ï ®âªàëâ¨ï ä ©« á ¢®§¬®¦ë¬ ®ª®¬ á®®¡é¥¨ï (® ¢®§¬®¦®á⨠®â¬¥¨âì ®âªàë⨥) |
align 4 |
ted_but_open_file: |
598,20 → 648,18 |
;description: |
; ¢ë§®¢/áªàë⨥ ¯ ¥«¨ ¯®¨áª |
align 4 |
proc but_panel_find uses edi |
mov edi,tedit0 |
proc but_panel_find |
stdcall on_panel_change, tedit0,TED_PANEL_FIND |
;or word[edit_find.flags],ed_focus |
ret |
endp |
|
cmp ted_panel_id,TED_PANEL_NULL |
je @f |
mov ted_panel_id,TED_PANEL_NULL |
mov ted_wnd_l,0 |
jmp .e_if |
@@: |
mov ted_panel_id,TED_PANEL_FIND |
mov ted_wnd_l,TED_PANEL_WIDTH |
.e_if: |
call EvSize |
stdcall [ted_draw],edi |
;description: |
; ¢ë§®¢/áªàë⨥ ¯ ¥«¨ ¯¥à¥å®¤ |
align 4 |
proc but_panel_goto |
stdcall on_panel_change, tedit0,TED_PANEL_GOTO |
;or word[edit_goto.flags],ed_focus |
ret |
endp |
|
618,20 → 666,9 |
;description: |
; ¢ë§®¢/áªàë⨥ ¯ ¥«¨ § ¬¥ë |
align 4 |
proc but_panel_replace uses edi |
mov edi,tedit0 |
|
cmp ted_panel_id,TED_PANEL_NULL |
je @f |
mov ted_panel_id,TED_PANEL_NULL |
mov ted_wnd_l,0 |
jmp .e_if |
@@: |
mov ted_panel_id,TED_PANEL_REPLACE |
mov ted_wnd_l,TED_PANEL_WIDTH |
.e_if: |
call EvSize |
stdcall [ted_draw],edi |
proc but_panel_replace |
stdcall on_panel_change, tedit0,TED_PANEL_REPLACE |
;or word[edit_find.flags],ed_focus |
ret |
endp |
|
638,20 → 675,37 |
;description: |
; ¢ë§®¢/áªàë⨥ ¯ ¥«¨ á ä ©« ¬¨ á¨â ªá¨á |
align 4 |
proc but_panel_choose_syntax uses edi, edit:dword |
proc but_panel_choose_syntax |
stdcall on_panel_change, tedit0,TED_PANEL_SYNTAX |
ret |
endp |
|
align 4 |
proc on_panel_change uses eax edi, edit:dword, new_id:dword |
mov edi,[edit] |
mov eax,[new_id] |
|
cmp ted_panel_id,TED_PANEL_NULL |
je @f |
;if(panel_id==new_id) panel_id=0, draw all |
cmp ted_panel_id,al |
jne @f |
mov ted_panel_id,TED_PANEL_NULL |
mov ted_wnd_l,0 |
jmp .e_if |
@@: |
mov ted_panel_id,TED_PANEL_SYNTAX |
;elseif(panel_id==0) panel_id=new_id, draw all |
cmp ted_panel_id,TED_PANEL_NULL |
jne @f |
mov ted_panel_id,al |
mov ted_wnd_l,TED_PANEL_WIDTH |
.e_if: |
call EvSize |
stdcall [ted_draw],edi |
jmp .end0 |
;else panel_id=new_id, draw panel |
@@: |
mov ted_panel_id,al |
stdcall draw_panels,edi |
.end0: |
ret |
endp |
|
692,7 → 746,7 |
jne @f |
pushad |
mcall SF_CREATE_THREAD,1,prop_start,thread_coords |
mov dword[wnd_k_words_run],eax |
mov [wnd_k_words_run],eax |
popad |
@@: |
ret |
701,7 → 755,7 |
; ¢ë¤¥«¥¨¥/áªàë⨥ ¥¯¥ç â ¥¬ëå ᨬ¢®«®¢ |
align 4 |
proc but_sumb_invis uses edi, edit:dword |
mov edi,dword[edit] |
mov edi,[edit] |
|
xor ted_mode_invis,1 |
call draw_but_toolbar |
713,7 → 767,7 |
; ¢ë¤¥«¥¨¥/áªàë⨥ ª«î祢ëå á«®¢ |
align 4 |
proc but_use_syntax uses edi, edit:dword |
mov edi,dword[edit] |
mov edi,[edit] |
|
xor ted_mode_color,1 |
cmp ted_mode_color,0 |