Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

keyboard.cpp File Reference

#include "keyboard.h"
#include <qpe/global.h>
#include <qpe/config.h>
#include <qwindowsystem_qws.h>
#include <qpainter.h>
#include <qfontmetrics.h>
#include <qtimer.h>
#include <ctype.h>
#include <sys/utsname.h>

Include dependency graph for keyboard.cpp:

Go to the source code of this file.

Classes

struct  ShiftMap
struct  SpecialMap

Defines

#define USE_SMALL_BACKSPACE

Enumerations

enum  {
  BSCode = 0x80, TabCode, CapsCode, RetCode,
  ShiftCode, CtrlCode, AltCode, SpaceCode,
  BackSlash, UpCode, LeftCode, DownCode,
  RightCode, Blank, Expand, Opti,
  ResetDict, Divide, Multiply, Add,
  Subtract, Decimal, Equal, Percent,
  Sqrt, Inverse, Escape
}

Functions

static int keycode (int i2, int j, const uchar **keyboard)

Variables

static const uchar *const keyboard_opti [5]
static const uchar *const keyboard_standard [5]
static const ShiftMap shiftMap []
static const char *const uparrow_xpm []
static const char *const leftarrow_xpm []
static const char *const downarrow_xpm []
static const char *const rightarrow_xpm []
static const char *const insert_xpm []
static const char *const delete_xpm []
static const char *const home_xpm []
static const char *const end_xpm []
static const char *const pageup_xpm []
static const char *const pagedown_xpm []
static const char *const expand_xpm []
static const char *const backspace_xpm []
static const char *const escape_xpm []
static const SpecialMap specialM []


Define Documentation

#define USE_SMALL_BACKSPACE
 

Definition at line 35 of file keyboard.cpp.


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
BSCode 
TabCode 
CapsCode 
RetCode 
ShiftCode 
CtrlCode 
AltCode 
SpaceCode 
BackSlash 
UpCode 
LeftCode 
DownCode 
RightCode 
Blank 
Expand 
Opti 
ResetDict 
Divide 
Multiply 
Add 
Subtract 
Decimal 
Equal 
Percent 
Sqrt 
Inverse 
Escape 

Definition at line 405 of file keyboard.cpp.


Function Documentation

static int keycode int  i2,
int  j,
const uchar **  keyboard
[static]
 

Definition at line 462 of file keyboard.cpp.

References row.


Variable Documentation

const char* const backspace_xpm[] [static]
 

Initial value:

{
"9 9 2 1",
"a c #000000",
". c None",
".........",
".........",
"...a.....",
"..aa.....",
".aaaaaaaa",
"..aa.....",
"...a.....",
".........",
"........."}

Definition at line 361 of file keyboard.cpp.

const char* const delete_xpm[] [static]
 

Initial value:

{
"9 9 2 1",
"a c #000000",
". c None",
".........",
"aa......a",
"a.a.aaa.a",
"a.a.a.a.a",
"a.a.aaa.a.",
"a.a.a...a",
"aaa.aaa.a",
".........",
"........."}

Definition at line 276 of file keyboard.cpp.

const char* const downarrow_xpm[] [static]
 

Initial value:

{
"9 9 2 1",
"a c #000000",
". c None",
".........",
"....a....",
"....a....",
"....a....",
"....a....",
"..aaaaa..",
"...aaa...",
"....a....",
"........."}

Definition at line 234 of file keyboard.cpp.

const char* const end_xpm[] [static]
 

Initial value:

{
"10 9 2 1",
"a c #000000",
". c None",
"..........",
"aa.......a",
"a..aaa.aaa",
"aa.a.a.a.a",
"a..a.a.a.a",
"a..a.a.a.a",
"aa.a.a.aaa",
"..........",
".........."}

Definition at line 304 of file keyboard.cpp.

const char* const escape_xpm[] [static]
 

Initial value:

{
"9 9 2 1",
"a c #000000",
". c None",
".........",
".........",
".aa.aa.aa",
".a..a..a.",
".aa.aa.a.",
".a...a.a.",
".aa.aa.aa",
".........",
"........."}

Definition at line 390 of file keyboard.cpp.

const char* const expand_xpm[] [static]
 

Initial value:

{
"4 9 2 1",
"a c #408040",
". c None",
"a...",
"aa..",
"aaa.",
"aaaa",
"aaaa",
"aaaa",
"aaa.",
"aa..",
"a..."}

Definition at line 346 of file keyboard.cpp.

const char* const home_xpm[] [static]
 

Initial value:

{
"9 9 2 1",
"a c #000000",
". c None",
"....a....",
"...a.a...",
"..a...a..",
".a.....a.",
"aa.aaa.aa",
".a.a.a.a.",
".a.a.a.a.",
".aaaaaaa.",
"........."}

Definition at line 290 of file keyboard.cpp.

