|
|
|
@ -499,7 +499,7 @@ MainWidget::MainWidget ( KAboutData *about, bool tren, TQWidget *parent, const c
|
|
|
|
|
tray = new KbdTray ( this );
|
|
|
|
|
tray->setPixmap ( UserIcon ( "tray" ) );
|
|
|
|
|
|
|
|
|
|
KConfig *cfg = KApplication::kApplication()->config();
|
|
|
|
|
KConfig *cfg = TDEApplication::kApplication()->config();
|
|
|
|
|
|
|
|
|
|
KPopupMenu *m = tray->contextMenu();
|
|
|
|
|
m->setCheckable ( true );
|
|
|
|
@ -560,7 +560,7 @@ MainWidget::MainWidget ( KAboutData *about, bool tren, TQWidget *parent, const c
|
|
|
|
|
|
|
|
|
|
void MainWidget::finishInit()
|
|
|
|
|
{
|
|
|
|
|
KConfig *cfg = KApplication::kApplication()->config();
|
|
|
|
|
KConfig *cfg = TDEApplication::kApplication()->config();
|
|
|
|
|
bool vis = cfg->readBoolEntry("visible",true);
|
|
|
|
|
if (vis) {
|
|
|
|
|
show();
|
|
|
|
@ -586,7 +586,7 @@ void MainWidget::restorePosition()
|
|
|
|
|
TQRect dflt_geom(screen_geom.width()-d_width,screen_geom.height()-d_height,d_width,d_height);
|
|
|
|
|
|
|
|
|
|
KConfig *cfg = 0;
|
|
|
|
|
cfg = KApplication::kApplication()->config();
|
|
|
|
|
cfg = TDEApplication::kApplication()->config();
|
|
|
|
|
if (cfg){
|
|
|
|
|
TQRect geom = cfg->readRectEntry("geometry");
|
|
|
|
|
if (!geom.isNull() && geom.isValid()) {
|
|
|
|
@ -598,7 +598,7 @@ void MainWidget::restorePosition()
|
|
|
|
|
void MainWidget::saveState()
|
|
|
|
|
{
|
|
|
|
|
KConfig *cfg = 0;
|
|
|
|
|
cfg = KApplication::kApplication()->config();
|
|
|
|
|
cfg = TDEApplication::kApplication()->config();
|
|
|
|
|
if (cfg){
|
|
|
|
|
cfg->writeEntry("visible",isShown());
|
|
|
|
|
cfg->sync();
|
|
|
|
@ -608,7 +608,7 @@ void MainWidget::hideEvent ( TQHideEvent * )
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
KConfig *cfg = 0;
|
|
|
|
|
cfg = KApplication::kApplication()->config();
|
|
|
|
|
cfg = TDEApplication::kApplication()->config();
|
|
|
|
|
if (cfg){
|
|
|
|
|
cfg->writeEntry("geometry",geometry());
|
|
|
|
|
cfg->sync();
|
|
|
|
@ -715,7 +715,7 @@ void MainWidget::chooseFont()
|
|
|
|
|
// value, in this case Helvetica [Cronyx], 10
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
KConfig *cfg = KApplication::kApplication()->config();
|
|
|
|
|
KConfig *cfg = TDEApplication::kApplication()->config();
|
|
|
|
|
cfg->writeEntry ("KvkbdFont", this->font());
|
|
|
|
|
cfg->sync();
|
|
|
|
|
|
|
|
|
@ -740,7 +740,7 @@ void MainWidget::showDock()
|
|
|
|
|
tray->contextMenu()->setItemChecked ( mnu_dock, !c );
|
|
|
|
|
dock->show();
|
|
|
|
|
}
|
|
|
|
|
KConfig *cfg = KApplication::kApplication()->config();
|
|
|
|
|
KConfig *cfg = TDEApplication::kApplication()->config();
|
|
|
|
|
cfg->writeEntry ("showdock", !c);
|
|
|
|
|
cfg->sync();
|
|
|
|
|
|
|
|
|
@ -749,7 +749,7 @@ void MainWidget::toggleFontAutoRes()
|
|
|
|
|
{
|
|
|
|
|
bool c = tray->contextMenu()->isItemChecked( mnu_autores);
|
|
|
|
|
tray->contextMenu()->setItemChecked(mnu_autores, !c);
|
|
|
|
|
KConfig *cfg = KApplication::kApplication()->config();
|
|
|
|
|
KConfig *cfg = TDEApplication::kApplication()->config();
|
|
|
|
|
cfg->writeEntry ("autoresfont", !c);
|
|
|
|
|
cfg->sync();
|
|
|
|
|
}
|
|
|
|
|