Add splash messages while copying, moving, and deleting files. Also boost the CPU during move/copy since it seems to make things faster.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13441 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dan Everton 2007-05-20 10:04:39 +00:00
parent 0434d56a0d
commit 4c486ce948
2 changed files with 57 additions and 0 deletions

View file

@ -10820,3 +10820,46 @@
*: "Browse Cuesheet"
</voice>
</phrase>
<phrase>
id: LANG_COPYING
desc:
user:
<source>
*: "Copying..."
</source>
<dest>
*: "Copying..."
</dest>
<voice>
*: "Copying"
</voice>
</phrase>
<phrase>
id: LANG_DELETING
desc:
user:
<source>
*: "Deleting..."
</source>
<dest>
*: "Deleting..."
</dest>
<voice>
*: "Deleting"
</voice>
</phrase>
<phrase>
id: LANG_MOVING
desc:
user:
<source>
*: "Moving..."
</source>
<dest>
*: "Moving..."
</dest>
<voice>
*: "Moving"
</voice>
</phrase>

View file

@ -529,8 +529,12 @@ static bool delete_handler(bool is_dir)
struct text_message message={lines, 2};
struct text_message yes_message={yes_lines, 2};
if(gui_syncyesno_run(&message, &yes_message, NULL)!=YESNO_YES)
return false;
gui_syncsplash(0, str(LANG_DELETING));
int res;
if (is_dir)
{
@ -870,7 +874,16 @@ static bool clipboard_paste(void)
return false;
}
if (clipboard_is_copy) {
gui_syncsplash(0, str(LANG_COPYING));
}
else
{
gui_syncsplash(0, str(LANG_MOVING));
}
/* Now figure out what we're doing */
cpu_boost(true);
if (clipboard_selection_attr & ATTR_DIRECTORY) {
/* Recursion. Set up external stack */
char srcpath[MAX_PATH];
@ -893,6 +906,7 @@ static bool clipboard_paste(void)
success = clipboard_pastefile(clipboard_selection, target,
clipboard_is_copy);
}
cpu_boost(false);
/* Did it work? */
if (success) {