Subversion Repositories Kolibri OS

Rev

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

Rev 1610 Rev 1685
Line 10... Line 10...
10
; 01.06.09 - Š®¬¯®­¥­âë ¡¥àãâìáï ¨§ á¨á⥬­®© ¡¨¡«¨®â¥ª¨ 
10
; 01.06.09 - Š®¬¯®­¥­âë ¡¥àãâìáï ¨§ á¨á⥬­®© ¡¨¡«¨®â¥ª¨ 
11
; €¢â®à ¯à®£à ¬¬ë …¢â¨å®¢ Œ ªá¨¬ (Maxxxx32)
11
; €¢â®à ¯à®£à ¬¬ë …¢â¨å®¢ Œ ªá¨¬ (Maxxxx32)
12
; 24.07.2008  ®¡­®¢«¥­ editbox
12
; 24.07.2008  ®¡­®¢«¥­ editbox
13
; 01.02.07 - ®¡­®¢«ñ­ editbox
13
; 01.02.07 - ®¡­®¢«ñ­ editbox
14
; 31.01.07 - ¢áñ ⥯¥àì à¨áã¥âáï ®â­®á¨â¥«ì­® ª«¨¥­â᪮© ®¡« áâ¨
14
; 31.01.07 - ¢áñ ⥯¥àì à¨áã¥âáï ®â­®á¨â¥«ì­® ª«¨¥­â᪮© ®¡« áâ¨
-
 
15
; 02.11.10 - ˆá¯®«ì§ã¥âáï checkbox ¢¥àᨨ 2
Line 15... Line 16...
15
 
16
 
16
title equ 'Screenshooter v 1.0' ; ‡ £®«®¢®ª ®ª­ 
17
title equ 'Screenshooter v 1.0' ; ‡ £®«®¢®ª ®ª­ 
17
include '../../develop/libraries/box_lib/load_lib.mac'
18
include '../../develop/libraries/box_lib/load_lib.mac'
18
include '../../develop/libraries/box_lib/trunk/box_lib.mac'
19
include '../../develop/libraries/box_lib/trunk/box_lib.mac'
Line 138... Line 139...
138
	call	get_slot_n
139
	call	get_slot_n
139
	mov	[slot_n],ecx
140
	mov	[slot_n],ecx
Line 140... Line 141...
140
 
141
 
141
	; ãáâ ­ ¢«¨¢ ¥¬ ¬ áªã ᮡë⨩
142
	; ãáâ ­ ¢«¨¢ ¥¬ ¬ áªã ᮡë⨩
-
 
143
	set_events_mask (evm_redraw+evm_key+evm_button+evm_mouse+evm_ipc)
-
 
144
;¨­¨æ¨ «¨§ æ¨ï checkboxes
Line 142... Line 145...
142
	set_events_mask (evm_redraw+evm_key+evm_button+evm_mouse+evm_ipc)
145
	init_checkboxes2	check_boxes,check_boxes_end
143
 
146
 
144
; á ¯à룠¥¬ ¯à¨ ª ¦¤®© ¯¥à¥à¨á®¢ª¥
147
; á ¯à룠¥¬ ¯à¨ ª ¦¤®© ¯¥à¥à¨á®¢ª¥
145
red:
148
red:
Line 146... Line 149...
146
	get_procinfo app   ; ¯®«ãç ¥¬ ¨­ä®à¬ æ¨î ® ¯à®æ¥áá¥
149
	get_procinfo app   ; ¯®«ãç ¥¬ ¨­ä®à¬ æ¨î ® ¯à®æ¥áá¥
147
	get_sys_colors sc  ; ¯®«ãç ¥¬ á¨á⥬­ë¥ 梥â 
150
	get_sys_colors sc  ; ¯®«ãç ¥¬ á¨á⥬­ë¥ 梥â 
148
 
151
 
-
 
