forked from KolibriOS/kolibrios
various small fixes:
- icons.ini: fix icon in OpenDialog - assoc.ini: use CEDIT for txt and log - taskbar.ini: shoe min left button - kiv: show info about image dimensions in the title - rdsave: win_height considers skin_height git-svn-id: svn://kolibrios.org@9035 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
436e509ba2
commit
94b281e59d
@ -1,21 +1,3 @@
|
|||||||
[drives16]
|
|
||||||
r=58
|
|
||||||
f=5
|
|
||||||
t=51
|
|
||||||
h=50
|
|
||||||
b=50
|
|
||||||
u=57
|
|
||||||
c=19
|
|
||||||
|
|
||||||
[drives32]
|
|
||||||
r=49
|
|
||||||
f=3
|
|
||||||
t=36
|
|
||||||
h=50
|
|
||||||
b=50
|
|
||||||
u=50
|
|
||||||
c=50
|
|
||||||
|
|
||||||
[icons16]
|
[icons16]
|
||||||
<dir>=0
|
<dir>=0
|
||||||
<up>=1
|
<up>=1
|
||||||
@ -266,3 +248,21 @@ mgb=121
|
|||||||
txt=122
|
txt=122
|
||||||
rtf=122
|
rtf=122
|
||||||
docx=122
|
docx=122
|
||||||
|
|
||||||
|
[drives16]
|
||||||
|
r=58
|
||||||
|
f=5
|
||||||
|
t=51
|
||||||
|
h=50
|
||||||
|
b=50
|
||||||
|
u=57
|
||||||
|
c=19
|
||||||
|
|
||||||
|
[drives32]
|
||||||
|
r=49
|
||||||
|
f=3
|
||||||
|
t=36
|
||||||
|
h=50
|
||||||
|
b=50
|
||||||
|
u=50
|
||||||
|
c=50
|
@ -88,8 +88,8 @@ next=$CodeEdit
|
|||||||
|
|
||||||
kf=/sys/KF_VIEW
|
kf=/sys/KF_VIEW
|
||||||
|
|
||||||
txt=$Quark
|
txt=$CodeEdit
|
||||||
log=$Quark
|
log=$CodeEdit
|
||||||
|
|
||||||
ini=$CodeEdit
|
ini=$CodeEdit
|
||||||
c=$CodeEdit
|
c=$CodeEdit
|
||||||
|
@ -8,7 +8,7 @@ ButtonBottOffset=3
|
|||||||
[Flags]
|
[Flags]
|
||||||
SoftenUp=1
|
SoftenUp=1
|
||||||
SoftenDown=1
|
SoftenDown=1
|
||||||
MinLeftButton=0
|
MinLeftButton=1
|
||||||
MinRightButton=0
|
MinRightButton=0
|
||||||
MenuButton=1
|
MenuButton=1
|
||||||
RunApplButtons=1
|
RunApplButtons=1
|
||||||
@ -33,7 +33,7 @@ AltTab=255,128,0
|
|||||||
End=/sys/END
|
End=/sys/END
|
||||||
Menu=/sys/@MENU
|
Menu=/sys/@MENU
|
||||||
Run=/sys/RUN
|
Run=/sys/RUN
|
||||||
PrnScr=/sys/SCRSHOOT
|
PrnScr=/sys/easyshot
|
||||||
Clock=/sys/CALENDAR
|
Clock=/sys/CALENDAR
|
||||||
CpuUsage=/sys/GMON
|
CpuUsage=/sys/GMON
|
||||||
MouseEmul=/sys/MOUSEMUL
|
MouseEmul=/sys/MOUSEMUL
|
||||||
|
@ -1235,11 +1235,11 @@ proc draw_toolbar uses ebx esi edi
|
|||||||
mcall
|
mcall
|
||||||
mov ebx, [toolbar_abs_left]
|
mov ebx, [toolbar_abs_left]
|
||||||
add ebx, [toolbar.width]
|
add ebx, [toolbar.width]
|
||||||
sub ebx, 25*5+10
|
sub ebx, 25*4+10
|
||||||
shl ebx, 16
|
shl ebx, 16
|
||||||
add ebx, [toolbar_abs_left]
|
add ebx, [toolbar_abs_left]
|
||||||
add ebx, [toolbar.width]
|
add ebx, [toolbar.width]
|
||||||
sub ebx, 25*5+10
|
sub ebx, 25*4+10
|
||||||
mcall
|
mcall
|
||||||
|
|
||||||
mov ebx, [toolbar_abs_left]
|
mov ebx, [toolbar_abs_left]
|
||||||
@ -1261,7 +1261,7 @@ proc draw_toolbar uses ebx esi edi
|
|||||||
mcall , , , 'scl'+40000000h
|
mcall , , , 'scl'+40000000h
|
||||||
mov ebx, [toolbar_abs_left]
|
mov ebx, [toolbar_abs_left]
|
||||||
add ebx, [toolbar.width]
|
add ebx, [toolbar.width]
|
||||||
sub ebx, 25*5+10
|
sub ebx, 25*4+10
|
||||||
add ebx, 5
|
add ebx, 5
|
||||||
shl ebx, 16
|
shl ebx, 16
|
||||||
mov bl, 21
|
mov bl, 21
|
||||||
@ -1296,7 +1296,7 @@ proc draw_toolbar uses ebx esi edi
|
|||||||
call draw_scale_button
|
call draw_scale_button
|
||||||
mov edx, [client_abs_left]
|
mov edx, [client_abs_left]
|
||||||
add edx, [client.width]
|
add edx, [client.width]
|
||||||
sub edx, 25*5+4
|
sub edx, 25*4+4
|
||||||
shl edx, 16
|
shl edx, 16
|
||||||
add edx, [client_abs_top]
|
add edx, [client_abs_top]
|
||||||
add edx, 5
|
add edx, 5
|
||||||
@ -1304,11 +1304,9 @@ proc draw_toolbar uses ebx esi edi
|
|||||||
add edx, 25*65536
|
add edx, 25*65536
|
||||||
mcall , buttons+flipvertbtn*20
|
mcall , buttons+flipvertbtn*20
|
||||||
add edx, 30*65536
|
add edx, 30*65536
|
||||||
mcall , buttons+rotcwbtn*20
|
|
||||||
add edx, 25*65536
|
|
||||||
mcall , buttons+rotccwbtn*20
|
mcall , buttons+rotccwbtn*20
|
||||||
add edx, 25*65536
|
add edx, 25*65536
|
||||||
mcall , buttons+rot180btn*20
|
mcall , buttons+rotcwbtn*20
|
||||||
|
|
||||||
.quit:
|
.quit:
|
||||||
ret
|
ret
|
||||||
@ -1624,9 +1622,11 @@ endp
|
|||||||
|
|
||||||
|
|
||||||
; fills window_header with window title
|
; fills window_header with window title
|
||||||
; window title is generated as '[k/n] <filename> - Kolibri Image Viewer'
|
; window title is generated as '[k/n] <filename> (WxH) - Kolibri Image Viewer'
|
||||||
; n = total files in dir
|
; n = total files in dir
|
||||||
; k = current file index
|
; k = current file index
|
||||||
|
; W = current image width
|
||||||
|
; H = current image height
|
||||||
proc generate_window_header
|
proc generate_window_header
|
||||||
push eax ebx esi edi
|
push eax ebx esi edi
|
||||||
mov esi, [last_name_component]
|
mov esi, [last_name_component]
|
||||||
@ -1661,6 +1661,23 @@ proc generate_window_header
|
|||||||
pop edi esi ebx eax
|
pop edi esi ebx eax
|
||||||
ret
|
ret
|
||||||
@@:
|
@@:
|
||||||
|
; add size
|
||||||
|
mov word[edi], ' ('
|
||||||
|
add edi, 2
|
||||||
|
|
||||||
|
mov ebx, [orig_image]
|
||||||
|
mov eax, [ebx+Image.Width]
|
||||||
|
call bin2dec
|
||||||
|
|
||||||
|
mov byte[edi], 'x'
|
||||||
|
inc edi
|
||||||
|
|
||||||
|
mov eax, [ebx+Image.Height]
|
||||||
|
call bin2dec
|
||||||
|
|
||||||
|
mov byte[edi], ')'
|
||||||
|
inc edi
|
||||||
|
|
||||||
mov esi, s_header
|
mov esi, s_header
|
||||||
@@:
|
@@:
|
||||||
lodsb
|
lodsb
|
||||||
|
@ -338,9 +338,13 @@ draw_window:
|
|||||||
mcall 48,3,sc,sizeof.system_colors
|
mcall 48,3,sc,sizeof.system_colors
|
||||||
mcall 12,1
|
mcall 12,1
|
||||||
|
|
||||||
|
mcall 48,4
|
||||||
|
mov ecx,200*65536+111
|
||||||
|
add ecx,eax
|
||||||
|
|
||||||
mov edx,[sc.work]
|
mov edx,[sc.work]
|
||||||
or edx,0x34000000
|
or edx,0x34000000
|
||||||
mcall 0,<200,400>,<200,130>, , ,title
|
mcall 0,<200,400>,, , ,title
|
||||||
|
|
||||||
;buttons
|
;buttons
|
||||||
mcall 8,<198,70>,<68,20>,1,[sc.work_button]
|
mcall 8,<198,70>,<68,20>,1,[sc.work_button]
|
||||||
|
Loading…
Reference in New Issue
Block a user