Rev 617 | Rev 824 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 617 | Rev 629 | ||
---|---|---|---|
Line 44... | Line 44... | ||
44 | mov ecx,[bot_ofs] |
44 | mov ecx,[bot_ofs] |
45 | shl ecx,16 |
45 | shl ecx,16 |
46 | add ecx,(3+17)*65536+15 |
46 | add ecx,(3+17)*65536+15 |
Line 47... | Line 47... | ||
47 | 47 | ||
48 | push ecx |
48 | push ecx |
49 | cmp [bot_dlg_mode2],0 |
49 | cmp [bot_mode2],0 |
50 | je @f |
50 | je @f |
51 | add ebx,18 |
51 | add ebx,18 |
52 | mcall 4,,[sc.work_text],s_2replace,s_2replace.size+1 |
52 | mcall 4,,[sc.work_text],s_2replace,s_2replace.size+1 |
53 | mov ecx,[esp] |
53 | mov ecx,[esp] |
Line 56... | Line 56... | ||
56 | 56 | ||
57 | mov ebx,[p_info.client_box.width] |
57 | mov ebx,[p_info.client_box.width] |
Line 58... | Line 58... | ||
58 | shl ebx,16 |
58 | shl ebx,16 |
59 | 59 | ||
60 | push 20003 |
60 | push 20003 |
61 | cmp [bot_dlg_mode2],0 |
61 | cmp [bot_mode2],0 |
62 | jne .draw.lp1 |
62 | jne .draw.lp1 |
63 | add ebx,-(2+6*(s_2find.size+2))*65536+6*(s_2find.size+2) |
63 | add ebx,-(2+6*(s_2find.size+2))*65536+6*(s_2find.size+2) |
Line 85... | Line 85... | ||
85 | mov dword[tbox.height],ecx |
85 | mov dword[tbox.height],ecx |
86 | call textbox.draw |
86 | call textbox.draw |
Line 87... | Line 87... | ||
87 | 87 | ||
Line 88... | Line 88... | ||
88 | pop ecx |
88 | pop ecx |
89 | 89 | ||
90 | cmp [bot_dlg_mode2],0 |
90 | cmp [bot_mode2],0 |
91 | je @f |
91 | je @f |
92 | mov ebp,tb_replace |
92 | mov ebp,tb_replace |
93 | mov eax,[p_info.client_box.width] |
93 | mov eax,[p_info.client_box.width] |
Line 112... | Line 112... | ||
112 | je ..tab |
112 | je ..tab |
113 | call textbox.key |
113 | call textbox.key |
114 | ret |
114 | ret |
Line 115... | Line 115... | ||
115 | 115 | ||
116 | ..tab: |
116 | ..tab: |
117 | cmp [bot_dlg_mode2],0 |
117 | cmp [bot_mode2],0 |
118 | je @f |
118 | je @f |
119 | mov eax,tb_replace |
119 | mov eax,tb_replace |
120 | cmp eax,[focused_tb] |
120 | cmp eax,[focused_tb] |
121 | jne .key.lp1 |
121 | jne .key.lp1 |
Line 143... | Line 143... | ||
143 | mov ecx,[bot_ofs] |
143 | mov ecx,[bot_ofs] |
144 | shl ecx,16 |
144 | shl ecx,16 |
145 | add ecx,(2+18)*65536+15 |
145 | add ecx,(2+18)*65536+15 |
Line 146... | Line 146... | ||
146 | 146 | ||
147 | push 20002 |
147 | push 20002 |
148 | cmp [bot_dlg_mode2],0 |
148 | cmp [bot_mode2],0 |
149 | jne .draw.lp1 |
149 | jne .draw.lp1 |
150 | add ebx,-(2+6*(s_2open.size+2))*65536+6*(s_2open.size+2) |
150 | add ebx,-(2+6*(s_2open.size+2))*65536+6*(s_2open.size+2) |
151 | push s_2open s_2open.size |
151 | push s_2open s_2open.size |
152 | jmp @f |
152 | jmp @f |
Line 158... | Line 158... | ||
158 | sub ebx,(6*(s_2cancel.size+2)+3)*65536 |
158 | sub ebx,(6*(s_2cancel.size+2)+3)*65536 |
159 | mov bx,6*(s_2cancel.size+2) |
159 | mov bx,6*(s_2cancel.size+2) |
160 | push 20001 s_2cancel s_2cancel.size |
160 | push 20001 s_2cancel s_2cancel.size |
161 | call define_3d_button |
161 | call define_3d_button |
Line 162... | Line 162... | ||
162 | 162 | ||
163 | cmp [bot_dlg_mode2], 2 ; exit-save dialog |
163 | cmp [bot_mode2], 2 ; exit-save dialog |
Line 164... | Line 164... | ||
164 | jne @f |
164 | jne @f |
165 | 165 | ||
166 | sub ebx,(6*(s_2save_no.size+2)+3)*65536 |
166 | sub ebx,(6*(s_2save_no.size+2)+3)*65536 |
Line 207... | Line 207... | ||
207 | mov ecx,[bot_ofs] |
207 | mov ecx,[bot_ofs] |
208 | shl ecx,16 |
208 | shl ecx,16 |
209 | add ecx,(2+18)*65536+15 |
209 | add ecx,(2+18)*65536+15 |
Line 210... | Line 210... | ||
210 | 210 | ||
211 | push 20002 |
211 | push 20002 |
212 | cmp [bot_dlg_mode2],0 |
212 | cmp [bot_mode2],0 |
213 | jne .draw.lp1 |
213 | jne .draw.lp1 |
214 | add ebx,-(2+6*(s_2open.size+2))*65536+6*(s_2open.size+2) |
214 | add ebx,-(2+6*(s_2open.size+2))*65536+6*(s_2open.size+2) |
215 | push s_2open s_2open.size |
215 | push s_2open s_2open.size |
216 | jmp @f |
216 | jmp @f |
Line 588... | Line 588... | ||
588 | ret |
588 | ret |
Line 589... | Line 589... | ||
589 | 589 | ||
590 | btn.bot.cancel: |
590 | btn.bot.cancel: |
591 | xor eax,eax |
591 | xor eax,eax |
- | 592 | mov [bot_mode],al |
|
592 | mov [bot_mode],al |
593 | mov [main_closing],al |
593 | mov [bot_dlg_height],eax |
594 | mov [bot_dlg_height],eax |
594 | mov [s_status],eax |
595 | mov [s_status],eax |
595 | call drawwindow |
596 | call drawwindow |
Line 596... | Line 597... | ||
596 | ret |
597 | ret |
597 | 598 | ||
598 | btn.bot.opensave: |
599 | btn.bot.opensave: |
599 | cmp [bot_dlg_mode2],0 |
600 | cmp [bot_mode2],0 |
600 | je .lp1 |
601 | je .lp1 |
601 | call save_file |
602 | call save_file |
602 | jnc @f |
603 | jnc @f |
Line 611... | Line 612... | ||
611 | mov [bot_dlg_height],eax |
612 | mov [bot_dlg_height],eax |
612 | call drawwindow |
613 | call drawwindow |
613 | ret |
614 | ret |
Line 614... | Line 615... | ||
614 | 615 | ||
615 | btn.bot.no: |
- | |
616 | call key.ctrl_f4.close |
616 | btn.bot.no: |
617 | xor eax,eax |
617 | xor eax,eax |
618 | mov [bot_mode],al |
618 | mov [bot_mode],al |
619 | mov [bot_dlg_height],eax |
619 | mov [bot_dlg_height],eax |
620 | mov [s_status],eax |
620 | mov [s_status],eax |
- | 621 | call drawwindow |
|
- | 622 | cmp [main_closing],0 |
|
- | 623 | je @f |
|
- | 624 | add [exit_tab_item],sizeof.TABITEM |
|
- | 625 | jmp key.alt_x.direct |
|
- | 626 | ret |
|
621 | call drawwindow |
627 | @@: call key.ctrl_f4.close |
Line 622... | Line 628... | ||
622 | ret |
628 | ret |
623 | 629 | ||
624 | btn.bot.find: |
630 | btn.bot.find: |
625 | movzx ecx,[tb_find.length] |
631 | movzx ecx,[tb_find.length] |
626 | mov [s_search.size],ecx |
632 | mov [s_search.size],ecx |
627 | mov esi,tb_find.text |
633 | mov esi,tb_find.text |
628 | mov edi,s_search |
634 | mov edi,s_search |
Line 629... | Line 635... | ||
629 | cld |
635 | cld |
630 | rep movsb |
636 | rep movsb |
631 | 637 | ||
632 | cmp [bot_dlg_mode2],0 |
638 | cmp [bot_mode2],0 |
633 | je @f |
639 | je @f |
634 | call search |
640 | call search |