Subversion Repositories Kolibri OS

Rev

Rev 1706 | Rev 1714 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1706 Rev 1711
Line 1... Line 1...
1
align 4
1
align 4
2
draw_obj_info:
2
draw_obj_info: ;®ª­® ᮠ᢮©á⢠¬¨ ®¡ê¥ªâ 
3
	mov eax,13 ;rect
3
	mov eax,13 ;rect
4
	mov edx,WND_CAPT_COLOR
4
	mov edx,WND_CAPT_COLOR
5
	mov ebx,[wndObjI.left]
5
	mov ebx,[wndObjI.left]
6
	shl ebx,16
6
	shl ebx,16
7
	add ebx,[wndObjI.width]
7
	add ebx,[wndObjI.width]
Line 17... Line 17...
17
	shl ecx,16
17
	shl ecx,16
18
	add ecx,[recMain.top]
18
	add ecx,[recMain.top]
19
	mov edx,WND_CAPT_COLOR
19
	mov edx,WND_CAPT_COLOR
20
	int 0x40
20
	int 0x40
Line 21... Line 21...
21
 
21
 
22
	mov edx,[foc_obj] ;init icon pointers
22
	mov edx,[foc_obj] ;¡¥à¥¬ 㪠§ â¥«ì ­  ®¡ê¥ªâ
23
	cmp edx,0
23
	cmp edx,0
24
	je .exit_fun
24
	je .exit_fun
25
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
25
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
26
    pushad
26
    pushad
Line 41... Line 41...
41
    mov edi,WND_CAPT_COLOR
41
    mov edi,WND_CAPT_COLOR
42
    add edx,obj_opt.info-obj_opt
42
    add edx,obj_opt.info-obj_opt
43
    int 0x40
43
    int 0x40
Line 44... Line 44...
44
 
44
 
45
	mov eax,8 ;ª­®¯ª  ¤«ï á®åà ­¥­¨ï ¨§¬¥­¥­¨©
45
	mov eax,8 ;ª­®¯ª  ¤«ï á®åà ­¥­¨ï ¨§¬¥­¥­¨©
-
 
46
    mov ebx,[wndObjI.left]
-
 
47
	add ebx,119
-
 
48
    shl ebx,16
46
	mov ebx,125*65536+20
49
	add ebx,18
-
 
50
	mov ecx,[wndObjI.top]
-
 
51
	add ecx,1
-
 
52
	shl ecx,16
47
	mov ecx,161*65536+10
53
	add ecx,18
48
	mov edx,10
54
	mov edx,10
49
	mov esi,0xd040
55
	mov esi,0xd040
-
 
56
	int 0x40
-
 
57
 
-
 
58
	ror ebx,16 ;¢ëç¨á«ï¥¬ ª®®à¤¨­ âë ¤«ï ¨ª®­ª¨
-
 
59
	ror ecx,16
-
 
60
	and ebx,0xffff
-
 
61
	and ecx,0xffff
-
 
62
	inc ebx
-
 
63
	inc ecx
-
 
64
	stdcall draw_icon, 17,ebx,ecx ;17 - save
-
 
65
 
-
 
66
	mov edi,edit2
-
 
67
	.cycle:
-
 
68
		stdcall [edit_box_draw], edi ;à¨á㥬 ¯®«ï ᮠ᢮©á⢠¬¨ ®¡ê¥ªâ 
-
 
69
		add edi,ed_struc_size
-
 
70
		cmp edi,prop_wnd_edits_end
-
 
71
		jl .cycle
50
	int 0x40
72
 
51
    popad
73
    popad
52
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
 
53
	stdcall [edit_box_draw], dword edit2
-
 
54
	stdcall [edit_box_draw], dword edit3
-
 
55
	stdcall [edit_box_draw], dword edit4
-
 
56
	stdcall [edit_box_draw], dword edit5
-
 
57
	stdcall [edit_box_draw], dword edit6
-
 
58
	stdcall [edit_box_draw], dword edit7
-
 
59
	stdcall [edit_box_draw], dword edit8
-
 
Line 60... Line 74...
60
	stdcall [edit_box_draw], dword edit9
