|
|
@ -129,13 +129,16 @@ KonqBaseListViewWidget::KonqBaseListViewWidget( KonqListView *parent, TQWidget *
|
|
|
|
this, TQT_SLOT(slotMouseButtonClicked2( int, TQListViewItem *, const TQPoint&, int )) );
|
|
|
|
this, TQT_SLOT(slotMouseButtonClicked2( int, TQListViewItem *, const TQPoint&, int )) );
|
|
|
|
connect( this, TQT_SIGNAL(executed( TQListViewItem * )),
|
|
|
|
connect( this, TQT_SIGNAL(executed( TQListViewItem * )),
|
|
|
|
this, TQT_SLOT(slotExecuted( TQListViewItem * )) );
|
|
|
|
this, TQT_SLOT(slotExecuted( TQListViewItem * )) );
|
|
|
|
|
|
|
|
|
|
|
|
connect( this, TQT_SIGNAL(currentChanged( TQListViewItem * )),
|
|
|
|
connect( this, TQT_SIGNAL(currentChanged( TQListViewItem * )),
|
|
|
|
this, TQT_SLOT(slotCurrentChanged( TQListViewItem * )) );
|
|
|
|
this, TQT_SLOT(slotCurrentChanged( TQListViewItem * )) );
|
|
|
|
connect( this, TQT_SIGNAL(itemRenamed( TQListViewItem *, const TQString &, int )),
|
|
|
|
connect( this, TQT_SIGNAL(itemRenamed( TQListViewItem *, const TQString &, int )),
|
|
|
|
this, TQT_SLOT(slotItemRenamed( TQListViewItem *, const TQString &, int )) );
|
|
|
|
this, TQT_SLOT(slotItemRenamed( TQListViewItem *, const TQString &, int )) );
|
|
|
|
connect( this, TQT_SIGNAL(contextMenuRequested( TQListViewItem *, const TQPoint&, int )),
|
|
|
|
connect( this, TQT_SIGNAL(contextMenuRequested( TQListViewItem *, const TQPoint&, int )),
|
|
|
|
this, TQT_SLOT(slotPopupMenu( TQListViewItem *, const TQPoint&, int )) );
|
|
|
|
this, TQT_SLOT(slotPopupMenu( TQListViewItem *, const TQPoint&, int )) );
|
|
|
|
|
|
|
|
connect( this, TQT_SIGNAL(renameNext( TQListViewItem *, int )),
|
|
|
|
|
|
|
|
this, TQT_SLOT(slotRenameNextItem( TQListViewItem*, int)) );
|
|
|
|
|
|
|
|
connect( this, TQT_SIGNAL(renamePrev( TQListViewItem *, int )),
|
|
|
|
|
|
|
|
this, TQT_SLOT(slotRenamePrevItem( TQListViewItem*, int)) );
|
|
|
|
connect( this, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(slotSelectionChanged()) );
|
|
|
|
connect( this, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(slotSelectionChanged()) );
|
|
|
|
|
|
|
|
|
|
|
|
connect( horizontalScrollBar(), TQT_SIGNAL(valueChanged( int )),
|
|
|
|
connect( horizontalScrollBar(), TQT_SIGNAL(valueChanged( int )),
|
|
|
@ -878,6 +881,38 @@ void KonqBaseListViewWidget::slotItemRenamed( TQListViewItem *item, const TQStri
|
|
|
|
setFocus();
|
|
|
|
setFocus();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void KonqBaseListViewWidget::slotRenameNextItem(TQListViewItem *item, int)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
TQListViewItem *nextItem = item->itemBelow();
|
|
|
|
|
|
|
|
if (!nextItem)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
nextItem=this->firstChild();
|
|
|
|
|
|
|
|
if (!nextItem)
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setCurrentItem(nextItem);
|
|
|
|
|
|
|
|
ListViewBrowserExtension *lvbe = dynamic_cast<ListViewBrowserExtension*>(m_pBrowserView->m_extension);
|
|
|
|
|
|
|
|
if (lvbe)
|
|
|
|
|
|
|
|
lvbe->rename();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void KonqBaseListViewWidget::slotRenamePrevItem(TQListViewItem *item, int)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
TQListViewItem *prevItem = item->itemAbove();
|
|
|
|
|
|
|
|
if (!prevItem)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
prevItem=this->lastItem();
|
|
|
|
|
|
|
|
if (!prevItem)
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setCurrentItem(prevItem);
|
|
|
|
|
|
|
|
ListViewBrowserExtension *lvbe = dynamic_cast<ListViewBrowserExtension*>(m_pBrowserView->m_extension);
|
|
|
|
|
|
|
|
if (lvbe)
|
|
|
|
|
|
|
|
lvbe->rename();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void KonqBaseListViewWidget::reportItemCounts()
|
|
|
|
void KonqBaseListViewWidget::reportItemCounts()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
KFileItemList lst = selectedFileItems();
|
|
|
|
KFileItemList lst = selectedFileItems();
|
|
|
|