From 416309451958efbd22b4904aa9fdd1c1d54885f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Thu, 1 Oct 2015 18:36:18 +0200 Subject: Initial TDE conversion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- doc/Makefile.am | 4 +-- doc/en/Makefile.am | 4 +-- po/Makefile.am | 4 +-- src/Makefile.am | 8 +++--- src/appProp.ui | 2 +- src/apppropprg.cpp | 6 ++--- src/clip.cpp | 2 +- src/clip.h | 2 +- src/dinfo.h | 2 +- src/item.cpp | 10 ++++---- src/item.h | 4 +-- src/kooldock.cpp | 70 +++++++++++++++++++++++++------------------------- src/kooldock.h | 24 ++++++++--------- src/main.cpp | 26 +++++++++---------- src/setupdialog.ui | 6 ++--- src/setupdialogprg.cpp | 26 +++++++++---------- src/setupdialogprg.h | 8 +++--- src/xosd.cpp | 4 +-- src/xosd.h | 2 +- 19 files changed, 107 insertions(+), 107 deletions(-) diff --git a/doc/Makefile.am b/doc/Makefile.am index 271bd41..cb70995 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,4 +1,4 @@ -####### kdevelop will overwrite this part!!! (begin)########## +####### tdevelop will overwrite this part!!! (begin)########## -####### kdevelop will overwrite this part!!! (end)############ +####### tdevelop will overwrite this part!!! (end)############ diff --git a/doc/en/Makefile.am b/doc/en/Makefile.am index 271bd41..cb70995 100644 --- a/doc/en/Makefile.am +++ b/doc/en/Makefile.am @@ -1,4 +1,4 @@ -####### kdevelop will overwrite this part!!! (begin)########## +####### tdevelop will overwrite this part!!! (begin)########## -####### kdevelop will overwrite this part!!! (end)############ +####### tdevelop will overwrite this part!!! (end)############ diff --git a/po/Makefile.am b/po/Makefile.am index 50aeed8..630dedf 100644 --- a/po/Makefile.am +++ b/po/Makefile.am @@ -1,6 +1,6 @@ -####### kdevelop will overwrite this part!!! (begin)########## +####### tdevelop will overwrite this part!!! (begin)########## -####### kdevelop will overwrite this part!!! (end)############ +####### tdevelop will overwrite this part!!! (end)############ POFILES = AUTO diff --git a/src/Makefile.am b/src/Makefile.am index f20677c..7008cea 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,16 +1,16 @@ -####### kdevelop will overwrite this part!!! (begin)########## +####### tdevelop will overwrite this part!!! (begin)########## bin_PROGRAMS = kooldock -## INCLUDES were found outside kdevelop specific part +## INCLUDES were found outside tdevelop specific part kooldock_SOURCES = appProp.ui apppropprg.cpp clip.cpp dinfo.cpp item.cpp \ kooldock.cpp main.cpp setupdialog.ui setupdialogprg.cpp xosd.cpp -kooldock_LDADD = $(LIB_KIO) -lDCOP -lkdefx $(LIB_KDEUI) $(LIB_KDECORE) $(LIB_QT) $(LIBSOCKET) +kooldock_LDADD = $(LIB_TDEIO) -lDCOP -ltdefx $(LIB_TDEUI) $(LIB_TDECORE) $(LIB_QT) $(LIBSOCKET) EXTRA_DIST = main.cpp kooldock.cpp kooldock.h item.cpp item.h -####### kdevelop will overwrite this part!!! (end)############ +####### tdevelop will overwrite this part!!! (end)############ # These paths are KDE specific. Use them: # kde_appsdir Where your application's menu entry (.desktop) should go to. # kde_icondir Where your icon should go to - better use KDE_ICON. diff --git a/src/appProp.ui b/src/appProp.ui index bdc111a..bcab78f 100644 --- a/src/appProp.ui +++ b/src/appProp.ui @@ -197,7 +197,7 @@ Alt+B - + iconbutton diff --git a/src/apppropprg.cpp b/src/apppropprg.cpp index ab20985..4d9d60e 100644 --- a/src/apppropprg.cpp +++ b/src/apppropprg.cpp @@ -10,10 +10,10 @@ // // #include -#include -#include +#include +#include #include -#include +#include #include "apppropprg.h" #include "appProp.h" diff --git a/src/clip.cpp b/src/clip.cpp index 979b278..38137d9 100644 --- a/src/clip.cpp +++ b/src/clip.cpp @@ -5,7 +5,7 @@ #include #include #include -#include +#include #include diff --git a/src/clip.h b/src/clip.h index cdfa473..f33ba61 100644 --- a/src/clip.h +++ b/src/clip.h @@ -8,7 +8,7 @@ #include #include -#include +#include class clip : public TQWidget { diff --git a/src/dinfo.h b/src/dinfo.h index 681f04d..129bf62 100644 --- a/src/dinfo.h +++ b/src/dinfo.h @@ -20,7 +20,7 @@ #ifndef DINFO_H #define DINFO_H -#include +#include /** @author bisiek */ diff --git a/src/item.cpp b/src/item.cpp index 4dccc77..2687da0 100644 --- a/src/item.cpp +++ b/src/item.cpp @@ -15,7 +15,7 @@ * * ***************************************************************************/ -#include +#include #include #include @@ -25,7 +25,7 @@ #include "item.h" Item::Item(const TQString& iconName, const TQString& cmd, const TQString& name, int minSize, int maxSize) { - iLoader = KGlobal::iconLoader(); + iLoader = TDEGlobal::iconLoader(); command = cmd; this->name = name; mCount=0; @@ -36,7 +36,7 @@ Item::Item(const TQString& iconName, const TQString& cmd, const TQString& name, this->maxSize = maxSize; this->iconName = iconName; - TQImage icon(iLoader->loadIcon(iconName, KIcon::NoGroup, 64).convertToImage()); + TQImage icon(iLoader->loadIcon(iconName, TDEIcon::NoGroup, 64).convertToImage()); if (minSize <= maxSize) { int count = maxSize - minSize + 1; @@ -90,7 +90,7 @@ Item::Item(const TQString& fileName, int minSize, int maxSize) in.close(); - iLoader = KGlobal::iconLoader(); + iLoader = TDEGlobal::iconLoader(); this->minSize = minSize; this->maxSize = maxSize; this->filename = fileName; @@ -98,7 +98,7 @@ Item::Item(const TQString& fileName, int minSize, int maxSize) mIndex=0; mMIndex=0; mClass=""; - TQImage icon(iLoader->loadIcon(iconName, KIcon::NoGroup, 64).convertToImage()); + TQImage icon(iLoader->loadIcon(iconName, TDEIcon::NoGroup, 64).convertToImage()); if (minSize <= maxSize) { int count = maxSize - minSize + 1; diff --git a/src/item.h b/src/item.h index 2c56901..156dad7 100644 --- a/src/item.h +++ b/src/item.h @@ -19,7 +19,7 @@ #define ITEM_H #include -#include +#include #include #include @@ -66,7 +66,7 @@ class Item bool wIcon; private: - KIconLoader *iLoader; + TDEIconLoader *iLoader; int minSize; int maxSize; diff --git a/src/kooldock.cpp b/src/kooldock.cpp index 1a362ef..5f0a9fc 100644 --- a/src/kooldock.cpp +++ b/src/kooldock.cpp @@ -35,17 +35,17 @@ #include #include -#include +#include #include #include -#include -#include -#include +#include +#include +#include #include #include #include #include -#include +#include #include #include @@ -56,7 +56,7 @@ #include "kooldock.h" -#include +#include #include #include "setupdialogprg.h" @@ -90,12 +90,12 @@ KoolDock::KoolDock(TQWidget *parent, const char *name) : TQWidget(parent, name, reloadIcons=TRUE; //Menu definitions - deskpopup=new KPopupMenu(); - appMenu=new KPopupMenu(); - godesk=new KPopupMenu; - tasklist=new KPopupMenu; - popup=new KPopupMenu; - advMenu=new KPopupMenu; + deskpopup=new TDEPopupMenu(); + appMenu=new TDEPopupMenu(); + godesk=new TDEPopupMenu; + tasklist=new TDEPopupMenu; + popup=new TDEPopupMenu; + advMenu=new TDEPopupMenu; connect(popup, SIGNAL(aboutToShow()), SLOT(aboutToShow())); connect(popup, SIGNAL(aboutToHide()), SLOT(aboutToHide())); @@ -736,7 +736,7 @@ void KoolDock::mPress(int mx, int my, ButtonState srcButton) { // run the application with KDE feedback (loading icon) // we need to run the .desktop file, since the command - // may be a url or another KIO stuff like 'system:/' + // may be a url or another TDEIO stuff like 'system:/' if (items.at(i)->getFilename()!="") { run(items.at(i)->getFilename()); @@ -841,20 +841,20 @@ void KoolDock::mPress(int mx, int my, ButtonState srcButton) // Right button. i = iClicked; advMenu->clear(); - advMenu->insertItem(SmallIconSet("up"), i18n("Keep &Above Others"), this, SLOT(toggleAlwaysOnTop()),0,1); - advMenu->insertItem(SmallIconSet("down"), i18n("Keep &Below Others"), this, SLOT(toggleKeptBelowOthers()),0,2); - advMenu->insertItem(SmallIconSet("window_fullscreen"), i18n("&Fullscreen"), this, SLOT(toggleFullScreen()),0,3); + advMenu->insertItem(SmallIconSet("go-up"), i18n("Keep &Above Others"), this, SLOT(toggleAlwaysOnTop()),0,1); + advMenu->insertItem(SmallIconSet("go-down"), i18n("Keep &Below Others"), this, SLOT(toggleKeptBelowOthers()),0,2); + advMenu->insertItem(SmallIconSet("view-fullscreen"), i18n("&Fullscreen"), this, SLOT(toggleFullScreen()),0,3); // Main KoolDock popup menu popup->clear(); popup->insertTitle(i18n("Main Menu")); popup->insertItem(SmallIcon("configure"), i18n("Edit Quick Launch &Menu"), this, SLOT(edit())); popup->insertItem(SmallIcon("pencil"), i18n("Edit &Preferences"), this, SLOT(editPref())); - popup->insertItem(SmallIcon("redo"), i18n("&Reload configuration"), this, SLOT(restart())); + popup->insertItem(SmallIcon("edit-redo"), i18n("&Reload configuration"), this, SLOT(restart())); popup->insertSeparator(); popup->insertItem(SmallIcon("about_kde"), i18n("&About"), this, SLOT(about())); popup->insertSeparator(); - popup->insertItem(SmallIcon("exit"), i18n("E&xit"), this, SLOT(endProg())); + popup->insertItem(SmallIcon("system-log-out"), i18n("E&xit"), this, SLOT(endProg())); // End Main KoolDock Menu if(fShowNav==1) @@ -903,7 +903,7 @@ void KoolDock::mPress(int mx, int my, ButtonState srcButton) appMenu->insertTitle(i18n("Item menu")); iFilename = items.at(i)->getFilename(); appMenu->insertItem(SmallIcon("configure"), i18n("&Edit item"), this, SLOT(editItem())); - appMenu->insertItem(SmallIcon("fileclose"), i18n("&Delete item"), this, SLOT(removeItem())); + appMenu->insertItem(SmallIcon("window-close"), i18n("&Delete item"), this, SLOT(removeItem())); appMenu->insertSeparator(); appMenu->insertItem(SmallIcon("forward"), "&KoolDock", popup); appMenu->exec(TQCursor::pos()); @@ -967,7 +967,7 @@ void KoolDock::mPress(int mx, int my, ButtonState srcButton) winfo = item->info; if ((fMinimizedOnly==0 || winfo.isMinimized()) && (fCurrent==0 || winfo.isOnDesktop(KWin::currentDesktop()))) { - KPopupMenu *tmpMenu = new KPopupMenu; + TDEPopupMenu *tmpMenu = new TDEPopupMenu; createMenu(tmpMenu, &winfo); connect(tmpMenu, SIGNAL(aboutToShow()), SLOT(menuShow())); popups.append (tmpMenu); @@ -980,7 +980,7 @@ void KoolDock::mPress(int mx, int my, ButtonState srcButton) appMenu->insertItem(i18n("Mi&nimize all"), this, SLOT(minAllApps())); appMenu->insertItem(i18n("Ma&ximize all"), this, SLOT(maxAllApps())); appMenu->insertItem(i18n("&Restore all"), this, SLOT(restAllApps())); - appMenu->insertItem(SmallIcon("fileclose"), i18n("&Close all"), this, SLOT(closeAllApps())); + appMenu->insertItem(SmallIcon("window-close"), i18n("&Close all"), this, SLOT(closeAllApps())); } else { @@ -1416,7 +1416,7 @@ void KoolDock::run(const TQString& command) _filterData->setData( command.stripWhiteSpace() ); TQStringList filters; - filters << "kurisearchfilter" << "kshorturifilter"; + filters << "kurisearchfilter" << "tdeshorturifilter"; KURIFilter::self()->filterURI( *(_filterData), filters ); TQString cmd = (_filterData->uri().isLocalFile() ? _filterData->uri().path():_filterData->uri().url()); @@ -1437,7 +1437,7 @@ void KoolDock::run(const TQString& command) { if (useList) { - KApplication::startServiceByDesktopPath (command, lstDrop, &TQString(0) ,&TQCString(0) ,0 , "" ,true); + TDEApplication::startServiceByDesktopPath (command, lstDrop, &TQString(0) ,&TQCString(0) ,0 , "" ,true); } else { @@ -2051,7 +2051,7 @@ bool KoolDock::addwTask(WId id) void KoolDock::loadConf() { - KConfig *config = KGlobal::config(); + TDEConfig *config = TDEGlobal::config(); config->setGroup("kooldock"); fShowTaskbar = config->readNumEntry("ShowTaskbar", 0); @@ -2205,7 +2205,7 @@ void KoolDock::loadIgnore() void KoolDock::saveConf() { - KConfig *config = KGlobal::config(); + TDEConfig *config = TDEGlobal::config(); config->setGroup("kooldock"); config->writeEntry("ShowTaskbar", fShowTaskbar); @@ -2464,7 +2464,7 @@ void KoolDock::loadMenu() void KoolDock::about() { - KAboutApplication about(this, 0, false); + TDEAboutApplication about(this, 0, false); about.exec(); } @@ -2914,21 +2914,21 @@ void KoolDock::addFile(const TQString& filename, out_s << "Type=Application" << endl; if(notify == true) { - out_s << "X-KDE-StartupNotify=true" << endl; + out_s << "X-TDE-StartupNotify=true" << endl; } else { - out_s << "X-KDE-StartupNotify=false" << endl; + out_s << "X-TDE-StartupNotify=false" << endl; } if(cuser==true) { - out_s << "X-KDE-SubstituteUID=true" << endl; - out_s << "X-KDE-Username=" << puser << endl; + out_s << "X-TDE-SubstituteUID=true" << endl; + out_s << "X-TDE-Username=" << puser << endl; } else { - out_s << "X-KDE-SubstituteUID=false" << endl; - out_s << "X-KDE-Username=" << endl; + out_s << "X-TDE-SubstituteUID=false" << endl; + out_s << "X-TDE-Username=" << endl; } if(terminal==true) { @@ -3165,7 +3165,7 @@ void KoolDock::getTopBG() void KoolDock::setDesktopIconsArea(int left, int top, int width, int height) { if (fClipIcons==0) return; - DCOPClient* client = KApplication::dcopClient(); + DCOPClient* client = TDEApplication::dcopClient(); if (!client->isAttached()) { client->attach(); client->registerAs("KoolDock"); @@ -3667,7 +3667,7 @@ void KoolDock::aboutToHide() menuCount--; } -void KoolDock::createMenu(KPopupMenu* tmpMenu, KWin::WindowInfo * info) +void KoolDock::createMenu(TDEPopupMenu* tmpMenu, KWin::WindowInfo * info) { TQString appTitle; int menustate; @@ -3701,7 +3701,7 @@ void KoolDock::createMenu(KPopupMenu* tmpMenu, KWin::WindowInfo * info) tmpMenu->insertItem(SmallIcon("forward"), i18n("&Move to Desktop"), deskpopup); tmpMenu->insertSeparator(); - tmpMenu->insertItem(SmallIcon("fileclose"), i18n("&Close"), this, SLOT(closeApp())); + tmpMenu->insertItem(SmallIcon("window-close"), i18n("&Close"), this, SLOT(closeApp())); } void KoolDock::updTaskList() diff --git a/src/kooldock.h b/src/kooldock.h index ac523f1..85b4700 100644 --- a/src/kooldock.h +++ b/src/kooldock.h @@ -23,9 +23,9 @@ #endif #include -#include -#include -#include +#include +#include +#include #include #include #include @@ -204,7 +204,7 @@ class KoolDock : public TQWidget KPixmap bottomBgf; TQPixmap topBg; - KAboutDialog *aboutDlg; + TDEAboutDialog *aboutDlg; TQTimer *mkbigTimer; //zoom animation timers TQTimer *mksmallTimer; TQTimer *mTimer; //mouse move emulator (can't use normal event instead) @@ -217,15 +217,15 @@ class KoolDock : public TQWidget TQString cClass; WId CurrentFocus; int onChangeAnimStep; - KPopupMenu *deskpopup; - KPopupMenu *appMenu; - KPopupMenu *godesk; - KPopupMenu *tasklist; - KPopupMenu *popup; - KPopupMenu *advMenu; + TDEPopupMenu *deskpopup; + TDEPopupMenu *appMenu; + TDEPopupMenu *godesk; + TDEPopupMenu *tasklist; + TDEPopupMenu *popup; + TDEPopupMenu *advMenu; int menuCount, currMenu; bool allApps; - TQPtrList popups; + TQPtrList popups; bool iGroup; int dIndex, nDesks; TQPtrList desks; @@ -267,7 +267,7 @@ class KoolDock : public TQWidget void addWindows(); int itemFromPoint(int x); int xFromIndex(int i); - void createMenu(KPopupMenu* tmpMenu, KWin::WindowInfo* info); + void createMenu(TDEPopupMenu* tmpMenu, KWin::WindowInfo* info); void updTaskList(); void addToTaskList(WId id); void rmFromTaskList(WId id); diff --git a/src/main.cpp b/src/main.cpp index e899348..a63a1a0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -15,16 +15,16 @@ * * ***************************************************************************/ -#include -#include -#include +#include +#include +#include #include #include #include #include #include -#include +#include #include "kooldock.h" @@ -46,7 +46,7 @@ extern "C" static const char *description = I18N_NOOP("
KoolDock
A Kool Dock for KDE