74
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
61
 
75
 
62
	xor ebx,ebx ;­®¬¥à ¯®«ï
76
	xor ebx,ebx ;­®¬¥à ¯®«ï
63
	.draw_column:
77
	.draw_column:
Line 120... Line 134...
120
but_element_change:
134
but_element_change:
121
	;foc_obj - 㪠§ â¥«ì ­  ¯®á«¥¤­¨© ¢ë¡à ­­ë© 㧥« ¢ tree2
135
	;foc_obj - 㪠§ â¥«ì ­  ¯®á«¥¤­¨© ¢ë¡à ­­ë© 㧥« ¢ tree2
122
	cmp dword[foc_obj],0
136
	cmp dword[foc_obj],0
123
	je @f
137
	je @f
124
		pushad
138
		pushad
125
		stdcall get_obj_win_param, 0,edit2
139
		xor ebx,ebx
126
		stdcall get_obj_win_param, 1,edit3
140
		mov edi,edit2
127
		stdcall get_obj_win_param, 2,edit4
141
		.cycle:
128
		stdcall get_obj_win_param, 3,edit5
142
			call get_obj_win_param
129
		stdcall get_obj_win_param, 4,edit6
143
			inc ebx
130
		stdcall get_obj_win_param, 5,edit7
144
			add edi,ed_struc_size
131
		stdcall get_obj_win_param, 6,edit8
145
			cmp edi,prop_wnd_edits_end
132
		stdcall get_obj_win_param, 7,edit9
146
			jl .cycle
133
		popad
147
		popad
134
	@@:
148
	@@:
135
	call draw_constructor ;®¡­®¢«ï¥¬ ®ª­® ª®­áâàãªâ®à 
149
	call draw_constructor ;®¡­®¢«ï¥¬ ®ª­® ª®­áâàãªâ®à 
136
	call draw_window
150
	call draw_window
137
	ret
151
	ret
Line -... Line 152...
-
 
152
 
-
 
153
;input:
-
 
154
; ebx - property column
138
 
155
; edi - pointer to property editbox
139
align 4
156
align 4
140
proc get_obj_win_param, col:dword, edit:dword
157
get_obj_win_param:
141
;pushad
-
 
142
		stdcall get_obj_text_col, [foc_obj], [col] ;edx - ᬥ饭¨¥ ¤«ï ⥪áâ 
-
 
143
		stdcall get_obj_text_len_col, [foc_obj], [col] ;eax - ¤«¨­­  ¯®«ï
-
 
144
		cld
-
 
145
		mov edi,[edit]
158
	pushad
-
 
159
		mov esi,ed_text
-
 
160
		stdcall get_obj_text_col, [foc_obj], ebx ;edx - ᬥ饭¨¥ ¤«ï ⥪áâ 
-
 
161
		stdcall get_obj_text_len_col, [foc_obj], ebx ;eax - ¤«¨­­  ¯®«ï
146
		mov esi,ed_text
162
		cld
147
		mov edi,edx
163
		mov edi,edx
148
		mov ecx,eax
164
		mov ecx,eax
-
 
165
		rep movsb
149
		rep movsb
166
	popad
150
	ret
-
 
151
;popad
-
 
Line 152... Line 167...
152
endp
167
	ret
153
 
168
 
154
;input:
169
;input:
155
;  obj - pointer to object
170
;  obj - pointer to object
Line 267... Line 282...
267
	add ebx,ecx
282
	add ebx,ecx
Line 268... Line 283...
268
 
283
 
269
	mov eax,7
284
	mov eax,7
270
	mov ecx,0x100010 ;ecx - size:16*16
285
	mov ecx,0x100010 ;ecx - size:16*16
271
	mov edx,[wndObjI.left]
286
	mov edx,[wndObjI.left]
272
	add edx,5
287
	add edx,3 ;®âáâ㯠®â «¥¢®£® ªà ï à ¬ª¨ ¤® ¨ª®­ª¨
273
	shl edx,16
288
	shl edx,16
274
	add edx,[coord_y]
289
	add edx,[coord_y]
275
	int 0x40
290
	int 0x40
276
	.end_fun:
291
	.end_fun: