1
0
Fork 0
forked from len0rd/rockbox

Add colon and semicolon to the default virtual keyboard, clean up some unneccesary includes and exclude vkeyboard for larger displays from builds where it was never used -- saves approx 300 bytes on achos builds

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11790 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Nils Wallménius 2006-12-17 19:51:30 +00:00
parent c0b2862956
commit b757b50d0a

View file

@ -16,13 +16,9 @@
* KIND, either express or implied. * KIND, either express or implied.
* *
****************************************************************************/ ****************************************************************************/
#include "lcd.h"
#include "button.h"
#include "kernel.h" #include "kernel.h"
#include "system.h" #include "system.h"
#include "version.h" #include "version.h"
#include "debug_menu.h"
#include "sprintf.h"
#include <string.h> #include <string.h>
#include "font.h" #include "font.h"
#include "screens.h" #include "screens.h"
@ -33,8 +29,6 @@
#include "rbunicode.h" #include "rbunicode.h"
#include "buttonbar.h" #include "buttonbar.h"
#include "logf.h" #include "logf.h"
#include "icons.h"
#include "file.h"
#include "hangul.h" #include "hangul.h"
#include "action.h" #include "action.h"
@ -177,7 +171,7 @@ static void kbd_spellchar(unsigned short c)
} }
} }
void kbd_inschar(unsigned char* text, int buflen, int* editpos, unsigned short ch) static void kbd_inschar(unsigned char* text, int buflen, int* editpos, unsigned short ch)
{ {
int i, j, k, len; int i, j, k, len;
unsigned char tmp[4]; unsigned char tmp[4];
@ -202,7 +196,7 @@ void kbd_inschar(unsigned char* text, int buflen, int* editpos, unsigned short c
return; return;
} }
void kbd_delchar(unsigned char* text, int* editpos) static void kbd_delchar(unsigned char* text, int* editpos)
{ {
int i = 0; int i = 0;
unsigned char* utf8; unsigned char* utf8;
@ -248,6 +242,7 @@ int kbd_input(char* text, int buflen)
FOR_NB_SCREENS(l) FOR_NB_SCREENS(l)
{ {
#if LCD_WIDTH >= 160 && LCD_HEIGHT >=96
if ((screens[l].width >= 160) && (screens[l].height >= 96)) if ((screens[l].width >= 160) && (screens[l].height >= 96))
{ {
param[l].default_kbd = param[l].default_kbd =
@ -258,12 +253,13 @@ int kbd_input(char* text, int buflen)
"ÀÁÂÃÄÅÆ ÌÍÎÏ ÈÉÊË ¢£¤¥¦§©®\n" "ÀÁÂÃÄÅÆ ÌÍÎÏ ÈÉÊË ¢£¤¥¦§©®\n"
"àáâãäåæ ìíîï èéêë «»°ºª¹²³\n" "àáâãäåæ ìíîï èéêë «»°ºª¹²³\n"
"ÓÒÔÕÖØ ÇÐÞÝß ÙÚÛÜ ¯±×÷¡¿µ·\n" "ÓÒÔÕÖØ ÇÐÞÝß ÙÚÛÜ ¯±×÷¡¿µ·\n"
"òóôõöø çðþýÿ ùúûü ¼½¾¬¶¨"; "òóôõöø çðþýÿ ùúûü ¼½¾¬¶¨:;";
param[l].DEFAULT_LINES = 8; param[l].DEFAULT_LINES = 8;
} }
else else
{ {
#endif
param[l].default_kbd = param[l].default_kbd =
"ABCDEFG !?\" @#$%+'\n" "ABCDEFG !?\" @#$%+'\n"
"HIJKLMN 789 &_()-`\n" "HIJKLMN 789 &_()-`\n"
@ -273,7 +269,7 @@ int kbd_input(char* text, int buflen)
"abcdefg ¢£¤¥¦§©®¬\n" "abcdefg ¢£¤¥¦§©®¬\n"
"hijklmn «»°ºª¹²³¶\n" "hijklmn «»°ºª¹²³¶\n"
"opqrstu ¯±×÷¡¿µ·¨\n" "opqrstu ¯±×÷¡¿µ·¨\n"
"vwxyz., ¼½¾ \n" "vwxyz., :;¼½¾ \n"
"ÀÁÂÃÄÅÆ ÌÍÎÏ ÈÉÊË\n" "ÀÁÂÃÄÅÆ ÌÍÎÏ ÈÉÊË\n"
"àáâãäåæ ìíîï èéêë\n" "àáâãäåæ ìíîï èéêë\n"
@ -281,7 +277,9 @@ int kbd_input(char* text, int buflen)
"òóôõöø çðþýÿ ùúûü"; "òóôõöø çðþýÿ ùúûü";
param[l].DEFAULT_LINES = 4; param[l].DEFAULT_LINES = 4;
#if LCD_WIDTH >= 160
} }
#endif
} }
#ifdef KBD_MODES #ifdef KBD_MODES
bool line_edit = false; bool line_edit = false;