From 4c486ce948d0654028085dcbc467f4f04ce18db1 Mon Sep 17 00:00:00 2001 From: Dan Everton Date: Sun, 20 May 2007 10:04:39 +0000 Subject: 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 --- apps/lang/english.lang | 43 +++++++++++++++++++++++++++++++++++++++++++ apps/onplay.c | 14 ++++++++++++++ 2 files changed, 57 insertions(+) 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" + + id: LANG_COPYING + desc: + user: + + *: "Copying..." + + + *: "Copying..." + + + *: "Copying" + + + + id: LANG_DELETING + desc: + user: + + *: "Deleting..." + + + *: "Deleting..." + + + *: "Deleting" + + + + id: LANG_MOVING + desc: + user: + + *: "Moving..." + + + *: "Moving..." + + + *: "Moving" + + + 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) { -- cgit v1.2.3