|
|
|
@ -25,7 +25,7 @@
|
|
|
|
|
#include <krun.h>
|
|
|
|
|
|
|
|
|
|
KMyListView::KMyListView( TQValueList<manualchanges>* _changes, KMyListBox* _list, TQWidget* parent, const char* name )
|
|
|
|
|
:KListView(parent, name )
|
|
|
|
|
:TDEListView(parent, name )
|
|
|
|
|
{
|
|
|
|
|
changes = _changes;
|
|
|
|
|
list = _list;
|
|
|
|
@ -75,7 +75,7 @@ void KMyListView::changeItem( TQListViewItem* item, const TQPoint&, int )
|
|
|
|
|
|
|
|
|
|
void KMyListView::showContext( TQListViewItem* item, const TQPoint& pos, int )
|
|
|
|
|
{
|
|
|
|
|
KPopupMenu* menu = new KPopupMenu( this );
|
|
|
|
|
TDEPopupMenu* menu = new TDEPopupMenu( this );
|
|
|
|
|
if(item) {
|
|
|
|
|
menu->insertTitle( list->text( itemIndex( item ) ), 0, 0 );
|
|
|
|
|
menu->insertItem( i18n("&Change Filename Manually"), this, TQT_SLOT( changeCurrentItem() ), Key_F2 );
|
|
|
|
@ -115,25 +115,25 @@ void KMyListView::openCurrent()
|
|
|
|
|
/////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
KMyListViewItem::KMyListViewItem(TQListView *parent)
|
|
|
|
|
: KListViewItem(parent)
|
|
|
|
|
: TDEListViewItem(parent)
|
|
|
|
|
{ }
|
|
|
|
|
|
|
|
|
|
KMyListViewItem::KMyListViewItem(TQListViewItem *parent)
|
|
|
|
|
: KListViewItem(parent)
|
|
|
|
|
: TDEListViewItem(parent)
|
|
|
|
|
{ }
|
|
|
|
|
|
|
|
|
|
KMyListViewItem::KMyListViewItem(TQListView *parent, TQListViewItem *after)
|
|
|
|
|
: KListViewItem(parent, after)
|
|
|
|
|
: TDEListViewItem(parent, after)
|
|
|
|
|
{ }
|
|
|
|
|
|
|
|
|
|
KMyListViewItem::KMyListViewItem(TQListViewItem *parent, TQListViewItem *after)
|
|
|
|
|
: KListViewItem(parent, after)
|
|
|
|
|
: TDEListViewItem(parent, after)
|
|
|
|
|
{ }
|
|
|
|
|
|
|
|
|
|
KMyListViewItem::KMyListViewItem(bool m, TQListView *parent,
|
|
|
|
|
TQString label1, TQString label2, TQString label3, TQString label4,
|
|
|
|
|
TQString label5, TQString label6, TQString label7, TQString label8)
|
|
|
|
|
: KListViewItem(parent, label1, label2, label3, label4, label5, label6, label7, label8)
|
|
|
|
|
: TDEListViewItem(parent, label1, label2, label3, label4, label5, label6, label7, label8)
|
|
|
|
|
{
|
|
|
|
|
modified = m;
|
|
|
|
|
}
|
|
|
|
@ -141,7 +141,7 @@ KMyListViewItem::KMyListViewItem(bool m, TQListView *parent,
|
|
|
|
|
KMyListViewItem::KMyListViewItem(bool m, TQListViewItem *parent,
|
|
|
|
|
TQString label1, TQString label2, TQString label3, TQString label4,
|
|
|
|
|
TQString label5, TQString label6, TQString label7, TQString label8)
|
|
|
|
|
: KListViewItem(parent, label1, label2, label3, label4, label5, label6, label7, label8)
|
|
|
|
|
: TDEListViewItem(parent, label1, label2, label3, label4, label5, label6, label7, label8)
|
|
|
|
|
{
|
|
|
|
|
modified = m;
|
|
|
|
|
}
|
|
|
|
@ -149,7 +149,7 @@ KMyListViewItem::KMyListViewItem(bool m, TQListViewItem *parent,
|
|
|
|
|
KMyListViewItem::KMyListViewItem(bool m, TQListView *parent, TQListViewItem *after,
|
|
|
|
|
TQString label1, TQString label2, TQString label3, TQString label4,
|
|
|
|
|
TQString label5, TQString label6, TQString label7, TQString label8)
|
|
|
|
|
: KListViewItem(parent, after, label1, label2, label3, label4, label5, label6, label7, label8)
|
|
|
|
|
: TDEListViewItem(parent, after, label1, label2, label3, label4, label5, label6, label7, label8)
|
|
|
|
|
{
|
|
|
|
|
modified = m;
|
|
|
|
|
}
|
|
|
|
@ -157,7 +157,7 @@ KMyListViewItem::KMyListViewItem(bool m, TQListView *parent, TQListViewItem *aft
|
|
|
|
|
KMyListViewItem::KMyListViewItem(TQListViewItem *parent, TQListViewItem *after,
|
|
|
|
|
TQString label1, TQString label2, TQString label3, TQString label4,
|
|
|
|
|
TQString label5, TQString label6, TQString label7, TQString label8)
|
|
|
|
|
: KListViewItem(parent, after, label1, label2, label3, label4, label5, label6, label7, label8)
|
|
|
|
|
: TDEListViewItem(parent, after, label1, label2, label3, label4, label5, label6, label7, label8)
|
|
|
|
|
{ }
|
|
|
|
|
|
|
|
|
|
KMyListViewItem::~KMyListViewItem()
|
|
|
|
@ -171,7 +171,7 @@ void KMyListViewItem::paintCell( TQPainter *p, const TQColorGroup &cg,
|
|
|
|
|
if( modified )
|
|
|
|
|
_cg.setColor( TQColorGroup::Text, TQt::red );
|
|
|
|
|
|
|
|
|
|
KListViewItem::paintCell( p, _cg, column, width, alignment );
|
|
|
|
|
TDEListViewItem::paintCell( p, _cg, column, width, alignment );
|
|
|
|
|
_cg.setColor( TQColorGroup::Text, c );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|