summaryrefslogtreecommitdiffstats
path: root/amor
diff options
context:
space:
mode:
Diffstat (limited to 'amor')
-rw-r--r--amor/CMakeL10n.txt6
-rw-r--r--amor/CMakeLists.txt5
-rw-r--r--amor/amor.cpp58
-rw-r--r--amor/amor.desktop64
-rw-r--r--amor/amor.h4
-rw-r--r--amor/amoranim.cpp6
-rw-r--r--amor/amoranim.h4
-rw-r--r--amor/amorbubble.cpp6
-rw-r--r--amor/amorbubble.h2
-rw-r--r--amor/amorconfig.cpp4
-rw-r--r--amor/amordialog.cpp22
-rw-r--r--amor/amordialog.h2
-rw-r--r--amor/amortips.cpp4
-rw-r--r--amor/amorwidget.cpp4
-rw-r--r--amor/amorwidget.h2
-rw-r--r--amor/main.cpp6
16 files changed, 69 insertions, 130 deletions
diff --git a/amor/CMakeL10n.txt b/amor/CMakeL10n.txt
index 9a458e3..0aa3ea7 100644
--- a/amor/CMakeL10n.txt
+++ b/amor/CMakeL10n.txt
@@ -42,3 +42,9 @@ tde_l10n_create_template(
CATALOG "amor"
SOURCES "data/tips-en.tde_l10n" "."
)
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/amor.desktop/"
+ SOURCES amor.desktop
+ DESTINATION "${CMAKE_SOURCE_DIR}/translations"
+)
diff --git a/amor/CMakeLists.txt b/amor/CMakeLists.txt
index ad96cdc..1fb6280 100644
--- a/amor/CMakeLists.txt
+++ b/amor/CMakeLists.txt
@@ -50,7 +50,4 @@ tde_install_icons( amor )
##### other data ################################
-install( FILES amor.desktop
- DESTINATION ${XDG_APPS_INSTALL_DIR}
-)
-
+tde_create_translated_desktop( amor.desktop )
diff --git a/amor/amor.cpp b/amor/amor.cpp
index 2580794..5038752 100644
--- a/amor/amor.cpp
+++ b/amor/amor.cpp
@@ -40,7 +40,7 @@
#include <tdestartupinfo.h>
#include <twin.h>
#include <twinmodule.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include <khelpmenu.h>
#include <kiconloader.h>
@@ -136,37 +136,37 @@ Amor::Amor() : DCOPObject( "AmorIface" ), TQObject()
mState = Normal;
mWin = new KWinModule;
- connect(mWin, TQT_SIGNAL(activeWindowChanged(WId)),
- this, TQT_SLOT(slotWindowActivate(WId)));
- connect(mWin, TQT_SIGNAL(windowRemoved(WId)),
- this, TQT_SLOT(slotWindowRemove(WId)));
- connect(mWin, TQT_SIGNAL(stackingOrderChanged()),
- this, TQT_SLOT(slotStackingChanged()));
- connect(mWin, TQT_SIGNAL(windowChanged(WId, const unsigned long *)),
- this, TQT_SLOT(slotWindowChange(WId, const unsigned long *)));
- connect(mWin, TQT_SIGNAL(currentDesktopChanged(int)),
- this, TQT_SLOT(slotDesktopChange(int)));
+ connect(mWin, TQ_SIGNAL(activeWindowChanged(WId)),
+ this, TQ_SLOT(slotWindowActivate(WId)));
+ connect(mWin, TQ_SIGNAL(windowRemoved(WId)),
+ this, TQ_SLOT(slotWindowRemove(WId)));
+ connect(mWin, TQ_SIGNAL(stackingOrderChanged()),
+ this, TQ_SLOT(slotStackingChanged()));
+ connect(mWin, TQ_SIGNAL(windowChanged(WId, const unsigned long *)),
+ this, TQ_SLOT(slotWindowChange(WId, const unsigned long *)));
+ connect(mWin, TQ_SIGNAL(currentDesktopChanged(int)),
+ this, TQ_SLOT(slotDesktopChange(int)));
mAmor = new AmorWidget();
- connect(mAmor, TQT_SIGNAL(mouseClicked(const TQPoint &)),
- TQT_SLOT(slotMouseClicked(const TQPoint &)));
- connect(mAmor, TQT_SIGNAL(dragged(const TQPoint &, bool)),
- TQT_SLOT(slotWidgetDragged(const TQPoint &, bool)));
+ connect(mAmor, TQ_SIGNAL(mouseClicked(const TQPoint &)),
+ TQ_SLOT(slotMouseClicked(const TQPoint &)));
+ connect(mAmor, TQ_SIGNAL(dragged(const TQPoint &, bool)),
+ TQ_SLOT(slotWidgetDragged(const TQPoint &, bool)));
mAmor->resize(mTheme.maximumSize());
mTimer = new TQTimer(this);
- connect(mTimer, TQT_SIGNAL(timeout()), TQT_SLOT(slotTimeout()));
+ connect(mTimer, TQ_SIGNAL(timeout()), TQ_SLOT(slotTimeout()));
mStackTimer = new TQTimer(this);
- connect(mStackTimer, TQT_SIGNAL(timeout()), TQT_SLOT(restack()));
+ connect(mStackTimer, TQ_SIGNAL(timeout()), TQ_SLOT(restack()));
mBubbleTimer = new TQTimer(this);
- connect(mBubbleTimer, TQT_SIGNAL(timeout()), TQT_SLOT(slotBubbleTimeout()));
+ connect(mBubbleTimer, TQ_SIGNAL(timeout()), TQ_SLOT(slotBubbleTimeout()));
time(&mActiveTime);
mCursPos = TQCursor::pos();
mCursorTimer = new TQTimer(this);
- connect(mCursorTimer, TQT_SIGNAL(timeout()), TQT_SLOT(slotCursorTimeout()));
+ connect(mCursorTimer, TQ_SIGNAL(timeout()), TQ_SLOT(slotCursorTimeout()));
mCursorTimer->start( 500 );
if (mWin->activeWindow())
@@ -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();
}
@@ -610,10 +610,10 @@ void Amor::slotMouseClicked(const TQPoint &pos)
TDEPopupMenu* helpMnu = help->menu();
mMenu = new TDEPopupMenu();
mMenu->insertTitle("Amor"); // I really don't want this i18n'ed
- mMenu->insertItem(SmallIcon("configure"), i18n("&Configure..."), this, TQT_SLOT(slotConfigure()));
+ 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, TQT_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();
@@ -710,9 +710,9 @@ void Amor::slotConfigure()
if (!mAmorDialog)
{
mAmorDialog = new AmorDialog();
- connect(mAmorDialog, TQT_SIGNAL(changed()), TQT_SLOT(slotConfigChanged()));
- connect(mAmorDialog, TQT_SIGNAL(offsetChanged(int)),
- TQT_SLOT(slotOffsetChanged(int)));
+ connect(mAmorDialog, TQ_SIGNAL(changed()), TQ_SLOT(slotConfigChanged()));
+ connect(mAmorDialog, TQ_SIGNAL(offsetChanged(int)),
+ TQ_SLOT(slotOffsetChanged(int)));
}
mAmorDialog->show();
@@ -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, TQT_SIGNAL(saveYourself()), TQT_SLOT(wm_saveyourself()));
+ connect(tdeApp, TQ_SIGNAL(saveYourself()), TQ_SLOT(wm_saveyourself()));
}
void AmorSessionWidget::wm_saveyourself()
diff --git a/amor/amor.desktop b/amor/amor.desktop
index d018d59..e6e3221 100644
--- a/amor/amor.desktop
+++ b/amor/amor.desktop
@@ -1,74 +1,10 @@
[Desktop Entry]
Name=AMOR
-Name[af]=Amor
-Name[ar]=برنامج AMOR
-Name[bg]=Amor
-Name[bn]=আমোর
-Name[fi]=Amor
-Name[fo]=Amor
-Name[fr]=Amor
-Name[hi]=एमोर
-Name[pa]=ਅਮੋਰ
-Name[sv]=Amor
-Name[ta]= AMOR
-Name[tr]=Amor
-Name[zh_CN]=阿莫(AMOR)
Exec=amor
Icon=amor
Type=Application
X-DocPath=amor/index.html
GenericName=On-Screen Creature
-GenericName[be]=Экранная жывёла
-GenericName[bg]=Усмивка за работното място
-GenericName[bn]=পর্দায় বসবাসকারী জন্তু
-GenericName[ca]=Criatura a la pantalla
-GenericName[cs]=Příšerka na obrazovce
-GenericName[cy]=Creadur Ar-Sgrin
-GenericName[da]=Skabning på skærmen
-GenericName[de]=Maskottchen für die Arbeitsfläche
-GenericName[el]=Πλάσμα στην οθόνη
-GenericName[eo]=Surekrana kreaĵo
-GenericName[es]=Criatura de la pantalla
-GenericName[et]=Elajas töölaual
-GenericName[eu]=Pantailako gizakia
-GenericName[fa]=ایجاد‌کنندۀ روی پرده
-GenericName[fi]=Näytönolento
-GenericName[fr]=Créature sur l'écran
-GenericName[ga]=Créatúr ar do scáileán
-GenericName[gl]=Criatura no Escritório
-GenericName[he]=יצור מסכי
-GenericName[hr]=Kretura na zaslonu
-GenericName[hu]=Animált figurák
-GenericName[is]=Skjámyndataka
-GenericName[it]=Creatura sullo schermo
-GenericName[ja]=画面上の生物
-GenericName[km]=ការច្នៃ​ប្រឌិត​លើ​អេក្រង់
-GenericName[ko]=화면 위 생명체
-GenericName[lv]=Ekrāna dzīvnieks
-GenericName[mk]=Креатура на екранот
-GenericName[mt]=Annimal ta' fuq l-iskrin
-GenericName[nb]=Vesen på skjermen
-GenericName[nds]=Schriefdisch-Maskottje
-GenericName[ne]=पर्दा क्रिएचर
-GenericName[nl]=Schermvermaak
-GenericName[nn]=Skjermvesen
-GenericName[pa]=ਆਨ-ਸਕਰੀਨ ਲਵੋ
-GenericName[pl]=Stworzenie ekranowe
-GenericName[pt]=Criatura no Ecrã
-GenericName[pt_BR]=Criatura na Tela
-GenericName[ro]=Creatură pe ecran
-GenericName[ru]=Экранные зверушки
-GenericName[sk]=Stvorenie na obrazovke
-GenericName[sl]=Zaslonska živalca
-GenericName[sr]=Створење на екрану
-GenericName[sr@Latn]=Stvorenje na ekranu
-GenericName[sv]=Varelse på skärmen
-GenericName[ta]=திரையில் உருவாக்கி
-GenericName[tg]=Махлуқ дар экран
-GenericName[tr]=Ekranda Gezinen Yaratık
-GenericName[uk]=Екранна істота
-GenericName[zh_CN]=屏幕涂鸦
-GenericName[zh_TW]=畫面擷取程式
Terminal=false
X-DCOP-ServiceType=Unique
Categories=Qt;TDE;Amusement;
diff --git a/amor/amor.h b/amor/amor.h
index 3e75183..b4a4abe 100644
--- a/amor/amor.h
+++ b/amor/amor.h
@@ -72,7 +72,7 @@ private:
//
class Amor : public TQObject, virtual public AmorIface
{
- Q_OBJECT
+ TQ_OBJECT
public:
Amor();
@@ -153,7 +153,7 @@ private:
class AmorSessionWidget : public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
AmorSessionWidget();
diff --git a/amor/amoranim.cpp b/amor/amoranim.cpp
index 3dcfef5..b8e67fd 100644
--- a/amor/amoranim.cpp
+++ b/amor/amoranim.cpp
@@ -26,7 +26,7 @@
*/
#include <stdlib.h>
#include <tdeapplication.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include "amoranim.h"
#include "amorpm.h"
@@ -153,7 +153,7 @@ bool AmorThemeManager::setTheme(const TQString & file)
delete mConfig;
- mConfig = new KSimpleConfig(mPath, true);
+ mConfig = new TDESimpleConfig(mPath, true);
mConfig->setGroup("Config");
// Get the directory where the pixmaps are stored and tell the
@@ -198,7 +198,7 @@ AmorAnim *AmorThemeManager::random(const TQString & group)
AmorAnimationGroup *animGroup = mAnimations.find(grp);
if (animGroup) {
- int idx = kapp->random()%animGroup->count();
+ int idx = tdeApp->random()%animGroup->count();
return animGroup->at( idx );
}
diff --git a/amor/amoranim.h b/amor/amoranim.h
index 45a8b7f..76faccb 100644
--- a/amor/amoranim.h
+++ b/amor/amoranim.h
@@ -37,7 +37,7 @@
#include <tqdict.h>
#include <tqstringlist.h>
#include <tdeconfigbase.h>
-#include <ksimpleconfig.h>
+#include <tdesimpleconfig.h>
//---------------------------------------------------------------------------
//
@@ -107,7 +107,7 @@ public:
protected:
TQString mPath;
- KSimpleConfig *mConfig;
+ TDESimpleConfig *mConfig;
TQSize mMaximumSize; // The largest pixmap used
TQDict<AmorAnimationGroup> mAnimations; // list of animation groups
bool mStatic; // static image
diff --git a/amor/amorbubble.cpp b/amor/amorbubble.cpp
index fce5df8..dc2b383 100644
--- a/amor/amorbubble.cpp
+++ b/amor/amorbubble.cpp
@@ -29,7 +29,7 @@
#include <tqpainter.h>
#include <ktextbrowser.h>
#include <tqtooltip.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include <X11/Xlib.h>
#include <X11/extensions/shape.h>
#include <tqtimer.h>
@@ -119,7 +119,7 @@ void AmorBubble::calcGeometry()
// The actual position of the bubble may change if it is too close to
// the desktop boundary.
- if (mOriginX + w > kapp->desktop()->width())
+ if (mOriginX + w > tdeApp->desktop()->width())
{
// source on right
xpos = mOriginX - w - BUBBLE_OFFSET;
@@ -127,7 +127,7 @@ void AmorBubble::calcGeometry()
mBound.moveBy( -ARROW_WIDTH, 0 );
}
- if (mOriginY + h > kapp->desktop()->height())
+ if (mOriginY + h > tdeApp->desktop()->height())
{
// source at bottom
ypos = mOriginY - h + BORDER_SIZE + ARROW_HEIGHT / 2;
diff --git a/amor/amorbubble.h b/amor/amorbubble.h
index 3a99b7d..5006a0e 100644
--- a/amor/amorbubble.h
+++ b/amor/amorbubble.h
@@ -44,7 +44,7 @@ class TQTimer;
//
class AmorBubble : public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
AmorBubble();
diff --git a/amor/amorconfig.cpp b/amor/amorconfig.cpp
index b58c2b5..d5896e0 100644
--- a/amor/amorconfig.cpp
+++ b/amor/amorconfig.cpp
@@ -48,7 +48,7 @@ AmorConfig::AmorConfig()
//
void AmorConfig::read()
{
- TDEConfig *config = kapp->config();
+ TDEConfig *config = tdeApp->config();
TDEConfigGroupSaver cs(config, "General");
mOnTop = config->readBoolEntry("OnTop", false);
@@ -66,7 +66,7 @@ void AmorConfig::read()
//
void AmorConfig::write()
{
- TDEConfig *config = kapp->config();
+ TDEConfig *config = tdeApp->config();
TDEConfigGroupSaver cs(config, "General");
config->writeEntry("OnTop", mOnTop);
diff --git a/amor/amordialog.cpp b/amor/amordialog.cpp
index 5abb0e3..ad5d3a2 100644
--- a/amor/amordialog.cpp
+++ b/amor/amordialog.cpp
@@ -30,13 +30,13 @@
#include <tqslider.h>
#include <tqpainter.h>
#include <tdeapplication.h>
-#include <ksimpleconfig.h>
+#include <tdesimpleconfig.h>
#include "amordialog.h"
#include "amordialog.moc"
#include "version.h"
#include <tdelocale.h>
#include <tqvbox.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
//---------------------------------------------------------------------------
//
@@ -57,7 +57,7 @@ AmorDialog::AmorDialog()
TQLabel *label = new TQLabel(i18n("Theme:"), themeBox);
mThemeListBox = new TQListBox(themeBox);
- connect(mThemeListBox,TQT_SIGNAL(highlighted(int)),TQT_SLOT(slotHighlighted(int)));
+ connect(mThemeListBox,TQ_SIGNAL(highlighted(int)),TQ_SLOT(slotHighlighted(int)));
mThemeListBox->setMinimumSize( fontMetrics().maxWidth()*20,
fontMetrics().lineSpacing()*6 );
@@ -74,24 +74,24 @@ AmorDialog::AmorDialog()
label = new TQLabel(i18n("Offset:"), offsetBox);
TQSlider *slider = new TQSlider(-40, 40, 5, mConfig.mOffset,
- Qt::Vertical, offsetBox);
- connect(slider, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotOffset(int)));
+ TQt::Vertical, offsetBox);
+ connect(slider, TQ_SIGNAL(valueChanged(int)), TQ_SLOT(slotOffset(int)));
// Always on top
TQCheckBox *checkBox = new TQCheckBox(i18n("Always on top"), mainwidget);
- connect(checkBox, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotOnTop(bool)));
+ connect(checkBox, TQ_SIGNAL(toggled(bool)), TQ_SLOT(slotOnTop(bool)));
checkBox->setChecked(mConfig.mOnTop);
checkBox = new TQCheckBox(i18n("Show random tips"), mainwidget);
- connect(checkBox, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotRandomTips(bool)));
+ connect(checkBox, TQ_SIGNAL(toggled(bool)), TQ_SLOT(slotRandomTips(bool)));
checkBox->setChecked(mConfig.mTips); // always keep this one after the connect, or the TQPtrList would not be grayed when it should
checkBox = new TQCheckBox(i18n("Use a random character"), mainwidget);
- connect(checkBox, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotRandomTheme(bool)));
+ connect(checkBox, TQ_SIGNAL(toggled(bool)), TQ_SLOT(slotRandomTheme(bool)));
checkBox->setChecked(mConfig.mRandomTheme);
checkBox = new TQCheckBox(i18n("Allow application tips"), mainwidget);
- connect(checkBox, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotApplicationTips(bool)));
+ connect(checkBox, TQ_SIGNAL(toggled(bool)), TQ_SLOT(slotApplicationTips(bool)));
checkBox->setChecked(mConfig.mAppTips);
readThemes();
@@ -129,7 +129,7 @@ void AmorDialog::readThemes()
//
void AmorDialog::addTheme(const TQString& file)
{
- KSimpleConfig config(locate("appdata", file), true);
+ TDESimpleConfig config(locate("appdata", file), true);
config.setGroup("Config");
@@ -251,7 +251,7 @@ void AmorDialog::slotApply()
void AmorDialog::slotCancel()
{
// restore offset
- TDEConfig *config = kapp->config();
+ TDEConfig *config = tdeApp->config();
TDEConfigGroupSaver cs(config, "General");
emit offsetChanged(config->readNumEntry("Offset"));
reject();
diff --git a/amor/amordialog.h b/amor/amordialog.h
index d2d2d0c..cfd6896 100644
--- a/amor/amordialog.h
+++ b/amor/amordialog.h
@@ -40,7 +40,7 @@
//
class AmorDialog : public KDialogBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/amor/amortips.cpp b/amor/amortips.cpp
index 7c0c0d4..8e7ef41 100644
--- a/amor/amortips.cpp
+++ b/amor/amortips.cpp
@@ -27,7 +27,7 @@
#include <stdlib.h>
#include <tdeapplication.h>
#include "amortips.h"
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include <tdelocale.h>
#include <tqfile.h>
#include <tqregexp.h>
@@ -75,7 +75,7 @@ TQString AmorTips::tip()
{
if (mTips.count())
{
- TQString tip = *mTips.at(kapp->random() % mTips.count());
+ TQString tip = *mTips.at(tdeApp->random() % mTips.count());
return i18n(tip.utf8());
}
diff --git a/amor/amorwidget.cpp b/amor/amorwidget.cpp
index 38dd0d3..c60cd5d 100644
--- a/amor/amorwidget.cpp
+++ b/amor/amorwidget.cpp
@@ -98,7 +98,7 @@ void AmorWidget::mousePressEvent(TQMouseEvent *me)
//
void AmorWidget::mouseMoveEvent(TQMouseEvent *me)
{
- if ( me->state() == Qt::LeftButton ) {
+ if ( me->state() == TQt::LeftButton ) {
if ( !dragging && (clickPos-me->globalPos()).manhattanLength() > 3 )
dragging = true;
if ( dragging ) {
@@ -116,7 +116,7 @@ void AmorWidget::mouseReleaseEvent(TQMouseEvent *me)
{
if ( dragging )
emit dragged( me->globalPos() - clickPos, true );
- else if ( me->state() == Qt::RightButton )
+ else if ( me->state() == TQt::RightButton )
emit mouseClicked(clickPos);
clickPos = TQPoint();
diff --git a/amor/amorwidget.h b/amor/amorwidget.h
index d5cdd88..9d4b5db 100644
--- a/amor/amorwidget.h
+++ b/amor/amorwidget.h
@@ -40,7 +40,7 @@
//
class AmorWidget : public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
AmorWidget();
diff --git a/amor/main.cpp b/amor/main.cpp
index 79c0738..27783c1 100644
--- a/amor/main.cpp
+++ b/amor/main.cpp
@@ -30,7 +30,7 @@
#include <stdio.h>
#include <time.h>
-#include <kuniqueapplication.h>
+#include <tdeuniqueapplication.h>
#include <tdelocale.h>
#include <tdecmdlineargs.h>
#include <tdeaboutdata.h>
@@ -51,11 +51,11 @@ int main(int argc, char *argv[])
aboutData.addAuthor("Gerardo Puga", I18N_NOOP("Current maintainer"), "gpuga@gioia.ing.unlp.edu.ar");
TDECmdLineArgs::init( argc, argv, &aboutData );
- if (!KUniqueApplication::start()) {
+ if (!TDEUniqueApplication::start()) {
fprintf(stderr, "%s is already running!\n", aboutData.appName());
exit(0);
}
- KUniqueApplication app;
+ TDEUniqueApplication app;
// session management
AmorSessionWidget *sessionWidget = new AmorSessionWidget;