152
	; ãáâ ­ ¢«¨¢ ¥¬ á¨á⥬­ë¥ æ¢¥â  ã GUI ª®¬¯®­¥­â®¢
149
	; ãáâ ­ ¢«¨¢ ¥¬ á¨á⥬­ë¥ æ¢¥â  ã GUI ª®¬¯®­¥­â®¢
153
	txt_but_set_sys_color buttons,buttons_end,sc		 ; \
150
	txt_but_set_sys_color buttons,buttons_end,sc		 ; \
154
	labels_set_sys_color labels,labels_end,sc		 ; |
Line 151... Line 155...
151
	labels_set_sys_color labels,labels_end,sc		 ; |
155
	check_boxes_set_sys_color2 check_boxes,check_boxes_end,sc; |
152
	check_boxes_set_sys_color check_boxes,check_boxes_end,sc ; |
156
;	check_boxes_set_sys_color check_boxes,check_boxes_end,sc ; |
153
	edit_boxes_set_sys_color editboxes,editboxes_end,sc	 ; /
157
	edit_boxes_set_sys_color editboxes,editboxes_end,sc	 ; /
Line 200... Line 204...
200
	push	dword edit3
204
	push	dword edit3
201
	call	[edit_box_mouse]
205
	call	[edit_box_mouse]
202
	push	dword edit4
206
	push	dword edit4
203
	call	[edit_box_mouse]
207
	call	[edit_box_mouse]
204
;----------------------------------
208
;----------------------------------
-
 
209
	checkboxes_mouse2	check_boxes,check_boxes_end
205
	push	dword ch1
210
;	push	dword ch1
206
	call	[check_box_mouse]
211
;	call	[check_box_mouse]
207
	push	dword ch2
212
;	push	dword ch2
208
	call	[check_box_mouse]
213
;	call	[check_box_mouse]
209
	push	dword ch3
214
;	push	dword ch3
210
	call	[check_box_mouse]
215
;	call	[check_box_mouse]
211
	push	dword ch4
216
;	push	dword ch4
212
	call	[check_box_mouse]
217
;	call	[check_box_mouse]
213
	push	dword ch5
218
;	push	dword ch5
214
	call	[check_box_mouse]
219
;	call	[check_box_mouse]
215
	push	dword ch6
220
;	push	dword ch6
216
	call	[check_box_mouse]
221
;	call	[check_box_mouse]
217
	push	dword use_rect
222
;	push	dword use_rect
218
	call	[check_box_mouse]
223
;	call	[check_box_mouse]
219
;-----------------------------------
224
;-----------------------------------
220
;        mouse_check_boxes check_boxes,check_boxes_end
225
;        mouse_check_boxes check_boxes,check_boxes_end
221
;        mouse_edit_boxes editboxes,editboxes_end
226
;        mouse_edit_boxes editboxes,editboxes_end
222
	jmp	still
227
	jmp	still
223
ipc:
228
ipc:
Line 329... Line 334...
329
	call	draw_PathShow
334
	call	draw_PathShow
Line 330... Line 335...
330
 
335
 
331
	draw_txt_buttons buttons,buttons_end	 ; ª­®¯ª¨
336
	draw_txt_buttons buttons,buttons_end	 ; ª­®¯ª¨
332
;        draw_check_boxes check_boxes,check_boxes_end ; ä« ¦ª¨
337
;        draw_check_boxes check_boxes,check_boxes_end ; ä« ¦ª¨
333
;------ check all checkbox ---------
338
;------ check all checkbox ---------
334
	push	dword ch1
339
;	push	dword ch1
335
	call	[check_box_draw]
340
;	call	[check_box_draw]
336
	push	dword ch2
341
;	push	dword ch2
337
	call	[check_box_draw]	
342
;	call	[check_box_draw]	
338
	push	dword ch3
343
;	push	dword ch3
339
	call	[check_box_draw]
344
;	call	[check_box_draw]
340
	push	dword ch4
