|
|
@ -303,8 +303,6 @@ MainWidget::MainWidget ( TDEAboutData *about, bool tren, TQWidget *parent, const
|
|
|
|
mod_keys.append ( rshft );
|
|
|
|
mod_keys.append ( rshft );
|
|
|
|
rshft->res();
|
|
|
|
rshft->res();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lctrl = new VButton ( this,"" );
|
|
|
|
lctrl = new VButton ( this,"" );
|
|
|
|
lctrl->resize ( 45,30 );
|
|
|
|
lctrl->resize ( 45,30 );
|
|
|
|
lctrl->move ( stx, sty+ ( 5*35 ) );
|
|
|
|
lctrl->move ( stx, sty+ ( 5*35 ) );
|
|
|
@ -314,32 +312,29 @@ MainWidget::MainWidget ( TDEAboutData *about, bool tren, TQWidget *parent, const
|
|
|
|
mod_keys.append ( lctrl );
|
|
|
|
mod_keys.append ( lctrl );
|
|
|
|
lctrl->res();
|
|
|
|
lctrl->res();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lwin = new VButton ( this,"" );
|
|
|
|
lwin = new VButton ( this,"" );
|
|
|
|
lwin->resize ( 50,30 );
|
|
|
|
lwin->resize ( 50,30 );
|
|
|
|
lwin->move ( lctrl->x() +lctrl->width() +5, sty+ ( 5*35 ) );
|
|
|
|
lwin->move ( lctrl->x() +lctrl->width() +5, sty+ ( 5*35 ) );
|
|
|
|
lwin->setText ( "LWin" );
|
|
|
|
lwin->setText ( "LWin" );
|
|
|
|
lwin->setKeyCode ( 133 );
|
|
|
|
lwin->setKeyCode ( 133 );
|
|
|
|
lwin->setToggleButton ( false );
|
|
|
|
lwin->setToggleButton ( true );
|
|
|
|
connect ( lwin, TQT_SIGNAL ( keyClick ( unsigned int ) ), this, TQT_SLOT ( keyPress ( unsigned int ) ) );
|
|
|
|
mod_keys.append ( lwin );
|
|
|
|
other_keys.append( lwin );
|
|
|
|
|
|
|
|
lwin->res();
|
|
|
|
lwin->res();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lalt = new VButton ( this,"" );
|
|
|
|
lalt = new VButton ( this,"" );
|
|
|
|
lalt->resize ( 45,30 );
|
|
|
|
lalt->resize ( 45,30 );
|
|
|
|
lalt->move ( lwin->x() +lwin->width() +5, sty+ ( 5*35 ) );
|
|
|
|
lalt->move ( lwin->x() +lwin->width() +6, sty+ ( 5*35 ) );
|
|
|
|
lalt->setText ( "Alt" );
|
|
|
|
lalt->setText ( "Alt" );
|
|
|
|
lalt->setKeyCode ( 64 );
|
|
|
|
lalt->setKeyCode ( 64 );
|
|
|
|
lalt->setToggleButton ( true );
|
|
|
|
lalt->setToggleButton ( true );
|
|
|
|
mod_keys.append ( lalt );
|
|
|
|
mod_keys.append ( lalt );
|
|
|
|
lalt->res();
|
|
|
|
lalt->res();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
VButton *space = new VButton ( this,"" );
|
|
|
|
VButton *space = new VButton ( this,"" );
|
|
|
|
space->setKeyCode ( 65 );
|
|
|
|
space->setKeyCode ( 65 );
|
|
|
|
space->resize ( 5*35+28,30 );
|
|
|
|
space->resize ( 135,30 );
|
|
|
|
space->move ( 5+lalt->x() +lalt->width(),sty+ ( 5*35 ) );
|
|
|
|
space->move ( lalt->x() +lalt->width() +5, sty+ ( 5*35 ) );
|
|
|
|
|
|
|
|
|
|
|
|
connect ( space, TQT_SIGNAL ( keyClick ( unsigned int ) ), this, TQT_SLOT ( keyPress ( unsigned int ) ) );
|
|
|
|
connect ( space, TQT_SIGNAL ( keyClick ( unsigned int ) ), this, TQT_SLOT ( keyPress ( unsigned int ) ) );
|
|
|
|
space->res();
|
|
|
|
space->res();
|
|
|
|
other_keys.append(space);
|
|
|
|
other_keys.append(space);
|
|
|
@ -353,21 +348,18 @@ MainWidget::MainWidget ( TDEAboutData *about, bool tren, TQWidget *parent, const
|
|
|
|
mod_keys.append ( ralt );
|
|
|
|
mod_keys.append ( ralt );
|
|
|
|
ralt->res();
|
|
|
|
ralt->res();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
rwin = new VButton ( this,"" );
|
|
|
|
rwin = new VButton ( this,"" );
|
|
|
|
rwin->resize ( 50,30 );
|
|
|
|
rwin->resize ( 50,30 );
|
|
|
|
rwin->move ( ralt->x() +ralt->width() +5, sty+ ( 5*35 ) );
|
|
|
|
rwin->move ( ralt->x() +ralt->width() +6, sty+ ( 5*35 ) );
|
|
|
|
rwin->setText ( "RWin" );
|
|
|
|
rwin->setText ( "RWin" );
|
|
|
|
rwin->setKeyCode ( 134 );
|
|
|
|
rwin->setKeyCode ( 134 );
|
|
|
|
rwin->setToggleButton ( false );
|
|
|
|
rwin->setToggleButton ( true );
|
|
|
|
connect ( rwin, TQT_SIGNAL ( keyClick ( unsigned int ) ), this, TQT_SLOT ( keyPress ( unsigned int ) ) );
|
|
|
|
mod_keys.append ( rwin );
|
|
|
|
other_keys.append( rwin );
|
|
|
|
|
|
|
|
rwin->res();
|
|
|
|
rwin->res();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mnu = new VButton ( this,"" );
|
|
|
|
mnu = new VButton ( this,"" );
|
|
|
|
mnu->resize ( 50,30 );
|
|
|
|
mnu->resize ( 50,30 );
|
|
|
|
mnu->move ( rwin->x() +rwin->width() +5, sty+ ( 5*35 ) );
|
|
|
|
mnu->move ( rwin->x() +rwin->width() +6, sty+ ( 5*35 ) );
|
|
|
|
mnu->setText ( "Menu" );
|
|
|
|
mnu->setText ( "Menu" );
|
|
|
|
mnu->setKeyCode ( 117 );
|
|
|
|
mnu->setKeyCode ( 117 );
|
|
|
|
mnu->setToggleButton ( false );
|
|
|
|
mnu->setToggleButton ( false );
|
|
|
@ -375,7 +367,6 @@ MainWidget::MainWidget ( TDEAboutData *about, bool tren, TQWidget *parent, const
|
|
|
|
other_keys.append(mnu);
|
|
|
|
other_keys.append(mnu);
|
|
|
|
mnu->res();
|
|
|
|
mnu->res();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
rctrl = new VButton ( this,"" );
|
|
|
|
rctrl = new VButton ( this,"" );
|
|
|
|
rctrl->resize ( 45,30 );
|
|
|
|
rctrl->resize ( 45,30 );
|
|
|
|
rctrl->move ( 5+mnu->x() +mnu->width(), sty+ ( 5*35 ) );
|
|
|
|
rctrl->move ( 5+mnu->x() +mnu->width(), sty+ ( 5*35 ) );
|
|
|
@ -410,7 +401,6 @@ MainWidget::MainWidget ( TDEAboutData *about, bool tren, TQWidget *parent, const
|
|
|
|
setPaletteBackgroundColor ( TQt::black );
|
|
|
|
setPaletteBackgroundColor ( TQt::black );
|
|
|
|
setFocusPolicy ( TQ_NoFocus );
|
|
|
|
setFocusPolicy ( TQ_NoFocus );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int padx= 550;
|
|
|
|
int padx= 550;
|
|
|
|
TQString txt[9] = { "Ho\nme", TQString::fromUtf8("▲"), "Pg\nUp",
|
|
|
|
TQString txt[9] = { "Ho\nme", TQString::fromUtf8("▲"), "Pg\nUp",
|
|
|
|
TQString::fromUtf8("◄"), " ", TQString::fromUtf8("►"),
|
|
|
|
TQString::fromUtf8("◄"), " ", TQString::fromUtf8("►"),
|
|
|
|