Subversion Repositories Kolibri OS

Rev

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

Rev 1592 Rev 2102
Line 6... Line 6...
6
	Buffer	 dd ?
6
	Buffer	 dd ?
7
		db ?
7
		db ?
8
	FileName dd ?
8
	FileName dd ?
9
ends
9
ends
Line 10... Line -...
10
 
-
 
11
struct TexColViv
-
 
12
  Text rb MAX_COLOR_WORD_LEN ; á«®¢® ¤«ï ¯®¤á¢¥âª¨
-
 
13
  f1 dd 0 ; á¯à ¢ª  ¯® á«®¢ã
-
 
14
  wwo db ? ; whole words only
-
 
15
  endc db ? ; ᨬ¢®« ª®­æ  ¢ë¤¥«¥­¨ï (wwo&4)
-
 
16
  color db ? ; ­®¬¥à 梥â 
-
 
17
ends
-
 
18
 
10
 
19
struct symbol
11
struct symbol
20
  c db ?    ;  +0 ᨬ¢®«
12
  c db ?    ;  +0 ᨬ¢®«
21
  col db ?  ;  +1 梥â
13
  col db ?  ;  +1 梥â
22
  perv dd ? ;  +2
14
  perv dd ? ;  +2
23
  next dd ? ;  +6 㪠§ â¥«¨
15
  next dd ? ;  +6 㪠§ â¥«¨
24
  tc dd ?   ; +10 ¢à¥¬. ᮧ¤ ­¨ï
16
  tc dd ?   ; +10 ¢à¥¬. ᮧ¤ ­¨ï
25
  td dd ?   ; +14 ¢à¥¬. 㤠«¥­¨ï
17
  td dd ?   ; +14 ¢à¥¬. 㤠«¥­¨ï
Line 26... Line 18...
26
ends
18
ends
27
 
19
 
Line 28... Line 20...
28
 
20
 
29
hed db 'TextEditor 25.08.10',0 ;¯®¤¯¨áì ®ª­ 
21
hed db 'TextEditor 22.08.11',0 ;¯®¤¯¨áì ®ª­ 
30
sc system_colors
22
sc system_colors
Line 80... Line 72...
80
  @@:
72
  @@:
81
  pop edi
73
  pop edi
82
  ret
74
  ret
Line 83... Line 75...
83
 
75
 
84
;description:
76
;description:
85
; äã­ªæ¨ï ®âªàëâ¨ï ä ©«  ¡¥§ ®ª®­  á®®¡é¥­¨ï
77
; äã­ªæ¨ï ®âªàëâ¨ï ä ©«  ¡¥§ ®ª­  á®®¡é¥­¨ï
86
align 4
78
align 4
87
but_no_msg_OpenFile:
79
but_no_msg_OpenFile:
88
	push eax ebx
80
	push eax ebx
89
	stdcall [ted_open_file], tedit0,run_file_70,[edit1.text]
81
	stdcall [ted_open_file], tedit0,run_file_70,[edit1.text]
Line 130... Line 122...
130
	call ted_messages_after_open_file
122
	call ted_messages_after_open_file
131
	.ret_f:
123
	.ret_f:
132
	popad
124
	popad
133
	ret
125
	ret
Line -... Line 126...
-
 
126
 
-
 
127
;description:
134
 
128
; ª®¯¨à®¢ ­¨¥ ¯ ¬ïâ¨
135
align 4
129
align 4
136
proc mem_copy, source:dword, destination:dword, len:dword
130
proc mem_copy, source:dword, destination:dword, len:dword
137
  push ecx esi edi
131
  push ecx esi edi
138
    cld
132
    cld
Line 142... Line 136...
142
    rep movsb
136
    rep movsb
143
  pop edi esi ecx
137
  pop edi esi ecx
144
  ret
138
  ret
145
endp
139
endp
Line -... Line 140...
-
 
140
 
-
 
141
;description:
146
 
142
; § ¯®«­¥­¨¥ ¯ ¬ï⨠¯à®¡¥« ¬¨
147
align 4
143
align 4
148
proc mem_spac, mem:dword, len:dword
144
proc mem_spac, mem:dword, len:dword
149
  push eax ecx edi
