diff options
author | Dan Everton <dan@iocaine.org> | 2007-05-20 10:04:39 +0000 |
---|---|---|
committer | Dan Everton <dan@iocaine.org> | 2007-05-20 10:04:39 +0000 |
commit | 4c486ce948d0654028085dcbc467f4f04ce18db1 (patch) | |
tree | 49e888e2c487d9c8ef3fe15effddabe7adfff803 /apps | |
parent | 0434d56a0dd75ab0c4a8a100853ebb2809776d49 (diff) | |
download | rockbox-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.lang | 43 | ||||
-rw-r--r-- | apps/onplay.c | 14 |
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 @@ | |||
10820 | *: "Browse Cuesheet" | 10820 | *: "Browse Cuesheet" |
10821 | </voice> | 10821 | </voice> |
10822 | </phrase> | 10822 | </phrase> |
10823 | <phrase> | ||
10824 | id: LANG_COPYING | ||
10825 | desc: | ||
10826 | user: | ||
10827 | <source> | ||
10828 | *: "Copying..." | ||
10829 | </source> | ||
10830 | <dest> | ||
10831 | *: "Copying..." | ||
10832 | </dest> | ||
10833 | <voice> | ||
10834 | *: "Copying" | ||
10835 | </voice> | ||
10836 | </phrase> | ||
10837 | <phrase> | ||
10838 | id: LANG_DELETING | ||
10839 | desc: | ||
10840 | user: | ||
10841 | <source> | ||
10842 | *: "Deleting..." | ||
10843 | </source> | ||
10844 | <dest> | ||
10845 | *: "Deleting..." | ||
10846 | </dest> | ||
10847 | <voice> | ||
10848 | *: "Deleting" | ||
10849 | </voice> | ||
10850 | </phrase> | ||
10851 | <phrase> | ||
10852 | id: LANG_MOVING | ||
10853 | desc: | ||
10854 | user: | ||
10855 | <source> | ||
10856 | *: "Moving..." | ||
10857 | </source> | ||
10858 | <dest> | ||
10859 | *: "Moving..." | ||
10860 | </dest> | ||
10861 | <voice> | ||
10862 | *: "Moving" | ||
10863 | </voice> | ||
10864 | </phrase> | ||
10865 | |||
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) | |||
529 | 529 | ||
530 | struct text_message message={lines, 2}; | 530 | struct text_message message={lines, 2}; |
531 | struct text_message yes_message={yes_lines, 2}; | 531 | struct text_message yes_message={yes_lines, 2}; |
532 | |||
532 | if(gui_syncyesno_run(&message, &yes_message, NULL)!=YESNO_YES) | 533 | if(gui_syncyesno_run(&message, &yes_message, NULL)!=YESNO_YES) |
533 | return false; | 534 | return false; |
535 | |||
536 | gui_syncsplash(0, str(LANG_DELETING)); | ||
537 | |||
534 | int res; | 538 | int res; |
535 | if (is_dir) | 539 | if (is_dir) |
536 | { | 540 | { |
@@ -870,7 +874,16 @@ static bool clipboard_paste(void) | |||
870 | return false; | 874 | return false; |
871 | } | 875 | } |
872 | 876 | ||
877 | if (clipboard_is_copy) { | ||
878 | gui_syncsplash(0, str(LANG_COPYING)); | ||
879 | } | ||
880 | else | ||
881 | { | ||
882 | gui_syncsplash(0, str(LANG_MOVING)); | ||
883 | } | ||
884 | |||
873 | /* Now figure out what we're doing */ | 885 | /* Now figure out what we're doing */ |
886 | cpu_boost(true); | ||
874 | if (clipboard_selection_attr & ATTR_DIRECTORY) { | 887 | if (clipboard_selection_attr & ATTR_DIRECTORY) { |
875 | /* Recursion. Set up external stack */ | 888 | /* Recursion. Set up external stack */ |
876 | char srcpath[MAX_PATH]; | 889 | char srcpath[MAX_PATH]; |
@@ -893,6 +906,7 @@ static bool clipboard_paste(void) | |||
893 | success = clipboard_pastefile(clipboard_selection, target, | 906 | success = clipboard_pastefile(clipboard_selection, target, |
894 | clipboard_is_copy); | 907 | clipboard_is_copy); |
895 | } | 908 | } |
909 | cpu_boost(false); | ||
896 | 910 | ||
897 | /* Did it work? */ | 911 | /* Did it work? */ |
898 | if (success) { | 912 | if (success) { |