Subversion Repositories Kolibri OS

Rev

Rev 7577 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7577 Rev 7579
Line 135... Line 135...
135
		stdcall but_use_syntax, tedit0
135
		stdcall but_use_syntax, tedit0
136
		jmp still
136
		jmp still
137
	@@:
137
	@@:
138
	cmp ah,ID_BUT_SYNTAX_MODE
138
	cmp ah,ID_BUT_SYNTAX_MODE
139
	jne @f
139
	jne @f
140
		stdcall but_panel_choose_syntax, tedit0
140
		call but_panel_choose_syntax
141
		jmp still
141
		jmp still
142
	@@:
142
	@@:
143
	cmp ah,ID_BUT_CONVERT_1251_866
143
	cmp ah,ID_BUT_CONVERT_1251_866
144
	jne @f
144
	jne @f
145
		stdcall [ted_but_convert_by_table],tedit0,tbl_1251_866
145
		stdcall [ted_but_convert_by_table],tedit0,tbl_1251_866
Line 170... Line 170...
170
		jz still
170
		jz still
171
		stdcall [ted_draw], tedit0
171
		stdcall [ted_draw], tedit0
172
		jmp still
172
		jmp still
173
	.no_change:
173
	.no_change:
174
	cmp ah,203 ;§ ¬¥­¨âì ¢á¥
174
	cmp ah,203 ;§ ¬¥­¨âì ¢á¥
175
	jne .no_change_a
175
	jne @f
176
		call but_replace_all
176
		call but_replace_all
177
		jmp still
177
		jmp still
-
 
178
	@@:
-
 
179
	cmp ah,204 ;¯¥à¥©â¨ ­  áâபã
178
	.no_change_a:
180
	jne @f
-
 
181
		call but_goto_line
-
 
182
		jmp still
-
 
183
	@@:
Line 179... Line 184...
179
 
184
 
180
	cmp ah,1
185
	cmp ah,1
181
	jne @f
186
	jne @f
182
		call ted_Exit
187
		call ted_Exit
Line 256... Line 261...
256
	stdcall str_cat, edi,txt_Info
261
	stdcall str_cat, edi,txt_Info
257
	notify_window_run msgbox_1
262
	notify_window_run msgbox_1
258
	ret
263
	ret
259
endp
264
endp
Line -... Line 265...
-
 
265
 
-
 
266
align 4
-
 
267
proc but_goto_line uses eax
-
 
268
	stdcall conv_str_to_int, buf_goto
-
 
269
	stdcall [ted_go_to_position], tedit0,eax,1
-
 
270
	ret
-
 
271
endp
260
 
272
 
261
;input:
273
;input:
262
; al = ª®¤ ®è¨¡ª¨
274
; al = ª®¤ ®è¨¡ª¨
263
align 4
275
align 4
264
ted_on_init_synt_err:
276
ted_on_init_synt_err:
Line 365... Line 377...
365
	stdcall mem_cpy, filename_area,esi,eax ;ª®¯¨à㥬 ¨¬ï ä ©«  ¢ ¤¨ «®£ á®åà ­¥­¨ï
377
	stdcall mem_cpy, filename_area,esi,eax ;ª®¯¨à㥬 ¨¬ï ä ©«  ¢ ¤¨ «®£ á®åà ­¥­¨ï
366
	ret
378
	ret
367
endp
379
endp
Line 368... Line 380...
368
 
380
 
-
 
381
;description:
-
 
382
; äã­ªæ¨ï ¢ë§ë¢ ¥¬ãî ¯à¨ ­ ¦ â¨¨ Ctrl+N,O,F,S,H,G
-
 
383
align 4
-
 
384
proc ted_but_ctrl_all uses eax, opt_key:dword
-
 
385
	mov eax,[opt_key]
-
 
386
	cmp al,'N' ;Ctrl+N
-
 
387
	jne @f
-
 
388
		call ted_but_new_file
-
 
389
		jmp .end0
-
 
390
	@@:
-
 
391
	cmp al,'O' ;Ctrl+O
-
 
392
	jne @f
-
 
393
		call ted_but_open_file
-
 
394
		jmp .end0
-
 
395
	@@:
-
 
396
	cmp al,'S' ;Ctrl+S
-
 
397
	jne @f
-
 
398
		shr eax,8
-
 
