|
|
|
@ -191,7 +191,7 @@ Amor::Amor() : DCOPObject( "AmorIface" ), TQObject()
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
kapp->quit();
|
|
|
|
|
tdeApp->quit();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -315,7 +315,7 @@ bool Amor::readConfig()
|
|
|
|
|
|
|
|
|
|
// Store relative paths into files to avoid storing absolute pathnames.
|
|
|
|
|
TDEGlobal::dirs()->findAllResources("appdata", "*rc", false, false, files);
|
|
|
|
|
int randomTheme = kapp->random() % files.count();
|
|
|
|
|
int randomTheme = tdeApp->random() % files.count();
|
|
|
|
|
mConfig.mTheme = (TQString)*files.at(randomTheme);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -473,7 +473,7 @@ void Amor::selectAnimation(State state)
|
|
|
|
|
if (mTargetRect.width() == mCurrAnim->frame()->width())
|
|
|
|
|
mPosition = mCurrAnim->hotspot().x();
|
|
|
|
|
else
|
|
|
|
|
mPosition = ( kapp->random() %
|
|
|
|
|
mPosition = ( tdeApp->random() %
|
|
|
|
|
(mTargetRect.width() - mCurrAnim->frame()->width()) )
|
|
|
|
|
+ mCurrAnim->hotspot().x();
|
|
|
|
|
}
|
|
|
|
@ -613,7 +613,7 @@ void Amor::slotMouseClicked(const TQPoint &pos)
|
|
|
|
|
mMenu->insertItem(SmallIcon("configure"), i18n("&Configure..."), this, TQ_SLOT(slotConfigure()));
|
|
|
|
|
mMenu->insertSeparator();
|
|
|
|
|
mMenu->insertItem(SmallIcon("help"), i18n("&Help"), helpMnu);
|
|
|
|
|
mMenu->insertItem(SmallIcon("system-log-out"), i18n("&Quit"), kapp, TQ_SLOT(quit()));
|
|
|
|
|
mMenu->insertItem(SmallIcon("system-log-out"), i18n("&Quit"), tdeApp, TQ_SLOT(quit()));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
mMenu->exec(pos);
|
|
|
|
@ -680,7 +680,7 @@ void Amor::slotTimeout()
|
|
|
|
|
// only displayed on the first frame of mBaseAnim (the old way of doing this).
|
|
|
|
|
if ( !mTipsQueue.isEmpty() && !mBubble && mConfig.mAppTips)
|
|
|
|
|
showBubble();
|
|
|
|
|
else if (kapp->random()%TIP_FREQUENCY == 1 && mConfig.mTips && !mBubble && !mCurrAnim->frameNum())
|
|
|
|
|
else if (tdeApp->random()%TIP_FREQUENCY == 1 && mConfig.mTips && !mBubble && !mCurrAnim->frameNum())
|
|
|
|
|
{
|
|
|
|
|
mTipsQueue.enqueue(new QueueItem(QueueItem::Tip, mTips.tip()));
|
|
|
|
|
showBubble();
|
|
|
|
@ -1014,7 +1014,7 @@ AmorSessionWidget::AmorSessionWidget()
|
|
|
|
|
{
|
|
|
|
|
// the only function of this widget is to catch & forward the
|
|
|
|
|
// saveYourself() signal from the session manager
|
|
|
|
|
connect(kapp, TQ_SIGNAL(saveYourself()), TQ_SLOT(wm_saveyourself()));
|
|
|
|
|
connect(tdeApp, TQ_SIGNAL(saveYourself()), TQ_SLOT(wm_saveyourself()));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void AmorSessionWidget::wm_saveyourself()
|
|
|
|
|