Subversion Repositories Kolibri OS

Rev

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

Rev 6885 Rev 6930
Line 144... Line 144...
144
	LoadIniSettings();
144
	LoadIniSettings();
145
	SystemDiscs.Get();
145
	SystemDiscs.Get();
146
	SetAppColors();
146
	SetAppColors();
147
	if (param)
147
	if (param)
148
	{
148
	{
-
 
149
		if (param[strlen(#param)-1]=='/') param[strlen(#param)-1]=NULL; //no "/" in the end
-
 
150
 
-
 
151
		if (dir_exists(#param)==true) 
-
 
152
		{
149
		strcpy(#path, #param);
153
			strcpy(#path, #param);
-
 
154
		}
-
 
155
		else
-
 
156
		{
150
		if (path[strlen(#path)-1]=='/') path[strlen(#path)-1]=NULL; //no "/" in the end
157
			notify(T_NOTIFY_APP_PARAM_WRONG);
-
 
158
		}
151
	}		
159
	}		
Line 152... Line 160...
152
	
160
	
153
	Open_Dir(#path,ONLY_OPEN);
161
	Open_Dir(#path,ONLY_OPEN);
154
	strcpy(#inactive_path, #path);
162
	strcpy(#inactive_path, #path);
Line 212... Line 220...
212
				{
220
				{
213
					//select file
221
					//select file
214
					if (mouse.key&MOUSE_LEFT) && (mouse.up)
222
					if (mouse.key&MOUSE_LEFT) && (mouse.up)
215
					{
223
					{
216
						if (files.ProcessMouse(mouse.x, mouse.y)) List_ReDraw();
224
						if (files.ProcessMouse(mouse.x, mouse.y)) List_ReDraw();
217
						else if (mouse.dblclick)) Open(0);
225
						else if (mouse.dblclick) Open(0);
218
					}
226
					}
219
					//file menu
227
					//file menu
220
					if (mouse.key&MOUSE_RIGHT)
228
					if (mouse.key&MOUSE_RIGHT)
221
					{
229
					{
222
						menu_call_mouse = 1;
230
						menu_call_mouse = 1;
Line 907... Line 915...
907
	}
915
	}
908
}
916
}
Line 909... Line 917...
909
 
917
 
910
void ShowOpenWithDialog()
918
void ShowOpenWithDialog()
911
{
919
{
912
	byte param[4097];
920
	byte open_param[4097];
913
	sprintf(#param,"~%s",#file_path);
921
	sprintf(#open_param,"~%s",#file_path);
914
	RunProgram("/sys/@open", #param);
922
	RunProgram("/sys/@open", #open_param);
Line 915... Line 923...
915
}
923
}
916
 
924
 
917
void NewElement(byte newf)
925
void NewElement(byte newf)