345
;	push	dword ch4
341
	call	[check_box_draw]
346
;	call	[check_box_draw]
342
	push	dword ch5
347
;	push	dword ch5
343
	call	[check_box_draw]
348
;	call	[check_box_draw]
344
	push	dword ch6
349
;	push	dword ch6
345
	call	[check_box_draw]
350
;	call	[check_box_draw]
346
	push	dword use_rect
351
;	push	dword use_rect
-
 
352
;	call	[check_box_draw]
-
 
353
 
-
 
354
	checkboxes_draw2	check_boxes,check_boxes_end
347
	call	[check_box_draw]
355
 
Line 348... Line 356...
348
;------ end check all checkbox ------
356
;------ end check all checkbox ------
349
 
357
 
Line 738... Line 746...
738
but6 txt_button 145,160,15,85,7,0,0,but_text.6,stop_autoshoot	   ; ®áâ ­®¢¨âì  ¢â®áêñ¬ªã
746
but6 txt_button 145,160,15,85,7,0,0,but_text.6,stop_autoshoot	   ; ®áâ ­®¢¨âì  ¢â®áêñ¬ªã
739
but7 txt_button 40,205,10,150,8,0,0,but_text.7,show_set_rect_window ; § ¤ âì ®¡« áâì
747
but7 txt_button 40,205,10,150,8,0,0,but_text.7,show_set_rect_window ; § ¤ âì ®¡« áâì
740
buttons_end:
748
buttons_end:
741
;---------------------------------------------------------------------
749
;---------------------------------------------------------------------
742
check_boxes:
750
check_boxes:
743
ch1 check_box 5,105,5,11,cl_white,0,0,ch_text.1,(ch_text.2-ch_text.1),ch_flag_en  ; ᢥà­ãâì ®ª­®
751
ch1 check_box2 (5 shl 16+11),(105 shl 16 +11),5,cl_white,0,0x80000000,ch_text.1,ch_flag_en+ch_flag_bottom	; ᢥà­ãâì ®ª­®
744
ch2 check_box 5,120,5,11,cl_white,0,0,ch_text.2,(ch_text.3-ch_text.2),ch_flag_en  ; § â¥¬ ᤥ« âì  ªâ¨¢­ë¬
752
ch2 check_box2 (5 shl 16+11),(120 shl 16 +11),5,cl_white,0,0x80000000,ch_text.2,ch_flag_en+ch_flag_bottom	; § â¥¬ ᤥ« âì  ªâ¨¢­ë¬
745
ch3 check_box 145,105,5,11,cl_white,0,0,ch_text.3,(ch_text.4-ch_text.3),ch_flag_en ; ¯®ª § âì á­¨¬®ª
753
ch3 check_box2 (1455 shl 16+11),(105 shl 16 +11),5,cl_white,0,0x80000000,ch_text.3,ch_flag_en+ch_flag_bottom	; ¯®ª § âì á­¨¬®ª
746
ch4 check_box 5,135,5,11,cl_white,0,0,ch_text.4,(ch_text.5-ch_text.4),ch_flag_en   ; § ¤¥à¦ª 
754
ch4 check_box2 (5 shl 16+11),(135 shl 16 +11),5,cl_white,0,0x80000000,ch_text.4,ch_flag_en+ch_flag_bottom	; § ¤¥à¦ª 
747
ch5 check_box 5,150,5,11,cl_white,0,0,ch_text.5,(ch_text.6-ch_text.5),ch_flag_en
755
ch5 check_box2 (5 shl 16+11),(150 shl 16 +11),5,cl_white,0,0x80000000,ch_text.5,ch_flag_en+ch_flag_bottom
748
ch6 check_box 5,165,5,11,cl_white,0,0,ch_text.6,(ch_text.7-ch_text.6),ch_flag_en
756
ch6 check_box2 (5 shl 16+11),(165 shl 16 +11),5,cl_white,0,0x80000000,ch_text.6,ch_flag_en+ch_flag_bottom
749
use_rect check_box 145,150,5,11,cl_white,0,0,ch_text.7,(ch_text.8-ch_text.7) ; ¨á¯. ®¡« áâì
757
use_rect check_box2 (145 shl 16+11),(150 shl 16 +11),5,cl_white,0,0x80000000,ch_text.7,ch_flag_bottom		; ¨á¯. ®¡« áâì
750
;  ¢â®­ã¬¥à æ¨ï
758
;  ¢â®­ã¬¥à æ¨ï
751
check_boxes_end:
759
check_boxes_end:
752
;---------------------------------------------------------------------
760
;---------------------------------------------------------------------
753
if lang eq ru
761
if lang eq ru
754
text:
762
text:
Line 771... Line 779...
771
.5 db ' ç âì  ¢â®áꥬªã',0
779
.5 db ' ç âì  ¢â®áꥬªã',0
772
.6 db 'Žáâ ­®¢¨âì  ¢â®áꥬªã',0
780
.6 db 'Žáâ ­®¢¨âì  ¢â®áꥬªã',0
773
.7 db '§ ¤ âì',0
781
.7 db '§ ¤ âì',0
Line 774... Line 782...
774
 
