summaryrefslogtreecommitdiffstats
path: root/kbabel/kbabeldict/modules/dbsearchengine/KDBSearchEngine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kbabel/kbabeldict/modules/dbsearchengine/KDBSearchEngine.cpp')
-rw-r--r--kbabel/kbabeldict/modules/dbsearchengine/KDBSearchEngine.cpp122
1 files changed, 61 insertions, 61 deletions
diff --git a/kbabel/kbabeldict/modules/dbsearchengine/KDBSearchEngine.cpp b/kbabel/kbabeldict/modules/dbsearchengine/KDBSearchEngine.cpp
index 5423bca9..7280bbbd 100644
--- a/kbabel/kbabeldict/modules/dbsearchengine/KDBSearchEngine.cpp
+++ b/kbabel/kbabeldict/modules/dbsearchengine/KDBSearchEngine.cpp
@@ -82,8 +82,8 @@ SearchEngine (parent, name)
dbOpened = false;
dbname = "";
lasterror = i18n ("No error");
- connect (this, TQT_SIGNAL (hasError (const TQString &)),
- TQT_SLOT (setLastError (const TQString &)));
+ connect (this, TQ_SIGNAL (hasError (const TQString &)),
+ TQ_SLOT (setLastError (const TQString &)));
IAmReady = true; // I don't know if it is a good idea, no DB loaded!!!
@@ -548,9 +548,9 @@ KDBSearchEngine::repeat ()
new TQProgressDialog (i18n ("Looking for repetitions"), i18n ("Stop"),
100);
- connect (this, TQT_SIGNAL (progress (int)), pd, TQT_SLOT (setProgress (int)));
- connect (this, TQT_SIGNAL (finished ()), pd, TQT_SLOT (close ()));
- connect (pd, TQT_SIGNAL (cancelled ()), this, TQT_SLOT (stopSearch ()));
+ connect (this, TQ_SIGNAL (progress (int)), pd, TQ_SLOT (setProgress (int)));
+ connect (this, TQ_SIGNAL (finished ()), pd, TQ_SLOT (close ()));
+ connect (pd, TQ_SIGNAL (cancelled ()), this, TQ_SLOT (stopSearch ()));
TQString txt = "// %1 repetitions, %2 translation(s)\ni18n(\"%3\");\n";
@@ -1208,15 +1208,15 @@ KDBSearchEngine::preferencesWidget (TQWidget * parent)
pw = new PreferencesWidget (parent);
setSettings ();
- connect (pw, TQT_SIGNAL (restoreNow ()), this, TQT_SLOT (setSettings ()));
- connect (pw, TQT_SIGNAL (applyNow ()), this, TQT_SLOT (updateSettings ()));
- connect (pw, TQT_SIGNAL (destroyed ()), this, TQT_SLOT (prefDestr ()));
- connect (pw->dbpw->scanPB_2, TQT_SIGNAL (clicked ()), this, TQT_SLOT (scan ()));
- connect (pw->dbpw->scanrecPB, TQT_SIGNAL (clicked ()), this,
- TQT_SLOT (scanRecur ()));
- connect (pw->dbpw->scanFilePB, TQT_SIGNAL (clicked ()), this,
- TQT_SLOT (scanFile ()));
- connect (pw->dbpw->repeatPB, TQT_SIGNAL (clicked ()), this, TQT_SLOT (repeat ()));
+ connect (pw, TQ_SIGNAL (restoreNow ()), this, TQ_SLOT (setSettings ()));
+ connect (pw, TQ_SIGNAL (applyNow ()), this, TQ_SLOT (updateSettings ()));
+ connect (pw, TQ_SIGNAL (destroyed ()), this, TQ_SLOT (prefDestr ()));
+ connect (pw->dbpw->scanPB_2, TQ_SIGNAL (clicked ()), this, TQ_SLOT (scan ()));
+ connect (pw->dbpw->scanrecPB, TQ_SIGNAL (clicked ()), this,
+ TQ_SLOT (scanRecur ()));
+ connect (pw->dbpw->scanFilePB, TQ_SIGNAL (clicked ()), this,
+ TQ_SLOT (scanFile ()));
+ connect (pw->dbpw->repeatPB, TQ_SIGNAL (clicked ()), this, TQ_SLOT (repeat ()));
return pw;
@@ -1246,32 +1246,32 @@ KDBSearchEngine::scanRecur ()
}
if (pw)
{
- connect (sca, TQT_SIGNAL (patternProgress (int)), pw->dbpw->totalPB,
- TQT_SLOT (setProgress (int)));
- connect (sca, TQT_SIGNAL (fileLoading (int)), pw->dbpw->loadingPB,
- TQT_SLOT (setProgress (int)));
- connect (sca, TQT_SIGNAL (fileProgress (int)), pw->dbpw->processPB,
- TQT_SLOT (setProgress (int)));
+ connect (sca, TQ_SIGNAL (patternProgress (int)), pw->dbpw->totalPB,
+ TQ_SLOT (setProgress (int)));
+ connect (sca, TQ_SIGNAL (fileLoading (int)), pw->dbpw->loadingPB,
+ TQ_SLOT (setProgress (int)));
+ connect (sca, TQ_SIGNAL (fileProgress (int)), pw->dbpw->processPB,
+ TQ_SLOT (setProgress (int)));
}
- connect (sca, TQT_SIGNAL (patternProgress (int)), TQT_SIGNAL (progress (int))); //Kbabel progress bar
+ connect (sca, TQ_SIGNAL (patternProgress (int)), TQ_SIGNAL (progress (int))); //Kbabel progress bar
- connect (sca, TQT_SIGNAL (added (int)), pw, TQT_SLOT (setEntries (int)));
- connect (sca, TQT_SIGNAL (filename (TQString)), pw, TQT_SLOT (setName (TQString)));
+ connect (sca, TQ_SIGNAL (added (int)), pw, TQ_SLOT (setEntries (int)));
+ connect (sca, TQ_SIGNAL (filename (TQString)), pw, TQ_SLOT (setName (TQString)));
progressStarts (i18n ("Scanning folder %1").arg (cvsdir));
- connect (sca, TQT_SIGNAL (patternFinished ()), TQT_SIGNAL (progressEnds ()));
+ connect (sca, TQ_SIGNAL (patternFinished ()), TQ_SIGNAL (progressEnds ()));
sca->scanPattern (cvsdir, "*.po", true);
- disconnect (this, TQT_SIGNAL (progress (int)));
-//disconnect(TQT_SIGNAL(patternStarted()),this,TQT_SIGNAL(started()) );
- disconnect (this, TQT_SIGNAL (progressEnds ()));
+ disconnect (this, TQ_SIGNAL (progress (int)));
+//disconnect(TQ_SIGNAL(patternStarted()),this,TQ_SIGNAL(started()) );
+ disconnect (this, TQ_SIGNAL (progressEnds ()));
if (pw)
{
- disconnect (pw->dbpw->totalPB, TQT_SLOT (setProgress (int)));
- disconnect (pw->dbpw->loadingPB, TQT_SLOT (setProgress (int)));
- disconnect (pw->dbpw->processPB, TQT_SLOT (setProgress (int)));
+ disconnect (pw->dbpw->totalPB, TQ_SLOT (setProgress (int)));
+ disconnect (pw->dbpw->loadingPB, TQ_SLOT (setProgress (int)));
+ disconnect (pw->dbpw->processPB, TQ_SLOT (setProgress (int)));
}
totalRecord = dm->count ();
@@ -1304,32 +1304,32 @@ KDBSearchEngine::scan ()
}
if (pw)
{
- connect (sca, TQT_SIGNAL (patternProgress (int)), pw->dbpw->totalPB,
- TQT_SLOT (setProgress (int)));
- connect (sca, TQT_SIGNAL (fileLoading (int)), pw->dbpw->loadingPB,
- TQT_SLOT (setProgress (int)));
- connect (sca, TQT_SIGNAL (fileProgress (int)), pw->dbpw->processPB,
- TQT_SLOT (setProgress (int)));
+ connect (sca, TQ_SIGNAL (patternProgress (int)), pw->dbpw->totalPB,
+ TQ_SLOT (setProgress (int)));
+ connect (sca, TQ_SIGNAL (fileLoading (int)), pw->dbpw->loadingPB,
+ TQ_SLOT (setProgress (int)));
+ connect (sca, TQ_SIGNAL (fileProgress (int)), pw->dbpw->processPB,
+ TQ_SLOT (setProgress (int)));
}
- connect (sca, TQT_SIGNAL (patternProgress (int)), TQT_SIGNAL (progress (int)));
+ connect (sca, TQ_SIGNAL (patternProgress (int)), TQ_SIGNAL (progress (int)));
progressStarts (i18n ("Scanning folder %1").arg (cvsdir));
- connect (sca, TQT_SIGNAL (patternFinished ()), TQT_SIGNAL (progressEnds ()));
+ connect (sca, TQ_SIGNAL (patternFinished ()), TQ_SIGNAL (progressEnds ()));
- connect (sca, TQT_SIGNAL (added (int)), pw, TQT_SLOT (setEntries (int)));
- connect (sca, TQT_SIGNAL (filename (TQString)), pw, TQT_SLOT (setName (TQString)));
+ connect (sca, TQ_SIGNAL (added (int)), pw, TQ_SLOT (setEntries (int)));
+ connect (sca, TQ_SIGNAL (filename (TQString)), pw, TQ_SLOT (setName (TQString)));
sca->scanPattern (cvsdir, "*.po", false);
- disconnect (this, TQT_SIGNAL (progress (int)));
-//disconnect(TQT_SIGNAL(patternStarted()),this,TQT_SIGNAL(started()) );
- disconnect (this, TQT_SIGNAL (progressEnds ()));
+ disconnect (this, TQ_SIGNAL (progress (int)));
+//disconnect(TQ_SIGNAL(patternStarted()),this,TQ_SIGNAL(started()) );
+ disconnect (this, TQ_SIGNAL (progressEnds ()));
if (pw)
{
- disconnect (pw->dbpw->totalPB, TQT_SLOT (setProgress (int)));
- disconnect (pw->dbpw->loadingPB, TQT_SLOT (setProgress (int)));
- disconnect (pw->dbpw->processPB, TQT_SLOT (setProgress (int)));
+ disconnect (pw->dbpw->totalPB, TQ_SLOT (setProgress (int)));
+ disconnect (pw->dbpw->loadingPB, TQ_SLOT (setProgress (int)));
+ disconnect (pw->dbpw->processPB, TQ_SLOT (setProgress (int)));
}
totalRecord = dm->count ();
@@ -1363,31 +1363,31 @@ KDBSearchEngine::scanFile ()
}
if (pw)
{
- connect (sca, TQT_SIGNAL (fileLoading (int)), pw->dbpw->loadingPB,
- TQT_SLOT (setProgress (int)));
- connect (sca, TQT_SIGNAL (fileProgress (int)), pw->dbpw->processPB,
- TQT_SLOT (setProgress (int)));
+ connect (sca, TQ_SIGNAL (fileLoading (int)), pw->dbpw->loadingPB,
+ TQ_SLOT (setProgress (int)));
+ connect (sca, TQ_SIGNAL (fileProgress (int)), pw->dbpw->processPB,
+ TQ_SLOT (setProgress (int)));
}
- connect (sca, TQT_SIGNAL (fileProgress (int)), TQT_SIGNAL (progress (int)));
+ connect (sca, TQ_SIGNAL (fileProgress (int)), TQ_SIGNAL (progress (int)));
progressStarts (i18n ("Scanning file %1").arg (directory (cvsdir, 0)));
- connect (sca, TQT_SIGNAL (fileFinished ()), TQT_SIGNAL (progressEnds ()));
+ connect (sca, TQ_SIGNAL (fileFinished ()), TQ_SIGNAL (progressEnds ()));
- connect (sca, TQT_SIGNAL (added (int)), pw, TQT_SLOT (setEntries (int)));
- connect (sca, TQT_SIGNAL (filename (TQString)), pw, TQT_SLOT (setName (TQString)));
+ connect (sca, TQ_SIGNAL (added (int)), pw, TQ_SLOT (setEntries (int)));
+ connect (sca, TQ_SIGNAL (filename (TQString)), pw, TQ_SLOT (setName (TQString)));
sca->scanFile (cvsdir);
- sca->disconnect (TQT_SIGNAL (fileProgress (int)), this,
- TQT_SIGNAL (progress (int)));
-//disconnect(TQT_SIGNAL(patternStarted()),this,TQT_SIGNAL(started()) );
- sca->disconnect (TQT_SIGNAL (fileFinished ()), this,
- TQT_SIGNAL (progressEnds ()));
+ sca->disconnect (TQ_SIGNAL (fileProgress (int)), this,
+ TQ_SIGNAL (progress (int)));
+//disconnect(TQ_SIGNAL(patternStarted()),this,TQ_SIGNAL(started()) );
+ sca->disconnect (TQ_SIGNAL (fileFinished ()), this,
+ TQ_SIGNAL (progressEnds ()));
if (pw)
{
- disconnect (pw->dbpw->loadingPB, TQT_SLOT (setProgress (int)));
- disconnect (pw->dbpw->processPB, TQT_SLOT (setProgress (int)));
+ disconnect (pw->dbpw->loadingPB, TQ_SLOT (setProgress (int)));
+ disconnect (pw->dbpw->processPB, TQ_SLOT (setProgress (int)));
}
totalRecord = dm->count ();