summaryrefslogtreecommitdiffstats
path: root/src/kiconcanvas.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kiconcanvas.cpp')
-rw-r--r--src/kiconcanvas.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/kiconcanvas.cpp b/src/kiconcanvas.cpp
index f23a81d..ce48126 100644
--- a/src/kiconcanvas.cpp
+++ b/src/kiconcanvas.cpp
@@ -45,10 +45,10 @@
#include <svgicons/ksvgiconpainter.h>
#endif
-class KIconCanvasItem : public TQIconViewItem
+class TDEIconCanvasItem : public TQIconViewItem
{
public:
- KIconCanvasItem ( TQIconView * parent, const TQString & key, const TQPixmap & pixmap )
+ TDEIconCanvasItem ( TQIconView * parent, const TQString & key, const TQPixmap & pixmap )
: TQIconViewItem(parent)
{
setText(TQFileInfo(key).baseName());
@@ -65,15 +65,15 @@ class KIconCanvasItem : public TQIconViewItem
}
};
-class KIconCanvas::KIconCanvasPrivate
+class TDEIconCanvas::TDEIconCanvasPrivate
{
public:
- KIconCanvasPrivate()
+ TDEIconCanvasPrivate()
{
m_bLoading = false;
mSize = 0;
}
- ~KIconCanvasPrivate()
+ ~TDEIconCanvasPrivate()
{
}
bool m_bLoading;
@@ -86,13 +86,13 @@ class KIconCanvas::KIconCanvasPrivate
};
/*
- * KIconCanvas: Iconview for the iconloader dialog.
+ * TDEIconCanvas: Iconview for the iconloader dialog.
*/
-KIconCanvas::KIconCanvas(TQWidget *parent, const char *name)
- : KIconView(parent, name)
+TDEIconCanvas::TDEIconCanvas(TQWidget *parent, const char *name)
+ : TDEIconView(parent, name)
{
- d = new KIconCanvasPrivate;
+ d = new TDEIconCanvasPrivate;
mpLoader = TDEGlobal::iconLoader();
mpTimer = new TQTimer(this);
connect(mpTimer, TQT_SIGNAL(timeout()), TQT_SLOT(slotLoadFiles()));
@@ -103,18 +103,18 @@ KIconCanvas::KIconCanvas(TQWidget *parent, const char *name)
setStrictIconSize(false);
}
-KIconCanvas::~KIconCanvas()
+TDEIconCanvas::~TDEIconCanvas()
{
delete mpTimer;
delete d;
}
-void KIconCanvas::setIconLoader(KIconLoader *loader)
+void TDEIconCanvas::setIconLoader(TDEIconLoader *loader)
{
mpLoader = loader;
}
-void KIconCanvas::loadIcon(const TQString &name)
+void TDEIconCanvas::loadIcon(const TQString &name)
{
TQImage img;
TQString path = mpLoader->iconPath(name,-d->mSize);
@@ -150,10 +150,10 @@ void KIconCanvas::loadIcon(const TQString &name)
TQPixmap pm;
pm.convertFromImage(img);
- (void) new KIconCanvasItem(this, name, pm);
+ (void) new TDEIconCanvasItem(this, name, pm);
}
-void KIconCanvas::loadFiles(const TQStringList& files)
+void TDEIconCanvas::loadFiles(const TQStringList& files)
{
clear();
mFiles = files;
@@ -162,7 +162,7 @@ void KIconCanvas::loadFiles(const TQStringList& files)
d->m_bLoading = false;
}
-void KIconCanvas::slotLoadFiles()
+void TDEIconCanvas::slotLoadFiles()
{
setResizeMode(Fixed);
TQApplication::setOverrideCursor(waitCursor);
@@ -200,34 +200,34 @@ void KIconCanvas::slotLoadFiles()
setResizeMode(Adjust);
}
-TQString KIconCanvas::getCurrent() const
+TQString TDEIconCanvas::getCurrent() const
{
return currentItem() ? currentItem()->key() : TQString();
}
-void KIconCanvas::stopLoading()
+void TDEIconCanvas::stopLoading()
{
d->m_bLoading = false;
}
-void KIconCanvas::slotCurrentChanged(TQIconViewItem *item)
+void TDEIconCanvas::slotCurrentChanged(TQIconViewItem *item)
{
emit nameChanged((item != 0L) ? item->text() : TQString());
}
-void KIconCanvas::setGroupOrSize( int groupOrSize )
+void TDEIconCanvas::setGroupOrSize( int groupOrSize )
{
d->mSize = ((int)groupOrSize >= 0) ?
- mpLoader->currentSize((KIcon::Group)groupOrSize) :
+ mpLoader->currentSize((TDEIcon::Group)groupOrSize) :
-groupOrSize;
}
-void KIconCanvas::setStrictIconSize( bool strictIconSize )
+void TDEIconCanvas::setStrictIconSize( bool strictIconSize )
{
d->mStrictIconSize = strictIconSize;
}
-TQDragObject *KIconCanvas::dragObject()
+TQDragObject *TDEIconCanvas::dragObject()
{
// We use TQImageDrag rather than KURLDrag so that the user can't drag an icon out of the theme!
// TODO: support SVG?