summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDan Everton <dan@iocaine.org>2007-05-20 10:04:39 +0000
committerDan Everton <dan@iocaine.org>2007-05-20 10:04:39 +0000
commit4c486ce948d0654028085dcbc467f4f04ce18db1 (patch)
tree49e888e2c487d9c8ef3fe15effddabe7adfff803 /apps
parent0434d56a0dd75ab0c4a8a100853ebb2809776d49 (diff)
downloadrockbox-4c486ce948d0654028085dcbc467f4f04ce18db1.tar.gz
rockbox-4c486ce948d0654028085dcbc467f4f04ce18db1.zip
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
Diffstat (limited to 'apps')
-rw-r--r--apps/lang/english.lang43
-rw-r--r--apps/onplay.c14
2 files changed, 57 insertions, 0 deletions
diff --git a/apps/lang/english.lang b/apps/lang/english.lang
index 502c9f8900..25acb517aa 100644
--- a/apps/lang/english.lang
+++ b/apps/lang/english.lang
@@ -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>
+
diff --git a/apps/onplay.c b/apps/onplay.c
index ef8ca9f157..d1098b7719 100644
--- a/apps/onplay.c
+++ b/apps/onplay.c
@@ -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) {