Subversion Repositories Kolibri OS

Rev

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

Rev 6362 Rev 6364
Line 10... Line 10...
10
	mov	eax,[procinfo+70] ;staus of window
10
	mov	eax,[procinfo+70] ;staus of window
11
	test eax,100b
11
	test eax,100b
12
	jne	still
12
	jne	still
Line 13... Line 13...
13
	
13
	
14
	call GetMouseCoordinats
-
 
15
;panel
-
 
16
	mov	edx,[Window_SizeX]
-
 
17
	sub	edx,5
-
 
18
 
-
 
19
	;cmp ebx,0
-
 
20
	;jle no_panel
-
 
21
 
-
 
22
	cmp ebx,ci_panel_y_pos
-
 
23
	jae no_panel
-
 
24
 
-
 
25
	cmp	eax,5
-
 
26
	jle	no_panel
-
 
27
 
-
 
28
	cmp	eax,edx
-
 
29
	jae	no_panel
-
 
30
 
-
 
31
	call GetMouseCoordinats
-
 
32
	jmp	panel_interraction
-
 
33
 
-
 
34
no_panel:
-
 
35
	cmp	[Panel_flag],0
-
 
36
	jz	no_redraw_panel
-
 
37
 
-
 
38
	jmp	panel_interraction
-
 
39
 
-
 
40
no_redraw_panel:
-
 
41
	call GetMouseCoordinats
14
	call GetMouseCoordinats
42
	mov	eax,[MouseX]
15
	mov	eax,[MouseX]
43
	mov	ebx,[MouseY]
16
	mov	ebx,[MouseY]
44
	mov	ecx,[WorkScreen_SizeX]
17
	mov	ecx,[WorkScreen_SizeX]
45
	mov	edx,[WorkScreen_SizeY]
18
	mov	edx,[WorkScreen_SizeY]
Line 56... Line 29...
56
mouse_scroll:
29
mouse_scroll:
57
	mov	[exit_from_work_arrea],1 ;mouse situated after work arrea
30
	mov	[exit_from_work_arrea],1 ;mouse situated after work arrea
58
;scrollers
31
;scrollers
59
	call	GetMouseClick
32
	call GetMouseClick
60
	cmp	eax,1
33
	cmp	eax,1
61
	jne	no_click
34
	jne	still
Line 62... Line 35...
62
 
35
 
63
	call	GetMouseCoordinats
36
	call	GetMouseCoordinats
64
;interraction with horizontal scroller
37
;interraction with horizontal scroller
65
	mov	eax,[Scroll1CoordinatX]
38
	mov	eax,[Scroll1CoordinatX]
Line 167... Line 140...
167
 
140
 
168
no_vertical:
141
no_vertical:
169
	call	CalculatePositionScreen
142
	call	CalculatePositionScreen
170
	call	draw_scrollers
143
	call	draw_scrollers
171
	call	MovePictureToWorkScreen
-
 
172
 
-
 
173
no_click:
144
	call	MovePictureToWorkScreen
Line 174... Line 145...
174
	jmp	still
145
	jmp	still
175
 
146
 
176
no_scrollers:
147
no_scrollers:
177
	mov	eax,[MouseX]
148
	mov	eax,[MouseX]
178
	mov	ebx,[MouseY]
149
	mov	ebx,[MouseY]
179
	mov	ecx,[Window_SizeX]
150
	mov	ecx,[Window_SizeX]
180
	mov	edx,[Window_SizeY]
151
	mov	edx,[Window_SizeY]
Line 181... Line 152...
181
	sub	ecx,36
152
	sub	ecx,ci_scroll_dim+ci_edit_wnd_border+5+ci_offs_skin_w
182
	sub	edx,35
153
	sub	edx,ci_scroll_dim+ci_edit_wnd_border+5+ci_offs_skin_h
Line 183... Line 154...
183
 
154
 
Line 194... Line 165...
194
	jae	not_work_arrea
165
	jae	not_work_arrea
195
	jmp	mouse_in_work_arrea
166
	jmp	mouse_in_work_arrea
Line 196... Line 167...
196
 
167
 
197
not_work_arrea:
168
not_work_arrea:
-
 
169
	mov	[exit_from_work_arrea],1
198
	mov	[exit_from_work_arrea],1
170
	mcall SF_MOUSE_GET, SSF_SET_CURSOR, 0 ;set standart cursor
Line 199... Line 171...
199
	jmp	still
171
	jmp	still
200
 
172
 
201
mouse_in_work_arrea:
173
mouse_in_work_arrea:
-
 
174
	call	GetScreenCordinats
-
 
175
	call	PrintMousePos
-
 
176
 
-
 
177
	;set cursor for current instrument
-
 
178
	mov eax,CursorsID
-
 
179
	mov ebx,[Current_instrument]
202
	call	GetScreenCordinats
180
	call set_cursor
203
	call	PrintMousePos
181
 
204
	call	GetMouseClick
182
	call	GetMouseClick
Line 205... Line 183...
205
	test	eax,eax
183
	test	eax,eax
206
	jz	no_use_instruments
184
	jz	no_use_instruments
207
 
185
 
208
	cmp	[Activate_instrument],0
186
	cmp	[Activate_instrument],0
209
	jnz	no_undo___
187
	jnz	no_undo___
210
;------------begin copy for undo-------------
188
;------------begin copy for undo-------------
211
;copy bufer number 2 to bufer number 0
189
;copy bufer_0 -> bufer_2
212
	mov edi,[PointerToCopyPicture2]
190
	mov edi,[PointerToCopyPicture2]
213
	mov esi,[PointerToPicture]
191
	mov esi,[PointerToPicture]
Line 219... Line 197...
219
	cld
197
	cld
220
	rep movsd
198
	rep movsd
221
	mov ecx,ebx
199
	mov ecx,ebx
222
	and ecx,3
200
	and ecx,3
223
	rep movsb
201
	rep movsb
224
	;call MovePictureToWorkScreen
-
 
225
;rotate bufers +1
202
;rotate bufers +1
226
	and	[number_undo],0 ;erase all undo
203
	and	[number_undo],0 ;erase all undo
227
	mov eax,[PointerToPicture]
204
	mov eax,[PointerToPicture]
228
	mov ebx,[PointerToCopyPicture]
205
	mov ebx,[PointerToCopyPicture]
229
	mov ecx,[PointerToCopyPicture2]
206
	mov ecx,[PointerToCopyPicture2]