forked from KolibriOS/kolibrios
KFar 0.63: saves sort mode; bugfix in editor
git-svn-id: svn://kolibrios.org@1045 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
e275f0a5d1
commit
f1c6ce150c
@ -2,4 +2,5 @@
|
|||||||
@echo lang fix en >lang.inc
|
@echo lang fix en >lang.inc
|
||||||
@fasm kfar.asm kfar
|
@fasm kfar.asm kfar
|
||||||
@erase lang.inc
|
@erase lang.inc
|
||||||
|
@kpack kfar
|
||||||
@pause
|
@pause
|
@ -1393,10 +1393,10 @@ editor_reserve_space:
|
|||||||
pop edx ecx
|
pop edx ecx
|
||||||
test eax, eax
|
test eax, eax
|
||||||
jz .nomem
|
jz .nomem
|
||||||
add [ebp + editor_data.memsize], ecx
|
|
||||||
sub eax, ebp
|
sub eax, ebp
|
||||||
add ebp, eax
|
add ebp, eax
|
||||||
add esi, eax
|
add esi, eax
|
||||||
|
add [ebp + editor_data.memsize], ecx
|
||||||
push ecx
|
push ecx
|
||||||
mov ecx, max_height
|
mov ecx, max_height
|
||||||
lea edi, [ebp + editor_data.linedata_start]
|
lea edi, [ebp + editor_data.linedata_start]
|
||||||
|
@ -7,8 +7,8 @@ memsize dd mem
|
|||||||
dd stacktop
|
dd stacktop
|
||||||
dd 0, app_path
|
dd 0, app_path
|
||||||
|
|
||||||
version equ '0.62'
|
version equ '0.63'
|
||||||
version_dword equ 0*10000h + 62
|
version_dword equ 0*10000h + 63
|
||||||
|
|
||||||
min_width = 54
|
min_width = 54
|
||||||
max_width = 255
|
max_width = 255
|
||||||
@ -203,6 +203,24 @@ start:
|
|||||||
cmp eax, 4
|
cmp eax, 4
|
||||||
ja @f
|
ja @f
|
||||||
mov [panel2_colmode], eax
|
mov [panel2_colmode], eax
|
||||||
|
@@:
|
||||||
|
push 0
|
||||||
|
push aLeftSortMode
|
||||||
|
push aPanels
|
||||||
|
push app_path
|
||||||
|
call [ini.get_int]
|
||||||
|
cmp eax, 14
|
||||||
|
jae @f
|
||||||
|
mov [panel1_sortmode], al
|
||||||
|
@@:
|
||||||
|
push 0
|
||||||
|
push aRightSortMode
|
||||||
|
push aPanels
|
||||||
|
push app_path
|
||||||
|
call [ini.get_int]
|
||||||
|
cmp eax, 14
|
||||||
|
jae @f
|
||||||
|
mov [panel2_sortmode], al
|
||||||
@@:
|
@@:
|
||||||
push nullstr
|
push nullstr
|
||||||
push 512
|
push 512
|
||||||
@ -401,7 +419,6 @@ exit:
|
|||||||
pop esi ecx
|
pop esi ecx
|
||||||
jmp .unload
|
jmp .unload
|
||||||
.unload_done:
|
.unload_done:
|
||||||
;if 0 ; commented due to bug in libini
|
|
||||||
cmp [ini.set_int], aIniSetInt
|
cmp [ini.set_int], aIniSetInt
|
||||||
jz .nosave
|
jz .nosave
|
||||||
push [panel1_colmode]
|
push [panel1_colmode]
|
||||||
@ -414,8 +431,19 @@ exit:
|
|||||||
push aPanels
|
push aPanels
|
||||||
push app_path
|
push app_path
|
||||||
call [ini.set_int]
|
call [ini.set_int]
|
||||||
|
movzx eax, [panel1_sortmode]
|
||||||
|
push eax
|
||||||
|
push aLeftSortMode
|
||||||
|
push aPanels
|
||||||
|
push app_path
|
||||||
|
call [ini.set_int]
|
||||||
|
movzx eax, [panel2_sortmode]
|
||||||
|
push eax
|
||||||
|
push aRightSortMode
|
||||||
|
push aPanels
|
||||||
|
push app_path
|
||||||
|
call [ini.set_int]
|
||||||
.nosave:
|
.nosave:
|
||||||
;end if
|
|
||||||
if CHECK_FOR_LEAKS
|
if CHECK_FOR_LEAKS
|
||||||
mov ecx, [panel1_files]
|
mov ecx, [panel1_files]
|
||||||
call pgfree
|
call pgfree
|
||||||
@ -8342,6 +8370,8 @@ aConfirmDeleteIncomplete db 'DeleteIncomplete',0
|
|||||||
aPanels db 'Panels',0
|
aPanels db 'Panels',0
|
||||||
aLeftViewMode db 'LeftViewMode',0
|
aLeftViewMode db 'LeftViewMode',0
|
||||||
aRightViewMode db 'RightViewMode',0
|
aRightViewMode db 'RightViewMode',0
|
||||||
|
aLeftSortMode db 'LeftSortMode',0
|
||||||
|
aRightSortMode db 'RightSortMode',0
|
||||||
|
|
||||||
aEditor db 'Editor',0
|
aEditor db 'Editor',0
|
||||||
aEolStyle db 'EOLStyle',0
|
aEolStyle db 'EOLStyle',0
|
||||||
|
@ -3,29 +3,46 @@ asm=/sys/TinyPad; AsmMenu1,AsmMenu2
|
|||||||
inc=/sys/TinyPad
|
inc=/sys/TinyPad
|
||||||
ini=/sys/TinyPad
|
ini=/sys/TinyPad
|
||||||
txt=/sys/TinyPad
|
txt=/sys/TinyPad
|
||||||
jpg=/sys/JpegView
|
jpg=/sys/media/kiv
|
||||||
jpeg=/sys/JpegView
|
jpeg=/sys/media/kiv
|
||||||
gif=/sys/GIFVIEW; GifMenu1,MenuAnimage
|
gif=/sys/media/GIFVIEW; GifMenu1,MenuAnimage
|
||||||
wav=/sys/AC97SND
|
wav=/sys/media/AC97SND
|
||||||
mp3=/sys/AC97SND
|
mp3=/sys/media/AC97SND
|
||||||
mid=/sys/MIDAMP
|
mid=/sys/media/MIDAMP
|
||||||
bmp=/sys/MV; BmpMenu1,MenuAnimage
|
bmp=/sys/media/kiv; BmpMenu1,MenuAnimage
|
||||||
png=/sys/@rcher
|
png=/sys/media/kiv
|
||||||
rtf=/sys/RtfRead
|
rtf=/sys/RtfRead
|
||||||
3ds=/sys/3d/view3ds
|
3ds=/sys/3d/view3ds
|
||||||
lif=/sys/demos/life2
|
lif=/sys/demos/life2
|
||||||
skn=/sys/desktop
|
skn=/sys/desktop
|
||||||
|
m3u=/sys/media/listplay
|
||||||
|
lap=/sys/media/listplay
|
||||||
|
asf=/sys/media/listplay
|
||||||
|
cvs=/sys/graph
|
||||||
|
obj=/sys/develop/cobj
|
||||||
|
nes=/sys/fceu
|
||||||
|
sna=/sys/e80
|
||||||
|
htm=/sys/HTMLv
|
||||||
|
html=/sys/HTMLv
|
||||||
|
|
||||||
[Menu]
|
[Menu]
|
||||||
AsmMenu1=&<26>¥¤ ªâ®à,/sys/TinyPad
|
AsmMenu1=&<26>¥¤ ªâ®à,/sys/TinyPad
|
||||||
AsmMenu2=&Š®¬¯¨«¨à®¢ âì,/sys/develop/fasm
|
AsmMenu2=&Š®¬¯¨«¨à®¢ âì,/sys/develop/fasm
|
||||||
GifMenu1=&<26>à®á¬®âà,/sys/GIFVIEW
|
GifMenu1=&<26>à®á¬®âà,/sys/media/GIFVIEW
|
||||||
BmpMenu1=&<26>à®á¬®âà,/sys/MV
|
BmpMenu1=&<26>à®á¬®âà,/sys/media/kiv
|
||||||
MenuAnimage=&<26>¥¤ ªâ®à,/sys/animage
|
MenuAnimage=&<26>¥¤ ªâ®à,/sys/media/animage
|
||||||
|
|
||||||
[Panels]
|
[Panels]
|
||||||
|
# <20>¥¦¨¬ë ®â®¡à ¦¥¨ï ä ©«®¢ ¯ ¥«ïå
|
||||||
|
# § 票ï ᮮ⢥âáâ¢ãîâ æ¨äà ¬ ¤«ï LCtrl+<1-4>
|
||||||
LeftViewMode=2
|
LeftViewMode=2
|
||||||
RightViewMode=2
|
RightViewMode=2
|
||||||
|
# <20>¥¦¨¬ë á®àâ¨à®¢ª¨ ä ©«®¢ ¯ ¥«ïå
|
||||||
|
# § ç¥¨ï ¨¬¥îâ ¢¨¤ 2 * N + M, £¤¥
|
||||||
|
# M = 0 - ¯àï¬ ï á®àâ¨à®¢ª , M = 1 - ®¡à â ï
|
||||||
|
# N = 0-6 ᮮ⢥âáâ¢ã¥â ०¨¬ã á®àâ¨à®¢ª¨ ¤«ï Ctrl+F<3-9>
|
||||||
|
LeftSortMode=0
|
||||||
|
RightSortMode=0
|
||||||
|
|
||||||
[Editor]
|
[Editor]
|
||||||
# ‘¨¬¢®«ë ª®æ áâப¨, ª®â®àë¥ ¡ã¤¥â ¢áâ ¢«ïâì
|
# ‘¨¬¢®«ë ª®æ áâப¨, ª®â®àë¥ ¡ã¤¥â ¢áâ ¢«ïâì
|
||||||
|
Loading…
Reference in New Issue
Block a user