|
|
@ -48,7 +48,7 @@ tbraun 2007-06-13
|
|
|
|
#include <tqapplication.h>
|
|
|
|
#include <tqapplication.h>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SymbolView::SymbolView(TQWidget *parent, int type, const char *name): KIconView( parent, name ),m_toolTip(0L)
|
|
|
|
SymbolView::SymbolView(TQWidget *parent, int type, const char *name): TDEIconView( parent, name ),m_toolTip(0L)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
setGridX( 36 );
|
|
|
|
setGridX( 36 );
|
|
|
|
setGridY( 36);
|
|
|
|
setGridY( 36);
|
|
|
@ -163,7 +163,7 @@ void SymbolView::removeToolTip()
|
|
|
|
void SymbolView::hideEvent( TQHideEvent *e )
|
|
|
|
void SymbolView::hideEvent( TQHideEvent *e )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
removeToolTip();
|
|
|
|
removeToolTip();
|
|
|
|
KIconView::hideEvent( e );
|
|
|
|
TDEIconView::hideEvent( e );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void SymbolView::initPage(int page)
|
|
|
|
void SymbolView::initPage(int page)
|
|
|
@ -255,7 +255,7 @@ void SymbolView::fillWidget(const TQString& prefix)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
KILE_DEBUG() << "===SymbolView::fillWidget(const TQString& " << prefix << " )===" << endl;
|
|
|
|
KILE_DEBUG() << "===SymbolView::fillWidget(const TQString& " << prefix << " )===" << endl;
|
|
|
|
TQImage image;
|
|
|
|
TQImage image;
|
|
|
|
KIconViewItem* item;
|
|
|
|
TDEIconViewItem* item;
|
|
|
|
TQStringList refCnts,paths;
|
|
|
|
TQStringList refCnts,paths;
|
|
|
|
|
|
|
|
|
|
|
|
if( prefix == MFUSprefix)
|
|
|
|
if( prefix == MFUSprefix)
|
|
|
@ -286,7 +286,7 @@ void SymbolView::fillWidget(const TQString& prefix)
|
|
|
|
if ( image.load(paths[i]) )
|
|
|
|
if ( image.load(paths[i]) )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// KILE_DEBUG() << "path is " << paths[i] << endl;
|
|
|
|
// KILE_DEBUG() << "path is " << paths[i] << endl;
|
|
|
|
item = new KIconViewItem(this);
|
|
|
|
item = new TDEIconViewItem(this);
|
|
|
|
item->setPixmap(image);
|
|
|
|
item->setPixmap(image);
|
|
|
|
item->setKey( refCnts[i] + '%' + image.text("Command") + '%' + image.text("Packages") + '%' + paths[i] );
|
|
|
|
item->setKey( refCnts[i] + '%' + image.text("Command") + '%' + image.text("Packages") + '%' + paths[i] );
|
|
|
|
image = KImageEffect::blend(colorGroup().text(), image, 1); // destroys our png comments, so we do it after reading the comments
|
|
|
|
image = KImageEffect::blend(colorGroup().text(), image, 1); // destroys our png comments, so we do it after reading the comments
|
|
|
@ -377,7 +377,7 @@ void SymbolView::slotAddToList(const TQIconViewItem *item)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
tmpItem = new KIconViewItem(this,TQString(),*(item->pixmap()));
|
|
|
|
tmpItem = new TDEIconViewItem(this,TQString(),*(item->pixmap()));
|
|
|
|
tmpItem->setKey(item->key());
|
|
|
|
tmpItem->setKey(item->key());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|