KoolDock is based upon the original work of Dang Viet Dung, Ksmoothdock 2.1

"); -static KCmdLineOptions options[] = +static TDECmdLineOptions options[] = { { "o", 0, 0 }, { "options", I18N_NOOP("Show configuration window on start"), 0 }, @@ -59,8 +59,8 @@ int main(int argc, char *argv[]) { argv0=TQString("%1").arg(argv[0]); - KAboutData aboutData( "kooldock", I18N_NOOP("KoolDock"), - KOOLDOCK_VERSION, description, KAboutData::License_GPL, + TDEAboutData aboutData( "kooldock", I18N_NOOP("KoolDock"), + KOOLDOCK_VERSION, description, TDEAboutData::License_GPL, "(c) 2003, 2006 - KoolDock team", 0, "http://ktown.kde.cl/kooldock", "kooldock-devel@lists.kde.cl"); aboutData.addAuthor("Matias Fernandez",0, "radix@kde.cl"); aboutData.addAuthor("Francisco Guidi",0, "francisco@guidi.com", "http://francisco.guidi.com"); @@ -68,11 +68,11 @@ int main(int argc, char *argv[]) aboutData.addCredit("Mauricio Bahamonde", I18N_NOOP("Project Webmaster"), "elkrammer@kde.cl", "http://ktown.kde.cl/~elkrammer/"); aboutData.addCredit("Sebastian Sariego Benitez", I18N_NOOP("Icon and artwork"), "segfault@powers.cl", "http://segfault.kde.cl"); aboutData.setTranslator(I18N_NOOP("_: NAME OF TRANSLATORS\nYour names"), I18N_NOOP("_: EMAIL OF TRANSLATORS\nYour emails")); - KCmdLineArgs::init( argc, argv, &aboutData ); - KCmdLineArgs::addCmdLineOptions( options ); // Add our own options. + TDECmdLineArgs::init( argc, argv, &aboutData ); + TDECmdLineArgs::addCmdLineOptions( options ); // Add our own options. #ifdef _ENABLE_DEBUG - KApplication::addCmdLineOptions(); + TDEApplication::addCmdLineOptions(); #endif #ifndef _ENABLE_DEBUG KUniqueApplication::addCmdLineOptions(); @@ -95,16 +95,16 @@ int main(int argc, char *argv[]) KUniqueApplication a; #endif #ifdef _ENABLE_DEBUG - KApplication a; + TDEApplication a; #endif KoolDock *kooldock = new KoolDock(); a.setMainWidget(kooldock); #ifndef _ENABLE_DEBUG - if(KCrash::crashHandler()!=0) + if(TDECrash::crashHandler()!=0) { kdDebug(0) << "Installing crash handler" << endl; - KCrash::setEmergencySaveFunction(crashHandler); // Try to restart on crash + TDECrash::setEmergencySaveFunction(crashHandler); // Try to restart on crash } #endif diff --git a/src/setupdialog.ui b/src/setupdialog.ui index cf7388c..d3f4ab3 100644 --- a/src/setupdialog.ui +++ b/src/setupdialog.ui @@ -389,7 +389,7 @@ Text font:
- + xosdFont @@ -742,7 +742,7 @@ Click here to manually add an application to the Launcher - + applist @@ -1976,7 +1976,7 @@ box below. To stop grabbing just click "Grabbing...", "Ok" or "Cancel". - kfontcombo.h + tdefontcombo.h klineedit.h kcolorcombo.h kcolorcombo.h diff --git a/src/setupdialogprg.cpp b/src/setupdialogprg.cpp index 1723af1..38a11e8 100644 --- a/src/setupdialogprg.cpp +++ b/src/setupdialogprg.cpp @@ -9,12 +9,12 @@ // Copyright: See COPYING file that comes with this distribution // // -#include +#include #include #include -#include +#include #include -#include +#include #include #include #include @@ -53,7 +53,7 @@ SetupDialogPrg::SetupDialogPrg(TQWidget *parent, const char *name) progPath = locateLocal("data", "kooldock"); menuPath = progPath + TQString("/menu/"); - KConfig *config = KGlobal::config(); + TDEConfig *config = TDEGlobal::config(); config->setGroup("kooldock"); appdlg=new appPropPrg(); @@ -65,7 +65,7 @@ SetupDialogPrg::SetupDialogPrg(TQWidget *parent, const char *name) connect(appdlg, SIGNAL(apply()), SLOT(appRestart())); //Lets load the theme List - KStandardDirs sys; + TDEStandardDirs sys; TQStringList bgPath = sys.findDirs("data", "kooldock/backgrounds"); for(unsigned int i=0; ivalue(); kdDebug(0) << "Saving preferences..." << endl; - KConfig *config = KGlobal::config(); + TDEConfig *config = TDEGlobal::config(); config->setGroup("kooldock"); config->writeEntry("ShowTaskbar", fShowTaskbar); config->writeEntry("MinimizedOnly", fMinimizedOnly); @@ -234,7 +234,7 @@ void SetupDialogPrg::configApply() if (chkImg->isChecked()) { //Lets find exactly where the selected theme is - KStandardDirs sys; + TDEStandardDirs sys; TQString theme_dir="kooldock/backgrounds/"+theme->currentText(); TQStringList bgPath = sys.findDirs("data", theme_dir); @@ -373,7 +373,7 @@ void SetupDialogPrg::chkHidden() void SetupDialogPrg::applist_dropped(TQDropEvent*e,const TQValueList&) { - KIconLoader icon_obj; + TDEIconLoader icon_obj; TQStringList lst; TQString name; int pos; @@ -535,7 +535,7 @@ void SetupDialogPrg::appFill() KSimpleConfig *desktopfile; TQDir homeDir = TQDir::home(); - KIconLoader icon_obj; + TDEIconLoader icon_obj; TQPixmap pixm; if(homeDir.exists(progPath)) @@ -550,8 +550,8 @@ void SetupDialogPrg::appFill() { desktopfile = new KSimpleConfig( menuPath + (*it), TRUE); desktopfile->setGroup("Desktop Entry"); - TQPixmap pixm=icon_obj.loadIcon(desktopfile->readEntry("Icon") ,KIcon::Desktop,0,KIcon::DefaultState,0L,false); - new KIconViewItem(applist, desktopfile->readEntry("Name"), pixm); + TQPixmap pixm=icon_obj.loadIcon(desktopfile->readEntry("Icon") ,TDEIcon::Desktop,0,TDEIcon::DefaultState,0L,false); + new TDEIconViewItem(applist, desktopfile->readEntry("Name"), pixm); delete(desktopfile); } } @@ -590,8 +590,8 @@ void SetupDialogPrg::applist_contextMenuRequested(TQIconViewItem *e,const TQPoin { if(e!=NULL) { - KPopupMenu *popup=new KPopupMenu(); - KPopupMenu *setpos=new KPopupMenu(); + TDEPopupMenu *popup=new TDEPopupMenu(); + TDEPopupMenu *setpos=new TDEPopupMenu(); fileName=e->text(); oldPos=e->index(); diff --git a/src/setupdialogprg.h b/src/setupdialogprg.h index 2defbba..222273e 100644 --- a/src/setupdialogprg.h +++ b/src/setupdialogprg.h @@ -28,13 +28,13 @@ #include // KDE includes -#include +#include #include #include #include -#include -#include -#include +#include +#include +#include #include #include diff --git a/src/xosd.cpp b/src/xosd.cpp index fbedc63..aaeb4b7 100644 --- a/src/xosd.cpp +++ b/src/xosd.cpp @@ -7,10 +7,10 @@ #include #include -#include +#include #include #include -#include +#include #include #include diff --git a/src/xosd.h b/src/xosd.h index 26a6119..89bd230 100644 --- a/src/xosd.h +++ b/src/xosd.h @@ -12,7 +12,7 @@ #include #include -#include +#include class xosd : public TQWidget { -- cgit v1.2.1