|
|
@ -50,15 +50,27 @@ TDEFileReplaceView::TDEFileReplaceView(RCOptions* info, TQWidget *parent,const c
|
|
|
|
|
|
|
|
|
|
|
|
initGUI();
|
|
|
|
initGUI();
|
|
|
|
|
|
|
|
|
|
|
|
// connect events
|
|
|
|
// result listview: connect events
|
|
|
|
connect(m_lvResults, TQT_SIGNAL(mouseButtonClicked(int, TQListViewItem *, const TQPoint &, int)), this, TQT_SLOT(slotMouseButtonClicked(int, TQListViewItem *, const TQPoint &)));
|
|
|
|
connect(m_lvResults, TQT_SIGNAL(mouseButtonClicked(int, TQListViewItem *, const TQPoint &, int)),
|
|
|
|
connect(m_lvResults_2, TQT_SIGNAL(mouseButtonClicked(int, TQListViewItem *, const TQPoint &, int)), this, TQT_SLOT(slotMouseButtonClicked(int, TQListViewItem *, const TQPoint &)));
|
|
|
|
this, TQT_SLOT(slotResultMouseButtonClicked(int, TQListViewItem *, const TQPoint &)));
|
|
|
|
connect(m_lvStrings, TQT_SIGNAL(doubleClicked(TQListViewItem *)), this, TQT_SLOT(slotStringsEdit()));
|
|
|
|
connect(m_lvResults, TQT_SIGNAL(returnPressed(TQListViewItem *)),
|
|
|
|
connect(m_lvStrings_2, TQT_SIGNAL(doubleClicked(TQListViewItem *)), this, TQT_SLOT(slotStringsEdit()));
|
|
|
|
this, TQT_SLOT(slotResultReturnPressed(TQListViewItem *)));
|
|
|
|
|
|
|
|
connect(m_lvResults, TQT_SIGNAL(executed(TQListViewItem *)),
|
|
|
|
|
|
|
|
this, TQT_SLOT(executed(TQListViewItem *)));
|
|
|
|
|
|
|
|
connect(m_lvResults_2, TQT_SIGNAL(mouseButtonClicked(int, TQListViewItem *, const TQPoint &, int)),
|
|
|
|
|
|
|
|
this, TQT_SLOT(slotResultMouseButtonClicked(int, TQListViewItem *, const TQPoint &)));
|
|
|
|
|
|
|
|
connect(m_lvResults_2, TQT_SIGNAL(returnPressed(TQListViewItem *)),
|
|
|
|
|
|
|
|
this, TQT_SLOT(slotResultReturnPressed(TQListViewItem *)));
|
|
|
|
|
|
|
|
connect(m_lvResults_2, TQT_SIGNAL(executed(TQListViewItem *)),
|
|
|
|
|
|
|
|
this, TQT_SLOT(slotResultReturnPressed(TQListViewItem *)));
|
|
|
|
// connect header events
|
|
|
|
// connect header events
|
|
|
|
connect(m_lvResults->header(), TQT_SIGNAL(clicked(int)), this,TQT_SLOT(slotResultHeaderClicked(int)));
|
|
|
|
connect(m_lvResults->header(), TQT_SIGNAL(clicked(int)), this,TQT_SLOT(slotResultHeaderClicked(int)));
|
|
|
|
connect(m_lvResults_2->header(), TQT_SIGNAL(clicked(int)), this,TQT_SLOT(slotResultHeaderClicked(int)));
|
|
|
|
connect(m_lvResults_2->header(), TQT_SIGNAL(clicked(int)), this,TQT_SLOT(slotResultHeaderClicked(int)));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// string listview: connect events
|
|
|
|
|
|
|
|
connect(m_lvStrings, TQT_SIGNAL(doubleClicked(TQListViewItem *)), this, TQT_SLOT(slotStringsEdit()));
|
|
|
|
|
|
|
|
connect(m_lvStrings_2, TQT_SIGNAL(doubleClicked(TQListViewItem *)), this, TQT_SLOT(slotStringsEdit()));
|
|
|
|
|
|
|
|
|
|
|
|
whatsThis();
|
|
|
|
whatsThis();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -173,19 +185,29 @@ TDEListView* TDEFileReplaceView::getStringsView()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//PUBLIC SLOTS
|
|
|
|
//PUBLIC SLOTS
|
|
|
|
void TDEFileReplaceView::slotMouseButtonClicked (int button, TQListViewItem *lvi, const TQPoint &pos)
|
|
|
|
void TDEFileReplaceView::slotResultMouseButtonClicked(int button, TQListViewItem *lvi, const TQPoint &pos)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (lvi == 0) // No item selected
|
|
|
|
if (lvi == 0) // No item selected
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
// RIGHT BUTTON
|
|
|
|
|
|
|
|
if (button == Qt::RightButton)
|
|
|
|
if (button == Qt::RightButton)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
// Right mouse button: open popup menub
|
|
|
|
m_lviCurrent = static_cast<TDEListViewItem*>(lvi);
|
|
|
|
m_lviCurrent = static_cast<TDEListViewItem*>(lvi);
|
|
|
|
m_menuResult->popup(pos);
|
|
|
|
m_menuResult->popup(pos);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void TDEFileReplaceView::slotResultReturnPressed (TQListViewItem *lvi)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (lvi == 0) // No item selected
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Left mouse button: open item in default view
|
|
|
|
|
|
|
|
m_lviCurrent = static_cast<TDEListViewItem*>(lvi);
|
|
|
|
|
|
|
|
slotResultOpen();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void TDEFileReplaceView::slotResultProperties()
|
|
|
|
void TDEFileReplaceView::slotResultProperties()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TQString currItem = currentPath();
|
|
|
|
TQString currItem = currentPath();
|
|
|
|