summaryrefslogtreecommitdiffstats
path: root/src/setupdialogprg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/setupdialogprg.cpp')
-rw-r--r--src/setupdialogprg.cpp26
1 files changed, 13 insertions, 13 deletions
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 <kfiledialog.h>
+#include <tdefiledialog.h>
#include <kimageio.h>
#include <kicondialog.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include <ksimpleconfig.h>
-#include <kmessagebox.h>
+#include <tdemessagebox.h>
#include <kstandarddirs.h>
#include <kpushbutton.h>
#include <keditlistbox.h>
@@ -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; i<bgPath.count();i++)
{
@@ -164,7 +164,7 @@ void SetupDialogPrg::configApply()
fpercentPos=percentPos->value();
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<TQIconDragItem>&)
{
- 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();