145
  push eax ecx edi
150
    cld
146
    cld
Line 194... Line 190...
194
ted_save_err_msg:
190
ted_save_err_msg:
195
	mov byte[msgbox_6.err],al
191
	mov byte[msgbox_6.err],al
196
	stdcall [mb_create],msgbox_6,thread ;message: Can-t save text file!
192
	stdcall [mb_create],msgbox_6,thread ;message: Can-t save text file!
197
	ret
193
	ret
Line -... Line 194...
-
 
194
 
-
 
195
;description:
198
 
196
; äã­ªæ¨ï ­ ¦ â¨ï ­  ª­®¯ªã [à¨¬¥­¨âì] ¢ ¯ ­¥«¨ ᨭ⠪á¨á 
199
align 4
197
align 4
200
proc ted_but_open_syntax, edit:dword
198
proc ted_but_open_syntax, edit:dword
201
  push ebx edi
199
  push ebx edi
Line 214... Line 212...
214
  @@:
212
  @@:
215
  pop edi ebx
213
  pop edi ebx
216
  ret
214
  ret
217
endp
215
endp
Line -... Line 216...
-
 
216
 
-
 
217
;description:
218
 
218
; ¢ë§®¢/áªàë⨥ ¯ ­¥«¨ ¯®¨áª 
219
align 4
219
align 4
220
proc ted_but_find ;¢ë§®¢/áªàë⨥ ¯ ­¥«¨ ¯®¨áª 
220
proc ted_but_find
221
  push edi
221
  push edi
Line 222... Line 222...
222
  mov edi,tedit0
222
  mov edi,tedit0
223
 
223
 
Line 239... Line 239...
239
align 4
239
align 4
240
ted_on_find_err:
240
ted_on_find_err:
241
	stdcall [mb_create],msgbox_7,thread ;message: Can not find text
241
	stdcall [mb_create],msgbox_7,thread ;message: Can not find text
242
	ret
242
	ret
Line -... Line 243...
-
 
243
 
-
 
244
;description:
243
 
245
; ª­®¯ª  [‡ ¬¥­¨âì] ­  ¯ ­¥«¨
244
align 4
246
align 4
-
 
247
but_replace:
245
but_replace:
248
	; ¯®ª  ­¥ ᤥ« ­®
Line -... Line 249...
-
 
249
	ret
-
 
250
 
246
  ret
251
;description:
247
 
252
; äã­ªæ¨ï ¯®¨áª  ¨­ä®à¬ æ¨¨ ¢ ᯨ᪥ ª«î祢ëå á«®¢
-
 
253
align 4
248
align 4
254
but_find_key_w:
Line -... Line 255...
-
 
255
	; ¯®ª  ­¥ ᤥ« ­®
-
 
256
	ret
249
but_find_key_w:
257
 
250
  ret
258
;description:
251
 
259
; ¢ë¤¥«¥­¨¥/áªàë⨥ ­¥¯¥ç â ¥¬ëå ᨬ¢®«®¢
252
align 4
260
align 4
Line 259... Line 267...
259
  stdcall [ted_draw],edi
267
  stdcall [ted_draw],edi
260
  pop edi
268
  pop edi
261
  ret
269
  ret
262
endp
270
endp
Line -... Line 271...
-
 
271
 
-
 
272
;description:
263
 
273
; ¢ë¤¥«¥­¨¥/áªàë⨥ ª«î祢ëå á«®¢
264
align 4
274
align 4
265
proc but_k_words_show, edit:dword
275
proc but_k_words_show, edit:dword
266
  push edi
276
  push edi
Line 275... Line 285...
275
  stdcall [ted_draw],edi
285
  stdcall [ted_draw],edi
276
  pop edi
286
  pop edi
277
  ret
287
  ret
278
endp
288
endp
Line -... Line 289...
-
 
289
 
-
 
290
;description:
279
 
291
; ¢ë§®¢/áªàë⨥ ¯ ­¥«¨ á ä ©« ¬¨ ᨭ⠪á¨á 
280
align 4
292
align 4
281
proc but_synt_show, edit:dword
293
proc but_synt_show, edit:dword
282
  push edi
294
  push edi