const char* const insert_xpm[] [static]
 

Initial value:

{
"9 9 2 1",
"a c #000000",
". c None",
".........",
"a........",
"a.aaa.aaa",
"a.a.a.a..",
"a.a.a..a.",
"a.a.a...a",
"a.a.a.aaa",
".........",
"........."}

Definition at line 262 of file keyboard.cpp.

const uchar* const keyboard_opti[5] [static]
 

Initial value:

 {
    (const uchar *const) "\001\223\003\240\002\20\002\41\002\26\002\62\002\56\002\45\002\54\003\200\001\223\002\226\002\235\002\234\002\236",
    (const uchar *const) "\001\223\003\201\004\207\002\30\002\24\002\43\004\207\003\203\001\223\006\002\002\065",
    (const uchar *const) "\001\223\003\202\002\60\002\37\002\23\002\22\002\36\002\21\002\55\003\203\001\223\006\005\002\055",
    (const uchar *const) "\001\223\003\205\004\207\002\27\002\61\002\40\004\207\003\204\001\223\006\010\002\014",
    (const uchar *const) "\001\223\003\206\002\44\002\31\002\57\002\42\002\46\002\25\002\207\003\204\001\223\002\013\002\064\002\015\002\230"
}

Definition at line 141 of file keyboard.cpp.

const uchar* const keyboard_standard[5] [static]
 

Initial value:

 {


    (const uchar *const)"\002\240\002`\0021\0022\0023\0024\0025\0026\0027\0028\0029\0020\002-\002=\002\200\002\223\002\215\002\216\002\217",



    

    (const uchar *const)"\003\201\002q\002w\002e\002r\002t\002y\002u\002i\002o\002p\002[\002]\002\\\001\224\002\223\002\221\002\220\002\222",
    

    (const uchar *const)"\004\202\002a\002s\002d\002f\002g\002h\002j\002k\002l\002;\002'\004\203",
    

    (const uchar *const)"\005\204\002z\002x\002c\002v\002b\002n\002m\002,\002.\002/\005\204\002\223\002\223\002\211",
    

    (const uchar *const)"\003\205\003\206\022\207\003\206\003\205\002\223\002\212\002\213\002\214"
    

}

Definition at line 150 of file keyboard.cpp.

const char* const leftarrow_xpm[] [static]
 

Initial value:

{
"9 9 2 1",
"a c #000000",
". c None",
".........",
".........",
"...a.....",
"..aa.....",
".aaaaaaa.",
"..aa.....",
"...a.....",
".........",
"........."}

Definition at line 220 of file keyboard.cpp.

const char* const pagedown_xpm[] [static]
 

Initial value:

{
"9 9 2 1",
"a c #000000",
". c None",
".aaa.aaa.",
".a.a.a.a.",
".aaa..aa.",
".a...aaa.",
".........",
"...a.....",
".aaa.aaa.",
".a.a.a.a.",
".aaa.a.a."}

Definition at line 332 of file keyboard.cpp.

const char* const pageup_xpm[] [static]
 

Initial value:

{
"9 9 2 1",
"a c #000000",
". c None",
".aaa.aaa.",
".a.a.a.a.",
".aaa..aa.",
".a...aaa.",
".........",
".a.a.aaa.",
".a.a.a.a.",
".aaa.aaa.",
".....a..."}

Definition at line 318 of file keyboard.cpp.

const char* const rightarrow_xpm[] [static]
 

Initial value:

{
"9 9 2 1",
"a c #000000",
". c None",
".........",
".........",
".....a...",
".....aa..",
".aaaaaaa.",
".....aa..",
".....a...",
".........",
"........."}

Definition at line 248 of file keyboard.cpp.

const ShiftMap shiftMap[] [static]
 

Initial value:

 {
    { '`', '~' },
    { '1', '!' },
    { '2', '@' },
    { '3', '#' },
    { '4', '$' },
    { '5', '%' },
    { '6', '^' },
    { '7', '&' },
    { '8', '*' },
    { '9', '(' },
    { '0', ')' },
    { '-', '_' },
    { '=', '+' },
    { '\\', '|' },
    { '[', '{' },
    { ']', '}' },
    { ';', ':' },
    { '\'', '"' },
    { ',', '<' },
    { '.', '>' },
    { '/', '?' }
}

Definition at line 180 of file keyboard.cpp.

const SpecialMap specialM[] [static]
 

Definition at line 420 of file keyboard.cpp.

const char* const uparrow_xpm[] [static]
 

Initial value:

{
"9 9 2 1",
"a c #000000",
". c None",
".........",
"....a....",
"...aaa...",
"..aaaaa..",
"....a....",
"....a....",
"....a....",
"....a....",
"........."}

Definition at line 206 of file keyboard.cpp.


Generated on Sat Nov 5 16:34:14 2005 for OPIE by  doxygen 1.4.2