summaryrefslogtreecommitdiffstats
path: root/parts/tools/kapplicationtree.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parts/tools/kapplicationtree.cpp')
-rw-r--r--parts/tools/kapplicationtree.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/parts/tools/kapplicationtree.cpp b/parts/tools/kapplicationtree.cpp
index 8c13a4ea..18e31265 100644
--- a/parts/tools/kapplicationtree.cpp
+++ b/parts/tools/kapplicationtree.cpp
@@ -1,5 +1,5 @@
/* This file is part of the KDE libraries
- Nicked from KDElibs since KDevApplicationTree is not a public class..
+ Nicked from KDElibs since TDevApplicationTree is not a public class..
Copyright (C) 1997 Torben Weis <weis@stud.uni-frankfurt.de>
Copyright (C) 1999 Dirk A. Mueller <dmuell@gmx.net>
@@ -65,7 +65,7 @@ template class TQPtrList<TQString>;
// ----------------------------------------------------------------------
-KDevAppTreeListItem::KDevAppTreeListItem( TDEListView* parent, const TQString & name,
+TDevAppTreeListItem::TDevAppTreeListItem( TDEListView* parent, const TQString & name,
const TQPixmap& pixmap, bool parse, bool dir, const TQString& p, const TQString& c, const TQString& dE )
: TQListViewItem( parent, name )
{
@@ -75,7 +75,7 @@ KDevAppTreeListItem::KDevAppTreeListItem( TDEListView* parent, const TQString &
// ----------------------------------------------------------------------
-KDevAppTreeListItem::KDevAppTreeListItem( TQListViewItem* parent, const TQString & name,
+TDevAppTreeListItem::TDevAppTreeListItem( TQListViewItem* parent, const TQString & name,
const TQPixmap& pixmap, bool parse, bool dir, const TQString& p, const TQString& c, const TQString& dE )
: TQListViewItem( parent, name )
{
@@ -85,7 +85,7 @@ KDevAppTreeListItem::KDevAppTreeListItem( TQListViewItem* parent, const TQString
// ----------------------------------------------------------------------
-void KDevAppTreeListItem::init(const TQPixmap& pixmap, bool parse, bool dir, const TQString& _path, const TQString& _exec, const TQString& _dEntry)
+void TDevAppTreeListItem::init(const TQPixmap& pixmap, bool parse, bool dir, const TQString& _path, const TQString& _exec, const TQString& _dEntry)
{
setPixmap(0, pixmap);
parsed = parse;
@@ -101,7 +101,7 @@ void KDevAppTreeListItem::init(const TQPixmap& pixmap, bool parse, bool dir, con
// ----------------------------------------------------------------------
// Ensure that dirs are sorted in front of files and case is ignored
-TQString KDevAppTreeListItem::key(int column, bool /*ascending*/) const
+TQString TDevAppTreeListItem::key(int column, bool /*ascending*/) const
{
if (directory)
return TQString::fromLatin1(" ") + text(column).upper();
@@ -109,29 +109,29 @@ TQString KDevAppTreeListItem::key(int column, bool /*ascending*/) const
return text(column).upper();
}
-void KDevAppTreeListItem::activate()
+void TDevAppTreeListItem::activate()
{
if ( directory )
setOpen(!isOpen());
}
-void KDevAppTreeListItem::setOpen( bool o )
+void TDevAppTreeListItem::setOpen( bool o )
{
if( o && !parsed ) { // fill the children before opening
- ((KDevApplicationTree *) parent())->addDesktopGroup( path, this );
+ ((TDevApplicationTree *) parent())->addDesktopGroup( path, this );
parsed = true;
}
TQListViewItem::setOpen( o );
}
-bool KDevAppTreeListItem::isDirectory()
+bool TDevAppTreeListItem::isDirectory()
{
return directory;
}
// ----------------------------------------------------------------------
-KDevApplicationTree::KDevApplicationTree( TQWidget *parent, const char* name )
+TDevApplicationTree::TDevApplicationTree( TQWidget *parent, const char* name )
: TDEListView( parent, name ), currentitem(0)
{
addColumn( i18n("Known Applications") );
@@ -145,7 +145,7 @@ KDevApplicationTree::KDevApplicationTree( TQWidget *parent, const char* name )
// ----------------------------------------------------------------------
-bool KDevApplicationTree::isDirSel()
+bool TDevApplicationTree::isDirSel()
{
if (!currentitem) return false; // if currentitem isn't set
return currentitem->isDirectory();
@@ -153,12 +153,12 @@ bool KDevApplicationTree::isDirSel()
// ----------------------------------------------------------------------
-void KDevApplicationTree::addDesktopGroup( TQString relPath, KDevAppTreeListItem *item)
+void TDevApplicationTree::addDesktopGroup( TQString relPath, TDevAppTreeListItem *item)
{
KServiceGroup::Ptr root = KServiceGroup::group(relPath);
KServiceGroup::List list = root->entries();
- KDevAppTreeListItem * newItem;
+ TDevAppTreeListItem * newItem;
for( KServiceGroup::List::ConstIterator it = list.begin();
it != list.end(); it++)
{
@@ -200,10 +200,10 @@ void KDevApplicationTree::addDesktopGroup( TQString relPath, KDevAppTreeListItem
TQPixmap pixmap = SmallIcon( icon );
if (item)
- newItem = new KDevAppTreeListItem( item, text, pixmap, false, isDir,
+ newItem = new TDevAppTreeListItem( item, text, pixmap, false, isDir,
relPath, exec, dEntry );
else
- newItem = new KDevAppTreeListItem( this, text, pixmap, false, isDir,
+ newItem = new TDevAppTreeListItem( this, text, pixmap, false, isDir,
relPath, exec, dEntry );
if (isDir)
newItem->setExpandable( true );
@@ -213,13 +213,13 @@ void KDevApplicationTree::addDesktopGroup( TQString relPath, KDevAppTreeListItem
// ----------------------------------------------------------------------
-void KDevApplicationTree::slotItemHighlighted(TQListViewItem* i)
+void TDevApplicationTree::slotItemHighlighted(TQListViewItem* i)
{
// i may be 0 (see documentation)
if(!i)
return;
- KDevAppTreeListItem *item = (KDevAppTreeListItem *) i;
+ TDevAppTreeListItem *item = (TDevAppTreeListItem *) i;
currentitem = item;
@@ -230,13 +230,13 @@ void KDevApplicationTree::slotItemHighlighted(TQListViewItem* i)
// ----------------------------------------------------------------------
-void KDevApplicationTree::slotSelectionChanged(TQListViewItem* i)
+void TDevApplicationTree::slotSelectionChanged(TQListViewItem* i)
{
// i may be 0 (see documentation)
if(!i)
return;
- KDevAppTreeListItem *item = (KDevAppTreeListItem *) i;
+ TDevAppTreeListItem *item = (TDevAppTreeListItem *) i;
currentitem = item;
@@ -246,7 +246,7 @@ void KDevApplicationTree::slotSelectionChanged(TQListViewItem* i)
// ----------------------------------------------------------------------
-void KDevApplicationTree::resizeEvent( TQResizeEvent * e)
+void TDevApplicationTree::resizeEvent( TQResizeEvent * e)
{
setColumnWidth(0, width()-TQApplication::style().pixelMetric(TQStyle::PM_ScrollBarExtent));
TDEListView::resizeEvent(e);