Rev 2507 | Rev 2574 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2507 | Rev 2523 | ||
---|---|---|---|
Line 7... | Line 7... | ||
7 | dd mem |
7 | dd mem |
8 | dd stacktop |
8 | dd stacktop |
9 | dd 0 |
9 | dd 0 |
10 | dd sys_path |
10 | dd sys_path |
Line -... | Line 11... | ||
- | 11 | ||
11 | 12 | ini_def_c_bkgnd equ 0 |
|
12 | color_border equ 0xff0000 |
13 | ini_def_c_border equ 0xff0000 |
13 | color_s0 equ 0xff ;ᨣ « 0 |
14 | color_s0 equ 0xff ;ᨣ « 0 |
14 | color_s1 equ 0xffffff ;ᨣ « 1 |
15 | color_s1 equ 0xffffff ;ᨣ « 1 |
15 | color_s2 equ 0xff00 ;â®çª ¡¥§ ¯¥à¥á¥ç¥¨ï |
16 | color_s2 equ 0xff00 ;â®çª ¡¥§ ¯¥à¥á¥ç¥¨ï |
16 | color_s3 equ 0xff0000 ;¢à¥¬¥®¥ § 票¥ ¤«ï á®åà ¥¨ï |
17 | color_s3 equ 0xff0000 ;¢à¥¬¥®¥ § 票¥ ¤«ï á®åà ¥¨ï |
Line -... | Line 18... | ||
- | 18 | color_caption equ 0x808080 |
|
- | 19 | ||
17 | color_caption equ 0x808080 |
20 | color_border dd ini_def_c_border |
Line 18... | Line 21... | ||
18 | 21 | ||
19 | debug equ 0 |
22 | debug equ 0 |
20 | 23 | ||
Line 48... | Line 51... | ||
48 | include 'dll.inc' |
51 | include 'dll.inc' |
49 | include 'le_pole.inc' |
52 | include 'le_pole.inc' |
50 | include 'le_signal.inc' |
53 | include 'le_signal.inc' |
Line 51... | Line 54... | ||
51 | 54 | ||
52 | @use_library_mem mem.Alloc,mem.Free,mem.ReAlloc,dll.Load |
55 | @use_library_mem mem.Alloc,mem.Free,mem.ReAlloc,dll.Load |
Line 53... | Line 56... | ||
53 | caption db '®£¨ç¥áª¨¥ í«¥¬¥âë 26.03.12',0 ;¯®¤¯¨áì ®ª |
56 | caption db '®£¨ç¥áª¨¥ í«¥¬¥âë 29.03.12',0 ;¯®¤¯¨áì ®ª |
54 | 57 | ||
55 | panel_0_coord_top equ 5 ;¢¥àåïï ª®®à¤¨ â 0-£® àï¤ ¯ ¥«¨ ¨áâà㬥⮢ |
58 | panel_0_coord_top equ 5 ;¢¥àåïï ª®®à¤¨ â 0-£® àï¤ ¯ ¥«¨ ¨áâà㬥⮢ |
56 | panel_1_coord_top equ 35 |
59 | panel_1_coord_top equ 35 |
Line 162... | Line 165... | ||
162 | 165 | ||
163 | run_file_70 FileInfoBlock |
166 | run_file_70 FileInfoBlock |
Line 164... | Line 167... | ||
164 | image_data dd 0 ;㪠§ â¥«ì ¢à¥¬¥ãî ¯ ¬ïâì. ¤«ï 㦥 ¯à¥®¡à §®¢ ¨ï ¨§®¡à ¦¥¨ï |
167 | image_data dd 0 ;㪠§ â¥«ì ¢à¥¬¥ãî ¯ ¬ïâì. ¤«ï 㦥 ¯à¥®¡à §®¢ ¨ï ¨§®¡à ¦¥¨ï |
165 | 168 | ||
166 | IMAGE_TOOLBAR_ICON_SIZE equ 16*16*3 |
169 | IMAGE_TOOLBAR_ICON_SIZE equ 16*16*3 |
Line 167... | Line 170... | ||
167 | IMAGE_TOOLBAR_SIZE equ IMAGE_TOOLBAR_ICON_SIZE*24 |
170 | IMAGE_TOOLBAR_SIZE equ IMAGE_TOOLBAR_ICON_SIZE*25 |
168 | image_data_toolbar dd 0 |
171 | image_data_toolbar dd 0 |
169 | 172 | ||
Line 215... | Line 218... | ||
215 | ;㤠«ï¥¬ ¢à¥¬¥ë© ¡ãä¥à image_data |
218 | ;㤠«ï¥¬ ¢à¥¬¥ë© ¡ãä¥à image_data |
216 | stdcall dword[img_destroy], dword[image_data] |
219 | stdcall dword[img_destroy], dword[image_data] |
217 | @@: |
220 | @@: |
218 | } |
221 | } |
Line -... | Line 222... | ||
- | 222 | ||
- | 223 | ini_name db 'log_el.ini',0 ;¨¬ï ä ©« |
|
- | 224 | ini_sec_color db 'Colors',0 |
|
- | 225 | key_color_bkgnd db 'background',0 |
|
- | 226 | key_color_border db 'border',0 |
|
- | 227 | key_color_s0 db 's0',0 |
|
219 | - | ||
- | 228 | key_color_s1 db 's1',0 |
|
Line 220... | Line 229... | ||
220 | 229 | key_color_s2 db 's2',0 |
|
221 | 230 | ||
222 | align 4 |
231 | align 4 |
223 | start: |
232 | start: |
Line 228... | Line 237... | ||
228 | jz @f |
237 | jz @f |
229 | mcall -1 ;exit not correct |
238 | mcall -1 ;exit not correct |
230 | @@: |
239 | @@: |
231 | mcall 48,3,sc,sizeof.system_colors |
240 | mcall 48,3,sc,sizeof.system_colors |
232 | mcall 40,0x27 |
241 | mcall 40,0x27 |
- | 242 | ||
- | 243 | ;*** áç¨âë¢ ¨¥ áâ஥ª ¨§ *.ini ä ©« |
|
- | 244 | copy_path ini_name,sys_path,file_name,0x0 |
|
- | 245 | ||
- | 246 | stdcall dword[ini_get_color],file_name,ini_sec_color,key_color_bkgnd,ini_def_c_bkgnd |
|
- | 247 | mov dword[buf_0.color],eax |
|
- | 248 | stdcall dword[ini_get_color],file_name,ini_sec_color,key_color_border,ini_def_c_border |
|
- | 249 | mov dword[color_border],eax |
|
- | 250 | stdcall dword[ini_get_color],file_name,ini_sec_color,key_color_s0,color_s0 |
|
- | 251 | mov dword[shem_colors],eax |
|
- | 252 | stdcall dword[ini_get_color],file_name,ini_sec_color,key_color_s1,color_s1 |
|
- | 253 | mov dword[shem_colors+4],eax |
|
- | 254 | stdcall dword[ini_get_color],file_name,ini_sec_color,key_color_s2,color_s2 |
|
- | 255 | mov dword[shem_colors+8],eax |
|
- | 256 | ||
- | 257 | ;*** ¯®¤£®â®¢ª ¤¨ «®£ |
|
233 | stdcall [OpenDialog_Init],OpenDialog_data ;¯®¤£®â®¢ª ¤¨ «®£ |
258 | stdcall [OpenDialog_Init],OpenDialog_data |
234 | stdcall [buf2d_create], buf_0 ;ᮧ¤ ¨¥ ¡ãä¥à |
259 | stdcall [buf2d_create], buf_0 ;ᮧ¤ ¨¥ ¡ãä¥à |
235 | load_image_file 'toolbar.png', image_data_toolbar,IMAGE_TOOLBAR_SIZE |
260 | load_image_file 'toolbar.png', image_data_toolbar,IMAGE_TOOLBAR_SIZE |
Line 236... | Line 261... | ||
236 | 261 | ||
237 | stdcall pole_init, pole |
262 | stdcall pole_init, pole |
Line 280... | Line 305... | ||
280 | stdcall [tl_cur_next], tree2 |
305 | stdcall [tl_cur_next], tree2 |
281 | add eax,size_el_opt |
306 | add eax,size_el_opt |
282 | loop @b |
307 | loop @b |
283 | stdcall [tl_cur_beg], tree2 |
308 | stdcall [tl_cur_beg], tree2 |
Line -... | Line 309... | ||
- | 309 | ||
284 | 310 | ;*** ãáâ ®¢ª ¢à¥¬¥¨ ¤«ï â ©¬¥à |
|
285 | mcall 26,9 |
311 | mcall 26,9 |
Line 286... | Line 312... | ||
286 | mov [last_time],eax |
312 | mov [last_time],eax |
287 | 313 | ||
Line 812... | Line 838... | ||
812 | mov ecx,(panel_2_coord_top shl 16)+20 |
838 | mov ecx,(panel_2_coord_top shl 16)+20 |
813 | mov edx,30 |
839 | mov edx,30 |
814 | mov esi,[sc.work_button] |
840 | mov esi,[sc.work_button] |
815 | int 0x40 |
841 | int 0x40 |
Line 816... | Line 842... | ||
816 | 842 | ||
817 | add ebx,25 shl 16 |
843 | add ebx,30 shl 16 |
818 | mov edx,31 |
844 | mov edx,31 |
Line 819... | Line 845... | ||
819 | int 0x40 |
845 | int 0x40 |
820 | 846 | ||
Line 828... | Line 854... | ||
828 | 854 | ||
829 | add ebx,25 shl 16 |
855 | add ebx,25 shl 16 |
830 | mov edx,34 |
856 | mov edx,34 |
Line -... | Line 857... | ||
- | 857 | int 0x40 |
|
- | 858 | ||
- | 859 | add ebx,25 shl 16 |
|
- | 860 | mov edx,35 |
|
831 | int 0x40 |
861 | int 0x40 |
832 | 862 | ||
833 | ; *** à¨á®¢ ¨¥ ¨ª®®ª ª®¯ª å *** |
863 | ; *** à¨á®¢ ¨¥ ¨ª®®ª ª®¯ª å *** |
834 | mov eax,7 |
864 | mov eax,7 |
835 | mov ebx,[image_data_toolbar] |
865 | mov ebx,[image_data_toolbar] |
Line 836... | Line 866... | ||
836 | mov ecx,(16 shl 16)+16 |
866 | mov ecx,(16 shl 16)+16 |
837 | mov edx,(7 shl 16)+panel_2_coord_top+2 ;¨ª®ª áâ५ |
867 | mov edx,(7 shl 16)+panel_2_coord_top+2 ;¨ª®ª áâ५ |
Line 838... | Line 868... | ||
838 | 868 | ||
- | 869 | add ebx,IMAGE_TOOLBAR_ICON_SIZE*19 |
|
- | 870 | int 0x40 |
|
- | 871 | ||
839 | add ebx,IMAGE_TOOLBAR_ICON_SIZE*19 |
872 | add ebx,IMAGE_TOOLBAR_ICON_SIZE |
- | 873 | add edx,(30 shl 16) ;icon - à¨á®¢ ¨¥ ¯à®¢®¤ |
|
840 | int 0x40 |
874 | int 0x40 |
Line 841... | Line 875... | ||
841 | 875 | ||
842 | add ebx,IMAGE_TOOLBAR_ICON_SIZE |
876 | add ebx,IMAGE_TOOLBAR_ICON_SIZE |
843 | add edx,(25 shl 16) ;icon pen 1 |
877 | add edx,(25 shl 16) ;icon - à¨á®¢ ¨¥ ¯¥à¥á¥ç¥¨© ¯à®¢®¤®¢ |
Line 844... | Line 878... | ||
844 | int 0x40 |
878 | int 0x40 |
845 | 879 | ||
846 | add ebx,IMAGE_TOOLBAR_ICON_SIZE |
880 | add ebx,IMAGE_TOOLBAR_ICON_SIZE |
Line 847... | Line 881... | ||
847 | add edx,(25 shl 16) ;icon pen 2 |
881 | add edx,(25 shl 16) ;icon - à¨á®¢ ¨¥ «®£¨ç¥áª¨å í«¥¬¥â®¢ |
848 | int 0x40 |
882 | int 0x40 |
849 | 883 | ||
Line 850... | Line 884... | ||
850 | add ebx,IMAGE_TOOLBAR_ICON_SIZE |
884 | add ebx,IMAGE_TOOLBAR_ICON_SIZE |
851 | add edx,(25 shl 16) ;icon pen 3 |
885 | add edx,(25 shl 16) ;icon - à¨á®¢ ¨¥ ¯®¤¯¨á¥© |
852 | int 0x40 |
886 | int 0x40 |
Line 976... | Line 1010... | ||
976 | jne @f |
1010 | jne @f |
977 | stdcall set_pen_mode,2,1,((9 shl 8)+9) shl 16 |
1011 | stdcall set_pen_mode,2,1,((9 shl 8)+9) shl 16 |
978 | @@: |
1012 | @@: |
979 | cmp ah,33 |
1013 | cmp ah,33 |
980 | jne @f |
1014 | jne @f |
981 | stdcall set_pen_mode,3,2,((15 shl 8)+9) shl 16 ;ãáâ ®¢ª ०¨¬ áâ¨à ¨ï ¯à®¢®¤ |
1015 | stdcall set_pen_mode,4,3,((9 shl 8)+9) shl 16 ;ãáâ ®¢ª ०¨¬ ᮧ¤ ¨ï í«¥¬¥â®¢ |
982 | @@: |
1016 | @@: |
983 | cmp ah,34 |
1017 | cmp ah,35 |
984 | jne @f |
1018 | jne @f |
985 | stdcall set_pen_mode,4,3,((9 shl 8)+9) shl 16 ;ãáâ ®¢ª ०¨¬ ᮧ¤ ¨ï í«¥¬¥â®¢ |
1019 | stdcall set_pen_mode,3,2,((15 shl 8)+9) shl 16 ;ãáâ ®¢ª ०¨¬ áâ¨à ¨ï ¯à®¢®¤ |
986 | @@: |
1020 | @@: |
987 | cmp ah,1 |
1021 | cmp ah,1 |
988 | jne still |
1022 | jne still |
989 | .exit: |
1023 | .exit: |
990 | stdcall [buf2d_delete],buf_0 |
1024 | stdcall [buf2d_delete],buf_0 |
Line 2307... | Line 2341... | ||
2307 | buf_0: dd 0 ; |
2341 | buf_0: dd 0 ; |
2308 | .l: dw 170 ;+4 left |
2342 | .l: dw 170 ;+4 left |
2309 | .t: dw panel_1_coord_top ;+6 top |
2343 | .t: dw panel_1_coord_top ;+6 top |
2310 | .w: dd 395 ;+8 w |
2344 | .w: dd 395 ;+8 w |
2311 | .h: dd 340 ;+12 h |
2345 | .h: dd 340 ;+12 h |
2312 | .color: dd 0 ;+16 color |
2346 | .color: dd ini_def_c_bkgnd ;+16 color |
2313 | db 24 ;+20 bit in pixel |
2347 | db 24 ;+20 bit in pixel |
Line 2314... | Line 2348... | ||
2314 | 2348 | ||
2315 | align 4 |
2349 | align 4 |
2316 | buf_font: ;¡ãä¥à á® èà¨ä⮬ |
2350 | buf_font: ;¡ãä¥à á® èà¨ä⮬ |