Subversion Repositories Kolibri OS

Rev

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

Rev 5651 Rev 5657
Line 187... Line 187...
187
	GetSystemDiscs();
187
	GetSystemDiscs();
188
	SetAppColors();
188
	SetAppColors();
189
	if (param)
189
	if (param)
190
	{
190
	{
191
		tmp = strlen(#path);
191
		tmp = strlen(#path);
192
		strncpy(#path, #param, tmp);
192
		strlcpy(#path, #param, tmp);
193
		$dec tmp
193
		$dec tmp
194
		if (path[tmp]!='/') DSBYTE[#path+tmp] = '/'; //add "/" to the end of the string
194
		if (path[tmp]!='/') DSBYTE[#path+tmp] = '/'; //add "/" to the end of the string
195
	}
195
	}
196
	else
196
	else
197
	{
197
	{
198
		strncpy(#path, "/rd/1/", 6);		
198
		strlcpy(#path, "/rd/1/", 6);		
199
	}
199
	}
200
	Open_Dir(#path,ONLY_OPEN);
200
	Open_Dir(#path,ONLY_OPEN);
201
	SetEventMask(1100111b);
201
	SetEventMask(1100111b);
202
	loop(){
202
	loop(){
203
		switch(WaitEvent())
203
		switch(WaitEvent())
Line 211... Line 211...
211
				}				
211
				}				
Line 212... Line 212...
212
				
212
				
Line 213... Line 213...
213
				mouse.get();
213
				mouse.get();
214
				
214
				
215
				if (!mouse.mkm) && (stats>0) stats = 0;
215
				if (!mouse.mkm) && (stats>0) stats = 0;
216
				if (mouse.mkm) && (stats==0)
216
				if (mouse.mkm) && (!stats)
217
				{
217
				{
218
					x_old = mouse.x;
218
					x_old = mouse.x;
219
					y_old = mouse.y;
219
					y_old = mouse.y;
Line 250... Line 250...
250
							Dir_Up();
250
							Dir_Up();
251
							stats = 0;
251
							stats = 0;
252
						}
252
						}
253
					}
253
					}
254
				}	
254
				}	
255
				if (files.MouseOver(mouse.x, mouse.y))&&((mouse.up)||(mouse.down)||(mouse.dblclick))
255
				if (files.MouseOver(mouse.x, mouse.y))&&((mouse.down)||(mouse.dblclick))
256
				{
256
				{
257
					//select/open file {
257
					//select/open file {
258
					if (mouse.key&MOUSE_LEFT)&&((mouse.down)||(mouse.dblclick))
258
					if (mouse.key&MOUSE_LEFT)&&((mouse.down)||(mouse.dblclick))
259
					{
259
					{
260
						if (mouse.y>=files.y)//&&(mouse.click)
260
						if (mouse.y>=files.y)//&&(mouse.click)