summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--inputmethods/pickboard/pickboardpicks.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/inputmethods/pickboard/pickboardpicks.cpp b/inputmethods/pickboard/pickboardpicks.cpp
index b9d9928..bad1d24 100644
--- a/inputmethods/pickboard/pickboardpicks.cpp
+++ b/inputmethods/pickboard/pickboardpicks.cpp
@@ -72,346 +72,346 @@ static const char *Del_xpm[] = {
"a..a.a....a...",
"a..a.a....a...",
"a..a.aaa..a...",
"a..a.a....a...",
"a..a.a....a...",
"aaa..aaaa.aaaa"
};
static const char *Home_xpm[] = {
"20 7 2 1",
"a c #000000",
". c None",
"a..a..aa..a...a.aaaa",
"a..a.a..a.aa.aa.a...",
"a..a.a..a.a.a.a.a...",
"aaaa.a..a.a.a.a.aaa.",
"a..a.a..a.a...a.a...",
"a..a.a..a.a...a.a...",
"a..a..aa..a...a.aaaa"
};
static const char *PgUp_xpm[] = {
"20 7 2 1",
"a c #000000",
". c None",
"aaa.......a..a......",
"a..a......a..a......",
"a..a.aa...a..a.aaa..",
"aaa.a.....a..a.a..a.",
"a...a.aa..a..a.aaa..",
"a...a..a..a..a.a....",
"a....aaa...aa..a...."
};
static const char *PgDn_xpm[] = {
"20 7 2 1",
"a c #000000",
". c None",
"aaa.......aaa.......",
"a..a......a..a......",
"a..a.aa...a..a.a..a.",
"aaa.a.....a..a.aa.a.",
"a...a.aa..a..a.a.aa.",
"a...a..a..a..a.a..a.",
"a....aaa..aaa..a..a."
};
static const char *End_xpm[] = {
"14 7 2 1",
"a c #000000",
". c None",
"aaaa.a..a.aaa.",
"a....aa.a.a..a",
"a....a.aa.a..a",
"aaa..a..a.a..a",
"a....a..a.a..a",
"a....a..a.a..a",
"aaaa.a..a.aaa."
};
static const char *Enter_xpm[] = {
"14 7 2 1",
"a c #000000",
". c None",
".............a",
".............a",
"..a..........a",
".aa.........a.",
"aaaaaaaaaaaa..",
".aa...........",
"..a..........."
};
static const char *Esc_xpm[] = {
"14 7 2 1",
"a c #000000",
". c None",
"aaaa..aa...aa.",
"a....a..a.a..a",
"a....a....a...",
"aaa...aa..a...",
"a.......a.a...",
"a....a..a.a..a",
"aaaa..aa...aa."
};
static const char *Ins_xpm[] = {
"13 7 2 1",
"a c #000000",
". c None",
"aaa.a..a..aa.",
".a..aa.a.a..a",
".a..a.aa.a...",
".a..a..a..aa.",
".a..a..a....a",
".a..a..a.a..a",
"aaa.a..a..aa."
};
static const char *Up_xpm[] = {
"7 7 2 1",
"a c #000000",
". c None",
"...a...",
"..aaa..",
".a.a.a.",
"a..a..a",
"...a...",
"...a...",
"...a..."
};
static const char *Left_xpm[] = {
"7 7 2 1",
"a c #000000",
". c None",
"...a...",
"..a....",
".a.....",
"aaaaaaa",
".a.....",
"..a....",
"...a..."
};
static const char *Down_xpm[] = {
"7 7 2 1",
"a c #000000",
". c None",
"...a...",
"...a...",
"...a...",
"a..a..a",
".a.a.a.",
"..aaa..",
"...a..."
};
static const char *Right_xpm[] = {
"7 7 2 1",
"a c #000000",
". c None",
"...a...",
"....a..",
".....a.",
"aaaaaaa",
".....a.",
"....a..",
"...a..."
};
static const char *BackTab_xpm[] = {
"8 7 2 1",
"a c #000000",
". c None",
"a.......",
"a..a....",
"a.aa....",
"aaaaaaaa",
"a.aa....",
"a..a....",
"a......."
};
static const char *Tab_xpm[] = {
"8 7 2 1",
"a c #000000",
". c None",
".......a",
"....a..a",
"....aa.a",
"aaaaaaaa",
"....aa.a",
"....a..a",
".......a"
};
static const char *Space_xpm[] = {
"9 9 2 1",
"a c #000000",
". c None",
"aaaaaaaaa",
"a.......a",
"a.......a",
"a.......a",
"a.......a",
"a.......a",
"a.......a",
"a.......a",
"aaaaaaaaa"
};
PickboardPicks::PickboardPicks(QWidget* parent, const char* name, WFlags f ) :
QFrame(parent,name,f)
{
configs.setAutoDelete( TRUE );
}
void PickboardPicks::initialise(void)
{
setSizePolicy(QSizePolicy(QSizePolicy::Expanding,QSizePolicy::Fixed));
mode = 0;
DictFilterConfig* dc = new DictFilterConfig(this);
QStringList sets_a = QStringList::split(' ',tr("ABC DEF GHI JKL MNO PQR STU VWX YZ-'"));
QStringList sets = QStringList::split(' ',
- tr("ABC%/1iso8859-15 DEF%/1iso8859-15 GHI%/1iso8859-15 JKL MNO%/1iso8859-15 PQR%/1iso8859-15 STU%/1iso8859-15 VWX YZ-'%/1iso8859-15"));
+ tr("ABC DEF GHI JKL MNO PQR STU VWX YZ-'"));
for (QStringList::ConstIterator it = sets.begin(), it_a = sets_a.begin(); it!=sets.end(); ++it,++it_a)
dc->addSet(*it_a,*it);
dc->addMode("123");
dc->addMode("@*!?");
dc->addMode(tr("KEY"));
dc->addMode(tr("Space"));
dc->addMode(tr("Back"));
dc->addMode(tr("Enter"));
dc->addMode(tr("Shift"));
configs.append(dc);
CharStringConfig* number = new CharStringConfig(this);
number->addChar("0");
number->addChar("1");
number->addChar("2");
number->addChar("3");
number->addChar("4");
number->addChar("5");
number->addChar("6");
number->addChar("7");
number->addChar("8");
number->addChar("9");
number->addChar("."); // #### or "," in some locales
configs.append(number);
CharConfig* punc = new CharConfig(this);
punc->addChar(0,"\"");
punc->addChar(0,"`");
punc->addChar(0,"'");
punc->addChar(0,"\253");
punc->addChar(0,"\273");
punc->addChar(0,"\277");
punc->addChar(1,"(");
punc->addChar(1,")");
punc->addChar(1,"[");
punc->addChar(1,"]");
punc->addChar(1,"{");
punc->addChar(1,"}");
punc->addChar(0,"+");
punc->addChar(0,"-");
punc->addChar(0,"*");
punc->addChar(0,"/");
punc->addChar(0,"=");
punc->addChar(0,"_");
punc->addChar(0,"$");
punc->addChar(0,"&");
punc->addChar(1,"|");
punc->addChar(1,"@");
punc->addChar(1,"\\");
punc->addChar(1,"#");
punc->addChar(1,"^");
punc->addChar(1,"~");
punc->addChar(1,"<");
punc->addChar(1,">");
punc->addChar(0,".");
punc->addChar(0,"?");
punc->addChar(0,"!");
punc->addChar(0,",");
punc->addChar(0,";");
punc->addChar(1,":");
punc->addChar(1,"\267");
punc->addChar(1,"\277");
punc->addChar(1,"\241");
punc->addChar(1,"\367");
punc->addChar(0,"$");
punc->addChar(0,"\242");
punc->addChar(0,"\245");
punc->addChar(1,"\243");
punc->addChar(1,"\244");
punc->addChar(1,"\260");
configs.append(punc);
KeycodeConfig* keys = new KeycodeConfig(this);
keys->addKey(0,QPixmap(Esc_xpm),Key_Escape);
keys->addKey(0,QPixmap(BS_xpm),Key_Backspace);
keys->addGap(0,10);
keys->addKey(0,QPixmap(Ins_xpm),Key_Insert);
keys->addKey(0,QPixmap(Home_xpm),Key_Home);
keys->addKey(0,QPixmap(PgUp_xpm),Key_PageUp);
keys->addGap(0,25);
keys->addKey(0,QPixmap(Up_xpm),Key_Up);
keys->addGap(0,15);
keys->addKey(1,QPixmap(BackTab_xpm),Key_Tab);
keys->addGap(1,3);
keys->addKey(1,QPixmap(Tab_xpm),Key_Tab);
keys->addGap(1,10);
keys->addKey(1,QPixmap(Del_xpm),Key_Delete);
keys->addGap(1,2);
keys->addKey(1,QPixmap(End_xpm),Key_End);
keys->addGap(1,3);
keys->addKey(1,QPixmap(PgDn_xpm),Key_PageDown);
keys->addGap(1,10);
keys->addKey(1,QPixmap(Left_xpm),Key_Left);
keys->addKey(1,QPixmap(Down_xpm),Key_Down);
keys->addKey(1,QPixmap(Right_xpm),Key_Right);
keys->addGap(1,13);
keys->addKey(1,QPixmap(Space_xpm),Key_Space);
keys->addGap(0,10);
keys->addKey(0,QPixmap(Enter_xpm),Key_Return);
configs.append(keys);
}
PickboardPicks::~PickboardPicks()
{
}
QSize PickboardPicks::sizeHint() const
{
return QSize(240,fontMetrics().lineSpacing()*2+3);
}
void PickboardPicks::drawContents(QPainter* p)
{
config()->draw(p);
}
void PickboardPicks::mousePressEvent(QMouseEvent* e)
{
config()->pickPoint(e->pos(),TRUE);
}
void PickboardPicks::mouseDoubleClickEvent(QMouseEvent* e)
{
config()->pickPoint(e->pos(),TRUE);
}
void PickboardPicks::mouseReleaseEvent(QMouseEvent* e)
{
config()->pickPoint(e->pos(),FALSE);
}
void PickboardPicks::setMode(int m)
{
mode = m;
}
void PickboardPicks::resetState()
{
config()->doMenu(100);
}