@ -379,17 +379,27 @@ MainWidget::MainWidget ( TDEAboutData *about, bool tren, TQWidget *parent, const
mappingNotify ( NULL ) ;
quit = new VButton ( this , " quit " ) ;
quit - > resize ( 15 , 30 ) ;
quit - > move ( 525 , 15 ) ;
quit - > setPaletteBackgroundColor ( TQt : : red ) ;
quit - > resize ( 20 , 30 ) ;
quit - > move ( 524 , 15 ) ;
quit - > setPixmap ( TQIconSet ( SmallIcon ( " application-exit " ) ) . pixmap ( ) ) ;
TQToolTip : : add ( quit , i18n ( " Hide keyboard " ) ) ;
quit - > res ( ) ;
other_keys . append ( quit ) ;
connect ( quit , TQT_SIGNAL ( clicked ( ) ) , this , TQT_SLOT ( quitClicked ( ) ) ) ;
extent = new VButton ( this , " extent " ) ;
extent - > resize ( 15 , 65 ) ;
extent - > move ( 525 , 85 ) ;
extent - > setText ( " >> " ) ;
extent - > resize ( 20 , 65 ) ;
extent - > move ( 524 , 85 ) ;
if ( extent_visible )
{
extent - > setPixmap ( TQIconSet ( SmallIcon ( " media-seek-backward " ) ) . pixmap ( ) ) ;
TQToolTip : : add ( extent , i18n ( " Hide num pad " ) ) ;
}
else
{
extent - > setPixmap ( TQIconSet ( SmallIcon ( " media-seek-forward " ) ) . pixmap ( ) ) ;
TQToolTip : : add ( extent , i18n ( " Show num pad " ) ) ;
}
extent - > res ( ) ;
other_keys . append ( extent ) ;
connect ( extent , TQT_SIGNAL ( clicked ( ) ) , this , TQT_SLOT ( toggleNumericPad ( ) ) ) ;
@ -546,13 +556,13 @@ MainWidget::MainWidget ( TDEAboutData *about, bool tren, TQWidget *parent, const
setLockState ( locked ) ;
popup_menu = new VButton ( this , " popupmenu " ) ;
popup_menu - > resize ( 15 , 30 ) ;
popup_menu - > move ( 52 5 , 15 + 35 ) ;
popup_menu - > resize ( 20 , 30 ) ;
popup_menu - > move ( 52 4 , 15 + 35 ) ;
//popup_menu->setPaletteBackgroundColor ( TQt::green );
popup_menu - > res ( ) ;
popup_menu - > setPixmap ( TQIconSet ( SmallIcon ( " configure " ) ) . pixmap ( ) ) ;
TQToolTip : : add ( popup_menu , i18n ( " Configure " ) ) ;
other_keys . append ( popup_menu ) ;
connect ( popup_menu , TQT_SIGNAL ( clicked ( ) ) , this , TQT_SLOT ( showConfigMenu ( ) ) ) ;
}
@ -691,12 +701,14 @@ void MainWidget::toggleNumericPad()
if ( extent_visible ) {
extent_visible = false ;
extent - > setPixmap ( TQIconSet ( SmallIcon ( " media-seek-forward " ) ) . pixmap ( ) ) ;
TQToolTip : : add ( extent , i18n ( " Show num pad " ) ) ;
TQWidget : : resize ( ( int ) sdxs , height ( ) ) ;
extent - > setText ( " >> " ) ;
}
else {
extent_visible = true ;
extent - > setText ( " << " ) ;
extent - > setPixmap ( TQIconSet ( SmallIcon ( " media-seek-backward " ) ) . pixmap ( ) ) ;
TQToolTip : : add ( extent , i18n ( " Hide num pad " ) ) ;
TQWidget : : resize ( ( int ) sdxb , height ( ) ) ;
}
nresize = false ;
@ -952,7 +964,7 @@ KbdDock::KbdDock ( MainWidget *m )
icn = UserIcon ( " dock " ) ;
resize ( 96 , 47 ) ;
TQToolTip : : add ( this , " Toggle keyboard visibility " ) ;
TQToolTip : : add ( this , i18n ( " Toggle keyboard visibility " ) ) ;
}
void KbdDock : : paintEvent ( TQPaintEvent * )