399
		call ted_but_save_file
-
 
400
		jmp .end0
-
 
401
	@@:
-
 
402
	cmp al,'F' ;Ctrl+F
-
 
403
	jne @f
-
 
404
		call but_panel_find
-
 
405
		jmp .end0
-
 
406
	@@:
-
 
407
	cmp al,'G' ;Ctrl+G
-
 
408
	jne @f
-
 
409
		call but_panel_goto
-
 
410
		jmp .end0
-
 
411
	@@:
-
 
412
	cmp al,'H' ;Ctrl+H
-
 
413
	jne .end0
-
 
414
		call but_panel_replace
-
 
415
	.end0:
-
 
416
	ret
-
 
417
endp
-
 
418
 
369
;description:
419
;description:
370
; äã­ªæ¨ï ®âªàëâ¨ï ä ©«  á ¢®§¬®¦­ë¬ ®ª­®¬ á®®¡é¥­¨ï (® ¢®§¬®¦­®á⨠®â¬¥­¨âì ®âªàë⨥)
420
; äã­ªæ¨ï ®âªàëâ¨ï ä ©«  á ¢®§¬®¦­ë¬ ®ª­®¬ á®®¡é¥­¨ï (® ¢®§¬®¦­®á⨠®â¬¥­¨âì ®âªàë⨥)
371
align 4
421
align 4
372
ted_but_open_file:
422
ted_but_open_file:
Line 596... Line 646...
596
endp
646
endp
Line 597... Line 647...
597
 
647
 
598
;description:
648
;description:
599
; ¢ë§®¢/áªàë⨥ ¯ ­¥«¨ ¯®¨áª 
649
; ¢ë§®¢/áªàë⨥ ¯ ­¥«¨ ¯®¨áª 
600
align 4
650
align 4
-
 
651
proc but_panel_find
601
proc but_panel_find uses edi
652
	stdcall on_panel_change, tedit0,TED_PANEL_FIND
-
 
653
	;or word[edit_find.flags],ed_focus
-
 
654
	ret
Line 602... Line -...
602
	mov edi,tedit0
-
 
603
 
655
endp
604
	cmp ted_panel_id,TED_PANEL_NULL
656
 
605
	je @f
-
 
606
		mov ted_panel_id,TED_PANEL_NULL
657
;description:
607
		mov ted_wnd_l,0
-
 
608
		jmp .e_if
658
; ¢ë§®¢/áªàë⨥ ¯ ­¥«¨ ¯¥à¥å®¤ 
609
	@@:
659
align 4
610
		mov ted_panel_id,TED_PANEL_FIND
-
 
611
		mov ted_wnd_l,TED_PANEL_WIDTH
-
 
612
	.e_if:
660
proc but_panel_goto
613
	call EvSize
661
	stdcall on_panel_change, tedit0,TED_PANEL_GOTO
614
	stdcall [ted_draw],edi
662
	;or word[edit_goto.flags],ed_focus
Line 615... Line 663...
615
	ret
663
	ret
616
endp
664
endp
617
 
665
 
618
;description:
666
;description:
619
; ¢ë§®¢/áªàë⨥ ¯ ­¥«¨ § ¬¥­ë
-
 
620
align 4
-
 
621
proc but_panel_replace uses edi
-
 
622
	mov edi,tedit0
-
 
623
 
-
 
624
	cmp ted_panel_id,TED_PANEL_NULL
-
 
625
	je @f
-
 
626
		mov ted_panel_id,TED_PANEL_NULL
-
 
627
		mov ted_wnd_l,0
667
; ¢ë§®¢/áªàë⨥ ¯ ­¥«¨ § ¬¥­ë
628
		jmp .e_if
-
 
629
	@@:
-
 
630
		mov ted_panel_id,TED_PANEL_REPLACE
-
 
631
		mov ted_wnd_l,TED_PANEL_WIDTH
668
align 4
632
	.e_if:
669
proc but_panel_replace
633
	call EvSize
670
	stdcall on_panel_change, tedit0,TED_PANEL_REPLACE
Line 634... Line 671...
634
	stdcall [ted_draw],edi
671
	;or word[edit_find.flags],ed_focus
635
	ret
672
	ret
636
endp
673
endp
-
 
674
 
-
 
675
;description:
-
 
