summaryrefslogtreecommitdiffstats
path: root/tdefilereplace/tdefilereplaceview.cpp
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2014-01-15 17:20:20 -0600
committerDarrell Anderson <humanreadable@yahoo.com>2014-01-15 17:20:20 -0600
commit80f849ebbb4bac48afd2bf50f0e8af2ffd9e4a65 (patch)
treed200f3206607ae1a50c7873a80ab5ffd325d6c2a /tdefilereplace/tdefilereplaceview.cpp
parentb23d738404d2fdf3445371a97fa267646b294394 (diff)
downloadtdewebdev-80f849ebbb4bac48afd2bf50f0e8af2ffd9e4a65.tar.gz
tdewebdev-80f849ebbb4bac48afd2bf50f0e8af2ffd9e4a65.zip
Finish renaming KFileReplace->TDEFileReplace and fix related Quanta Plus internal references.
Diffstat (limited to 'tdefilereplace/tdefilereplaceview.cpp')
-rw-r--r--tdefilereplace/tdefilereplaceview.cpp66
1 files changed, 33 insertions, 33 deletions
diff --git a/tdefilereplace/tdefilereplaceview.cpp b/tdefilereplace/tdefilereplaceview.cpp
index 1d60f3d5..44aad1fd 100644
--- a/tdefilereplace/tdefilereplaceview.cpp
+++ b/tdefilereplace/tdefilereplaceview.cpp
@@ -43,7 +43,7 @@
using namespace whatthisNameSpace;
-KFileReplaceView::KFileReplaceView(RCOptions* info, TQWidget *parent,const char *name):KFileReplaceViewWdg(parent,name)
+TDEFileReplaceView::TDEFileReplaceView(RCOptions* info, TQWidget *parent,const char *name):TDEFileReplaceViewWdg(parent,name)
{
m_option = info;
@@ -58,7 +58,7 @@ KFileReplaceView::KFileReplaceView(RCOptions* info, TQWidget *parent,const char
whatsThis();
}
-TQString KFileReplaceView::currentPath()
+TQString TDEFileReplaceView::currentPath()
{
TQListViewItem *lvi;
@@ -71,7 +71,7 @@ TQString KFileReplaceView::currentPath()
return TQString(lvi->text(1)+"/"+lvi->text(0));
}
-void KFileReplaceView::showSemaphore(TQString s)
+void TDEFileReplaceView::showSemaphore(TQString s)
{
if(s == "green")
{
@@ -95,7 +95,7 @@ void KFileReplaceView::showSemaphore(TQString s)
}
}
-void KFileReplaceView::stringsInvert(bool invertAll)
+void TDEFileReplaceView::stringsInvert(bool invertAll)
{
TQListViewItem* lviCurItem,
* lviFirst;
@@ -131,7 +131,7 @@ void KFileReplaceView::stringsInvert(bool invertAll)
setCurrentStringsViewMap();
}
-void KFileReplaceView::changeView(bool searchingOnlyMode)
+void TDEFileReplaceView::changeView(bool searchingOnlyMode)
{
if(searchingOnlyMode)
{
@@ -149,7 +149,7 @@ void KFileReplaceView::changeView(bool searchingOnlyMode)
}
}
-TDEListView* KFileReplaceView::getResultsView()
+TDEListView* TDEFileReplaceView::getResultsView()
{
if(m_option->m_searchingOnlyMode)
m_rv = m_lvResults_2;
@@ -159,7 +159,7 @@ TDEListView* KFileReplaceView::getResultsView()
return m_rv;
}
-TDEListView* KFileReplaceView::getStringsView()
+TDEListView* TDEFileReplaceView::getStringsView()
{
if(m_option->m_searchingOnlyMode)
m_sv = m_lvStrings_2;
@@ -169,7 +169,7 @@ TDEListView* KFileReplaceView::getStringsView()
}
//PUBLIC SLOTS
-void KFileReplaceView::slotMouseButtonClicked (int button, TQListViewItem *lvi, const TQPoint &pos)
+void TDEFileReplaceView::slotMouseButtonClicked (int button, TQListViewItem *lvi, const TQPoint &pos)
{
if (lvi == 0) // No item selected
return;
@@ -182,7 +182,7 @@ void KFileReplaceView::slotMouseButtonClicked (int button, TQListViewItem *lvi,
}
}
-void KFileReplaceView::slotResultProperties()
+void TDEFileReplaceView::slotResultProperties()
{
TQString currItem = currentPath();
if(! currItem.isEmpty())
@@ -193,7 +193,7 @@ void KFileReplaceView::slotResultProperties()
}
}
-void KFileReplaceView::slotResultOpen()
+void TDEFileReplaceView::slotResultOpen()
{
TQString currItem = currentPath();
if(!currItem.isEmpty())
@@ -203,7 +203,7 @@ void KFileReplaceView::slotResultOpen()
}
}
-void KFileReplaceView::slotResultOpenWith()
+void TDEFileReplaceView::slotResultOpenWith()
{
TQString currItem = currentPath();
if(!currItem.isEmpty())
@@ -215,7 +215,7 @@ void KFileReplaceView::slotResultOpenWith()
}
}
-void KFileReplaceView::slotResultDirOpen()
+void TDEFileReplaceView::slotResultDirOpen()
{
TQString currItem = currentPath();
if(!currItem.isEmpty())
@@ -227,7 +227,7 @@ void KFileReplaceView::slotResultDirOpen()
}
}
-void KFileReplaceView::slotResultEdit()
+void TDEFileReplaceView::slotResultEdit()
{
TQListViewItem *lvi = m_rv->firstChild();
@@ -272,7 +272,7 @@ void KFileReplaceView::slotResultEdit()
m_lviCurrent = 0;
}
-void KFileReplaceView::slotResultDelete()
+void TDEFileReplaceView::slotResultDelete()
{
TQString currItem = currentPath();
if (!currItem.isEmpty())
@@ -292,7 +292,7 @@ void KFileReplaceView::slotResultDelete()
}
}
-void KFileReplaceView::slotResultTreeExpand()
+void TDEFileReplaceView::slotResultTreeExpand()
{
TQListViewItem *lviRoot = getResultsView()->firstChild();
@@ -300,7 +300,7 @@ void KFileReplaceView::slotResultTreeExpand()
expand(lviRoot, true);
}
-void KFileReplaceView::slotResultTreeReduce()
+void TDEFileReplaceView::slotResultTreeReduce()
{
TQListViewItem *lviRoot = getResultsView()->firstChild();
@@ -308,7 +308,7 @@ void KFileReplaceView::slotResultTreeReduce()
expand(lviRoot, false);
}
-void KFileReplaceView::slotStringsAdd()
+void TDEFileReplaceView::slotStringsAdd()
{
KeyValueMap oldMap(m_option->m_mapStringsView);
@@ -331,7 +331,7 @@ void KFileReplaceView::slotStringsAdd()
loadMapIntoView(addedStringsMap);
}
-void KFileReplaceView::slotQuickStringsAdd(const TQString& quickSearch, const TQString& quickReplace)
+void TDEFileReplaceView::slotQuickStringsAdd(const TQString& quickSearch, const TQString& quickReplace)
{
if(!quickSearch.isEmpty())
{
@@ -356,7 +356,7 @@ void KFileReplaceView::slotQuickStringsAdd(const TQString& quickSearch, const TQ
}
}
-void KFileReplaceView::slotStringsEdit()
+void TDEFileReplaceView::slotStringsEdit()
{
KeyValueMap oldMap(m_option->m_mapStringsView);
if(oldMap.isEmpty()) return;
@@ -391,7 +391,7 @@ void KFileReplaceView::slotStringsEdit()
loadMapIntoView(newMap);
}
-void KFileReplaceView::slotStringsSave()
+void TDEFileReplaceView::slotStringsSave()
{
// Check there are strings in the list
TDEListView* sv = getStringsView();
@@ -422,14 +422,14 @@ void KFileReplaceView::slotStringsSave()
}
// Selects the file where strings will be saved
- TQString menu = "*.kfr|" + i18n("KFileReplace Strings") + " (*.kfr)\n*|" + i18n("All Files") + " (*)";
+ TQString menu = "*.kfr|" + i18n("TDEFileReplace Strings") + " (*.kfr)\n*|" + i18n("All Files") + " (*)";
TQString fileName = KFileDialog::getSaveFileName(TQString(), menu, 0, i18n("Save Strings to File"));
if (fileName.isEmpty())
return;
- // Forces the extension to be "kfr" == KFileReplace extension
+ // Forces the extension to be "kfr" == TDEFileReplace extension
- fileName = KFileReplaceLib::addExtension(fileName, "kfr");
+ fileName = TDEFileReplaceLib::addExtension(fileName, "kfr");
TQFile file( fileName );
if(!file.open( IO_WriteOnly ))
@@ -445,7 +445,7 @@ void KFileReplaceView::slotStringsSave()
file.close();
}
-void KFileReplaceView::slotStringsDeleteItem()
+void TDEFileReplaceView::slotStringsDeleteItem()
{
TQListViewItem* item = m_sv->currentItem();
if(item != 0)
@@ -457,7 +457,7 @@ void KFileReplaceView::slotStringsDeleteItem()
}
}
-void KFileReplaceView::slotStringsEmpty()
+void TDEFileReplaceView::slotStringsEmpty()
{
TQListViewItem * myChild = m_sv->firstChild();
while( myChild )
@@ -471,7 +471,7 @@ void KFileReplaceView::slotStringsEmpty()
}
//PRIVATE
-void KFileReplaceView::initGUI()
+void TDEFileReplaceView::initGUI()
{
m_option->m_searchingOnlyMode = true;
@@ -534,7 +534,7 @@ void KFileReplaceView::initGUI()
raiseStringsView();
}
-void KFileReplaceView::raiseStringsView()
+void TDEFileReplaceView::raiseStringsView()
{
if(m_option->m_searchingOnlyMode)
m_sv = m_lvStrings_2;
@@ -544,7 +544,7 @@ void KFileReplaceView::raiseStringsView()
m_stackStrings->raiseWidget(m_sv);
}
-void KFileReplaceView::raiseResultsView()
+void TDEFileReplaceView::raiseResultsView()
{
if(m_option->m_searchingOnlyMode)
m_rv = m_lvResults_2;
@@ -554,7 +554,7 @@ void KFileReplaceView::raiseResultsView()
m_stackResults->raiseWidget(m_rv);
}
-coord KFileReplaceView::extractWordCoordinates(TQListViewItem* lvi)
+coord TDEFileReplaceView::extractWordCoordinates(TQListViewItem* lvi)
{
//get coordinates of the first string of the current selected file
coord c;
@@ -618,7 +618,7 @@ coord KFileReplaceView::extractWordCoordinates(TQListViewItem* lvi)
return c;
}
-void KFileReplaceView::expand(TQListViewItem *lviCurrent, bool b)
+void TDEFileReplaceView::expand(TQListViewItem *lviCurrent, bool b)
{
// current item
lviCurrent->setOpen(b);
@@ -633,7 +633,7 @@ void KFileReplaceView::expand(TQListViewItem *lviCurrent, bool b)
}
}
-void KFileReplaceView::setMap()
+void TDEFileReplaceView::setMap()
{
KeyValueMap map;
TQListViewItem* i = m_sv->firstChild();
@@ -648,7 +648,7 @@ void KFileReplaceView::setMap()
m_option->m_mapStringsView = map;
}
-void KFileReplaceView::loadMapIntoView(KeyValueMap map)
+void TDEFileReplaceView::loadMapIntoView(KeyValueMap map)
{
m_sv->clear();
KeyValueMap::Iterator itMap;
@@ -664,7 +664,7 @@ void KFileReplaceView::loadMapIntoView(KeyValueMap map)
}
-void KFileReplaceView::whatsThis()
+void TDEFileReplaceView::whatsThis()
{
TQWhatsThis::add(getResultsView(), lvResultWhatthis);
TQWhatsThis::add(getStringsView(), lvStringsWhatthis);