Subversion Repositories Kolibri OS

Compare Revisions

No changes between revisions

Regard whitespace Rev 7582 → Rev 7583

/programs/other/t_edit/t_button.inc
232,6 → 232,10
je @f
inc eax
@@:
bt dword[ch1.flags],1
jc @f
bts eax,30
@@:
ret
 
align 4
/programs/other/t_edit/t_data.inc
@@ -158,6 +162,10 @@
@@ -451,8 +459,12 @@
@@ -526,6 +538,8 @@
@@ -600,6 +614,8 @@
/programs/other/t_edit/t_draw.inc
217,35 → 217,43
;txtBLe db 27
 
align 4
proc draw_panels uses edi, edit:dword
proc draw_panels uses eax edx edi, edit:dword
mov edi,[edit]
cmp ted_panel_id,TED_PANEL_FIND
jne @f
mcall SF_DEFINE_BUTTON,,,0x80000000+200
mcall ,,,0x80000000+202
mcall ,,,0x80000000+203
mcall ,,,0x80000000+204
call p_find
jmp .end_f
@@:
cmp ted_panel_id,TED_PANEL_REPLACE
jne @f
mcall SF_DEFINE_BUTTON,,,0x80000000+200
mcall ,,,0x80000000+201
mcall ,,,0x80000000+204
call p_replace
jmp .end_f
@@:
cmp ted_panel_id,TED_PANEL_GOTO
jne @f
mcall SF_DEFINE_BUTTON,,,0x80000000+200
mcall ,,,0x80000000+201
mcall ,,,0x80000000+202
mcall ,,,0x80000000+203
call p_goto
jmp .end_f
@@:
cmp ted_panel_id,TED_PANEL_SYNTAX
jne @f
call p_syntax
jmp .end_f
@@:
push eax edx
mcall SF_DEFINE_BUTTON,,,0x80000000+200
mcall ,,,0x80000000+201
mcall SF_DEFINE_BUTTON,,,0x80000000+201
mcall ,,,0x80000000+202
mcall ,,,0x80000000+203
mcall ,,,0x80000000+204
pop edx eax
call p_syntax
;jmp .end_f
@@:
.end_f:
ret
endp
271,7 → 279,7
 
mov ecx,ted_wnd_t
shl ecx,16
add ecx,(93 shl 16)+20
add ecx,(111 shl 16)+20
mcall SF_DEFINE_BUTTON,(5 shl 16)+85,,201,[sc.work_button] ;201 - button id
 
mov ebx,(23 shl 16)+7
282,11 → 290,12
 
mov ecx,[sc.work_button_text]
or ecx,0x80000000
mov ebx,(15 shl 16)+100
mov ebx,(15 shl 16)+118
add ebx,ted_wnd_t
mcall ,,,txtFindNext
 
stdcall [option_box_draw], opt_grlist1
stdcall [check_box_draw], ch1
pop edx ecx ebx eax
ret
 
/programs/other/t_edit/t_edit.asm
70,6 → 70,8
stdcall [ted_init], tedit0
stdcall [tl_data_init], tree1
option_boxes_set_sys_color sc,opt_grlist1
init_checkboxes2 check_boxes,check_boxes_end
check_boxes_set_sys_color2 check_boxes,check_boxes_end,sc
 
; OpenDialog initialisation
stdcall [OpenDialog_Init],OpenDialog_data
243,6 → 245,7
jne @f
stdcall [edit_box_mouse], edit_find
stdcall [option_box_mouse], opt_grlist1
stdcall [check_box_mouse], ch1
@@:
cmp byte[tedit0.panel_id],TED_PANEL_REPLACE
jne @f