676
; ¢ë§®¢/áªàë⨥ ¯ ­¥«¨ á ä ©« ¬¨ ᨭ⠪á¨á 
-
 
677
align 4
-
 
678
proc but_panel_choose_syntax
-
 
679
	stdcall on_panel_change, tedit0,TED_PANEL_SYNTAX
637
 
680
	ret
638
;description:
681
endp
-
 
682
 
Line -... Line 683...
-
 
683
align 4
639
; ¢ë§®¢/áªàë⨥ ¯ ­¥«¨ á ä ©« ¬¨ ᨭ⠪á¨á 
684
proc on_panel_change uses eax edi, edit:dword, new_id:dword
640
align 4
685
	mov edi,[edit]
641
proc but_panel_choose_syntax uses edi, edit:dword
686
	mov eax,[new_id]
642
	mov edi,[edit]
687
 
643
 
688
	;if(panel_id==new_id) panel_id=0, draw all
644
	cmp ted_panel_id,TED_PANEL_NULL
689
	cmp ted_panel_id,al
-
 
690
	jne @f
645
	je @f
691
		mov ted_panel_id,TED_PANEL_NULL
-
 
692
		mov ted_wnd_l,0
-
 
693
		jmp .e_if
646
		mov ted_panel_id,TED_PANEL_NULL
694
	@@:
647
		mov ted_wnd_l,0
695
	;elseif(panel_id==0) panel_id=new_id, draw all
648
		jmp .e_if
696
	cmp ted_panel_id,TED_PANEL_NULL
649
	@@:
697
	jne @f
-
 
698
		mov ted_panel_id,al
-
 
699
		mov ted_wnd_l,TED_PANEL_WIDTH
-
 
700
	.e_if:
-
 
701
	call EvSize
-
 
702
	stdcall [ted_draw],edi
-
 
703
	jmp .end0
650
		mov ted_panel_id,TED_PANEL_SYNTAX
704
	;else panel_id=new_id, draw panel
651
		mov ted_wnd_l,TED_PANEL_WIDTH
705
	@@:
Line 652... Line 706...
652
	.e_if:
706
		mov ted_panel_id,al
653
	call EvSize
707
		stdcall draw_panels,edi
Line 690... Line 744...
690
but_find_key_w:
744
but_find_key_w:
691
	cmp dword[wnd_k_words_run],0
745
	cmp dword[wnd_k_words_run],0
692
	jne @f
746
	jne @f
693
		pushad
747
		pushad
694
		mcall SF_CREATE_THREAD,1,prop_start,thread_coords
748
		mcall SF_CREATE_THREAD,1,prop_start,thread_coords
695
		mov dword[wnd_k_words_run],eax
749
		mov [wnd_k_words_run],eax
696
		popad
750
		popad
697
	@@:
751
	@@:
698
	ret
752
	ret
Line 699... Line 753...
699
 
753
 
700
;description:
754
;description:
701
; ¢ë¤¥«¥­¨¥/áªàë⨥ ­¥¯¥ç â ¥¬ëå ᨬ¢®«®¢
755
; ¢ë¤¥«¥­¨¥/áªàë⨥ ­¥¯¥ç â ¥¬ëå ᨬ¢®«®¢
702
align 4
756
align 4
703
proc but_sumb_invis uses edi, edit:dword
757
proc but_sumb_invis uses edi, edit:dword
Line 704... Line 758...
704
	mov edi,dword[edit]
758
	mov edi,[edit]
705
 
759
 
706
	xor ted_mode_invis,1
760
	xor ted_mode_invis,1
707
	call draw_but_toolbar
761
	call draw_but_toolbar
Line 711... Line 765...
711
 
765
 
712
;description:
766
;description:
713
; ¢ë¤¥«¥­¨¥/áªàë⨥ ª«î祢ëå á«®¢
767
; ¢ë¤¥«¥­¨¥/áªàë⨥ ª«î祢ëå á«®¢
714
align 4
768
align 4
715
proc but_use_syntax uses edi, edit:dword
769
proc but_use_syntax uses edi, edit:dword
Line 716... Line 770...
716
	mov edi,dword[edit]
770
	mov edi,[edit]
717
 
771
 
718
	xor ted_mode_color,1
772
	xor ted_mode_color,1
719
	cmp ted_mode_color,0
773
	cmp ted_mode_color,0