Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 4809 → Rev 4808

/programs/system/notify3/TEST2.SH
File deleted
\ No newline at end of file
/programs/system/notify3/TEST.SH
1,7 → 1,8
#SHS
cd /sys/
@notify Simple notification
@notify "Simple notification, which will not be closed" -d
@notify Simple notification, which will not be closed
@notify "Multiline notification\nwith second line"
@notify "Multiline notification\nwith title" -t
@notify "Notify 3\nNotification with information" -tI
@notify "Error\nGreat error!!!" -tdE
@notify "Error\nGreat error!!!" -tdE
/programs/system/notify3/NOTIFY.ASM
28,7 → 28,6
jge c }
 
LINEH equ 12
ICONS equ 12
 
;=====================================================================
 
130,28 → 129,20
cmpe [eax], byte "t", .set_title
mov ebx, 1
cmpe [eax], byte "A", .set_icon
inc ebx
mov ebx, 2
cmpe [eax], byte "E", .set_icon
inc ebx
mov ebx, 3
cmpe [eax], byte "W", .set_icon
inc ebx
mov ebx, 4
cmpe [eax], byte "O", .set_icon
inc ebx
mov ebx, 5
cmpe [eax], byte "N", .set_icon
inc ebx
mov ebx, 6
cmpe [eax], byte "I", .set_icon
inc ebx
mov ebx, 7
cmpe [eax], byte "F", .set_icon
inc ebx
mov ebx, 8
cmpe [eax], byte "C", .set_icon
inc ebx
cmpe [eax], byte "M", .set_icon
inc ebx
cmpe [eax], byte "D", .set_icon
inc ebx
cmpe [eax], byte "H", .set_icon
inc ebx
cmpe [eax], byte "P", .set_icon
 
jmp .next_char
 
183,7 → 174,7
mcall 70, fi
 
mov edx, dword [buffer + 32]
shl edx, 2
shl edx, 1
stdcall mem.Alloc, edx
mov [img_data.rgb_obj], eax
 
200,7 → 191,7
add eax, 24
mov eax, [eax] ;; eax - data [argb]
 
mov ecx, 24 * 24 * ICONS
mov ecx, 24 * 24 * 8
alpha:
mov ebx, [eax]
shr ebx, 24
246,8 → 237,7
 
;; CALC WINDOW.Y
 
mcall 68, 22, sz_shname, 256 + 512, 4 + 1 ;OPEN_ALWAYS and WRITE
add eax, 512
mcall 68, 22, sz_shname, 256, 4 + 1 ;OPEN_ALWAYS and WRITE
mov [shm], eax
 
s_search:
551,21 → 541,17
 
sz_ifile db "/sys/notify3.png", 0
sz_shname db "notify-mem-v01", 0
sz_std db "'NOTIFY 3\n", \
sz_std db "'Notify 3. Keys list\n ", 10, \
"d - disable auto-closing\n", \
"t - title\n", \
"A - application\n", \
"E - error\n", \
"W - warning\n", \
"O - ok\n", \
"N - network\n", \
"I - info\n", \
"F - folder\n", \
"C - component\n", \
"M - mail\n", \
"D - download\n", \
"H - hard disk\n", \
"P - audio player", \
"t - first line is title\n", \
"A - application icon\n", \
"E - error icon\n", \
"W - warning icon\n", \
"O - ok icon\n", \
"N - network icon\n", \
"I - info icon\n", \
"F - folder icon\n", \
"C - component icon", \
"' -td", 0
 
;----------------------------
/programs/system/notify3/README.TXT
13,18 → 13,12
 
2.3 <KEYS>
d - disable auto-closing
t - title
 
2.3.1 ICONS:
A - application
E - error
W - warning
O - ok
N - network
I - info
F - folder
C - component
M - mail
D - download
H - hard disk
P - audio player
t - first line is title
A - application icon
E - error icon
W - warning icon
O - ok icon
N - network icon
I - info icon
F - folder icon
C - component icon