Rev 8567 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8567 | Rev 8576 | ||
---|---|---|---|
Line 34... | Line 34... | ||
34 | .HEIGHT = DISPLAY_PROCESSES * BUTTON.HEIGHT |
34 | .HEIGHT = DISPLAY_PROCESSES * BUTTON.HEIGHT |
35 | UNDERTABLE: |
35 | UNDERTABLE: |
36 | .X = PROCESS_TABLE.X |
36 | .X = PROCESS_TABLE.X |
37 | .Y = PROCESS_TABLE.Y + PROCESS_TABLE.HEIGHT + 20 |
37 | .Y = PROCESS_TABLE.Y + PROCESS_TABLE.HEIGHT + 20 |
38 | BUTTON: |
38 | BUTTON: |
- | 39 | .WIDTH = 120 |
|
39 | .HEIGHT = 16 + 4 |
40 | .HEIGHT = 16 + 4 |
40 | EDITBOX: |
41 | EDITBOX: |
41 | .X = CHECKBOX.X + 100 |
42 | .X = CHECKBOX.X + 100 |
42 | .Y = UNDERTABLE.Y + BUTTON.HEIGHT + 20 |
43 | .Y = UNDERTABLE.Y + BUTTON.HEIGHT + 20 |
43 | .WIDTH = 465 |
44 | .WIDTH = 465 |
Line 290... | Line 291... | ||
290 | ; edi - current slot |
291 | ; edi - current slot |
291 | ; [curposy] - y position |
292 | ; [curposy] - y position |
292 | ;output: |
293 | ;output: |
293 | ; edi - next slot (or -1 if no next slot) |
294 | ; edi - next slot (or -1 if no next slot) |
294 | ;registers corrupted! |
295 | ;registers corrupted! |
- | 296 | ||
295 | ;create terminate process button |
297 | ;putting 2 pixels to make the list of buttons visually solid |
296 | mov ecx,[curposy] |
298 | mov ecx,[curposy] |
- | 299 | mcall SF_PUT_PIXEL, PROCESS_TABLE.X, , 0x586468 |
|
- | 300 | add ebx, BUTTON.WIDTH |
|
- | 301 | mcall |
|
- | 302 | ||
- | 303 | ;create terminate process button |
|
- | 304 | ;mov ecx,[curposy] |
|
297 | shl ecx,16 |
305 | shl ecx,16 |
298 | mov cx, BUTTON.HEIGHT |
306 | mov cx, BUTTON.HEIGHT |
299 | mov edx,[index] |
307 | mov edx,[index] |
300 | add edx,11 |
308 | add edx,11 |
301 | mov esi,0xccddee |
309 | mov esi,0xaabbcc |
302 | test dword [index],1 |
310 | test dword [index],1 |
303 | jz @f |
311 | jz @f |
304 | mov esi,0xaabbcc |
312 | mov esi,0xccddee |
305 | @@: |
313 | @@: |
306 | add edx,0x80000000 ; delete a button |
314 | add edx,0x80000000 ; delete a button |
307 | mcall SF_DEFINE_BUTTON ; before create |
315 | mcall SF_DEFINE_BUTTON ; before create |
308 | sub edx,0x80000000 ; a new one below |
316 | sub edx,0x80000000 ; a new one below |
309 | mcall SF_DEFINE_BUTTON,<10,120> |
317 | mcall SF_DEFINE_BUTTON, |
310 | mov [btn_bacground_color],esi |
318 | mov [btn_bacground_color],esi |
311 | ;draw background for proccess information |
319 | ;draw background for proccess information |
312 | mov edx,0xEFEFF5 |
320 | mov edx,0xDDDddf |
313 | test dword [index],1 |
321 | test dword [index],1 |
314 | jz @f |
322 | jz @f |
315 | mov edx,0xffffff |
323 | mov edx,0xFFFfff |
316 | @@: |
324 | @@: |
317 | inc cx |
325 | ;inc cx |
Line 318... | Line 326... | ||
318 | 326 | ||
Line 319... | Line 327... | ||
319 | mcall SF_DRAW_RECT, <131, PROCESS_TABLE.WIDTH-131> |
327 | mcall SF_DRAW_RECT, <131, PROCESS_TABLE.WIDTH-131> |
320 | 328 | ||
Line 909... | Line 917... | ||
909 | dd 0 |
917 | dd 0 |
910 | db "/sys/end",0 |
918 | db "/sys/end",0 |
911 | ;------------------------------------------------------------------------------- |
919 | ;------------------------------------------------------------------------------- |
912 | strings: |
920 | strings: |
913 | if lang eq de |
921 | if lang eq de |
914 | .window_caption utf8z "Prozesse v0.2.2 - [Ctrl+Alt+Del]" |
922 | .window_caption utf8z "Prozesse v0.2.3 - [Ctrl+Alt+Del]" |
Line 915... | Line 923... | ||
915 | 923 | ||
916 | .process_name utf8z "NAME/BEENDEN" |
924 | .process_name utf8z "NAME/BEENDEN" |
917 | .ptid utf8z "PID/TID" |
925 | .ptid utf8z "PID/TID" |
918 | .cpu_usage_cycles utf8z "CPU(ZYKLEN)" |
926 | .cpu_usage_cycles utf8z "CPU(ZYKLEN)" |
919 | .cpu_usage_percent utf8z "CPU(%)" |
927 | .cpu_usage_percent utf8z "CPU(%)" |
920 | .memory_usage utf8z "SPEICHER" |
928 | .memory_usage utf8z "SPEICHER" |
921 | .window_stack_pos utf8z "W-STACK" |
929 | .window_stack_pos utf8z "W-STACK" |
922 | .window_position.x utf8z "W-POS-X" |
930 | .window_position.x utf8z " WIN-X" |
Line 923... | Line 931... | ||
923 | .window_position.y utf8z "W-POS-Y" |
931 | .window_position.y utf8z " WIN-Y" |
924 | 932 | ||
925 | .previous_page utf8z "SEITE ZURUECK" |
933 | .previous_page utf8z "SEITE ZURUECK" |
926 | .next_page utf8z "SEITE VOR" |
934 | .next_page utf8z "SEITE VOR" |
Line 932... | Line 940... | ||
932 | .KB utf8z " KB" |
940 | .KB utf8z " KB" |
933 | .MB utf8z " MB" |
941 | .MB utf8z " MB" |
934 | .GB utf8z " GB" |
942 | .GB utf8z " GB" |
935 | ;------------------------------------------------------------------------------- |
943 | ;------------------------------------------------------------------------------- |
936 | else if lang eq et |
944 | else if lang eq et |
937 | .window_caption utf8z "Protsessid v0.2.2 - [Ctrl+Alt+Del]" |
945 | .window_caption utf8z "Protsessid v0.2.3 - [Ctrl+Alt+Del]" |
Line 938... | Line 946... | ||
938 | 946 | ||
939 | .process_name utf8z "NIMI/LÕPETA" |
947 | .process_name utf8z "NIMI/LÕPETA" |
940 | .ptid utf8z "PID/TID" |
948 | .ptid utf8z "PID/TID" |
941 | .cpu_usage_cycles utf8z "CPU(TSÜKLID)" |
949 | .cpu_usage_cycles utf8z "CPU(TSÜKLID)" |
942 | .cpu_usage_percent utf8z "CPU(%)" |
950 | .cpu_usage_percent utf8z "CPU(%)" |
943 | .memory_usage utf8z "MÄLU" |
951 | .memory_usage utf8z "MÄLU" |
944 | .window_stack_pos utf8z "W-PUHVER" |
952 | .window_stack_pos utf8z "W-PUHVER" |
945 | .window_position.x utf8z "W-POS-X" |
953 | .window_position.x utf8z " WIN-X" |
Line 946... | Line 954... | ||
946 | .window_position.y utf8z "W-POS-Y" |
954 | .window_position.y utf8z " WIN-Y" |
947 | 955 | ||
948 | .previous_page utf8z "EELMINE LEHT" |
956 | .previous_page utf8z "EELMINE LEHT" |
949 | .next_page utf8z "JÄRGMINE LEHT" |
957 | .next_page utf8z "JÄRGMINE LEHT" |
Line 955... | Line 963... | ||
955 | .KB utf8z " KB" |
963 | .KB utf8z " KB" |
956 | .MB utf8z " MB" |
964 | .MB utf8z " MB" |
957 | .GB utf8z " GB" |
965 | .GB utf8z " GB" |
958 | ;------------------------------------------------------------------------------- |
966 | ;------------------------------------------------------------------------------- |
959 | else if lang eq ru |
967 | else if lang eq ru |
960 | .window_caption utf8z "Диспетчер процессов v0.2.2 - [Ctrl+Alt+Del]" |
968 | .window_caption utf8z "Диспетчер процессов v0.2.3 - [Ctrl+Alt+Del]" |
Line 961... | Line 969... | ||
961 | 969 | ||
962 | .process_name utf8z "ИМЯ/ЗАВЕРШИТЬ" |
970 | .process_name utf8z "ИМЯ/ЗАВЕРШИТЬ" |
963 | .ptid utf8z "PID/TID" |
971 | .ptid utf8z "PID/TID" |
964 | .cpu_usage_cycles utf8z "CPU(ТАКТЫ)" |
972 | .cpu_usage_cycles utf8z "CPU(ТАКТЫ)" |
965 | .cpu_usage_percent utf8z "CPU(%)" |
973 | .cpu_usage_percent utf8z "CPU(%)" |
966 | .memory_usage utf8z "ПАМЯТЬ" |
974 | .memory_usage utf8z "ПАМЯТЬ" |
967 | .window_stack_pos utf8z "W-STACK" |
975 | .window_stack_pos utf8z "W-STACK" |
968 | .window_position.x utf8z "W-POS-X" |
976 | .window_position.x utf8z " WIN-X" |
Line 969... | Line 977... | ||
969 | .window_position.y utf8z "W-POS-Y" |
977 | .window_position.y utf8z " WIN-Y" |
970 | 978 | ||
971 | .previous_page utf8z "ПРЕД. СТР." |
979 | .previous_page utf8z "ПРЕД. СТР." |
972 | .next_page utf8z "СЛЕД. СТР." |
980 | .next_page utf8z "СЛЕД. СТР." |
Line 978... | Line 986... | ||
978 | .KB utf8z " КБ" |
986 | .KB utf8z " КБ" |
979 | .MB utf8z " МБ" |
987 | .MB utf8z " МБ" |
980 | .GB utf8z " ГБ" |
988 | .GB utf8z " ГБ" |
981 | ;------------------------------------------------------------------------------- |
989 | ;------------------------------------------------------------------------------- |
982 | else if lang eq it |
990 | else if lang eq it |
983 | .window_caption utf8z "Gestore processi v0.2.2 - [Ctrl+Alt+Del]" |
991 | .window_caption utf8z "Gestore processi v0.2.3 - [Ctrl+Alt+Del]" |
Line 984... | Line 992... | ||
984 | 992 | ||
985 | .process_name utf8z "NOME-PROGRAMMA" |
993 | .process_name utf8z "NOME-PROGRAMMA" |
986 | .ptid utf8z "PID/TID" |
994 | .ptid utf8z "PID/TID" |
987 | .cpu_usage_cycles utf8z "CPU(CICLI)" |
995 | .cpu_usage_cycles utf8z "CPU(CICLI)" |
988 | .cpu_usage_percent utf8z "CPU(%)" |
996 | .cpu_usage_percent utf8z "CPU(%)" |
989 | .memory_usage utf8z "MEMORY" |
997 | .memory_usage utf8z "MEMORY" |
990 | .window_stack_pos utf8z "W-STACK" |
998 | .window_stack_pos utf8z "W-STACK" |
991 | .window_position.x utf8z "W-POS-X" |
999 | .window_position.x utf8z " WIN-X" |
Line 992... | Line 1000... | ||
992 | .window_position.y utf8z "W-POS-Y" |
1000 | .window_position.y utf8z " WIN-Y" |
993 | 1001 | ||
994 | .previous_page utf8z "INDIETRO" |
1002 | .previous_page utf8z "INDIETRO" |
995 | .next_page utf8z "AVANTI" |
1003 | .next_page utf8z "AVANTI" |
Line 1001... | Line 1009... | ||
1001 | .KB utf8z " KB" |
1009 | .KB utf8z " KB" |
1002 | .MB utf8z " MB" |
1010 | .MB utf8z " MB" |
1003 | .GB utf8z " GB" |
1011 | .GB utf8z " GB" |
1004 | ;------------------------------------------------------------------------------- |
1012 | ;------------------------------------------------------------------------------- |
1005 | else |
1013 | else |
1006 | .window_caption utf8z "Process manager v0.2.2 - [Ctrl+Alt+Del]" |
1014 | .window_caption utf8z "Process manager v0.2.3 - [Ctrl+Alt+Del]" |
Line 1007... | Line 1015... | ||
1007 | 1015 | ||
1008 | .process_name utf8z "NAME/TERMINATE" |
1016 | .process_name utf8z "NAME/TERMINATE" |
1009 | .ptid utf8z "PID/TID" |
1017 | .ptid utf8z "PID/TID" |
1010 | .cpu_usage_cycles utf8z "CPU(CYCLES)" |
1018 | .cpu_usage_cycles utf8z "CPU(CYCLES)" |
1011 | .cpu_usage_percent utf8z "CPU(%)" |
1019 | .cpu_usage_percent utf8z "CPU(%)" |
1012 | .memory_usage utf8z "MEMORY" |
1020 | .memory_usage utf8z "MEMORY" |
1013 | .window_stack_pos utf8z "W-STACK" |
1021 | .window_stack_pos utf8z "W-STACK" |
1014 | .window_position.x utf8z "W-POS-X" |
1022 | .window_position.x utf8z " WIN-X" |
Line 1015... | Line 1023... | ||
1015 | .window_position.y utf8z "W-POS-Y" |
1023 | .window_position.y utf8z " WIN-Y" |
1016 | 1024 | ||
1017 | 1025 |