|
Lines 125-141
Link Here
|
| 125 |
#endif |
125 |
#endif |
| 126 |
connect( this, TQT_SIGNAL(returnPressed( TQListViewItem * )), |
126 |
connect( this, TQT_SIGNAL(returnPressed( TQListViewItem * )), |
| 127 |
this, TQT_SLOT(slotReturnPressed( TQListViewItem * )) ); |
127 |
this, TQT_SLOT(slotReturnPressed( TQListViewItem * )) ); |
| 128 |
connect( this, TQT_SIGNAL( mouseButtonClicked( int, TQListViewItem *, const TQPoint&, int )), |
128 |
connect( this, TQT_SIGNAL(mouseButtonClicked( int, TQListViewItem *, const TQPoint&, int )), |
| 129 |
this, TQT_SLOT( slotMouseButtonClicked2( int, TQListViewItem *, const TQPoint&, int )) ); |
129 |
this, TQT_SLOT(slotMouseButtonClicked2( int, TQListViewItem *, const TQPoint&, int )) ); |
| 130 |
connect( this, TQT_SIGNAL(executed( TQListViewItem * )), |
130 |
connect( this, TQT_SIGNAL(executed( TQListViewItem * )), |
| 131 |
this, TQT_SLOT(slotExecuted( TQListViewItem * )) ); |
131 |
this, TQT_SLOT(slotExecuted( TQListViewItem * )) ); |
| 132 |
|
|
|
| 133 |
connect( this, TQT_SIGNAL(currentChanged( TQListViewItem * )), |
132 |
connect( this, TQT_SIGNAL(currentChanged( TQListViewItem * )), |
| 134 |
this, TQT_SLOT(slotCurrentChanged( TQListViewItem * )) ); |
133 |
this, TQT_SLOT(slotCurrentChanged( TQListViewItem * )) ); |
| 135 |
connect( this, TQT_SIGNAL(itemRenamed( TQListViewItem *, const TQString &, int )), |
134 |
connect( this, TQT_SIGNAL(itemRenamed( TQListViewItem *, const TQString &, int )), |
| 136 |
this, TQT_SLOT(slotItemRenamed( TQListViewItem *, const TQString &, int )) ); |
135 |
this, TQT_SLOT(slotItemRenamed( TQListViewItem *, const TQString &, int )) ); |
| 137 |
connect( this, TQT_SIGNAL(contextMenuRequested( TQListViewItem *, const TQPoint&, int )), |
136 |
connect( this, TQT_SIGNAL(contextMenuRequested( TQListViewItem *, const TQPoint&, int )), |
| 138 |
this, TQT_SLOT(slotPopupMenu( TQListViewItem *, const TQPoint&, int )) ); |
137 |
this, TQT_SLOT(slotPopupMenu( TQListViewItem *, const TQPoint&, int )) ); |
|
|
138 |
connect( this, TQT_SIGNAL(renameNext( TQListViewItem *, int )), |
| 139 |
this, TQT_SLOT(slotRenameNextItem( TQListViewItem*, int)) ); |
| 140 |
connect( this, TQT_SIGNAL(renamePrev( TQListViewItem *, int )), |
| 141 |
this, TQT_SLOT(slotRenamePrevItem( TQListViewItem*, int)) ); |
| 139 |
connect( this, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(slotSelectionChanged()) ); |
142 |
connect( this, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(slotSelectionChanged()) ); |
| 140 |
|
143 |
|
| 141 |
connect( horizontalScrollBar(), TQT_SIGNAL(valueChanged( int )), |
144 |
connect( horizontalScrollBar(), TQT_SIGNAL(valueChanged( int )), |
|
Lines 878-883
Link Here
|
| 878 |
setFocus(); |
881 |
setFocus(); |
| 879 |
} |
882 |
} |
| 880 |
|
883 |
|
|
|
884 |
void KonqBaseListViewWidget::slotRenameNextItem(TQListViewItem *item, int) |
| 885 |
{ |
| 886 |
TQListViewItem *nextItem = item->itemBelow(); |
| 887 |
if (!nextItem) |
| 888 |
{ |
| 889 |
nextItem=this->firstChild(); |
| 890 |
if (!nextItem) |
| 891 |
return; |
| 892 |
} |
| 893 |
|
| 894 |
setCurrentItem(nextItem); |
| 895 |
ListViewBrowserExtension *lvbe = dynamic_cast<ListViewBrowserExtension*>(m_pBrowserView->m_extension); |
| 896 |
if (lvbe) |
| 897 |
lvbe->rename(); |
| 898 |
} |
| 899 |
|
| 900 |
void KonqBaseListViewWidget::slotRenamePrevItem(TQListViewItem *item, int) |
| 901 |
{ |
| 902 |
TQListViewItem *prevItem = item->itemAbove(); |
| 903 |
if (!prevItem) |
| 904 |
{ |
| 905 |
prevItem=this->lastItem(); |
| 906 |
if (!prevItem) |
| 907 |
return; |
| 908 |
} |
| 909 |
|
| 910 |
setCurrentItem(prevItem); |
| 911 |
ListViewBrowserExtension *lvbe = dynamic_cast<ListViewBrowserExtension*>(m_pBrowserView->m_extension); |
| 912 |
if (lvbe) |
| 913 |
lvbe->rename(); |
| 914 |
} |
| 915 |
|
| 881 |
void KonqBaseListViewWidget::reportItemCounts() |
916 |
void KonqBaseListViewWidget::reportItemCounts() |
| 882 |
{ |
917 |
{ |
| 883 |
KFileItemList lst = selectedFileItems(); |
918 |
KFileItemList lst = selectedFileItems(); |
|
Lines 1025-1032
Link Here
|
| 1025 |
|
1060 |
|
| 1026 |
void KonqBaseListViewWidget::slotPopupMenu( TQListViewItem *i, const TQPoint &point, int c ) |
1061 |
void KonqBaseListViewWidget::slotPopupMenu( TQListViewItem *i, const TQPoint &point, int c ) |
| 1027 |
{ |
1062 |
{ |
| 1028 |
kdDebug(1202) << "KonqBaseListViewWidget::slotPopupMenu" << endl; |
1063 |
kdDebug(1202) << "KonqBaseListViewWidget::slotPopupMenu" << endl; |
| 1029 |
popupMenu( point, ( i != 0 && c == -1 ) ); // i != 0 && c == -1 when activated by keyboard |
1064 |
popupMenu( point, ( i != 0 && c == -1 ) ); // i != 0 && c == -1 when activated by keyboard |
| 1030 |
} |
1065 |
} |
| 1031 |
|
1066 |
|
| 1032 |
void KonqBaseListViewWidget::popupMenu( const TQPoint& _global, bool alwaysForSelectedFiles ) |
1067 |
void KonqBaseListViewWidget::popupMenu( const TQPoint& _global, bool alwaysForSelectedFiles ) |