Subversion Repositories Kolibri OS

Rev

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

Rev 7878 Rev 7879
Line 155... Line 155...
155
	load_dll(libimg, #libimg_init,1);
155
	load_dll(libimg, #libimg_init,1);
156
}
156
}
Line 157... Line 157...
157
 
157
 
158
void handle_param()
158
void handle_param()
159
{
159
{
160
	//-p : just show file/folder properties dialog
160
	//-p  : just show file/folder properties dialog
161
	//-v : paste thread
161
	//-d  : delete file/folder
162
	//-d : delete thread
162
	//-v : paste files/folder from clipboard
163
	if (param) && (param[0]=='-') switch (param[1]) 
163
	if (param) && (param[0]=='-') switch (param[1]) 
164
	{
164
	{
165
		case 'p':
165
		case 'p':
166
			strcpy(#file_path, #param + 3);
166
			strcpy(#file_path, #param + 3);
167
			strcpy(#file_name, #param + strrchr(#param, '/'));
167
			strcpy(#file_name, #param + strrchr(#param, '/'));
168
			itdir = dir_exists(#file_path);
168
			itdir = dir_exists(#file_path);
169
			properties_dialog();
169
			properties_dialog();
170
			return;
-
 
171
		case 'v':
-
 
172
			cut_active = param[2] - '0';
-
 
173
			strcpy(#path, #param + 4);
-
 
174
			PasteThread();
-
 
175
			return;
170
			return;
176
		case 'd':
171
		case 'd':
177
			strcpy(#file_path, #param + 3);
172
			strcpy(#file_path, #param + 3);
178
			itdir = dir_exists(#file_path);
173
			itdir = dir_exists(#file_path);
179
			DisplayOperationForm(DELETE_FLAG);
174
			DisplayOperationForm(DELETE_FLAG);
180
			DeleteSingleElement();
175
			DeleteSingleElement();
-
 
176
			return;
-
 
177
		case 'v':
-
 
178
			cut_active = param[2] - '0';
-
 
179
			strcpy(#path, #param + 4);
-
 
180
			PasteThread();
181
			return;
181
			return;
182
	}
182
	}
Line 183... Line 183...
183
}
183
}
184
 
184