Subversion Repositories Kolibri OS

Rev

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

Rev 7959 Rev 8533
Line 1... Line 1...
1
; í«¥¬¥­â TreeList ¤«ï ¡¨¡«¨®â¥ª¨ box_lib.obj
1
; í«¥¬¥­â TreeList ¤«ï ¡¨¡«¨®â¥ª¨ box_lib.obj
2
; ­  ª®¤ ¯à¨¬¥­¥­  GPL2 «¨æ¥­§¨ï
2
; ­  ª®¤ ¯à¨¬¥­¥­  GPL2 «¨æ¥­§¨ï
3
; ¯®á«¥¤­ïï ¬®¤¨ä¨ª æ¨ï 12.09.2017 IgorA
3
; ¯®á«¥¤­ïï ¬®¤¨ä¨ª æ¨ï 12.01.2021 IgorA
Line 4... Line 4...
4
 
4
 
5
 
5
 
6
struct TreeNode
6
struct TreeNode
Line 241... Line 241...
241
.mouse_next:
241
.mouse_next:
Line 242... Line 242...
242
 
242
 
243
		mcall SF_MOUSE_GET,SSF_BUTTON_EXT
243
		mcall SF_MOUSE_GET,SSF_BUTTON_EXT
244
		test eax,$01000000
244
		test eax,$01000000
-
 
245
		jz @f
-
 
246
		cmp tl_on_press,0
245
		jz @f
247
		je @f
-
 
248
		call tl_on_press
-
 
249
		add esp,8
246
		call tl_on_press
250
		popad
247
		ret
251
		ret
248
@@:	
252
@@:	
249
		bt eax,0 ;left mouse button press
253
		bt eax,0 ;left mouse button press
250
pop ebx eax
254
pop ebx eax
Line 297... Line 301...
297
		call tl_get_cur_node_index ;eax = node index
301
		call tl_get_cur_node_index ;eax = node index
298
		cmp eax,2
302
		cmp eax,2
299
		jl .no_open_close ;ªãàá®à á⮨⠭  ¯ãá⮬ ¬¥áâ¥, ¡¥§ 㧫®¢
303
		jl .no_open_close ;ªãàá®à á⮨⠭  ¯ãá⮬ ¬¥áâ¥, ¡¥§ 㧫®¢
300
		imul eax,sizeof.TreeNode
304
		imul eax,sizeof.TreeNode
301
		add eax,tl_data_nodes
305
		add eax,tl_data_nodes
302
		xor bx,bx
-
 
303
		mov bl,byte[eax+TreeNode.level] ;á®å࠭塞 ã஢¥­ì ⥪ã饣® 㧫 
306
		movzx bx,byte[eax+TreeNode.level] ;á®å࠭塞 ã஢¥­ì ⥪ã饣® 㧫 
304
		inc bx ;+ ¯®«¥ ¤«ï ªãàá®à 
307
		inc bx ;+ ¯®«¥ ¤«ï ªãàá®à 
Line 305... Line 308...
305
 
308
 
306
		cmp si,tl_img_cx
309
		cmp si,tl_img_cx
307
		jl .no_open_close ;¬ë襩 ¯®¯ «¨ ­  «¥¢®¥ ¯®«¥ ¤«ï ªãàá®à , £¤¥ â®ç­® ­¥â '+' ¨ '-'
310
		jl .no_open_close ;¬ë襩 ¯®¯ «¨ ­  «¥¢®¥ ¯®«¥ ¤«ï ªãàá®à , £¤¥ â®ç­® ­¥â '+' ¨ '-'
308
			mov eax,esi
311
			mov eax,esi
309
			xor edx,edx
-
 
310
			xor ecx,ecx
312
			xor edx,edx
311
			mov cx,tl_img_cx
313
			movzx ecx,tl_img_cx
Line 312... Line 314...
312
			div ecx
314
			div ecx
313
 
315