summaryrefslogtreecommitdiff
path: root/apps/plugins/text_editor.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-07-26 08:04:28 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-07-26 08:04:28 +0000
commitcafffb5b6562a129da8c03dc4e9d0f0ce6c6e114 (patch)
treef17c179828db8e8565ad4405619720161b93162c /apps/plugins/text_editor.c
parent6f66f0407ffe94aab66f1e5b0f07357a2a3dadd5 (diff)
downloadrockbox-cafffb5b6562a129da8c03dc4e9d0f0ce6c6e114.zip
rockbox-cafffb5b6562a129da8c03dc4e9d0f0ce6c6e114.tar.gz
rockbox-cafffb5b6562a129da8c03dc4e9d0f0ce6c6e114.tar.bz2
rockbox-cafffb5b6562a129da8c03dc4e9d0f0ce6c6e114.tar.xz
FS#5809:
add playback menu to text editor, make the filename saving in rockpaint a bit better, automatically adds .bmp if its not there git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13993 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/text_editor.c')
-rw-r--r--apps/plugins/text_editor.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/apps/plugins/text_editor.c b/apps/plugins/text_editor.c
index 5737271..3c9bf7d 100644
--- a/apps/plugins/text_editor.c
+++ b/apps/plugins/text_editor.c
@@ -18,6 +18,7 @@
****************************************************************************/
#include "plugin.h"
#include "action.h"
+#include "playback_control.h"
#if PLUGIN_BUFFER_SIZE > 0x45000
#define MAX_CHARS 0x40000 /* 128 kiB */
@@ -465,27 +466,31 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
if (changed)
{
MENUITEM_STRINGLIST(menu, "Do What?", NULL,
- "Return", "Save Changes",
+ "Return",
+ "Show Playback Menu", "Save Changes",
"Save As...", "Save and Exit",
"Ignore Changes and Exit");
switch (rb->do_menu(&menu, NULL))
{
case 0:
break;
- case 1: //save to disk
+ case 1:
+ playback_control(rb);
+ break;
+ case 2: //save to disk
save_changes(1);
changed = 0;
break;
- case 2:
+ case 3:
save_changes(0);
changed = 0;
break;
- case 3:
+ case 4:
save_changes(1);
exit=1;
break;
- case 4:
+ case 5:
exit=1;
break;
}