Subversion Repositories Kolibri OS

Rev

Rev 1624 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1624 Rev 1651
Line 126... Line 126...
126
	mov	[focused_tb],eax
126
	mov	[focused_tb],eax
127
	call	.draw
127
	call	.draw
128
    @@: ret
128
    @@: ret
129
;-----------------------------------------------------------------------------
129
;-----------------------------------------------------------------------------
130
osdlg_handler:
130
osdlg_handler:
-
 
131
	cmp	[bot_mode2], 2
-
 
132
	je	@f
131
	mov	[open_dialog],1
133
	mov	[open_dialog],1
132
	ret
134
	ret
-
 
135
@@:
-
 
136
	cmp	al,1
-
 
137
	je	.draw
-
 
138
	cmp	al,2
-
 
139
	je	.key
-
 
140
	cmp	al,3
-
 
141
	je	botdlg.button
-
 
142
	ret
Line 133... Line -...
133
 
-
 
134
;	cmp	al,1
-
 
135
;	je	.draw
-
 
136
;	cmp	al,2
-
 
137
;	je	.key
-
 
138
;	cmp	al,3
-
 
139
;	je	botdlg.button
-
 
140
;	ret
-
 
141
 
143
 
142
;  .draw:
144
  .draw:
143
;	mov	ebx,[bot_ofs]
145
	mov	ebx,[bot_ofs]
144
;	add	ebx,(1+3)*65536+6
146
	add	ebx,(1+3)*65536+6
145
;	mcall	4,,[sc.work_text],s_2filename,s_2filename.size
147
	mcall	4,,[sc.work_text],s_2filename,s_2filename.size
146
;	mov	ebx,[p_info.client_box.width]
148
	mov	ebx,[p_info.client_box.width]
147
;	shl	ebx,16
149
	shl	ebx,16
148
;	mov	ecx,[bot_ofs]
150
	mov	ecx,[bot_ofs]
149
;	shl	ecx,16
151
	shl	ecx,16
150
;	add	ecx,(2+18)*65536+15
152
	add	ecx,(2+18)*65536+15
151
;
153
 
152
;	push	20002
154
	push	20002
153
;	cmp	[bot_mode2],0
155
	cmp	[bot_mode2],0
154
;	jne	.draw.lp1
156
	jne	.draw.lp1
155
;	add	ebx,-(2+6*(s_2open.size+2))*65536+6*(s_2open.size+2)
157
	add	ebx,-(2+6*(s_2open.size+2))*65536+6*(s_2open.size+2)
156
;	push	s_2open s_2open.size
158
	push	s_2open s_2open.size
157
;	jmp	@f
159
	jmp	@f
158
;  .draw.lp1:
160
  .draw.lp1:
159
;	add	ebx,-(2+6*(s_2save.size+2))*65536+6*(s_2save.size+2)
161
	add	ebx,-(2+6*(s_2save.size+2))*65536+6*(s_2save.size+2)
160
;	push	s_2save s_2save.size
162
	push	s_2save s_2save.size
161
 
163
 
162
;    @@: call	define_3d_button
164
    @@: call	define_3d_button
163
;	sub	ebx,(6*(s_2cancel.size+2)+3)*65536
165
	sub	ebx,(6*(s_2cancel.size+2)+3)*65536
164
;	mov	bx,6*(s_2cancel.size+2)
166
	mov	bx,6*(s_2cancel.size+2)
165
;	push	20001 s_2cancel s_2cancel.size
167
	push	20001 s_2cancel s_2cancel.size
166
;	call	define_3d_button
168
	call	define_3d_button
167
 
169
 
168
;	cmp	[bot_mode2], 2	    ; exit-save dialog
170
	cmp	[bot_mode2], 2	    ; exit-save dialog
169
;	jne	@f
171
	jne	@f
170
 
172
 
171
;	sub	ebx,(6*(s_2save_no.size+2)+3)*65536
173
	sub	ebx,(6*(s_2save_no.size+2)+3)*65536
172
;	mov	bx,6*(s_2save_no.size+2)
174
	mov	bx,6*(s_2save_no.size+2)
173
;	push	20007 s_2save_no s_2save_no.size
175
	push	20007 s_2save_no s_2save_no.size
174
;	call	define_3d_button
176
	call	define_3d_button
175
 
177
 
176
;    @@: mov	ebp,tb_opensave
178
    @@: mov	ebp,tb_opensave
177
;	mov	eax,[p_info.client_box.width]
179
	mov	eax,[p_info.client_box.width]
178
;	sub	eax,6*(s_2filename.size+1)+1
180
	sub	eax,6*(s_2filename.size+1)+1
179
;	add	eax,6*(s_2filename.size+1)*65536
181
	add	eax,6*(s_2filename.size+1)*65536
180
;	mov	dword[tbox.width],eax
182
	mov	dword[tbox.width],eax
181
;	add	ecx,-18*65536+1
183
	add	ecx,-18*65536+1
182
;	mov	dword[tbox.height],ecx
184
	mov	dword[tbox.height],ecx
183
;	call	textbox.draw
185
	call	textbox.draw
184
 
186
 
185
;	ret
187
	ret
186
 
188
 
187
;  .key:
189
  .key:
188
;	cmp	ebx,KEY_ESCAPE
190
	cmp	ebx,KEY_ESCAPE
189
;	je	btn.bot.cancel
191
	je	btn.bot.cancel
190
;	cmp	ebx,KEY_RETURN
192
	cmp	ebx,KEY_RETURN
191
;	je	btn.bot.opensave
193
	je	btn.bot.opensave
192
;	cmp	ebx,KEY_NUMRETURN
194
	cmp	ebx,KEY_NUMRETURN
193
;	je	btn.bot.opensave
195
	je	btn.bot.opensave
194
;	call	textbox.key
196
	call	textbox.key
195
;	ret
197
	ret
196
;-----------------------------------------------------------------------------
198
;-----------------------------------------------------------------------------
197
gotodlg_handler:
199
gotodlg_handler:
198
	cmp	al,1
200
	cmp	al,1
199
	je	.draw
201
	je	.draw