782
 
775
ch_text:
783
ch_text:
776
.1 db '‘¢¥à­ãâì ®ª­®';,0
784
.1 db '‘¢¥à­ãâì ®ª­®',0
777
.2 db '®ª § âì á­¨¬®ª';,0
785
.2 db '®ª § âì á­¨¬®ª',0
778
.3 db '§ â¥¬ ᤥ« âì  ªâ¨¢­ë¬';,0
786
.3 db '§ â¥¬ ᤥ« âì  ªâ¨¢­ë¬',0
779
.4 db '‡ ¤¥à¦ª :';,0
787
.4 db '‡ ¤¥à¦ª :',0
780
.5 db '€¢â®á®åà ­¥­¨¥';,0
788
.5 db '€¢â®á®åà ­¥­¨¥',0
781
.6 db '€¢â®­ã¬¥à æ¨ï, ­ ç¨­ ï á';,0
789
.6 db '€¢â®­ã¬¥à æ¨ï, ­ ç¨­ ï á',0
782
.7 db 'Ž¡« áâì'
-
 
Line 783... Line 790...
783
.8:
790
.7 db 'Ž¡« áâì',0
784
 
791
 
785
no_shoot db '‘­¨¬®ª ­¥ ᤥ« ­',0
792
no_shoot db '‘­¨¬®ª ­¥ ᤥ« ­',0
786
shooting db '”®â®£à ä¨à®¢ ­¨¥...',0
793
shooting db '”®â®£à ä¨à®¢ ­¨¥...',0
Line 818... Line 825...
818
.5 db 'Start autoshooting',0
825
.5 db 'Start autoshooting',0
819
.6 db 'Stop autoshooting',0
826
.6 db 'Stop autoshooting',0
820
.7 db 'Set',0
827
.7 db 'Set',0
Line 821... Line 828...
821
 
828
 
822
ch_text:
829
ch_text:
823
.1 db 'Minimize window';,0
830
.1 db 'Minimize window',0
824
.2 db 'Show photo';,0
831
.2 db 'Show photo',0
825
.3 db 'then make active';,0
832
.3 db 'then make active',0
826
.4 db 'Delay:';,0
833
.4 db 'Delay:',0
827
.5 db 'Autosave';,0
834
.5 db 'Autosave',0
828
.6 db 'Start numeration from';,0
835
.6 db 'Start numeration from',0
829
.7 db 'Area'
-
 
Line 830... Line 836...
830
.8:
836
.7 db 'Area',0
831
 
837
 
832
no_shoot db 'There is no photo',0
838
no_shoot db 'There is no photo',0
833
shooting db 'Photographing...',0
839
shooting db 'Photographing...',0