summaryrefslogtreecommitdiffstats
path: root/kbabel
diff options
context:
space:
mode:
Diffstat (limited to 'kbabel')
-rw-r--r--kbabel/addons/preview/pothumbcreator.cpp4
-rw-r--r--kbabel/catalogmanager/catalogmanager.cpp370
-rw-r--r--kbabel/catalogmanager/catalogmanager.h2
-rw-r--r--kbabel/catalogmanager/catalogmanagerview.cpp106
-rw-r--r--kbabel/catalogmanager/catalogmanagerview.h2
-rw-r--r--kbabel/catalogmanager/catmanlistitem.cpp4
-rw-r--r--kbabel/catalogmanager/libcvs/cvsdialog.cpp24
-rw-r--r--kbabel/catalogmanager/libsvn/svndialog.cpp24
-rw-r--r--kbabel/catalogmanager/libsvn/svnhandler.cpp10
-rw-r--r--kbabel/catalogmanager/markpatterndialog.cpp8
-rw-r--r--kbabel/catalogmanager/multiroughtransdlg.cpp2
-rw-r--r--kbabel/catalogmanager/validateprogress.cpp14
-rw-r--r--kbabel/catalogmanager/validateprogresswidget.ui8
-rw-r--r--kbabel/common/catalog.cpp92
-rw-r--r--kbabel/common/catalog.h8
-rw-r--r--kbabel/common/catalogfileplugin.h6
-rw-r--r--kbabel/common/catalogitem.h2
-rw-r--r--kbabel/common/catalogsettings.cpp2
-rw-r--r--kbabel/common/catalogsettings.h18
-rw-r--r--kbabel/common/editcmd.h12
-rw-r--r--kbabel/common/kbmailer.cpp10
-rw-r--r--kbabel/common/kbmailer.h4
-rw-r--r--kbabel/common/kbproject.h2
-rw-r--r--kbabel/common/kbprojectmanager.cpp2
-rw-r--r--kbabel/common/kbprojectmanager.h4
-rw-r--r--kbabel/common/msgfmt.cpp20
-rw-r--r--kbabel/common/msgfmt.h4
-rw-r--r--kbabel/common/poinfo.cpp6
-rw-r--r--kbabel/common/poinfo.h2
-rw-r--r--kbabel/common/projectsettings.cpp2
-rw-r--r--kbabel/common/projectsettings.h4
-rw-r--r--kbabel/common/regexpextractor.h6
-rw-r--r--kbabel/common/tagextractor.h2
-rw-r--r--kbabel/commonui/cmdedit.cpp26
-rw-r--r--kbabel/commonui/context.cpp8
-rw-r--r--kbabel/commonui/context.h2
-rw-r--r--kbabel/commonui/finddialog.cpp14
-rw-r--r--kbabel/commonui/finddialog.h4
-rw-r--r--kbabel/commonui/projectpref.cpp16
-rw-r--r--kbabel/commonui/projectpref.h2
-rw-r--r--kbabel/commonui/projectprefwidgets.cpp38
-rw-r--r--kbabel/commonui/projectprefwidgets.h2
-rw-r--r--kbabel/commonui/projectwizard.cpp8
-rw-r--r--kbabel/commonui/projectwizard.h2
-rw-r--r--kbabel/commonui/roughtransdlg.cpp10
-rw-r--r--kbabel/commonui/roughtransdlg.h2
-rw-r--r--kbabel/commonui/tdeactionselector.cpp24
-rw-r--r--kbabel/commonui/tdelisteditor.ui8
-rw-r--r--kbabel/commonui/toolaction.cpp2
-rw-r--r--kbabel/commonui/toolaction.h2
-rw-r--r--kbabel/commonui/toolselectionwidget.h4
-rw-r--r--kbabel/datatools/accelerators/main.cpp8
-rw-r--r--kbabel/datatools/arguments/main.cpp8
-rw-r--r--kbabel/datatools/context/main.cpp8
-rw-r--r--kbabel/datatools/equations/main.cpp8
-rw-r--r--kbabel/datatools/pluralforms/main.cpp8
-rw-r--r--kbabel/datatools/punctuation/main.cpp8
-rw-r--r--kbabel/datatools/setfuzzy/main.cpp8
-rw-r--r--kbabel/datatools/xml/main.cpp8
-rw-r--r--kbabel/filters/gettext/gettextexport.cpp4
-rw-r--r--kbabel/filters/gettext/gettextimport.cpp2
-rw-r--r--kbabel/kbabel/charselectview.cpp8
-rw-r--r--kbabel/kbabel/commentview.cpp8
-rw-r--r--kbabel/kbabel/contextview.cpp2
-rw-r--r--kbabel/kbabel/editorpreferences.ui4
-rw-r--r--kbabel/kbabel/fontpreferences.ui4
-rw-r--r--kbabel/kbabel/headereditor.cpp4
-rw-r--r--kbabel/kbabel/hidingmsgedit.cpp16
-rw-r--r--kbabel/kbabel/kbabel.cpp466
-rw-r--r--kbabel/kbabel/kbabelpref.cpp14
-rw-r--r--kbabel/kbabel/kbabelsplash.cpp2
-rw-r--r--kbabel/kbabel/kbabelview.cpp238
-rw-r--r--kbabel/kbabel/kbabelview2.cpp6
-rw-r--r--kbabel/kbabel/kbbookmarkhandler.cpp2
-rw-r--r--kbabel/kbabel/kbcataloglistview.cpp2
-rw-r--r--kbabel/kbabel/kbcataloglistviewitem.cpp8
-rw-r--r--kbabel/kbabel/kbcataloglistviewitem.h4
-rw-r--r--kbabel/kbabel/kbcatalogview.cpp4
-rw-r--r--kbabel/kbabel/kbcharselect.cpp4
-rw-r--r--kbabel/kbabel/kbhighlighting.cpp12
-rw-r--r--kbabel/kbabel/main.cpp34
-rw-r--r--kbabel/kbabel/mymultilineedit.cpp10
-rw-r--r--kbabel/kbabel/mymultilineedit.h2
-rw-r--r--kbabel/kbabel/sourceview.cpp2
-rw-r--r--kbabel/kbabel/taglistview.cpp12
-rw-r--r--kbabel/kbabeldict/dictchooser.cpp22
-rw-r--r--kbabel/kbabeldict/dictchooser.h2
-rw-r--r--kbabel/kbabeldict/dictionarymenu.cpp14
-rw-r--r--kbabel/kbabeldict/dictionarymenu.h4
-rw-r--r--kbabel/kbabeldict/kbabeldict.cpp12
-rw-r--r--kbabel/kbabeldict/kbabeldictbox.cpp102
-rw-r--r--kbabel/kbabeldict/kbabeldictbox.h2
-rw-r--r--kbabel/kbabeldict/kbabeldictview.cpp34
-rw-r--r--kbabel/kbabeldict/kbabelsplash.cpp2
-rw-r--r--kbabel/kbabeldict/main.cpp4
-rw-r--r--kbabel/kbabeldict/modules/dbsearchengine/KDBSearchEngine.cpp138
-rw-r--r--kbabel/kbabeldict/modules/dbsearchengine/dbscan.cpp4
-rw-r--r--kbabel/kbabeldict/modules/dbsearchengine/dbse_factory.cpp4
-rw-r--r--kbabel/kbabeldict/modules/dbsearchengine/preferenceswidget.cpp4
-rw-r--r--kbabel/kbabeldict/modules/dbsearchengine2/KDBSearchEngine2.cpp26
-rw-r--r--kbabel/kbabeldict/modules/dbsearchengine2/algorithms.cpp4
-rw-r--r--kbabel/kbabeldict/modules/dbsearchengine2/database.cpp4
-rw-r--r--kbabel/kbabeldict/modules/dbsearchengine2/dbscan.cpp4
-rw-r--r--kbabel/kbabeldict/modules/dbsearchengine2/dbse2_factory.cpp4
-rw-r--r--kbabel/kbabeldict/modules/dbsearchengine2/preferenceswidget.cpp4
-rw-r--r--kbabel/kbabeldict/modules/poauxiliary/pa_factory.cpp4
-rw-r--r--kbabel/kbabeldict/modules/poauxiliary/poauxiliary.cpp24
-rw-r--r--kbabel/kbabeldict/modules/poauxiliary/preferenceswidget.cpp4
-rw-r--r--kbabel/kbabeldict/modules/pocompendium/compendiumdata.cpp8
-rw-r--r--kbabel/kbabeldict/modules/pocompendium/pc_factory.cpp4
-rw-r--r--kbabel/kbabeldict/modules/pocompendium/pocompendium.cpp38
-rw-r--r--kbabel/kbabeldict/modules/pocompendium/preferenceswidget.cpp58
-rw-r--r--kbabel/kbabeldict/modules/tmx/pc_factory.cpp4
-rw-r--r--kbabel/kbabeldict/modules/tmx/preferenceswidget.cpp54
-rw-r--r--kbabel/kbabeldict/modules/tmx/tmxcompendium.cpp38
-rw-r--r--kbabel/kbabeldict/modules/tmx/tmxcompendiumdata.cpp2
-rw-r--r--kbabel/kbabeldict/searchengine.h10
117 files changed, 1270 insertions, 1270 deletions
diff --git a/kbabel/addons/preview/pothumbcreator.cpp b/kbabel/addons/preview/pothumbcreator.cpp
index 8efd135f..c3d57c66 100644
--- a/kbabel/addons/preview/pothumbcreator.cpp
+++ b/kbabel/addons/preview/pothumbcreator.cpp
@@ -40,7 +40,7 @@
#include <tdeapplication.h>
#include <tdeglobal.h>
#include <kiconloader.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include <kpixmapsplitter.h>
#include "pothumbcreator.h"
@@ -50,7 +50,7 @@ using namespace KBabel;
extern "C"
{
- KDE_EXPORT ThumbCreator *new_creator()
+ TDE_EXPORT ThumbCreator *new_creator()
{
return new PoThumbCreator;
}
diff --git a/kbabel/catalogmanager/catalogmanager.cpp b/kbabel/catalogmanager/catalogmanager.cpp
index ceed6ce2..4ef617c1 100644
--- a/kbabel/catalogmanager/catalogmanager.cpp
+++ b/kbabel/catalogmanager/catalogmanager.cpp
@@ -67,7 +67,7 @@
#include <kprogress.h>
#include <tdestdaccel.h>
#include <kstdaction.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include <kstatusbar.h>
#include <tdetoolbar.h>
#include <twin.h>
@@ -115,7 +115,7 @@ void CatalogManager::init()
_foundFilesList.clear();
_toBeSearched.clear();
_timerFind = new TQTimer( this );
- connect(_timerFind, TQT_SIGNAL( timeout() ), TQT_TQOBJECT(this), TQT_SLOT(findNextFile()) );
+ connect(_timerFind, TQ_SIGNAL( timeout() ), this, TQ_SLOT(findNextFile()) );
_searchStopped = false;
_prefDialog=0;
@@ -132,8 +132,8 @@ void CatalogManager::init()
_project = KBabel::ProjectManager::open(KBabel::ProjectManager::defaultProjectName());
}
- connect( _project, TQT_SIGNAL (signalCatManSettingsChanged())
- , TQT_TQOBJECT(this), TQT_SLOT (updateSettings()));
+ connect( _project, TQ_SIGNAL (signalCatManSettingsChanged())
+ , this, TQ_SLOT (updateSettings()));
TQWidget *view = new TQWidget(this);
TQVBoxLayout* layout= new TQVBoxLayout(view);
@@ -144,20 +144,20 @@ void CatalogManager::init()
layout->addWidget(_catalogManager);
layout->setStretchFactor(_catalogManager,1);
- connect(this,TQT_SIGNAL(settingsChanged(KBabel::CatManSettings))
- ,TQT_TQOBJECT(_catalogManager),TQT_SLOT(setSettings(KBabel::CatManSettings)));
- connect(_catalogManager,TQT_SIGNAL(openFile(TQString,TQString))
- ,this,TQT_SLOT(openFile(TQString,TQString)));
- connect(_catalogManager,TQT_SIGNAL(openFileInNewWindow(TQString,TQString))
- ,this,TQT_SLOT(openFileInNewWindow(TQString,TQString)));
- connect(_catalogManager,TQT_SIGNAL(openTemplate(TQString,TQString,TQString))
- ,this,TQT_SLOT(openTemplate(TQString,TQString,TQString)));
- connect(_catalogManager,TQT_SIGNAL(openTemplateInNewWindow(TQString,TQString,TQString))
- ,this,TQT_SLOT(openTemplateInNewWindow(TQString,TQString,TQString)));
- connect(_catalogManager,TQT_SIGNAL(gotoFileEntry(TQString,TQString,int))
- ,this,TQT_SLOT(openFile(TQString,TQString,int)));
- connect(_catalogManager, TQT_SIGNAL(selectedChanged(uint)),
- TQT_TQOBJECT(this), TQT_SLOT(selectedChanged(uint)));
+ connect(this,TQ_SIGNAL(settingsChanged(KBabel::CatManSettings))
+ ,_catalogManager,TQ_SLOT(setSettings(KBabel::CatManSettings)));
+ connect(_catalogManager,TQ_SIGNAL(openFile(TQString,TQString))
+ ,this,TQ_SLOT(openFile(TQString,TQString)));
+ connect(_catalogManager,TQ_SIGNAL(openFileInNewWindow(TQString,TQString))
+ ,this,TQ_SLOT(openFileInNewWindow(TQString,TQString)));
+ connect(_catalogManager,TQ_SIGNAL(openTemplate(TQString,TQString,TQString))
+ ,this,TQ_SLOT(openTemplate(TQString,TQString,TQString)));
+ connect(_catalogManager,TQ_SIGNAL(openTemplateInNewWindow(TQString,TQString,TQString))
+ ,this,TQ_SLOT(openTemplateInNewWindow(TQString,TQString,TQString)));
+ connect(_catalogManager,TQ_SIGNAL(gotoFileEntry(TQString,TQString,int))
+ ,this,TQ_SLOT(openFile(TQString,TQString,int)));
+ connect(_catalogManager, TQ_SIGNAL(selectedChanged(uint)),
+ this, TQ_SLOT(selectedChanged(uint)));
KWin::setIcons(winId(),BarIcon("catalogmanager",32)
,SmallIcon("catalogmanager"));
@@ -172,20 +172,20 @@ void CatalogManager::init()
_progressLabel->hide();
_progressBar->hide();
- connect(_catalogManager,TQT_SIGNAL(prepareProgressBar(TQString,int))
- , TQT_TQOBJECT(this), TQT_SLOT(prepareProgressBar(TQString,int)));
- connect(_catalogManager,TQT_SIGNAL(clearProgressBar())
- , TQT_TQOBJECT(this), TQT_SLOT(clearProgressBar()));
- connect(_catalogManager,TQT_SIGNAL(progress(int))
- , _progressBar, TQT_SLOT(setProgress(int)));
-// connect(_catalogManager, TQT_SIGNAL(signalBuildTree(bool))
-// , TQT_TQOBJECT(this), TQT_SLOT(enableMenuForFiles(bool)));
- connect(_catalogManager, TQT_SIGNAL(signalBuildTree(bool))
- , TQT_TQOBJECT(this), TQT_SLOT(enableActions(bool)));
- connect(this, TQT_SIGNAL(searchStopped())
- , TQT_TQOBJECT(_catalogManager), TQT_SLOT(stopSearch()));
- connect(_catalogManager, TQT_SIGNAL(prepareFindProgressBar(int))
- , TQT_TQOBJECT(this), TQT_SLOT(prepareStatusProgressBar(int)));
+ connect(_catalogManager,TQ_SIGNAL(prepareProgressBar(TQString,int))
+ , this, TQ_SLOT(prepareProgressBar(TQString,int)));
+ connect(_catalogManager,TQ_SIGNAL(clearProgressBar())
+ , this, TQ_SLOT(clearProgressBar()));
+ connect(_catalogManager,TQ_SIGNAL(progress(int))
+ , _progressBar, TQ_SLOT(setProgress(int)));
+// connect(_catalogManager, TQ_SIGNAL(signalBuildTree(bool))
+// , this, TQ_SLOT(enableMenuForFiles(bool)));
+ connect(_catalogManager, TQ_SIGNAL(signalBuildTree(bool))
+ , this, TQ_SLOT(enableActions(bool)));
+ connect(this, TQ_SIGNAL(searchStopped())
+ , _catalogManager, TQ_SLOT(stopSearch()));
+ connect(_catalogManager, TQ_SIGNAL(prepareFindProgressBar(int))
+ , this, TQ_SLOT(prepareStatusProgressBar(int)));
setCentralWidget(view);
resize( 600,300);
@@ -206,8 +206,8 @@ void CatalogManager::init()
_catalogManager->setRMBMenuDir(popup);
}
- connect(_catalogManager, TQT_SIGNAL(signalSearchedFile(int))
- , _statusProgressBar, TQT_SLOT(advance(int)));
+ connect(_catalogManager, TQ_SIGNAL(signalSearchedFile(int))
+ , _statusProgressBar, TQ_SLOT(advance(int)));
restoreView();
}
@@ -219,61 +219,61 @@ void CatalogManager::setupActions()
TDEAction *action;
// the file menu
- action = new TDEAction( i18n("&Open"), CTRL+Key_O, TQT_TQOBJECT(_catalogManager),
- TQT_SLOT(slotOpenFile()),actionCollection(), "open");
+ action = new TDEAction( i18n("&Open"), CTRL+Key_O, _catalogManager,
+ TQ_SLOT(slotOpenFile()),actionCollection(), "open");
action->setEnabled(false);
- action = new TDEAction(i18n("&Open Template"),Key_Space,TQT_TQOBJECT(_catalogManager),
- TQT_SLOT(slotOpenTemplate()),actionCollection(), "open_template");
+ action = new TDEAction(i18n("&Open Template"),Key_Space,_catalogManager,
+ TQ_SLOT(slotOpenTemplate()),actionCollection(), "open_template");
action->setEnabled(false);
- action = new TDEAction(i18n("Open in &New Window"),CTRL+SHIFT+Key_O,TQT_TQOBJECT(_catalogManager),
- TQT_SLOT(slotOpenFileInNewWindow()),actionCollection(), "open_new_window");
+ action = new TDEAction(i18n("Open in &New Window"),CTRL+SHIFT+Key_O,_catalogManager,
+ TQ_SLOT(slotOpenFileInNewWindow()),actionCollection(), "open_new_window");
action->setEnabled(false);
- action = KStdAction::quit(TQT_TQOBJECT(kapp), TQT_SLOT (closeAllWindows()), actionCollection());
+ action = KStdAction::quit(tdeApp, TQ_SLOT (closeAllWindows()), actionCollection());
actionMap["open_template"] = NEEDS_POT;
// the edit menu
- action = new TDEAction( i18n("Fi&nd in Files..."), CTRL+Key_F, TQT_TQOBJECT(this),
- TQT_SLOT(find()), actionCollection(), "find_in_files");
+ action = new TDEAction( i18n("Fi&nd in Files..."), CTRL+Key_F, this,
+ TQ_SLOT(find()), actionCollection(), "find_in_files");
action->setEnabled(false);
- action = new TDEAction( i18n("Re&place in Files..."), CTRL+Key_R, TQT_TQOBJECT(this),
- TQT_SLOT(replace()), actionCollection(), "replace_in_files");
+ action = new TDEAction( i18n("Re&place in Files..."), CTRL+Key_R, this,
+ TQ_SLOT(replace()), actionCollection(), "replace_in_files");
action->setEnabled(false);
- action = new TDEAction( i18n("&Stop Searching"), "process-stop", Key_Escape, TQT_TQOBJECT(this),
- TQT_SLOT(stopSearching()), actionCollection(), "stop_search");
+ action = new TDEAction( i18n("&Stop Searching"), "process-stop", Key_Escape, this,
+ TQ_SLOT(stopSearching()), actionCollection(), "stop_search");
action->setEnabled(false);
- action = new TDEAction( i18n("&Reload"), "reload", TDEStdAccel::reload(), TQT_TQOBJECT(_catalogManager),
- TQT_SLOT(updateCurrent()), actionCollection(), "reload");
+ action = new TDEAction( i18n("&Reload"), "reload", TDEStdAccel::reload(), _catalogManager,
+ TQ_SLOT(updateCurrent()), actionCollection(), "reload");
action->setEnabled(false);
// the marking menu
- action = new TDEAction( i18n("&Toggle Marking"), CTRL+Key_M, TQT_TQOBJECT(_catalogManager),
- TQT_SLOT(toggleMark()), actionCollection(), "toggle_marking");
+ action = new TDEAction( i18n("&Toggle Marking"), CTRL+Key_M, _catalogManager,
+ TQ_SLOT(toggleMark()), actionCollection(), "toggle_marking");
action->setEnabled(false);
- action = new TDEAction( i18n("Remove Marking"), 0, TQT_TQOBJECT(_catalogManager),
- TQT_SLOT(slotClearMarksInDir()), actionCollection(), "remove_marking");
+ action = new TDEAction( i18n("Remove Marking"), 0, _catalogManager,
+ TQ_SLOT(slotClearMarksInDir()), actionCollection(), "remove_marking");
action->setEnabled(false);
- action = new TDEAction( i18n("Toggle All Markings"), 0, TQT_TQOBJECT(_catalogManager),
- TQT_SLOT(toggleAllMarks()), actionCollection(), "toggle_all_marking");
+ action = new TDEAction( i18n("Toggle All Markings"), 0, _catalogManager,
+ TQ_SLOT(toggleAllMarks()), actionCollection(), "toggle_all_marking");
action->setEnabled(false);
- action = new TDEAction( i18n("Remove All Markings"), 0, TQT_TQOBJECT(_catalogManager),
- TQT_SLOT(clearAllMarks()), actionCollection(), "remove_all_marking");
+ action = new TDEAction( i18n("Remove All Markings"), 0, _catalogManager,
+ TQ_SLOT(clearAllMarks()), actionCollection(), "remove_all_marking");
action->setEnabled(false);
- action = new TDEAction( i18n("Mark Modified Files"), 0, TQT_TQOBJECT(_catalogManager),
- TQT_SLOT(markModifiedFiles()), actionCollection(), "mark_modified_files");
+ action = new TDEAction( i18n("Mark Modified Files"), 0, _catalogManager,
+ TQ_SLOT(markModifiedFiles()), actionCollection(), "mark_modified_files");
// fixme to enabling this when loading is done using updateFinished() signal
action->setEnabled(true);
- action = new TDEAction( i18n("&Load Markings..."), 0, TQT_TQOBJECT(_catalogManager),
- TQT_SLOT(loadMarks()), actionCollection(), "load_marking");
+ action = new TDEAction( i18n("&Load Markings..."), 0, _catalogManager,
+ TQ_SLOT(loadMarks()), actionCollection(), "load_marking");
action->setEnabled(false);
- action = new TDEAction( i18n("&Save Markings..."), 0, TQT_TQOBJECT(_catalogManager),
- TQT_SLOT(saveMarks()), actionCollection(), "save_marking");
+ action = new TDEAction( i18n("&Save Markings..."), 0, _catalogManager,
+ TQ_SLOT(saveMarks()), actionCollection(), "save_marking");
action->setEnabled(false);
- (void)new TDEAction(i18n("&Mark Files..."), 0, TQT_TQOBJECT(_catalogManager),
- TQT_SLOT(slotMarkPattern()), actionCollection(), "mark_pattern");
- (void)new TDEAction(i18n("&Unmark Files..."), 0, TQT_TQOBJECT(_catalogManager),
- TQT_SLOT(slotUnmarkPattern()), actionCollection(), "unmark_pattern");
+ (void)new TDEAction(i18n("&Mark Files..."), 0, _catalogManager,
+ TQ_SLOT(slotMarkPattern()), actionCollection(), "mark_pattern");
+ (void)new TDEAction(i18n("&Unmark Files..."), 0, _catalogManager,
+ TQ_SLOT(slotUnmarkPattern()), actionCollection(), "unmark_pattern");
actionMap["remove_marking"] = NEEDS_MARK;
actionMap["remove_all_marking"] = NEEDS_MARK;
@@ -282,102 +282,102 @@ void CatalogManager::setupActions()
// go menu
action = new TDEAction(i18n("Nex&t Untranslated"), "nextuntranslated", ALT+Key_Next,
- TQT_TQOBJECT(_catalogManager), TQT_SLOT(gotoNextUntranslated()),actionCollection(), "go_next_untrans");
+ _catalogManager, TQ_SLOT(gotoNextUntranslated()),actionCollection(), "go_next_untrans");
action->setEnabled(false);
action = new TDEAction(i18n("Prev&ious Untranslated"), "prevuntranslated", ALT+Key_Prior,
- TQT_TQOBJECT(_catalogManager), TQT_SLOT(gotoPreviousUntranslated()),actionCollection(), "go_prev_untrans");
+ _catalogManager, TQ_SLOT(gotoPreviousUntranslated()),actionCollection(), "go_prev_untrans");
action->setEnabled(false);
action = new TDEAction(i18n("Ne&xt Fuzzy"), "nextfuzzy", CTRL+Key_Next,
- TQT_TQOBJECT(_catalogManager), TQT_SLOT(gotoNextFuzzy()),actionCollection(), "go_next_fuzzy");
+ _catalogManager, TQ_SLOT(gotoNextFuzzy()),actionCollection(), "go_next_fuzzy");
action->setEnabled(false);
action = new TDEAction(i18n("Pre&vious Fuzzy"), "prevfuzzy", CTRL+Key_Prior,
- TQT_TQOBJECT(_catalogManager), TQT_SLOT(gotoPreviousFuzzy()),actionCollection(), "go_prev_fuzzy");
+ _catalogManager, TQ_SLOT(gotoPreviousFuzzy()),actionCollection(), "go_prev_fuzzy");
action->setEnabled(false);
action = new TDEAction(i18n("N&ext Fuzzy or Untranslated"), "nextfuzzyuntrans", CTRL+SHIFT+Key_Next,
- TQT_TQOBJECT(_catalogManager), TQT_SLOT(gotoNextFuzzyOrUntranslated()),actionCollection(), "go_next_fuzzyUntr");
+ _catalogManager, TQ_SLOT(gotoNextFuzzyOrUntranslated()),actionCollection(), "go_next_fuzzyUntr");
action->setEnabled(false);
action = new TDEAction(i18n("P&revious Fuzzy or Untranslated"), "prevfuzzyuntrans", CTRL+SHIFT+Key_Prior,
- TQT_TQOBJECT(_catalogManager), TQT_SLOT(gotoPreviousFuzzyOrUntranslated()),actionCollection(), "go_prev_fuzzyUntr");
+ _catalogManager, TQ_SLOT(gotoPreviousFuzzyOrUntranslated()),actionCollection(), "go_prev_fuzzyUntr");
action->setEnabled(false);
action = new TDEAction(i18n("Next Err&or"), "nexterror", ALT+SHIFT+Key_Next,
- TQT_TQOBJECT(_catalogManager), TQT_SLOT(gotoNextError()),actionCollection(), "go_next_error");
+ _catalogManager, TQ_SLOT(gotoNextError()),actionCollection(), "go_next_error");
action->setEnabled(false);
action = new TDEAction(i18n("Previo&us Error"), "preverror", ALT+SHIFT+Key_Prior,
- TQT_TQOBJECT(_catalogManager), TQT_SLOT(gotoPreviousError()),actionCollection(), "go_prev_error");
+ _catalogManager, TQ_SLOT(gotoPreviousError()),actionCollection(), "go_prev_error");
action->setEnabled(false);
action = new TDEAction(i18n("Next Te&mplate Only"), "nexttemplate", CTRL+Key_Down,
- TQT_TQOBJECT(_catalogManager), TQT_SLOT(gotoNextTemplate()),actionCollection(), "go_next_template");
+ _catalogManager, TQ_SLOT(gotoNextTemplate()),actionCollection(), "go_next_template");
action->setEnabled(false);
action = new TDEAction(i18n("Previous Temp&late Only"), "prevtemplate", CTRL+Key_Up,
- TQT_TQOBJECT(_catalogManager), TQT_SLOT(gotoPreviousTemplate()),actionCollection(), "go_prev_template");
+ _catalogManager, TQ_SLOT(gotoPreviousTemplate()),actionCollection(), "go_prev_template");
action->setEnabled(false);
action = new TDEAction(i18n("Next Tran&slation Exists"), "nextpo", ALT+Key_Down,
- TQT_TQOBJECT(_catalogManager), TQT_SLOT(gotoNextPo()),actionCollection(), "go_next_po");
+ _catalogManager, TQ_SLOT(gotoNextPo()),actionCollection(), "go_next_po");
action->setEnabled(false);
action = new TDEAction(i18n("Previous Transl&ation Exists"), "prevpo", ALT+Key_Up,
- TQT_TQOBJECT(_catalogManager), TQT_SLOT(gotoPreviousPo()),actionCollection(), "go_prev_po");
+ _catalogManager, TQ_SLOT(gotoPreviousPo()),actionCollection(), "go_prev_po");
action->setEnabled(false);
action = new TDEAction(i18n("Previous Marke&d"), "prevmarked", SHIFT+Key_Up,
- TQT_TQOBJECT(_catalogManager), TQT_SLOT(gotoPreviousMarked()),actionCollection(), "go_prev_marked");
+ _catalogManager, TQ_SLOT(gotoPreviousMarked()),actionCollection(), "go_prev_marked");
action->setEnabled(false);
action = new TDEAction(i18n("Next &Marked"), "nextmarked", SHIFT+Key_Down,
- TQT_TQOBJECT(_catalogManager), TQT_SLOT(gotoNextMarked()),actionCollection(), "go_next_marked");
+ _catalogManager, TQ_SLOT(gotoNextMarked()),actionCollection(), "go_next_marked");
action->setEnabled(false);
// project menu
// the project menu
action = new TDEAction(i18n("&New..."), "document-new"
- , TQT_TQOBJECT(this), TQT_SLOT(projectNew()),actionCollection()
+ , this, TQ_SLOT(projectNew()),actionCollection()
,"project_new");
action = new TDEAction(i18n("&Open..."), "document-open"
- , TQT_TQOBJECT(this), TQT_SLOT(projectOpen()),actionCollection()
+ , this, TQ_SLOT(projectOpen()),actionCollection()
,"project_open");
action = new TDEAction(i18n("C&lose"), "window-close"
- , TQT_TQOBJECT(this), TQT_SLOT(projectClose()),actionCollection()
+ , this, TQ_SLOT(projectClose()),actionCollection()
,"project_close");
action->setEnabled (_project->filename() != KBabel::ProjectManager::defaultProjectName() );
action = new TDEAction(i18n("&Configure..."), "configure"
- , TQT_TQOBJECT(this), TQT_SLOT(projectConfigure()),actionCollection()
+ , this, TQ_SLOT(projectConfigure()),actionCollection()
,"project_settings");
// tools menu
action = new TDEAction( i18n("&Statistics"), "statistics", CTRL+Key_S,
- TQT_TQOBJECT(_catalogManager), TQT_SLOT(statistics()), actionCollection(), "statistics");
+ _catalogManager, TQ_SLOT(statistics()), actionCollection(), "statistics");
action->setEnabled(false);
action = new TDEAction( i18n("S&tatistics in Marked"), "statistics", CTRL+ALT+Key_S,
- TQT_TQOBJECT(_catalogManager), TQT_SLOT(markedStatistics()), actionCollection(), "statistics_marked");
+ _catalogManager, TQ_SLOT(markedStatistics()), actionCollection(), "statistics_marked");
action->setEnabled(false);
action = new TDEAction( i18n("Check S&yntax"), "syntax", CTRL+Key_Y,
- TQT_TQOBJECT(_catalogManager), TQT_SLOT(checkSyntax()), actionCollection(), "syntax");
+ _catalogManager, TQ_SLOT(checkSyntax()), actionCollection(), "syntax");
action->setEnabled(false);
action = new TDEAction( i18n("S&pell Check"), "tools-check-spelling", CTRL+Key_I,
- TQT_TQOBJECT(this), TQT_SLOT(spellcheck()), actionCollection(), "tools-check-spelling");
+ this, TQ_SLOT(spellcheck()), actionCollection(), "tools-check-spelling");
action->setEnabled(false);
action = new TDEAction( i18n("Spell Check in &Marked"), "tools-check-spelling", CTRL+ALT+Key_I,
- TQT_TQOBJECT(this), TQT_SLOT(markedSpellcheck()), actionCollection(), "spellcheck_marked");
+ this, TQ_SLOT(markedSpellcheck()), actionCollection(), "spellcheck_marked");
action->setEnabled(false);
action = new TDEAction( i18n("&Rough Translation"), CTRL+Key_T,
- TQT_TQOBJECT(_catalogManager), TQT_SLOT(roughTranslation()), actionCollection(), "rough_translation");
+ _catalogManager, TQ_SLOT(roughTranslation()), actionCollection(), "rough_translation");
action->setEnabled(false);
action = new TDEAction( i18n("Rough Translation in M&arked"), CTRL+ALT+Key_T,
- TQT_TQOBJECT(_catalogManager), TQT_SLOT(markedRoughTranslation()), actionCollection(), "rough_translation_marked");
+ _catalogManager, TQ_SLOT(markedRoughTranslation()), actionCollection(), "rough_translation_marked");
action->setEnabled(false);
action = new TDEAction( i18n("Mai&l"), "mail-send", CTRL+Key_A,
- TQT_TQOBJECT(_catalogManager), TQT_SLOT(mailFiles()), actionCollection(), "mail_file");
+ _catalogManager, TQ_SLOT(mailFiles()), actionCollection(), "mail_file");
action->setEnabled(false);
action = new TDEAction( i18n("Mail Mar&ked"), "mail-send", CTRL+ALT+Key_A,
- TQT_TQOBJECT(_catalogManager), TQT_SLOT(mailMarkedFiles()), actionCollection(), "mail_file_marked");
+ _catalogManager, TQ_SLOT(mailMarkedFiles()), actionCollection(), "mail_file_marked");
action->setEnabled(false);
action = new TDEAction( i18n("&Pack"), "application-x-tar", CTRL+Key_B,
- TQT_TQOBJECT(_catalogManager), TQT_SLOT(packageFiles()), actionCollection(), "package_file");
- action = new TDEAction( i18n("Pack &Marked"), "application-x-tar", CTRL+ALT+Key_B, TQT_TQOBJECT(_catalogManager), TQT_SLOT(packageMarkedFiles()), actionCollection(), "package_file_marked");
+ _catalogManager, TQ_SLOT(packageFiles()), actionCollection(), "package_file");
+ action = new TDEAction( i18n("Pack &Marked"), "application-x-tar", CTRL+ALT+Key_B, _catalogManager, TQ_SLOT(packageMarkedFiles()), actionCollection(), "package_file_marked");
action->setEnabled(false);
actionMap["statistics_marked"] = NEEDS_DIR | NEEDS_MARK;
@@ -393,7 +393,7 @@ void CatalogManager::setupActions()
TQValueList<KDataToolInfo> tools = ToolAction::validationTools();
TQPtrList<TDEAction> actions = ToolAction::dataToolActionList(
- tools, TQT_TQOBJECT(_catalogManager), TQT_SLOT(validateUsingTool( const KDataToolInfo &, const TQString& ))
+ tools, _catalogManager, TQ_SLOT(validateUsingTool( const KDataToolInfo &, const TQString& ))
,"validate", false, actionCollection() );
TDEActionMenu* m_menu = new TDEActionMenu(i18n("&Validation"), actionCollection(),
@@ -407,7 +407,7 @@ void CatalogManager::setupActions()
}
actions = ToolAction::dataToolActionList(
- tools, TQT_TQOBJECT(_catalogManager), TQT_SLOT(validateMarkedUsingTool( const KDataToolInfo &, const TQString& ))
+ tools, _catalogManager, TQ_SLOT(validateMarkedUsingTool( const KDataToolInfo &, const TQString& ))
,"validate", false, actionCollection(), "marked_" );
m_menu = new TDEActionMenu(i18n("V&alidation Marked"), actionCollection(),
"dynamic_validation_marked");
@@ -422,20 +422,20 @@ void CatalogManager::setupActions()
// CVS submenu
// Actions for PO files
- (void)new TDEAction( i18n( "Update" ), "go-down", 0, TQT_TQOBJECT(_catalogManager),
- TQT_SLOT( cvsUpdate( ) ), actionCollection( ), "cvs_update" );
- (void)new TDEAction( i18n( "Update Marked" ), 0, TQT_TQOBJECT(_catalogManager),
- TQT_SLOT( cvsUpdateMarked( ) ), actionCollection( ), "cvs_update_marked" );
- (void)new TDEAction( i18n( "Commit" ), "go-up", 0, TQT_TQOBJECT(_catalogManager),
- TQT_SLOT( cvsCommit( ) ), actionCollection( ), "cvs_commit" );
- (void)new TDEAction( i18n( "Commit Marked" ), 0, TQT_TQOBJECT(_catalogManager),
- TQT_SLOT( cvsCommitMarked( ) ), actionCollection( ), "cvs_commit_marked" );
- (void)new TDEAction( i18n( "Status" ), 0, TQT_TQOBJECT(_catalogManager),
- TQT_SLOT( cvsStatus( ) ), actionCollection( ), "cvs_status" );
- (void)new TDEAction( i18n( "Status for Marked" ), 0, TQT_TQOBJECT(_catalogManager),
- TQT_SLOT( cvsStatusMarked( ) ), actionCollection( ), "cvs_status_marked" );
- (void)new TDEAction( i18n( "Show Diff" ), 0, TQT_TQOBJECT(_catalogManager),
- TQT_SLOT( cvsDiff( ) ), actionCollection( ), "cvs_diff" );
+ (void)new TDEAction( i18n( "Update" ), "go-down", 0, _catalogManager,
+ TQ_SLOT( cvsUpdate( ) ), actionCollection( ), "cvs_update" );
+ (void)new TDEAction( i18n( "Update Marked" ), 0, _catalogManager,
+ TQ_SLOT( cvsUpdateMarked( ) ), actionCollection( ), "cvs_update_marked" );
+ (void)new TDEAction( i18n( "Commit" ), "go-up", 0, _catalogManager,
+ TQ_SLOT( cvsCommit( ) ), actionCollection( ), "cvs_commit" );
+ (void)new TDEAction( i18n( "Commit Marked" ), 0, _catalogManager,
+ TQ_SLOT( cvsCommitMarked( ) ), actionCollection( ), "cvs_commit_marked" );
+ (void)new TDEAction( i18n( "Status" ), 0, _catalogManager,
+ TQ_SLOT( cvsStatus( ) ), actionCollection( ), "cvs_status" );
+ (void)new TDEAction( i18n( "Status for Marked" ), 0, _catalogManager,
+ TQ_SLOT( cvsStatusMarked( ) ), actionCollection( ), "cvs_status_marked" );
+ (void)new TDEAction( i18n( "Show Diff" ), 0, _catalogManager,
+ TQ_SLOT( cvsDiff( ) ), actionCollection( ), "cvs_diff" );
// CVS
actionMap["cvs_update"] = NEEDS_PO | NEEDS_PO_CVS;
@@ -448,28 +448,28 @@ void CatalogManager::setupActions()
// SVN submenu
// Actions for PO files
- (void)new TDEAction( i18n( "Update" ), "go-down", 0, TQT_TQOBJECT(_catalogManager),
- TQT_SLOT( svnUpdate( ) ), actionCollection( ), "svn_update" );
- (void)new TDEAction( i18n( "Update Marked" ), 0, TQT_TQOBJECT(_catalogManager),
- TQT_SLOT( svnUpdateMarked( ) ), actionCollection( ), "svn_update_marked" );
- (void)new TDEAction( i18n( "Commit" ), "go-up", 0, TQT_TQOBJECT(_catalogManager),
- TQT_SLOT( svnCommit( ) ), actionCollection( ), "svn_commit" );
- (void)new TDEAction( i18n( "Commit Marked" ), 0, TQT_TQOBJECT(_catalogManager),
- TQT_SLOT( svnCommitMarked( ) ), actionCollection( ), "svn_commit_marked" );
- (void)new TDEAction( i18n( "Status (Local)" ), 0, TQT_TQOBJECT(_catalogManager),
- TQT_SLOT( svnStatusLocal() ), actionCollection( ), "svn_status_local" );
- (void)new TDEAction( i18n( "Status (Local) for Marked" ), 0, TQT_TQOBJECT(_catalogManager),
- TQT_SLOT( svnStatusLocalMarked() ), actionCollection( ), "svn_status_local_marked" );
- (void)new TDEAction( i18n( "Status (Remote)" ), 0, TQT_TQOBJECT(_catalogManager),
- TQT_SLOT( svnStatusRemote() ), actionCollection( ), "svn_status_remote" );
- (void)new TDEAction( i18n( "Status (Remote) for Marked" ), 0, TQT_TQOBJECT(_catalogManager),
- TQT_SLOT( svnStatusRemoteMarked() ), actionCollection( ), "svn_status_remote_marked" );
- (void)new TDEAction( i18n( "Show Diff" ), 0, TQT_TQOBJECT(_catalogManager),
- TQT_SLOT( svnDiff( ) ), actionCollection( ), "svn_diff" );
- (void)new TDEAction( i18n( "Show Information" ), 0, TQT_TQOBJECT(_catalogManager),
- TQT_SLOT( svnInfo() ), actionCollection( ), "svn_info" );
- (void)new TDEAction( i18n( "Show Information for Marked" ), 0, TQT_TQOBJECT(_catalogManager),
- TQT_SLOT( svnInfoMarked() ), actionCollection( ), "svn_info_marked" );
+ (void)new TDEAction( i18n( "Update" ), "go-down", 0, _catalogManager,
+ TQ_SLOT( svnUpdate( ) ), actionCollection( ), "svn_update" );
+ (void)new TDEAction( i18n( "Update Marked" ), 0, _catalogManager,
+ TQ_SLOT( svnUpdateMarked( ) ), actionCollection( ), "svn_update_marked" );
+ (void)new TDEAction( i18n( "Commit" ), "go-up", 0, _catalogManager,
+ TQ_SLOT( svnCommit( ) ), actionCollection( ), "svn_commit" );
+ (void)new TDEAction( i18n( "Commit Marked" ), 0, _catalogManager,
+ TQ_SLOT( svnCommitMarked( ) ), actionCollection( ), "svn_commit_marked" );
+ (void)new TDEAction( i18n( "Status (Local)" ), 0, _catalogManager,
+ TQ_SLOT( svnStatusLocal() ), actionCollection( ), "svn_status_local" );
+ (void)new TDEAction( i18n( "Status (Local) for Marked" ), 0, _catalogManager,
+ TQ_SLOT( svnStatusLocalMarked() ), actionCollection( ), "svn_status_local_marked" );
+ (void)new TDEAction( i18n( "Status (Remote)" ), 0, _catalogManager,
+ TQ_SLOT( svnStatusRemote() ), actionCollection( ), "svn_status_remote" );
+ (void)new TDEAction( i18n( "Status (Remote) for Marked" ), 0, _catalogManager,
+ TQ_SLOT( svnStatusRemoteMarked() ), actionCollection( ), "svn_status_remote_marked" );
+ (void)new TDEAction( i18n( "Show Diff" ), 0, _catalogManager,
+ TQ_SLOT( svnDiff( ) ), actionCollection( ), "svn_diff" );
+ (void)new TDEAction( i18n( "Show Information" ), 0, _catalogManager,
+ TQ_SLOT( svnInfo() ), actionCollection( ), "svn_info" );
+ (void)new TDEAction( i18n( "Show Information for Marked" ), 0, _catalogManager,
+ TQ_SLOT( svnInfoMarked() ), actionCollection( ), "svn_info_marked" );
// SVN
actionMap["svn_update"] = NEEDS_PO | NEEDS_PO_SVN;
@@ -485,14 +485,14 @@ void CatalogManager::setupActions()
actionMap["svn_info_marked"] = NEEDS_PO | NEEDS_PO_SVN | NEEDS_MARK;
// CVS Actions for POT files
- (void)new TDEAction( i18n( "Update Templates" ), 0, TQT_TQOBJECT(_catalogManager),
- TQT_SLOT( cvsUpdateTemplate( ) ), actionCollection( ), "cvs_update_template" );
- (void)new TDEAction( i18n( "Update Marked Templates" ), 0, TQT_TQOBJECT(_catalogManager),
- TQT_SLOT( cvsUpdateMarkedTemplate( ) ), actionCollection( ), "cvs_update_marked_template" );
- (void)new TDEAction( i18n( "Commit Templates" ), 0, TQT_TQOBJECT(_catalogManager),
- TQT_SLOT( cvsCommitTemplate( ) ), actionCollection( ), "cvs_commit_template" );
- (void)new TDEAction( i18n( "Commit Marked Templates" ), 0, TQT_TQOBJECT(_catalogManager),
- TQT_SLOT( cvsCommitMarkedTemplate( ) ), actionCollection( ), "cvs_commit_marked_template" );
+ (void)new TDEAction( i18n( "Update Templates" ), 0, _catalogManager,
+ TQ_SLOT( cvsUpdateTemplate( ) ), actionCollection( ), "cvs_update_template" );
+ (void)new TDEAction( i18n( "Update Marked Templates" ), 0, _catalogManager,
+ TQ_SLOT( cvsUpdateMarkedTemplate( ) ), actionCollection( ), "cvs_update_marked_template" );
+ (void)new TDEAction( i18n( "Commit Templates" ), 0, _catalogManager,
+ TQ_SLOT( cvsCommitTemplate( ) ), actionCollection( ), "cvs_commit_template" );
+ (void)new TDEAction( i18n( "Commit Marked Templates" ), 0, _catalogManager,
+ TQ_SLOT( cvsCommitMarkedTemplate( ) ), actionCollection( ), "cvs_commit_marked_template" );
actionMap["cvs_update_template"] = NEEDS_POT | NEEDS_POT_CVS;
actionMap["cvs_update_marked_template"] = NEEDS_POT | NEEDS_POT_CVS | NEEDS_MARK;
@@ -500,14 +500,14 @@ void CatalogManager::setupActions()
actionMap["cvs_commit_marked_template"] = NEEDS_POT | NEEDS_POT_CVS | NEEDS_MARK;
// SVN Actions for POT files
- (void)new TDEAction( i18n( "Update Templates" ), 0, TQT_TQOBJECT(_catalogManager),
- TQT_SLOT( svnUpdateTemplate( ) ), actionCollection( ), "svn_update_template" );
- (void)new TDEAction( i18n( "Update Marked Templates" ), 0, TQT_TQOBJECT(_catalogManager),
- TQT_SLOT( svnUpdateMarkedTemplate( ) ), actionCollection( ), "svn_update_marked_template" );
- (void)new TDEAction( i18n( "Commit Templates" ), 0, TQT_TQOBJECT(_catalogManager),
- TQT_SLOT( svnCommitTemplate( ) ), actionCollection( ), "svn_commit_template" );
- (void)new TDEAction( i18n( "Commit Marked Templates" ), 0, TQT_TQOBJECT(_catalogManager),
- TQT_SLOT( svnCommitMarkedTemplate( ) ), actionCollection( ), "svn_commit_marked_template" );
+ (void)new TDEAction( i18n( "Update Templates" ), 0, _catalogManager,
+ TQ_SLOT( svnUpdateTemplate( ) ), actionCollection( ), "svn_update_template" );
+ (void)new TDEAction( i18n( "Update Marked Templates" ), 0, _catalogManager,
+ TQ_SLOT( svnUpdateMarkedTemplate( ) ), actionCollection( ), "svn_update_marked_template" );
+ (void)new TDEAction( i18n( "Commit Templates" ), 0, _catalogManager,
+ TQ_SLOT( svnCommitTemplate( ) ), actionCollection( ), "svn_commit_template" );
+ (void)new TDEAction( i18n( "Commit Marked Templates" ), 0, _catalogManager,
+ TQ_SLOT( svnCommitMarkedTemplate( ) ), actionCollection( ), "svn_commit_marked_template" );
actionMap["svn_update_template"] = NEEDS_POT | NEEDS_POT_SVN;
actionMap["svn_update_marked_template"] = NEEDS_POT | NEEDS_POT_SVN | NEEDS_MARK;
@@ -515,7 +515,7 @@ void CatalogManager::setupActions()
actionMap["svn_commit_marked_template"] = NEEDS_POT | NEEDS_POT_SVN | NEEDS_MARK;
// settings menu
- // FIXME: KStdAction::preferences(this, TQT_SLOT( optionsPreferences()), actionCollection());
+ // FIXME: KStdAction::preferences(this, TQ_SLOT( optionsPreferences()), actionCollection());
createStandardStatusBarAction();
@@ -530,7 +530,7 @@ void CatalogManager::setupActions()
actionCollection(), "file_commands");
_catalogManager->setFileCommandsMenu( actionMenu->popupMenu());
- action = new TDEAction(i18n("&Delete"),Key_Delete,TQT_TQOBJECT(_catalogManager),TQT_SLOT(slotDeleteFile()),actionCollection(), "delete");
+ action = new TDEAction(i18n("&Delete"),Key_Delete,_catalogManager,TQ_SLOT(slotDeleteFile()),actionCollection(), "delete");
action->setEnabled(false);
#if KDE_IS_VERSION( 3, 2, 90 )
@@ -632,7 +632,7 @@ CatalogManagerView *CatalogManager::view()
void CatalogManager::openFile(TQString filename, TQString package)
{
- DCOPClient * client = kapp->dcopClient();
+ DCOPClient * client = tdeApp->dcopClient();
if( startKBabel() )
{
@@ -657,7 +657,7 @@ void CatalogManager::openFile(TQString filename, TQString package)
kdDebug(KBABEL_CATMAN) << callfunc << endl;
// update the user timestamp for KBabel to get it a focus
- kapp->updateRemoteUserTimestamp ("kbabel");
+ tdeApp->updateRemoteUserTimestamp ("kbabel");
if( !client->send("kbabel","KBabelIFace", callfunc, data) )
KMessageBox::error(this, i18n("Cannot send a message to KBabel.\n"
@@ -667,7 +667,7 @@ void CatalogManager::openFile(TQString filename, TQString package)
void CatalogManager::openFile(TQString filename, TQString package, int msgid)
{
- DCOPClient * client = kapp->dcopClient();
+ DCOPClient * client = tdeApp->dcopClient();
if( startKBabel() )
{
@@ -690,7 +690,7 @@ void CatalogManager::openFile(TQString filename, TQString package, int msgid)
kdDebug(KBABEL_CATMAN) << callfunc << endl;
// update the user timestamp for KBabel to get it a focus
- kapp->updateRemoteUserTimestamp ("kbabel");
+ tdeApp->updateRemoteUserTimestamp ("kbabel");
if( !client->send("kbabel","KBabelIFace", callfunc, data) )
KMessageBox::error(this, i18n("Cannot send a message to KBabel.\n"
@@ -700,7 +700,7 @@ void CatalogManager::openFile(TQString filename, TQString package, int msgid)
void CatalogManager::openFileInNewWindow(TQString filename, TQString package)
{
- DCOPClient * client = kapp->dcopClient();
+ DCOPClient * client = tdeApp->dcopClient();
if( startKBabel() )
{
@@ -721,7 +721,7 @@ void CatalogManager::openFileInNewWindow(TQString filename, TQString package)
}
// update the user timestamp for KBabel to get it a focus
- kapp->updateRemoteUserTimestamp ("kbabel");
+ tdeApp->updateRemoteUserTimestamp ("kbabel");
if( !client->send("kbabel","KBabelIFace", callfunc, data) )
KMessageBox::error(this, i18n("Cannot send a message to KBabel.\n"
@@ -731,7 +731,7 @@ void CatalogManager::openFileInNewWindow(TQString filename, TQString package)
void CatalogManager::openTemplate(TQString openFilename,TQString saveFilename,TQString package)
{
- DCOPClient * client = kapp->dcopClient();
+ DCOPClient * client = tdeApp->dcopClient();
if( startKBabel() ) {
TQByteArray data;
@@ -751,7 +751,7 @@ void CatalogManager::openTemplate(TQString openFilename,TQString saveFilename,TQ
}
// update the user timestamp for KBabel to get it a focus
- kapp->updateRemoteUserTimestamp ("kbabel");
+ tdeApp->updateRemoteUserTimestamp ("kbabel");
if( !client->send("kbabel","KBabelIFace", callfunc, data) )
KMessageBox::error(this, i18n("Cannot send a message to KBabel.\n"
@@ -761,7 +761,7 @@ void CatalogManager::openTemplate(TQString openFilename,TQString saveFilename,TQ
void CatalogManager::openTemplateInNewWindow(TQString openFilename,TQString saveFilename,TQString package)
{
- DCOPClient * client = kapp->dcopClient();
+ DCOPClient * client = tdeApp->dcopClient();
if( startKBabel() ) {
TQByteArray data;
@@ -781,7 +781,7 @@ void CatalogManager::openTemplateInNewWindow(TQString openFilename,TQString save
}
// update the user timestamp for KBabel to get it a focus
- kapp->updateRemoteUserTimestamp ("kbabel");
+ tdeApp->updateRemoteUserTimestamp ("kbabel");
if( !client->send("kbabel","KBabelIFace", callfunc, data) )
KMessageBox::error(this, i18n("Cannot send a message to KBabel.\n"
@@ -791,7 +791,7 @@ void CatalogManager::openTemplateInNewWindow(TQString openFilename,TQString save
void CatalogManager::spellcheck()
{
- DCOPClient * client = kapp->dcopClient();
+ DCOPClient * client = tdeApp->dcopClient();
TQStringList fileList = _catalogManager->current();
@@ -801,7 +801,7 @@ void CatalogManager::spellcheck()
arg << fileList;
// update the user timestamp for KBabel to get it a focus
- kapp->updateRemoteUserTimestamp ("kbabel");
+ tdeApp->updateRemoteUserTimestamp ("kbabel");
if( !client->send("kbabel","KBabelIFace", "spellcheck(TQStringList)", data) )
KMessageBox::error(this, i18n("Cannot send a message to KBabel.\n"
@@ -811,7 +811,7 @@ void CatalogManager::spellcheck()
void CatalogManager::markedSpellcheck()
{
- DCOPClient * client = kapp->dcopClient();
+ DCOPClient * client = tdeApp->dcopClient();
TQStringList fileList = _catalogManager->marked();
@@ -821,7 +821,7 @@ void CatalogManager::markedSpellcheck()
arg << fileList;
// update the user timestamp for KBabel to get it a focus
- kapp->updateRemoteUserTimestamp ("kbabel");
+ tdeApp->updateRemoteUserTimestamp ("kbabel");
if( !client->send("kbabel","KBabelIFace", "spellcheck(TQStringList)", data) )
KMessageBox::error(this, i18n("Cannot send a message to KBabel.\n"
@@ -834,7 +834,7 @@ bool CatalogManager::startKBabel()
TQCString service;
TQString result;
- DCOPClient * client = kapp->dcopClient();
+ DCOPClient * client = tdeApp->dcopClient();
// find out, if there is a running kbabel
QCStringList apps = client->registeredApplications();
@@ -853,7 +853,7 @@ bool CatalogManager::startKBabel()
{
TQString app = "kbabel";
TQString url = "";
- if( kapp->startServiceByDesktopName(app,url, &result, &service))
+ if( tdeApp->startServiceByDesktopName(app,url, &result, &service))
{
KMessageBox::error( this, i18n("Unable to use TDELauncher to start KBabel.\n"
"You should check the installation of TDE.\n"
@@ -925,7 +925,7 @@ void CatalogManager::decreaseNumberOfFound()
void CatalogManager::slotHelp()
{
- kapp->invokeHelp("CATALOGMANAGER","kbabel");
+ tdeApp->invokeHelp("CATALOGMANAGER","kbabel");
}
void CatalogManager::find()
@@ -959,7 +959,7 @@ void CatalogManager::find()
if( startKBabel() )
{
TQCString funcCall("findInFile(TQCString,TQCString,TQString,int,int,int,int,int,int,int,int,int,int)");
- DCOPClient *client = kapp->dcopClient();
+ DCOPClient *client = tdeApp->dcopClient();
TQByteArray data;
TQDataStream arg(data, IO_WriteOnly);
arg << client->appId();
@@ -1044,7 +1044,7 @@ void CatalogManager::replace()
if( startKBabel() )
{
TQCString funcCall("replaceInFile(TQCString,TQCString,TQString,TQString,int,int,int,int,int,int,int,int,int,int,int)");
- DCOPClient *client = kapp->dcopClient();
+ DCOPClient *client = tdeApp->dcopClient();
TQByteArray data;
TQDataStream arg(data, IO_WriteOnly);
@@ -1188,11 +1188,11 @@ void CatalogManager::projectNew()
KBabel::Project::Ptr p = KBabel::ProjectWizard::newProject();
if( p )
{
- disconnect( _project, TQT_SIGNAL (signalCatManSettingsChanged())
- , TQT_TQOBJECT(this), TQT_SLOT (updateSettings()));
+ disconnect( _project, TQ_SIGNAL (signalCatManSettingsChanged())
+ , this, TQ_SLOT (updateSettings()));
_project = p;
- connect( _project, TQT_SIGNAL (signalCatManSettingsChanged())
- , TQT_TQOBJECT(this), TQT_SLOT (updateSettings()));
+ connect( _project, TQ_SIGNAL (signalCatManSettingsChanged())
+ , this, TQ_SLOT (updateSettings()));
_configFile = _project->filename();
restoreSettings();
@@ -1217,11 +1217,11 @@ void CatalogManager::projectOpen()
KBabel::Project::Ptr p = KBabel::ProjectManager::open(file);
if( p )
{
- disconnect( _project, TQT_SIGNAL (signalCatManSettingsChanged())
- , TQT_TQOBJECT(this), TQT_SLOT (updateSettings()));
+ disconnect( _project, TQ_SIGNAL (signalCatManSettingsChanged())
+ , this, TQ_SLOT (updateSettings()));
_project = p;
- connect( _project, TQT_SIGNAL (signalCatManSettingsChanged())
- , TQT_TQOBJECT(this), TQT_SLOT (updateSettings()));
+ connect( _project, TQ_SIGNAL (signalCatManSettingsChanged())
+ , this, TQ_SLOT (updateSettings()));
_configFile = p->filename();
restoreSettings();
@@ -1238,11 +1238,11 @@ void CatalogManager::projectOpen()
void CatalogManager::projectClose()
{
- disconnect( _project, TQT_SIGNAL (signalCatManSettingsChanged())
- , TQT_TQOBJECT(this), TQT_SLOT (updateSettings()));
+ disconnect( _project, TQ_SIGNAL (signalCatManSettingsChanged())
+ , this, TQ_SLOT (updateSettings()));
_project = KBabel::ProjectManager::open(KBabel::ProjectManager::defaultProjectName());
- connect( _project, TQT_SIGNAL (signalCatManSettingsChanged())
- , TQT_TQOBJECT(this), TQT_SLOT (updateSettings()));
+ connect( _project, TQ_SIGNAL (signalCatManSettingsChanged())
+ , this, TQ_SLOT (updateSettings()));
_configFile = _project->filename();
restoreSettings();
updateSettings();
@@ -1262,8 +1262,8 @@ void CatalogManager::projectConfigure()
{
KBabel::ProjectDialog* _projectDialog = new ProjectDialog(_project);
- connect (_projectDialog, TQT_SIGNAL (settingsChanged())
- , TQT_TQOBJECT(this), TQT_SLOT (updateSettings()));
+ connect (_projectDialog, TQ_SIGNAL (settingsChanged())
+ , this, TQ_SLOT (updateSettings()));
// settings are updated via signals
_projectDialog->exec();
diff --git a/kbabel/catalogmanager/catalogmanager.h b/kbabel/catalogmanager/catalogmanager.h
index 6eff80ae..bec8791a 100644
--- a/kbabel/catalogmanager/catalogmanager.h
+++ b/kbabel/catalogmanager/catalogmanager.h
@@ -44,7 +44,7 @@
#include <tdeversion.h>
#include <tdemainwindow.h>
#include <kdirwatch.h>
-#include <kprocess.h>
+#include <tdeprocess.h>
#include <tqptrlist.h>
#include "projectsettings.h"
diff --git a/kbabel/catalogmanager/catalogmanagerview.cpp b/kbabel/catalogmanager/catalogmanagerview.cpp
index 8eed87f5..f8de3fc5 100644
--- a/kbabel/catalogmanager/catalogmanagerview.cpp
+++ b/kbabel/catalogmanager/catalogmanagerview.cpp
@@ -132,7 +132,7 @@ CatalogManagerView::CatalogManagerView(KBabel::Project::Ptr project, TQWidget* p
_dictBox->hide();
_updateTimer = new TQTimer(this);
- connect(_updateTimer,TQT_SIGNAL(timeout()),this,TQT_SLOT(checkUpdate()));
+ connect(_updateTimer,TQ_SIGNAL(timeout()),this,TQ_SLOT(checkUpdate()));
addColumn(COLTEXT(COL_NAME));
addColumn(COLTEXT(COL_MARKER),25);
@@ -154,21 +154,21 @@ CatalogManagerView::CatalogManagerView(KBabel::Project::Ptr project, TQWidget* p
if(KContextMenuManager::showOnButtonPress())
{
- connect(this,TQT_SIGNAL(rightButtonPressed(TQListViewItem*,const TQPoint &, int))
- ,this, TQT_SLOT(showContentsMenu(TQListViewItem*,const TQPoint &, int)));
+ connect(this,TQ_SIGNAL(rightButtonPressed(TQListViewItem*,const TQPoint &, int))
+ ,this, TQ_SLOT(showContentsMenu(TQListViewItem*,const TQPoint &, int)));
}
else
{
- connect(this,TQT_SIGNAL(rightButtonClicked(TQListViewItem*,const TQPoint &, int))
- ,this, TQT_SLOT(showContentsMenu(TQListViewItem*,const TQPoint &, int)));
+ connect(this,TQ_SIGNAL(rightButtonClicked(TQListViewItem*,const TQPoint &, int))
+ ,this, TQ_SLOT(showContentsMenu(TQListViewItem*,const TQPoint &, int)));
}
- connect(this, TQT_SIGNAL(returnPressed(TQListViewItem*))
- ,this, TQT_SLOT(activateItem(TQListViewItem*)));
- connect(this, TQT_SIGNAL(doubleClicked(TQListViewItem*))
- ,this, TQT_SLOT(activateItem(TQListViewItem*)));
- connect(this,TQT_SIGNAL(selectionChanged()),this,TQT_SLOT(checkSelected()));
- connect( this, TQT_SIGNAL( clicked(TQListViewItem *, const TQPoint &, int)),
- this, TQT_SLOT( columnClicked(TQListViewItem *, const TQPoint &, int)));
+ connect(this, TQ_SIGNAL(returnPressed(TQListViewItem*))
+ ,this, TQ_SLOT(activateItem(TQListViewItem*)));
+ connect(this, TQ_SIGNAL(doubleClicked(TQListViewItem*))
+ ,this, TQ_SLOT(activateItem(TQListViewItem*)));
+ connect(this,TQ_SIGNAL(selectionChanged()),this,TQ_SLOT(checkSelected()));
+ connect( this, TQ_SIGNAL( clicked(TQListViewItem *, const TQPoint &, int)),
+ this, TQ_SLOT( columnClicked(TQListViewItem *, const TQPoint &, int)));
_dirCommandsMenu = 0;
_fileCommandsMenu = 0;
@@ -189,7 +189,7 @@ CatalogManagerView::CatalogManagerView(KBabel::Project::Ptr project, TQWidget* p
_logWindow->setMainWidget(_logView);
- connect(_logWindow,TQT_SIGNAL(user1Clicked()),_logView,TQT_SLOT(clear()));
+ connect(_logWindow,TQ_SIGNAL(user1Clicked()),_logView,TQ_SLOT(clear()));
TQWhatsThis::add(this,i18n("<qt><p><b>Catalog Manager</b></p>\n"
"<p>The Catalog Manager merges two folders into one tree and displays all\n"
@@ -205,21 +205,21 @@ CatalogManagerView::CatalogManagerView(KBabel::Project::Ptr project, TQWidget* p
// CVS
cvshandler = new CVSHandler( );
- connect( cvshandler, TQT_SIGNAL( signalIsPORepository( bool ) ),
- this, TQT_SLOT( slotValidPOCVSRepository( bool ) ) );
- connect( cvshandler, TQT_SIGNAL( signalIsPOTRepository( bool ) ),
- this, TQT_SLOT( slotValidPOTCVSRepository( bool ) ) );
- connect( cvshandler, TQT_SIGNAL( signalFilesCommitted( const TQStringList& ) ),
- this, TQT_SLOT( updateFiles( const TQStringList& ) ) );
+ connect( cvshandler, TQ_SIGNAL( signalIsPORepository( bool ) ),
+ this, TQ_SLOT( slotValidPOCVSRepository( bool ) ) );
+ connect( cvshandler, TQ_SIGNAL( signalIsPOTRepository( bool ) ),
+ this, TQ_SLOT( slotValidPOTCVSRepository( bool ) ) );
+ connect( cvshandler, TQ_SIGNAL( signalFilesCommitted( const TQStringList& ) ),
+ this, TQ_SLOT( updateFiles( const TQStringList& ) ) );
// SVN
svnhandler = new SVNHandler( );
- connect( svnhandler, TQT_SIGNAL( signalIsPORepository( bool ) ),
- this, TQT_SLOT( slotValidPOSVNRepository( bool ) ) );
- connect( svnhandler, TQT_SIGNAL( signalIsPOTRepository( bool ) ),
- this, TQT_SLOT( slotValidPOTSVNRepository( bool ) ) );
- connect( svnhandler, TQT_SIGNAL( signalFilesCommitted( const TQStringList& ) ),
- this, TQT_SLOT( updateFiles( const TQStringList& ) ) );
+ connect( svnhandler, TQ_SIGNAL( signalIsPORepository( bool ) ),
+ this, TQ_SLOT( slotValidPOSVNRepository( bool ) ) );
+ connect( svnhandler, TQ_SIGNAL( signalIsPOTRepository( bool ) ),
+ this, TQ_SLOT( slotValidPOTSVNRepository( bool ) ) );
+ connect( svnhandler, TQ_SIGNAL( signalFilesCommitted( const TQStringList& ) ),
+ this, TQ_SLOT( updateFiles( const TQStringList& ) ) );
TDEConfig *config = TDEGlobal::config();
restoreView(config);
@@ -284,13 +284,13 @@ void CatalogManagerView::setRMBMenuDir( TQPopupMenu *m )
void CatalogManagerView::setDirCommandsMenu( TQPopupMenu *m )
{
_dirCommandsMenu = m;
- connect(_dirCommandsMenu,TQT_SIGNAL(activated(int)),this,TQT_SLOT(slotDirCommand(int)));
+ connect(_dirCommandsMenu,TQ_SIGNAL(activated(int)),this,TQ_SLOT(slotDirCommand(int)));
}
void CatalogManagerView::setFileCommandsMenu( TQPopupMenu *m )
{
_fileCommandsMenu = m;
- connect(_fileCommandsMenu,TQT_SIGNAL(activated(int)),this,TQT_SLOT(slotFileCommand(int)));
+ connect(_fileCommandsMenu,TQ_SIGNAL(activated(int)),this,TQ_SLOT(slotFileCommand(int)));
}
void CatalogManagerView::checkUpdate()
@@ -353,12 +353,12 @@ void CatalogManagerView::clear()
delete _dirWatch;
_dirWatch= new KDirWatch();
- connect(_dirWatch,TQT_SIGNAL(deleted(const TQString&)),this
- ,TQT_SLOT(directoryDeleted(const TQString&)));
- connect(_dirWatch,TQT_SIGNAL(dirty(const TQString&)),this
- ,TQT_SLOT(directoryChanged(const TQString&)));
- connect(_dirWatch,TQT_SIGNAL(created(const TQString&)),this
- ,TQT_SLOT(directoryChanged(const TQString&)));
+ connect(_dirWatch,TQ_SIGNAL(deleted(const TQString&)),this
+ ,TQ_SLOT(directoryDeleted(const TQString&)));
+ connect(_dirWatch,TQ_SIGNAL(dirty(const TQString&)),this
+ ,TQ_SLOT(directoryChanged(const TQString&)));
+ connect(_dirWatch,TQ_SIGNAL(created(const TQString&)),this
+ ,TQ_SLOT(directoryChanged(const TQString&)));
_dirList.clear();
_fileList.clear();
@@ -1620,12 +1620,12 @@ void CatalogManagerView::slotDirCommand(int index)
TDEProcess* proc = new KShellProcess();
_pendingProcesses.append(proc);
- connect( proc,TQT_SIGNAL( processExited(TDEProcess *) ), this
- ,TQT_SLOT( processEnded(TDEProcess*) ) );
- connect( proc,TQT_SIGNAL( receivedStdout(TDEProcess*,char*,int) ), this
- ,TQT_SLOT( showOutput(TDEProcess*,char*,int) ) );
- connect( proc,TQT_SIGNAL( receivedStderr(TDEProcess*,char*,int) ), this
- ,TQT_SLOT( showOutput(TDEProcess*,char*,int) ) );
+ connect( proc,TQ_SIGNAL( processExited(TDEProcess *) ), this
+ ,TQ_SLOT( processEnded(TDEProcess*) ) );
+ connect( proc,TQ_SIGNAL( receivedStdout(TDEProcess*,char*,int) ), this
+ ,TQ_SLOT( showOutput(TDEProcess*,char*,int) ) );
+ connect( proc,TQ_SIGNAL( receivedStderr(TDEProcess*,char*,int) ), this
+ ,TQ_SLOT( showOutput(TDEProcess*,char*,int) ) );
*proc << "cd" << item->poFile() << ";" << cmd;
proc->start(TDEProcess::NotifyOnExit,TDEProcess::AllOutput);
@@ -1653,12 +1653,12 @@ void CatalogManagerView::slotFileCommand(int index)
TDEProcess* proc = new KShellProcess();
_pendingProcesses.append(proc);
- connect( proc,TQT_SIGNAL( processExited(TDEProcess *) ), this
- ,TQT_SLOT( processEnded(TDEProcess*) ) );
- connect( proc,TQT_SIGNAL( receivedStdout(TDEProcess*,char*,int) ), this
- ,TQT_SLOT( showOutput(TDEProcess*,char*,int) ) );
- connect( proc,TQT_SIGNAL( receivedStderr(TDEProcess*,char*,int) ), this
- ,TQT_SLOT( showOutput(TDEProcess*,char*,int) ) );
+ connect( proc,TQ_SIGNAL( processExited(TDEProcess *) ), this
+ ,TQ_SLOT( processEnded(TDEProcess*) ) );
+ connect( proc,TQ_SIGNAL( receivedStdout(TDEProcess*,char*,int) ), this
+ ,TQ_SLOT( showOutput(TDEProcess*,char*,int) ) );
+ connect( proc,TQ_SIGNAL( receivedStderr(TDEProcess*,char*,int) ), this
+ ,TQ_SLOT( showOutput(TDEProcess*,char*,int) ) );
*proc << "cd" << parent->poFile() << ";" << cmd;
proc->start(TDEProcess::NotifyOnExit,TDEProcess::AllOutput);
@@ -1741,7 +1741,7 @@ void CatalogManagerView::updateAfterSave(TQString fileWithPath, PoInfo &newInfo)
void CatalogManagerView::buildTree()
{
// in case we were called after settings update
- disconnect( this, TQT_SIGNAL( updateFinished() ), this, TQT_SLOT(buildTree() ) );
+ disconnect( this, TQ_SIGNAL( updateFinished() ), this, TQ_SLOT(buildTree() ) );
emit signalBuildTree(false); // announce start of building
@@ -2444,7 +2444,7 @@ void CatalogManagerView::setSettings(CatManSettings newSettings)
counter++;
}
_dirCommandsMenu->insertSeparator();
- _dirCommandsMenu->insertItem(i18n("Log Window"),this,TQT_SLOT(showLog()));
+ _dirCommandsMenu->insertItem(i18n("Log Window"),this,TQ_SLOT(showLog()));
_fileCommandsMenu->clear();
counter=0;
@@ -2455,7 +2455,7 @@ void CatalogManagerView::setSettings(CatManSettings newSettings)
counter++;
}
_fileCommandsMenu->insertSeparator();
- _fileCommandsMenu->insertItem(i18n("Log Window"),this,TQT_SLOT(showLog()));
+ _fileCommandsMenu->insertItem(i18n("Log Window"),this,TQ_SLOT(showLog()));
const bool pathChanged = (oldSettings.poBaseDir!=_settings.poBaseDir)
|| (oldSettings.potBaseDir!=_settings.potBaseDir);
@@ -2463,10 +2463,10 @@ void CatalogManagerView::setSettings(CatManSettings newSettings)
if(pathChanged)
{
if( !isActive() ) {
- TQTimer::singleShot(100,this,TQT_SLOT(buildTree()));
+ TQTimer::singleShot(100,this,TQ_SLOT(buildTree()));
} else {
stop();
- connect( this, TQT_SIGNAL( updateFinished() ), this, TQT_SLOT(buildTree() ) );
+ connect( this, TQ_SIGNAL( updateFinished() ), this, TQ_SLOT(buildTree() ) );
}
}
@@ -2497,7 +2497,7 @@ void CatalogManagerView::hideEvent(TQHideEvent*)
void CatalogManagerView::showEvent(TQShowEvent*)
{
- TQTimer::singleShot(1,this,TQT_SLOT(checkUpdate()));
+ TQTimer::singleShot(1,this,TQ_SLOT(checkUpdate()));
pause(false);
@@ -3025,8 +3025,8 @@ void CatalogManagerView::validate_internal( const TQStringList& files, const KDa
if( !_validateDialog )
{
_validateDialog = new ValidateProgressDialog(_settings.ignoreURL, this);
- connect( _validateDialog, TQT_SIGNAL( errorDoubleClicked(const TQString,const int)),
- this, TQT_SLOT(showError( const TQString, const int )));
+ connect( _validateDialog, TQ_SIGNAL( errorDoubleClicked(const TQString,const int)),
+ this, TQ_SLOT(showError( const TQString, const int )));
}
_markAsFuzzy = _validateOptions->markAsFuzzy->isChecked();
diff --git a/kbabel/catalogmanager/catalogmanagerview.h b/kbabel/catalogmanager/catalogmanagerview.h
index 4d31a66a..385b9d32 100644
--- a/kbabel/catalogmanager/catalogmanagerview.h
+++ b/kbabel/catalogmanager/catalogmanagerview.h
@@ -44,7 +44,7 @@
#include <kdialogbase.h>
#include <kdirwatch.h>
-#include <kprocess.h>
+#include <tdeprocess.h>
#include <tqptrlist.h>
#include "kbproject.h"
diff --git a/kbabel/catalogmanager/catmanlistitem.cpp b/kbabel/catalogmanager/catmanlistitem.cpp
index c2d03d53..ecb783b7 100644
--- a/kbabel/catalogmanager/catmanlistitem.cpp
+++ b/kbabel/catalogmanager/catmanlistitem.cpp
@@ -870,8 +870,8 @@ void CatManListItem::checkErrors(KDataTool* tool, TQObject* progressSignalHandle
_errors.clear();
Catalog* cat = new Catalog();
- TQObject::connect( cat, TQT_SIGNAL( signalProgress(int) ), progressSignalHandler, TQT_SIGNAL( setValidationProgressBar(int)));
- TQObject::connect( cat, TQT_SIGNAL( signalResetProgressBar(TQString, int) ), progressSignalHandler, TQT_SLOT( setupFileProgressBar(TQString, int)));
+ TQObject::connect( cat, TQ_SIGNAL( signalProgress(int) ), progressSignalHandler, TQ_SIGNAL( setValidationProgressBar(int)));
+ TQObject::connect( cat, TQ_SIGNAL( signalResetProgressBar(TQString, int) ), progressSignalHandler, TQ_SLOT( setupFileProgressBar(TQString, int)));
if( cat->openURL(KURL( poFile() )) == OK )
{
diff --git a/kbabel/catalogmanager/libcvs/cvsdialog.cpp b/kbabel/catalogmanager/libcvs/cvsdialog.cpp
index 9568eff3..a2501b19 100644
--- a/kbabel/catalogmanager/libcvs/cvsdialog.cpp
+++ b/kbabel/catalogmanager/libcvs/cvsdialog.cpp
@@ -50,7 +50,7 @@
#include <kdebug.h>
#include <tdeglobal.h>
#include <tdelocale.h>
-#include <kprocess.h>
+#include <tdeprocess.h>
#include <tdetempfile.h>
#include <tdemessagebox.h>
#include <kstringhandler.h>
@@ -123,8 +123,8 @@ CVSDialog::CVSDialog( CVS::Command cmd, TQWidget * parent, TDESharedConfig* conf
encodingList += TDEGlobal::charsets()->descriptiveEncodingNames();
m_encodingComboBox->insertStringList( encodingList );
- connect( oldMessages, TQT_SIGNAL( activated( int ) ),
- this, TQT_SLOT( slotComboActivated( int ) ) );
+ connect( oldMessages, TQ_SIGNAL( activated( int ) ),
+ this, TQ_SLOT( slotComboActivated( int ) ) );
}
TQHBoxLayout * buttons = new TQHBoxLayout( 0, 0, 6, "BUTTON LAYOUT" );
@@ -175,8 +175,8 @@ CVSDialog::CVSDialog( CVS::Command cmd, TQWidget * parent, TDESharedConfig* conf
readSettings( );
- connect( mainBtn, TQT_SIGNAL( clicked( ) ), this, TQT_SLOT( slotExecuteCommand( ) ) );
- connect( cancelBtn, TQT_SIGNAL( clicked( ) ), this, TQT_SLOT( reject( ) ) );
+ connect( mainBtn, TQ_SIGNAL( clicked( ) ), this, TQ_SLOT( slotExecuteCommand( ) ) );
+ connect( cancelBtn, TQ_SIGNAL( clicked( ) ), this, TQ_SLOT( reject( ) ) );
}
void CVSDialog::slotComboActivated( int index )
@@ -301,12 +301,12 @@ void CVSDialog::slotExecuteCommand( )
// Set the TDEProcess' command line.
*p << _commandLine;
- connect( p, TQT_SIGNAL( receivedStdout( TDEProcess*, char*, int ) ),
- this, TQT_SLOT ( slotProcessStdout( TDEProcess*, char*, int ) ) );
- connect( p, TQT_SIGNAL( receivedStderr( TDEProcess*, char*, int ) ),
- this, TQT_SLOT ( slotProcessStderr( TDEProcess*, char*, int ) ) );
- connect( p, TQT_SIGNAL( processExited( TDEProcess* ) ),
- this, TQT_SLOT( slotProcessExited( TDEProcess* ) ) );
+ connect( p, TQ_SIGNAL( receivedStdout( TDEProcess*, char*, int ) ),
+ this, TQ_SLOT ( slotProcessStdout( TDEProcess*, char*, int ) ) );
+ connect( p, TQ_SIGNAL( receivedStderr( TDEProcess*, char*, int ) ),
+ this, TQ_SLOT ( slotProcessStderr( TDEProcess*, char*, int ) ) );
+ connect( p, TQ_SIGNAL( processExited( TDEProcess* ) ),
+ this, TQ_SLOT( slotProcessExited( TDEProcess* ) ) );
output->append( i18n( "[ Starting command ]" ) );
@@ -358,7 +358,7 @@ void CVSDialog::slotProcessExited( TDEProcess * p )
mainBtn->setText( i18n( "&Show Diff" ) );
else
mainBtn->setText( i18n( "&Close" ) );
- connect( mainBtn, TQT_SIGNAL( clicked( ) ), this, TQT_SLOT( accept( ) ) );
+ connect( mainBtn, TQ_SIGNAL( clicked( ) ), this, TQ_SLOT( accept( ) ) );
// Reenable the button and the log edit now that the process is finished.
mainBtn->setEnabled( true );
diff --git a/kbabel/catalogmanager/libsvn/svndialog.cpp b/kbabel/catalogmanager/libsvn/svndialog.cpp
index feecd162..46f43fa7 100644
--- a/kbabel/catalogmanager/libsvn/svndialog.cpp
+++ b/kbabel/catalogmanager/libsvn/svndialog.cpp
@@ -49,7 +49,7 @@
#include <kdebug.h>
#include <tdeglobal.h>
#include <tdelocale.h>
-#include <kprocess.h>
+#include <tdeprocess.h>
#include <tdetempfile.h>
#include <tdemessagebox.h>
#include <kstringhandler.h>
@@ -114,8 +114,8 @@ SVNDialog::SVNDialog( SVN::Command cmd, TQWidget * parent, TDESharedConfig* conf
layout->addWidget( label );
layout->addWidget( logedit );
- connect( oldMessages, TQT_SIGNAL( activated( int ) ),
- this, TQT_SLOT( slotComboActivated( int ) ) );
+ connect( oldMessages, TQ_SIGNAL( activated( int ) ),
+ this, TQ_SLOT( slotComboActivated( int ) ) );
}
TQHBoxLayout * buttons = new TQHBoxLayout( 0, 0, 6, "BUTTON LAYOUT" );
@@ -170,8 +170,8 @@ SVNDialog::SVNDialog( SVN::Command cmd, TQWidget * parent, TDESharedConfig* conf
readSettings( );
- connect( mainBtn, TQT_SIGNAL( clicked( ) ), this, TQT_SLOT( slotExecuteCommand( ) ) );
- connect( cancelBtn, TQT_SIGNAL( clicked( ) ), this, TQT_SLOT( reject( ) ) );
+ connect( mainBtn, TQ_SIGNAL( clicked( ) ), this, TQ_SLOT( slotExecuteCommand( ) ) );
+ connect( cancelBtn, TQ_SIGNAL( clicked( ) ), this, TQ_SLOT( reject( ) ) );
}
void SVNDialog::slotComboActivated( int index )
@@ -280,12 +280,12 @@ void SVNDialog::slotExecuteCommand( )
// Set the TDEProcess' command line.
*p << _commandLine;
- connect( p, TQT_SIGNAL( receivedStdout( TDEProcess*, char*, int ) ),
- this, TQT_SLOT ( slotProcessStdout( TDEProcess*, char*, int ) ) );
- connect( p, TQT_SIGNAL( receivedStderr( TDEProcess*, char*, int ) ),
- this, TQT_SLOT ( slotProcessStderr( TDEProcess*, char*, int ) ) );
- connect( p, TQT_SIGNAL( processExited( TDEProcess* ) ),
- this, TQT_SLOT( slotProcessExited( TDEProcess* ) ) );
+ connect( p, TQ_SIGNAL( receivedStdout( TDEProcess*, char*, int ) ),
+ this, TQ_SLOT ( slotProcessStdout( TDEProcess*, char*, int ) ) );
+ connect( p, TQ_SIGNAL( receivedStderr( TDEProcess*, char*, int ) ),
+ this, TQ_SLOT ( slotProcessStderr( TDEProcess*, char*, int ) ) );
+ connect( p, TQ_SIGNAL( processExited( TDEProcess* ) ),
+ this, TQ_SLOT( slotProcessExited( TDEProcess* ) ) );
output->append( i18n( "[ Starting command ]" ) );
@@ -337,7 +337,7 @@ void SVNDialog::slotProcessExited( TDEProcess * p )
mainBtn->setText( i18n( "&Show Diff" ) );
else
mainBtn->setText( i18n( "&Close" ) );
- connect( mainBtn, TQT_SIGNAL( clicked( ) ), this, TQT_SLOT( accept( ) ) );
+ connect( mainBtn, TQ_SIGNAL( clicked( ) ), this, TQ_SLOT( accept( ) ) );
// Reenable the button and the log edit now that the process is finished.
mainBtn->setEnabled( true );
diff --git a/kbabel/catalogmanager/libsvn/svnhandler.cpp b/kbabel/catalogmanager/libsvn/svnhandler.cpp
index 31bdd5ad..e373457f 100644
--- a/kbabel/catalogmanager/libsvn/svnhandler.cpp
+++ b/kbabel/catalogmanager/libsvn/svnhandler.cpp
@@ -50,7 +50,7 @@
#include <tdemessagebox.h>
#include <tdetempfile.h>
#include <kdebug.h>
-#include <kprocess.h>
+#include <tdeprocess.h>
// project specific include files
#include "svnhandler.h"
@@ -516,10 +516,10 @@ void SVNOutputCollector::setProcess( TDEProcess* p )
m_process = p;
if( p ) {
- connect( p, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
- this, TQT_SLOT(slotGatherStdout(TDEProcess*, char*, int)) );
- connect( p, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)),
- this, TQT_SLOT(slotGatherStderr(TDEProcess*, char*, int)) );
+ connect( p, TQ_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
+ this, TQ_SLOT(slotGatherStdout(TDEProcess*, char*, int)) );
+ connect( p, TQ_SIGNAL(receivedStderr(TDEProcess*, char*, int)),
+ this, TQ_SLOT(slotGatherStderr(TDEProcess*, char*, int)) );
}
m_gatheredOutput.truncate( 0 );
diff --git a/kbabel/catalogmanager/markpatterndialog.cpp b/kbabel/catalogmanager/markpatterndialog.cpp
index d4ff458d..5ffffc08 100644
--- a/kbabel/catalogmanager/markpatterndialog.cpp
+++ b/kbabel/catalogmanager/markpatterndialog.cpp
@@ -54,14 +54,14 @@ MarkPatternDialog::MarkPatternDialog(TQWidget * parent, const char * name)
mainWidget = new MarkPatternWidget(this);
- connect (mainWidget->combo, TQT_SIGNAL(textChanged(const TQString&)),
- this, TQT_SLOT(slotComboTextChanged(const TQString&)));
+ connect (mainWidget->combo, TQ_SIGNAL(textChanged(const TQString&)),
+ this, TQ_SLOT(slotComboTextChanged(const TQString&)));
comboCompletion = mainWidget->combo->completionObject( );
regexpEditDialog = 0;
if (!TDETrader::self( )->query("KRegExpEditor/KRegExpEditor").isEmpty( )) {
- connect(mainWidget->regexpButton, TQT_SIGNAL(clicked( )), this, TQT_SLOT(slotRegexpButtonClicked( )));
+ connect(mainWidget->regexpButton, TQ_SIGNAL(clicked( )), this, TQ_SLOT(slotRegexpButtonClicked( )));
} else {
disconnect(mainWidget->useRegExp, 0, mainWidget->regexpButton, 0);
delete mainWidget->regexpButton;
@@ -127,7 +127,7 @@ void MarkPatternDialog::slotRegexpButtonClicked( )
{
if (!regexpEditDialog)
regexpEditDialog = KParts::ComponentFactory::createInstanceFromQuery<TQDialog>(
- "KRegExpEditor/KRegExpEditor", TQString(), TQT_TQOBJECT(this));
+ "KRegExpEditor/KRegExpEditor", TQString(), this);
KRegExpEditorInterface * iface = dynamic_cast<KRegExpEditorInterface *>(regexpEditDialog);
diff --git a/kbabel/catalogmanager/multiroughtransdlg.cpp b/kbabel/catalogmanager/multiroughtransdlg.cpp
index 841f8bbc..049b47a0 100644
--- a/kbabel/catalogmanager/multiroughtransdlg.cpp
+++ b/kbabel/catalogmanager/multiroughtransdlg.cpp
@@ -52,7 +52,7 @@ MultiRoughTransDlg::MultiRoughTransDlg(KBabelDictBox *dict, TQPtrList<CatManList
: RoughTransDlg(dict, new Catalog(), parent, name )
,_fileList(files)
{
- TQWidget* bars = TQT_TQWIDGET(progressbar->parent());
+ TQWidget* bars = static_cast<TQWidget*>(progressbar->parent());
TQLabel* label = new TQLabel( i18n("Files:"), bars );
filesProgressbar = new KProgress(bars,"files progressbar");
filesProgressbar->setTextEnabled(true);
diff --git a/kbabel/catalogmanager/validateprogress.cpp b/kbabel/catalogmanager/validateprogress.cpp
index 02c97738..9cd7b904 100644
--- a/kbabel/catalogmanager/validateprogress.cpp
+++ b/kbabel/catalogmanager/validateprogress.cpp
@@ -72,12 +72,12 @@ ValidateProgressDialog::ValidateProgressDialog(const TQString& ignoreURL, TQWidg
_errorMenu->insertItem(i18n("&Open"),ID_ERROR_OPEN);
_errorMenu->insertItem(i18n("&Ignore"),ID_ERROR_IGNORE);
- connect( this, TQT_SIGNAL(closeClicked()), this, TQT_SLOT(stop()));
- connect( _mainWidget->_errorList, TQT_SIGNAL( doubleClicked(TQListBoxItem *)),
- this, TQT_SLOT( errorItemDoubleClicked(TQListBoxItem *)));
+ connect( this, TQ_SIGNAL(closeClicked()), this, TQ_SLOT(stop()));
+ connect( _mainWidget->_errorList, TQ_SIGNAL( doubleClicked(TQListBoxItem *)),
+ this, TQ_SLOT( errorItemDoubleClicked(TQListBoxItem *)));
- connect( _mainWidget->_errorList, TQT_SIGNAL( contextMenuRequested(TQListBoxItem *, const TQPoint &)),
- this, TQT_SLOT( showContextMenu(TQListBoxItem *, const TQPoint &)));
+ connect( _mainWidget->_errorList, TQ_SIGNAL( contextMenuRequested(TQListBoxItem *, const TQPoint &)),
+ this, TQ_SLOT( showContextMenu(TQListBoxItem *, const TQPoint &)));
}
ValidateProgressDialog::~ValidateProgressDialog()
@@ -111,7 +111,7 @@ void ValidateProgressDialog::validate( const KDataToolInfo &tool, const TQPtrLis
_stopped = false;
- TQTimer::singleShot( 0, this, TQT_SLOT(validate_internal()) );
+ TQTimer::singleShot( 0, this, TQ_SLOT(validate_internal()) );
exec();
@@ -133,7 +133,7 @@ void ValidateProgressDialog::validate_internal()
_mainWidget->_currentFileProgress->setTotalSteps(100);
_mainWidget->_currentFileProgress->setValue(0);
- it->checkErrors(_tool, TQT_TQOBJECT(_mainWidget), _ignoreFuzzy, _setAsFuzzy);
+ it->checkErrors(_tool, _mainWidget, _ignoreFuzzy, _setAsFuzzy);
bool noHeader = true;
diff --git a/kbabel/catalogmanager/validateprogresswidget.ui b/kbabel/catalogmanager/validateprogresswidget.ui
index fc2741e4..96179dc6 100644
--- a/kbabel/catalogmanager/validateprogresswidget.ui
+++ b/kbabel/catalogmanager/validateprogresswidget.ui
@@ -113,12 +113,12 @@
<includes>
<include location="local" impldecl="in implementation">validateprogresswidget.ui.h</include>
</includes>
-<Q_SIGNALS>
+<signals>
<signal>setValidationProgressBar(int)</signal>
-</Q_SIGNALS>
-<Q_SLOTS>
+</signals>
+<slots>
<slot>setupFileProgressBar( TQString text, int maxvalue )</slot>
-</Q_SLOTS>
+</slots>
<layoutdefaults spacing="6" margin="11"/>
<includes>
<include location="global" impldecl="in implementation">kprogress.h</include>
diff --git a/kbabel/common/catalog.cpp b/kbabel/common/catalog.cpp
index fcf50750..76ab194a 100644
--- a/kbabel/common/catalog.cpp
+++ b/kbabel/common/catalog.cpp
@@ -930,15 +930,15 @@ ConversionStatus Catalog::openURL(const KURL& url, const TQString& package)
filter = static_cast<CatalogImportPlugin*>(factory->create(0, 0));
// provide progress bar indication
- connect( filter, TQT_SIGNAL( signalResetProgressBar(TQString,int) ),
- this, TQT_SIGNAL( signalResetProgressBar(TQString,int) ));
- connect( filter, TQT_SIGNAL( signalProgress(int) ),
- this, TQT_SIGNAL( signalProgress(int) ));
- connect( filter, TQT_SIGNAL( signalClearProgressBar() ),
- this, TQT_SIGNAL( signalClearProgressBar() ));
-
- connect( this, TQT_SIGNAL( signalStopActivity() ),
- filter, TQT_SLOT( stop() ));
+ connect( filter, TQ_SIGNAL( signalResetProgressBar(TQString,int) ),
+ this, TQ_SIGNAL( signalResetProgressBar(TQString,int) ));
+ connect( filter, TQ_SIGNAL( signalProgress(int) ),
+ this, TQ_SIGNAL( signalProgress(int) ));
+ connect( filter, TQ_SIGNAL( signalClearProgressBar() ),
+ this, TQ_SIGNAL( signalClearProgressBar() ));
+
+ connect( this, TQ_SIGNAL( signalStopActivity() ),
+ filter, TQ_SLOT( stop() ));
// load in the file (target is always local)
d->_active = true;
@@ -1027,15 +1027,15 @@ ConversionStatus Catalog::openURL(const KURL& openUrl, const KURL& saveURL, cons
filter = static_cast<CatalogImportPlugin*>(factory->create(0, 0));
// provide progress bar indication
- connect( filter, TQT_SIGNAL( signalResetProgressBar(TQString,int) ),
- this, TQT_SIGNAL( signalResetProgressBar(TQString,int) ));
- connect( filter, TQT_SIGNAL( signalProgress(int) ),
- this, TQT_SIGNAL( signalProgress(int) ));
- connect( filter, TQT_SIGNAL( signalClearProgressBar() ),
- this, TQT_SIGNAL( signalClearProgressBar() ));
+ connect( filter, TQ_SIGNAL( signalResetProgressBar(TQString,int) ),
+ this, TQ_SIGNAL( signalResetProgressBar(TQString,int) ));
+ connect( filter, TQ_SIGNAL( signalProgress(int) ),
+ this, TQ_SIGNAL( signalProgress(int) ));
+ connect( filter, TQ_SIGNAL( signalClearProgressBar() ),
+ this, TQ_SIGNAL( signalClearProgressBar() ));
- connect( this, TQT_SIGNAL( signalStopActivity() ),
- filter, TQT_SLOT( stop() ));
+ connect( this, TQ_SIGNAL( signalStopActivity() ),
+ filter, TQ_SLOT( stop() ));
// load in the file (target is always local)
d->_active = true;
@@ -1229,7 +1229,7 @@ bool Catalog::checkUsingTool(KDataTool* tool, bool clearErrors)
kdDebug(KBABEL) << "checkUsingTool active" << endl;
d->_active=true;
d->_stop=false;
- connect( this, TQT_SIGNAL( signalStopActivity() ), this, TQT_SLOT( stopInternal() ));
+ connect( this, TQ_SIGNAL( signalStopActivity() ), this, TQ_SLOT( stopInternal() ));
int index = 0;
bool hasErrors=false;
@@ -1256,7 +1256,7 @@ bool Catalog::checkUsingTool(KDataTool* tool, bool clearErrors)
kdDebug(KBABEL) << "checkUsingTool not active" << endl;
d->_active=false;
d->_stop=false;
- disconnect( this, TQT_SIGNAL( signalStopActivity() ), this, TQT_SLOT( stopInternal() ));
+ disconnect( this, TQ_SIGNAL( signalStopActivity() ), this, TQ_SLOT( stopInternal() ));
emit signalClearProgressBar();
@@ -1268,7 +1268,7 @@ void Catalog::modifyUsingTool(KDataTool* tool, const TQString& command)
kdDebug(KBABEL) << "modifyUsingTool active" << endl;
d->_active=true;
d->_stop=false;
- connect( this, TQT_SIGNAL( signalStopActivity() ), this, TQT_SLOT( stopInternal() ));
+ connect( this, TQ_SIGNAL( signalStopActivity() ), this, TQ_SLOT( stopInternal() ));
int index = 0;
bool modified = false;
@@ -1334,7 +1334,7 @@ void Catalog::modifyUsingTool(KDataTool* tool, const TQString& command)
kdDebug(KBABEL) << "modifyUsingTool not active" << endl;
d->_active=false;
d->_stop=false;
- disconnect( this, TQT_SIGNAL( signalStopActivity() ), this, TQT_SLOT( stopInternal() ));
+ disconnect( this, TQ_SIGNAL( signalStopActivity() ), this, TQ_SLOT( stopInternal() ));
emit signalClearProgressBar();
}
@@ -1998,7 +1998,7 @@ ConversionStatus Catalog::saveFileAs(const KURL &url, bool overwrite)
}
else
{
- TQString tempFile=kapp->tempSaveName(targetURL.path(0));
+ TQString tempFile=tdeApp->tempSaveName(targetURL.path(0));
status = writeFile(tempFile,overwrite);
@@ -2033,7 +2033,7 @@ ConversionStatus Catalog::saveFileAs(const KURL &url, bool overwrite)
TQString Catalog::saveTempFile()
{
- TQString filename = kapp->tempSaveName("/temp/kbabel_temp.po");
+ TQString filename = tdeApp->tempSaveName("/temp/kbabel_temp.po");
if( writeFile(filename) != OK )
{
filename = TQString();
@@ -2093,15 +2093,15 @@ ConversionStatus Catalog::writeFile(TQString localFile , bool overwrite)
filter = static_cast<CatalogExportPlugin*>(factory->create(0, 0));
// provide progress bar indication
- connect( filter, TQT_SIGNAL( signalResetProgressBar(TQString,int) ),
- this, TQT_SIGNAL( signalResetProgressBar(TQString,int) ));
- connect( filter, TQT_SIGNAL( signalProgress(int) ),
- this, TQT_SIGNAL( signalProgress(int) ));
- connect( filter, TQT_SIGNAL( signalClearProgressBar() ),
- this, TQT_SIGNAL( signalClearProgressBar() ));
+ connect( filter, TQ_SIGNAL( signalResetProgressBar(TQString,int) ),
+ this, TQ_SIGNAL( signalResetProgressBar(TQString,int) ));
+ connect( filter, TQ_SIGNAL( signalProgress(int) ),
+ this, TQ_SIGNAL( signalProgress(int) ));
+ connect( filter, TQ_SIGNAL( signalClearProgressBar() ),
+ this, TQ_SIGNAL( signalClearProgressBar() ));
- connect( this, TQT_SIGNAL( signalStopActivity() ),
- filter, TQT_SLOT( stop() ));
+ connect( this, TQ_SIGNAL( signalStopActivity() ),
+ filter, TQ_SLOT( stop() ));
// load in the file (target is always local)
kdDebug(KBABEL) << "writeFile active" << endl;
@@ -2504,7 +2504,7 @@ bool Catalog::findNext(const FindOptions* findOpts, DocPosition& docPos, int& le
kdDebug(KBABEL) << "findNext active" << endl;
d->_active=true;
d->_stop=false;
- connect( this, TQT_SIGNAL( signalStopActivity() ), this, TQT_SLOT( stopInternal() ));
+ connect( this, TQ_SIGNAL( signalStopActivity() ), this, TQ_SLOT( stopInternal() ));
MiscSettings miscOptions = miscSettings();
@@ -2549,12 +2549,12 @@ bool Catalog::findNext(const FindOptions* findOpts, DocPosition& docPos, int& le
int contextInfoPos = -1;
TQString targetStr;
- kapp->processEvents(10);
+ tdeApp->processEvents(10);
if( d->_stop || endReached)
{
kdDebug(KBABEL) << "FindNext: endReached or stopped" << endl;
- disconnect( this, TQT_SIGNAL( signalStopActivity() ), this, TQT_SLOT( stopInternal() ));
+ disconnect( this, TQ_SIGNAL( signalStopActivity() ), this, TQ_SLOT( stopInternal() ));
kdDebug(KBABEL) << "findNext not active" << endl;
d->_active=false;
d->_stop=false;
@@ -2763,7 +2763,7 @@ bool Catalog::findNext(const FindOptions* findOpts, DocPosition& docPos, int& le
}
}
- disconnect( this, TQT_SIGNAL( signalStopActivity() ), this, TQT_SLOT( stopInternal() ));
+ disconnect( this, TQ_SIGNAL( signalStopActivity() ), this, TQ_SLOT( stopInternal() ));
kdDebug(KBABEL) << "findNext not active" << endl;
d->_active=false;
d->_stop=false;
@@ -2779,7 +2779,7 @@ bool Catalog::findPrev(const FindOptions* findOpts, DocPosition& docPos, int& le
kdDebug(KBABEL) << "findPrev active" << endl;
d->_active=true;
d->_stop=false;
- connect( this, TQT_SIGNAL( signalStopActivity() ), this, TQT_SLOT( stopInternal() ));
+ connect( this, TQ_SIGNAL( signalStopActivity() ), this, TQ_SLOT( stopInternal() ));
MiscSettings miscOptions = miscSettings();
@@ -2798,12 +2798,12 @@ bool Catalog::findPrev(const FindOptions* findOpts, DocPosition& docPos, int& le
int contextInfoPos = -1;
TQString targetStr;
- kapp->processEvents(10);
+ tdeApp->processEvents(10);
if( d->_stop || beginReached)
{
kdDebug(KBABEL) << "FindNext: endReached or stopped" << endl;
- disconnect( this, TQT_SIGNAL( signalStopActivity() ), this, TQT_SLOT( stopInternal() ));
+ disconnect( this, TQ_SIGNAL( signalStopActivity() ), this, TQ_SLOT( stopInternal() ));
kdDebug(KBABEL) << "findPrev active" << endl;
d->_active=false;
d->_stop=false;
@@ -3034,7 +3034,7 @@ bool Catalog::findPrev(const FindOptions* findOpts, DocPosition& docPos, int& le
}
}
- disconnect( this, TQT_SIGNAL( signalStopActivity() ), this, TQT_SLOT( stopInternal() ));
+ disconnect( this, TQ_SIGNAL( signalStopActivity() ), this, TQ_SLOT( stopInternal() ));
kdDebug(KBABEL) << "findPrev active" << endl;
d->_active=false;
d->_stop=false;
@@ -3080,7 +3080,7 @@ Catalog::DiffResult Catalog::diff(uint entry, TQString *result)
return DiffOk;
}
- connect( this, TQT_SIGNAL( signalStopActivity() ), this, TQT_SLOT( stopInternal() ));
+ connect( this, TQ_SIGNAL( signalStopActivity() ), this, TQ_SLOT( stopInternal() ));
kdDebug(KBABEL) << "diffv active" << endl;
d->_active=true;
d->_stop=false;
@@ -3155,11 +3155,11 @@ Catalog::DiffResult Catalog::diff(uint entry, TQString *result)
bestId = (*it);
}
- kapp->processEvents(10);
+ tdeApp->processEvents(10);
if( d->_stop )
{
- disconnect( this, TQT_SIGNAL( signalStopActivity() ), this, TQT_SLOT( stopInternal() ));
+ disconnect( this, TQ_SIGNAL( signalStopActivity() ), this, TQ_SLOT( stopInternal() ));
kdDebug
(KBABEL) << "diffv not active" << endl;
@@ -3199,7 +3199,7 @@ Catalog::DiffResult Catalog::diff(uint entry, TQString *result)
if( !d->diffCache.insert(entry,s) )
delete s;
- disconnect( this, TQT_SIGNAL( signalStopActivity() ), this, TQT_SLOT( stopInternal() ));
+ disconnect( this, TQ_SIGNAL( signalStopActivity() ), this, TQ_SLOT( stopInternal() ));
kdDebug(KBABEL) << "diffv not active" << endl;
d->_active=false;
d->_stop=false;
@@ -3209,7 +3209,7 @@ Catalog::DiffResult Catalog::diff(uint entry, TQString *result)
void Catalog::setDiffList( const TQValueList<DiffEntry>& list)
{
- connect( this, TQT_SIGNAL( signalStopActivity() ), this, TQT_SLOT( stopInternal() ));
+ connect( this, TQ_SIGNAL( signalStopActivity() ), this, TQ_SLOT( stopInternal() ));
kdDebug(KBABEL) << "setDiffList active" << endl;
d->_active=true;
d->_stop=false;
@@ -3232,7 +3232,7 @@ void Catalog::setDiffList( const TQValueList<DiffEntry>& list)
{
oldPercent = percent;
emit signalProgress(percent);
- kapp->processEvents(10);
+ tdeApp->processEvents(10);
}
TQString id = (*it).msgid;
@@ -3259,7 +3259,7 @@ void Catalog::setDiffList( const TQValueList<DiffEntry>& list)
emit signalClearProgressBar();
- disconnect( this, TQT_SIGNAL( signalStopActivity() ), this, TQT_SLOT( stopInternal() ));
+ disconnect( this, TQ_SIGNAL( signalStopActivity() ), this, TQ_SLOT( stopInternal() ));
kdDebug(KBABEL) << "setDiffList not active" << endl;
d->_active=false;
d->_stop=false;
diff --git a/kbabel/common/catalog.h b/kbabel/common/catalog.h
index f5c37309..402af6dc 100644
--- a/kbabel/common/catalog.h
+++ b/kbabel/common/catalog.h
@@ -44,8 +44,8 @@
#include <tqptrlist.h>
#include <tqvaluevector.h>
-#include <kdemacros.h>
-#include <kstandarddirs.h>
+#include <tdemacros.h>
+#include <tdestandarddirs.h>
class KDataTool;
class TQString;
@@ -107,7 +107,7 @@ struct DiffEntry
* @short Class, that represents a translation catalog(po-file)
* @author Matthias Kiefer <matthias.kiefer@gmx.de>
*/
-class KDE_EXPORT Catalog : public TQObject
+class TDE_EXPORT Catalog : public TQObject
{
TQ_OBJECT
@@ -188,7 +188,7 @@ public:
* @return context information found in the message comment
* @deprecated
*/
- TQString context(uint index) const KDE_DEPRECATED;
+ TQString context(uint index) const TDE_DEPRECATED;
/**
* Get the header for the current file.
diff --git a/kbabel/common/catalogfileplugin.h b/kbabel/common/catalogfileplugin.h
index c6dd1575..a1f12482 100644
--- a/kbabel/common/catalogfileplugin.h
+++ b/kbabel/common/catalogfileplugin.h
@@ -34,7 +34,7 @@
#include <tqobject.h>
-#include <kdemacros.h>
+#include <tdemacros.h>
class TQString;
@@ -79,7 +79,7 @@ enum ConversionStatus {
* @short Base class for Catalog import plugins
* @author Stanislav Visnovsky <visnovsky@kde.org>
*/
-class KDE_EXPORT CatalogImportPlugin: public TQObject
+class TDE_EXPORT CatalogImportPlugin: public TQObject
{
TQ_OBJECT
@@ -175,7 +175,7 @@ private:
* @short Base class for Catalog export plugins
* @author Stanislav Visnovsky <visnovsky@kde.org>
*/
-class KDE_EXPORT CatalogExportPlugin: public TQObject
+class TDE_EXPORT CatalogExportPlugin: public TQObject
{
TQ_OBJECT
diff --git a/kbabel/common/catalogitem.h b/kbabel/common/catalogitem.h
index bb02b1d8..6f2beba6 100644
--- a/kbabel/common/catalogitem.h
+++ b/kbabel/common/catalogitem.h
@@ -60,7 +60,7 @@ class CatalogItemPrivate;
* @short Class, representing an entry in a catalog
* @author Matthias Kiefer <matthias.kiefer@gmx.de>
*/
-class KDE_EXPORT CatalogItem
+class TDE_EXPORT CatalogItem
{
public:
diff --git a/kbabel/common/catalogsettings.cpp b/kbabel/common/catalogsettings.cpp
index d7236b80..287dc4d2 100644
--- a/kbabel/common/catalogsettings.cpp
+++ b/kbabel/common/catalogsettings.cpp
@@ -38,7 +38,7 @@
#include <tdeemailsettings.h>
#include <tdeglobal.h>
#include <tdelocale.h>
-#include <kprocess.h>
+#include <tdeprocess.h>
#include <tdetempfile.h>
#include <stdlib.h>
diff --git a/kbabel/common/catalogsettings.h b/kbabel/common/catalogsettings.h
index 552f88c5..55bb1432 100644
--- a/kbabel/common/catalogsettings.h
+++ b/kbabel/common/catalogsettings.h
@@ -37,7 +37,7 @@
#include <tqstring.h>
#include <tqregexp.h>
#include <tqdatetime.h>
-#include <kdemacros.h>
+#include <tdemacros.h>
class TQTextCodec;
class TQStringList;
@@ -45,7 +45,7 @@ class TQStringList;
namespace KBabel
{
-struct KDE_EXPORT SaveSettings
+struct TDE_EXPORT SaveSettings
{
bool autoUpdate;
bool updateLastTranslator;
@@ -74,7 +74,7 @@ struct KDE_EXPORT SaveSettings
int autoSaveDelay;
};
-struct KDE_EXPORT IdentitySettings
+struct TDE_EXPORT IdentitySettings
{
TQString authorName;
TQString authorLocalizedName;
@@ -98,7 +98,7 @@ struct KDE_EXPORT IdentitySettings
};
-struct KDE_EXPORT MiscSettings
+struct TDE_EXPORT MiscSettings
{
/**
* The char, that marks keyboard accelerators.
@@ -144,13 +144,13 @@ struct TagSettings
TQStringList argExpressions;
};
-KDE_EXPORT TQString charsetString(const int encoding);
-KDE_EXPORT TQString charsetString(const TQTextCodec *codec);
-KDE_EXPORT TQString GNUPluralForms(const TQString& lang);
+TDE_EXPORT TQString charsetString(const int encoding);
+TDE_EXPORT TQString charsetString(const TQTextCodec *codec);
+TDE_EXPORT TQString GNUPluralForms(const TQString& lang);
namespace Defaults
{
- class KDE_EXPORT Identity
+ class TDE_EXPORT Identity
{
public:
static TQString authorName();
@@ -161,7 +161,7 @@ namespace Defaults
static TQString timezone();
};
- class KDE_EXPORT Tag
+ class TDE_EXPORT Tag
{
public:
static TQStringList tagExpressions();
diff --git a/kbabel/common/editcmd.h b/kbabel/common/editcmd.h
index 5dc1c536..feaf1fec 100644
--- a/kbabel/common/editcmd.h
+++ b/kbabel/common/editcmd.h
@@ -35,12 +35,12 @@
#include "itempart.h"
#include <tqstring.h>
-#include <kdemacros.h>
+#include <tdemacros.h>
namespace KBabel
{
-class KDE_EXPORT EditCommand
+class TDE_EXPORT EditCommand
{
public:
enum Commands { Invalid, Begin, End, Insert, Delete };
@@ -64,7 +64,7 @@ private:
};
-class KDE_EXPORT BeginCommand : public EditCommand
+class TDE_EXPORT BeginCommand : public EditCommand
{
public:
BeginCommand( const int index, const Part part ) : EditCommand(index,part) {}
@@ -73,7 +73,7 @@ public:
};
-class KDE_EXPORT EndCommand : public EditCommand
+class TDE_EXPORT EndCommand : public EditCommand
{
public:
EndCommand( const int index, const Part part ) : EditCommand(index,part) {}
@@ -83,7 +83,7 @@ public:
-class KDE_EXPORT DelTextCmd : public EditCommand
+class TDE_EXPORT DelTextCmd : public EditCommand
{
public:
int offset;
@@ -97,7 +97,7 @@ public:
bool merge( EditCommand* other);
};
-class KDE_EXPORT InsTextCmd : public DelTextCmd
+class TDE_EXPORT InsTextCmd : public DelTextCmd
{
public:
diff --git a/kbabel/common/kbmailer.cpp b/kbabel/common/kbmailer.cpp
index a85fb990..471660f0 100644
--- a/kbabel/common/kbmailer.cpp
+++ b/kbabel/common/kbmailer.cpp
@@ -68,11 +68,11 @@ KBabelMailer::~KBabelMailer()
void KBabelMailer::sendOneFile(const TQString& fileName)
{
if (!singleFileCompression) {
- kapp->invokeMailer("", "", "", "", "", "", fileName);
+ tdeApp->invokeMailer("", "", "", "", "", "", fileName);
} else {
const TQString archive ( createArchive( TQStringList( fileName ), TQFileInfo( fileName ).baseName() ) );
if ( !archive.isEmpty() ) {
- kapp->invokeMailer("", "", "", "", "", "", archive);
+ tdeApp->invokeMailer("", "", "", "", "", "", archive);
}
}
}
@@ -100,7 +100,7 @@ void KBabelMailer::sendOneFile( const KURL& url)
TQString tempName( m_tempDir.name() );
tempName += fileName;
if ( TDEIO::NetAccess::download( url, tempName, m_parent ) )
- kapp->invokeMailer("", "", "", "", "", "", fileName);
+ tdeApp->invokeMailer("", "", "", "", "", "", fileName);
else
{
KMessageBox::error( m_parent, i18n("Error while trying to download file %1.").arg( url.prettyURL() ) );
@@ -110,7 +110,7 @@ void KBabelMailer::sendOneFile( const KURL& url)
{
const TQString archive ( createArchive( TQStringList( url.url() ), url.filename() ) );
if ( !archive.isEmpty() ) {
- kapp->invokeMailer("", "", "", "", "", "", archive);
+ tdeApp->invokeMailer("", "", "", "", "", "", archive);
}
}
}
@@ -119,7 +119,7 @@ void KBabelMailer::sendFiles(TQStringList fileList, const TQString& initialName)
{
const TQString archive ( createArchive( fileList, initialName ) );
if ( !archive.isEmpty() ) {
- kapp->invokeMailer("", "", "", "", "", "", archive);
+ tdeApp->invokeMailer("", "", "", "", "", "", archive);
}
}
diff --git a/kbabel/common/kbmailer.h b/kbabel/common/kbmailer.h
index fe1cfe89..265b0b6c 100644
--- a/kbabel/common/kbmailer.h
+++ b/kbabel/common/kbmailer.h
@@ -37,7 +37,7 @@
#define KBMAILER_H
#include <kbproject.h>
-#include <kdemacros.h>
+#include <tdemacros.h>
#include <ktempdir.h>
class TQWidget;
@@ -56,7 +56,7 @@ namespace KBabel
*
* @internal
*/
-class KDE_EXPORT KBabelMailer
+class TDE_EXPORT KBabelMailer
{
public:
/**
diff --git a/kbabel/common/kbproject.h b/kbabel/common/kbproject.h
index f4983ab5..aa29df1a 100644
--- a/kbabel/common/kbproject.h
+++ b/kbabel/common/kbproject.h
@@ -43,7 +43,7 @@ namespace KBabel
{
class ProjectSettingsBase;
- class KDE_EXPORT Project : public TQObject, public TDEShared
+ class TDE_EXPORT Project : public TQObject, public TDEShared
{
TQ_OBJECT
diff --git a/kbabel/common/kbprojectmanager.cpp b/kbabel/common/kbprojectmanager.cpp
index 7b369ad7..e26edff6 100644
--- a/kbabel/common/kbprojectmanager.cpp
+++ b/kbabel/common/kbprojectmanager.cpp
@@ -32,7 +32,7 @@
**************************************************************************** */
#include <kdebug.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include "kbprojectmanager.h"
diff --git a/kbabel/common/kbprojectmanager.h b/kbabel/common/kbprojectmanager.h
index 40ec5884..388097aa 100644
--- a/kbabel/common/kbprojectmanager.h
+++ b/kbabel/common/kbprojectmanager.h
@@ -35,14 +35,14 @@
#include <tqstring.h>
#include <tqptrlist.h>
-#include <kdemacros.h>
+#include <tdemacros.h>
#include "kbproject.h"
namespace KBabel
{
- class KDE_EXPORT ProjectManager
+ class TDE_EXPORT ProjectManager
{
public:
static Project::Ptr open( const TQString& file );
diff --git a/kbabel/common/msgfmt.cpp b/kbabel/common/msgfmt.cpp
index 5e359a91..3ebd2a88 100644
--- a/kbabel/common/msgfmt.cpp
+++ b/kbabel/common/msgfmt.cpp
@@ -33,7 +33,7 @@
#include "msgfmt.h"
#include <tdeapplication.h>
-#include <kprocess.h>
+#include <tdeprocess.h>
#include <tqfileinfo.h>
#include <tqdir.h>
@@ -58,10 +58,10 @@ Msgfmt::Status Msgfmt::checkSyntax(TQString file,TQString& output, bool gnu)
TDEProcess proc;
- connect(&proc,TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
- this,TQT_SLOT(addToOutput(TDEProcess*,char *, int )));
- connect(&proc,TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)),
- this,TQT_SLOT(addToOutput(TDEProcess*,char *, int)));
+ connect(&proc,TQ_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
+ this,TQ_SLOT(addToOutput(TDEProcess*,char *, int )));
+ connect(&proc,TQ_SIGNAL(receivedStderr(TDEProcess *, char *, int)),
+ this,TQ_SLOT(addToOutput(TDEProcess*,char *, int)));
// remove last output
_output="";
@@ -100,10 +100,10 @@ Msgfmt::Status Msgfmt::checkSyntaxInDir(TQString dir,TQString regexp,TQString& o
TDEProcess proc;
proc.setUseShell(true);
- connect(&proc,TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
- this,TQT_SLOT(addToOutput(TDEProcess*,char *, int )));
- connect(&proc,TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)),
- this,TQT_SLOT(addToOutput(TDEProcess*,char *, int)));
+ connect(&proc,TQ_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
+ this,TQ_SLOT(addToOutput(TDEProcess*,char *, int )));
+ connect(&proc,TQ_SIGNAL(receivedStderr(TDEProcess *, char *, int)),
+ this,TQ_SLOT(addToOutput(TDEProcess*,char *, int)));
// remove last output
_output="";
@@ -141,7 +141,7 @@ void Msgfmt::addToOutput(TDEProcess*,char *buffer, int buflen)
TQString Msgfmt::tempSaveName()
{
- return kapp->tempSaveName("/tmp/kbabel_msgfmt.po");
+ return tdeApp->tempSaveName("/tmp/kbabel_msgfmt.po");
}
#include "msgfmt.moc"
diff --git a/kbabel/common/msgfmt.h b/kbabel/common/msgfmt.h
index 42e28a60..b474fe5d 100644
--- a/kbabel/common/msgfmt.h
+++ b/kbabel/common/msgfmt.h
@@ -34,7 +34,7 @@
#define MSGFMT_H
#include <tqobject.h>
-#include <kdemacros.h>
+#include <tdemacros.h>
class TDEProcess;
class TQString;
@@ -42,7 +42,7 @@ class TQString;
namespace KBabel
{
-class KDE_EXPORT Msgfmt : private TQObject
+class TDE_EXPORT Msgfmt : private TQObject
{
TQ_OBJECT
diff --git a/kbabel/common/poinfo.cpp b/kbabel/common/poinfo.cpp
index 17d930d9..95df4510 100644
--- a/kbabel/common/poinfo.cpp
+++ b/kbabel/common/poinfo.cpp
@@ -39,7 +39,7 @@
#include <tdeapplication.h>
#include <tdeio/netaccess.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include <ksavefile.h>
#include <tqdatastream.h>
@@ -399,7 +399,7 @@ ConversionStatus PoInfo::info(const TQString& url, PoInfo& info, TQStringList &w
while( lexer->lastToken != T_EOF && success==OK)
{
- if( interactive ) kapp->processEvents(10);
+ if( interactive ) tdeApp->processEvents(10);
if( stopStaticRead )
{
@@ -639,7 +639,7 @@ bool PoInfo::findInFile( const TQString& url, FindOptions options )
}
case T_MSGID:
case T_MSGIDPLURAL: {
- kapp->processEvents(10);
+ tdeApp->processEvents(10);
// if stopped, return not found
if( stopStaticRead )
diff --git a/kbabel/common/poinfo.h b/kbabel/common/poinfo.h
index 70ba652a..775e2968 100644
--- a/kbabel/common/poinfo.h
+++ b/kbabel/common/poinfo.h
@@ -57,7 +57,7 @@ class FindOptions;
/**
* PO-file information class, with transparent caching of information.
*/
-class KDE_EXPORT PoInfo
+class TDE_EXPORT PoInfo
{
public:
int total;
diff --git a/kbabel/common/projectsettings.cpp b/kbabel/common/projectsettings.cpp
index 8ac63cd4..3050d971 100644
--- a/kbabel/common/projectsettings.cpp
+++ b/kbabel/common/projectsettings.cpp
@@ -38,7 +38,7 @@
#include <tqstring.h>
#include <tdeglobal.h>
#include <tdelocale.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include <tdespell.h>
diff --git a/kbabel/common/projectsettings.h b/kbabel/common/projectsettings.h
index 556088dd..c8b379ec 100644
--- a/kbabel/common/projectsettings.h
+++ b/kbabel/common/projectsettings.h
@@ -117,7 +117,7 @@ struct SourceContextSettings
*/
namespace Defaults
{
- class KDE_EXPORT Spellcheck
+ class TDE_EXPORT Spellcheck
{
public:
static TQString ignoreURL();
@@ -130,7 +130,7 @@ namespace Defaults
static KSpellConfig* defaultsettings;
};
- class KDE_EXPORT CatalogManager
+ class TDE_EXPORT CatalogManager
{
public:
static TQString ignoreURL();
diff --git a/kbabel/common/regexpextractor.h b/kbabel/common/regexpextractor.h
index 75b6e0d3..174416a2 100644
--- a/kbabel/common/regexpextractor.h
+++ b/kbabel/common/regexpextractor.h
@@ -39,12 +39,12 @@
#include <tqstringlist.h>
#include <tqvaluelist.h>
#include <tqregexp.h>
-#include <kdemacros.h>
+#include <tdemacros.h>
namespace KBabel
{
-struct KDE_EXPORT MatchedEntryInfo{
+struct TDE_EXPORT MatchedEntryInfo{
uint index;
TQString extracted;
};
@@ -54,7 +54,7 @@ struct KDE_EXPORT MatchedEntryInfo{
* class to extract entries based on regexps from a string
* @author Andrea Rizzi <rizzi@kde.org>
*/
-class KDE_EXPORT RegExpExtractor
+class TDE_EXPORT RegExpExtractor
{
public:
diff --git a/kbabel/common/tagextractor.h b/kbabel/common/tagextractor.h
index d6018f37..bf178a47 100644
--- a/kbabel/common/tagextractor.h
+++ b/kbabel/common/tagextractor.h
@@ -43,7 +43,7 @@ namespace KBabel
* class to extract tags from a string
* @author Andrea Rizzi <rizzi@kde.org>
*/
-class KDE_EXPORT TagExtractor : public RegExpExtractor
+class TDE_EXPORT TagExtractor : public RegExpExtractor
{
public:
diff --git a/kbabel/commonui/cmdedit.cpp b/kbabel/commonui/cmdedit.cpp
index e6db0b5b..4fcc675e 100644
--- a/kbabel/commonui/cmdedit.cpp
+++ b/kbabel/commonui/cmdedit.cpp
@@ -107,19 +107,19 @@ CmdEdit::CmdEdit(TQWidget* parent, const char* name)
setMinimumSize(layout->sizeHint());
- connect(_addButton , TQT_SIGNAL(clicked()) , this , TQT_SLOT(addCmd()) ) ;
- connect(_editButton , TQT_SIGNAL(clicked()) , this , TQT_SLOT(editCmd()) );
- connect(_removeButton , TQT_SIGNAL(clicked()) , this , TQT_SLOT(removeCmd()) );
- connect(_upButton , TQT_SIGNAL(clicked()) , this , TQT_SLOT(upCmd()) ) ;
- connect(_downButton , TQT_SIGNAL(clicked()) , this , TQT_SLOT(downCmd()) );
-
- connect(_commands , TQT_SIGNAL(highlighted(int)) , this, TQT_SLOT(cmdHighlighted(int)) );
- connect(_commandNames , TQT_SIGNAL(highlighted(int)) , this, TQT_SLOT(cmdNameHighlighted(int)) );
- connect(_commands , TQT_SIGNAL(selected(int)) , this, TQT_SLOT(editCmd()) );
- connect(_commandNames , TQT_SIGNAL(selected(int)) , this, TQT_SLOT(editCmd()) );
-
- connect(_cmdEdit, TQT_SIGNAL(textChanged(const TQString&)) , this , TQT_SLOT(checkAdd()) );
- connect(_cmdNameEdit, TQT_SIGNAL(textChanged(const TQString&)) , this , TQT_SLOT(checkAdd()) );
+ connect(_addButton , TQ_SIGNAL(clicked()) , this , TQ_SLOT(addCmd()) ) ;
+ connect(_editButton , TQ_SIGNAL(clicked()) , this , TQ_SLOT(editCmd()) );
+ connect(_removeButton , TQ_SIGNAL(clicked()) , this , TQ_SLOT(removeCmd()) );
+ connect(_upButton , TQ_SIGNAL(clicked()) , this , TQ_SLOT(upCmd()) ) ;
+ connect(_downButton , TQ_SIGNAL(clicked()) , this , TQ_SLOT(downCmd()) );
+
+ connect(_commands , TQ_SIGNAL(highlighted(int)) , this, TQ_SLOT(cmdHighlighted(int)) );
+ connect(_commandNames , TQ_SIGNAL(highlighted(int)) , this, TQ_SLOT(cmdNameHighlighted(int)) );
+ connect(_commands , TQ_SIGNAL(selected(int)) , this, TQ_SLOT(editCmd()) );
+ connect(_commandNames , TQ_SIGNAL(selected(int)) , this, TQ_SLOT(editCmd()) );
+
+ connect(_cmdEdit, TQ_SIGNAL(textChanged(const TQString&)) , this , TQ_SLOT(checkAdd()) );
+ connect(_cmdNameEdit, TQ_SIGNAL(textChanged(const TQString&)) , this , TQ_SLOT(checkAdd()) );
}
void CmdEdit::setCommands(const TQStringList& commands,const TQStringList& commandNames)
diff --git a/kbabel/commonui/context.cpp b/kbabel/commonui/context.cpp
index 3d22cb2a..6b1719a7 100644
--- a/kbabel/commonui/context.cpp
+++ b/kbabel/commonui/context.cpp
@@ -72,7 +72,7 @@ SourceContext::SourceContext(TQWidget *parent, KBabel::Project::Ptr project): TQ
{
_referenceList.clear();
_referenceCombo = new TQComboBox( this );
- connect( _referenceCombo, TQT_SIGNAL(activated(int)), this, TQT_SLOT(updateToSelected(int)));
+ connect( _referenceCombo, TQ_SIGNAL(activated(int)), this, TQ_SLOT(updateToSelected(int)));
_layout= new TQVBoxLayout(this);
_layout->addWidget(_referenceCombo);
@@ -278,7 +278,7 @@ bool SourceContext::loadPart()
_view=0;
return false;
}
- _part = static_cast<KTextEditor::Document *>( factory->create( TQT_TQOBJECT(this), 0, "KTextEditor::Document" ) );
+ _part = static_cast<KTextEditor::Document *>( factory->create( this, 0, "KTextEditor::Document" ) );
if( !_part )
{
@@ -289,8 +289,8 @@ bool SourceContext::loadPart()
return false;
}
_view = _part->createView( this, 0 );
- _layout->addWidget(static_cast<TQWidget *>(_view), 1);
- static_cast<TQWidget *>(_view)->show();
+ _layout->addWidget(_view, 1);
+ _view->show();
return true;
}
diff --git a/kbabel/commonui/context.h b/kbabel/commonui/context.h
index 50bd1b24..02b06cc7 100644
--- a/kbabel/commonui/context.h
+++ b/kbabel/commonui/context.h
@@ -74,7 +74,7 @@ struct ContextInfo
* @note It requires a KPart implementing KTextEditor interface with selections.
* @author Stanislav Visnovsky <visnovsky@kde.org>
*/
-class KDE_EXPORT SourceContext : public TQWidget
+class TDE_EXPORT SourceContext : public TQWidget
{
TQ_OBJECT
diff --git a/kbabel/commonui/finddialog.cpp b/kbabel/commonui/finddialog.cpp
index 4f695fb4..797b6c71 100644
--- a/kbabel/commonui/finddialog.cpp
+++ b/kbabel/commonui/finddialog.cpp
@@ -106,7 +106,7 @@ FindDialog::FindDialog(bool forReplace, TQWidget* parent)
}
_buttonGrp = new TQButtonGroup(3, TQt::Horizontal, i18n("Where to Search"), page);
- connect(_buttonGrp,TQT_SIGNAL(clicked(int)), this, TQT_SLOT(inButtonsClicked(int)));
+ connect(_buttonGrp,TQ_SIGNAL(clicked(int)), this, TQ_SLOT(inButtonsClicked(int)));
layout->addWidget(_buttonGrp);
_inMsgid = new TQCheckBox(i18n("&Msgid"),_buttonGrp);
@@ -136,8 +136,8 @@ FindDialog::FindDialog(bool forReplace, TQWidget* parent)
if( !TDETrader::self()->query("KRegExpEditor/KRegExpEditor").isEmpty() )
{
_regExpButton = new TQPushButton( i18n("&Edit..."), regexp );
- connect( _regExpButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( regExpButtonClicked()));
- connect( _isRegExp, TQT_SIGNAL( toggled(bool) ), _regExpButton, TQT_SLOT(setEnabled(bool)));
+ connect( _regExpButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( regExpButtonClicked()));
+ connect( _isRegExp, TQ_SIGNAL( toggled(bool) ), _regExpButton, TQ_SLOT(setEnabled(bool)));
}
if(forReplace)
@@ -520,7 +520,7 @@ void FindDialog::inButtonsClicked(int id)
void FindDialog::regExpButtonClicked()
{
if ( _regExpEditDialog == 0 )
- _regExpEditDialog = KParts::ComponentFactory::createInstanceFromQuery<TQDialog>( "KRegExpEditor/KRegExpEditor", TQString(), TQT_TQOBJECT(this) );
+ _regExpEditDialog = KParts::ComponentFactory::createInstanceFromQuery<TQDialog>( "KRegExpEditor/KRegExpEditor", TQString(), this );
KRegExpEditorInterface *iface = dynamic_cast<KRegExpEditorInterface *>( _regExpEditDialog );
if( iface )
@@ -541,9 +541,9 @@ ReplaceDialog::ReplaceDialog(TQWidget* parent)
TQLabel *label = new TQLabel(i18n("Replace this string?"),page);
layout->addWidget(label);
- connect(this,TQT_SIGNAL(user1Clicked()),this,TQT_SIGNAL(replace()));
- connect(this,TQT_SIGNAL(user2Clicked()),this,TQT_SIGNAL(next()));
- connect(this,TQT_SIGNAL(user3Clicked()),this,TQT_SIGNAL(replaceAll()));
+ connect(this,TQ_SIGNAL(user1Clicked()),this,TQ_SIGNAL(replace()));
+ connect(this,TQ_SIGNAL(user2Clicked()),this,TQ_SIGNAL(next()));
+ connect(this,TQ_SIGNAL(user3Clicked()),this,TQ_SIGNAL(replaceAll()));
}
ReplaceDialog::~ReplaceDialog()
diff --git a/kbabel/commonui/finddialog.h b/kbabel/commonui/finddialog.h
index b146e470..2044b155 100644
--- a/kbabel/commonui/finddialog.h
+++ b/kbabel/commonui/finddialog.h
@@ -44,7 +44,7 @@ class KComboBox;
#include "findoptions.h"
-class KDE_EXPORT FindDialog : public KDialogBase
+class TDE_EXPORT FindDialog : public KDialogBase
{
TQ_OBJECT
@@ -120,7 +120,7 @@ private:
bool _replaceDlg;
};
-class KDE_EXPORT ReplaceDialog : public KDialogBase
+class TDE_EXPORT ReplaceDialog : public KDialogBase
{
TQ_OBJECT
diff --git a/kbabel/commonui/projectpref.cpp b/kbabel/commonui/projectpref.cpp
index 1f53f2f1..7d940acb 100644
--- a/kbabel/commonui/projectpref.cpp
+++ b/kbabel/commonui/projectpref.cpp
@@ -82,15 +82,15 @@ ProjectDialog::ProjectDialog(Project::Ptr project)
addPage(_spellPage, i18n("title of page in preferences dialog","Spelling")
, "tools-check-spelling"
, i18n("Options for Spell Checking"));
- connect( _spellPage, TQT_SIGNAL( settingsChanged() )
- , this, TQT_SLOT(updateButtons()) );
+ connect( _spellPage, TQ_SIGNAL( settingsChanged() )
+ , this, TQ_SLOT(updateButtons()) );
_sourcePage = new SourceContextPreferences(0);
addPage(_sourcePage, i18n("title of page in preferences dialog","Source")
, "text-x-src"
,i18n("Options for Showing Source Context"));
- connect(_sourcePage, TQT_SIGNAL (itemsChanged())
- , this, TQT_SLOT (updateButtons()) );
+ connect(_sourcePage, TQ_SIGNAL (itemsChanged())
+ , this, TQ_SLOT (updateButtons()) );
_miscPage = new MiscPreferences(0);
addPage(_miscPage, i18n("title of page in preferences dialog","Miscellaneous")
@@ -106,15 +106,15 @@ ProjectDialog::ProjectDialog(Project::Ptr project)
addPage(_dirCommandsPage, i18n("title of page in preferences dialog","Folder Commands")
, "folder"
, i18n("User-Defined Commands for Folder Items"));
- connect( _dirCommandsPage, TQT_SIGNAL( settingsChanged() ),
- this, TQT_SLOT(updateButtons()) );
+ connect( _dirCommandsPage, TQ_SIGNAL( settingsChanged() ),
+ this, TQ_SLOT(updateButtons()) );
_fileCommandsPage = new FileCommandsPreferences(0);
addPage(_fileCommandsPage, i18n("title of page in preferences dialog","File Commands")
, "files"
, i18n("User-Defined Commands for File Items"));
- connect( _fileCommandsPage, TQT_SIGNAL( settingsChanged() ),
- this, TQT_SLOT(updateButtons()) );
+ connect( _fileCommandsPage, TQ_SIGNAL( settingsChanged() ),
+ this, TQ_SLOT(updateButtons()) );
_viewPage = new ViewPreferences(0);
addPage(_viewPage, i18n("title of page in preferences dialog","Catalog Manager")
diff --git a/kbabel/commonui/projectpref.h b/kbabel/commonui/projectpref.h
index b7f571e3..44767b47 100644
--- a/kbabel/commonui/projectpref.h
+++ b/kbabel/commonui/projectpref.h
@@ -55,7 +55,7 @@ class DiffPreferences;
namespace KBabel {
-class KDE_EXPORT ProjectDialog : public TDEConfigDialog
+class TDE_EXPORT ProjectDialog : public TDEConfigDialog
{
TQ_OBJECT
diff --git a/kbabel/commonui/projectprefwidgets.cpp b/kbabel/commonui/projectprefwidgets.cpp
index 203d28c0..53be602c 100644
--- a/kbabel/commonui/projectprefwidgets.cpp
+++ b/kbabel/commonui/projectprefwidgets.cpp
@@ -220,7 +220,7 @@ SavePreferences::SavePreferences(TQWidget *parent)
_dateFormatEdit = new TQLineEdit(dateBox, "kcfg_CustomDateFormat");
_dateFormatEdit->setEnabled(false);
- connect( _customDateButton, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT( customDateActivated(bool) ) );
+ connect( _customDateButton, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT( customDateActivated(bool) ) );
TQGroupBox* projectBox = new TQGroupBox(1,TQt::Horizontal,i18n("Project String")
,page);
@@ -438,8 +438,8 @@ IdentityPreferences::IdentityPreferences(TQWidget* parent, const TQString& proje
tempLabel=new TQLabel(i18n("Lan&guage code:"),hbox);
_langCodeEdit = new TQLineEdit(hbox, "kcfg_LanguageCode");
tempLabel->setBuddy(_langCodeEdit);
- connect(_langCodeEdit,TQT_SIGNAL(textChanged(const TQString&)), this
- , TQT_SLOT(checkTestPluralButton()));
+ connect(_langCodeEdit,TQ_SIGNAL(textChanged(const TQString&)), this
+ , TQ_SLOT(checkTestPluralButton()));
tempLabel=new TQLabel(i18n("&Language mailing list:"),group);
_listEdit = new TQLineEdit(group, "kcfg_Mailinglist");
@@ -473,15 +473,15 @@ IdentityPreferences::IdentityPreferences(TQWidget* parent, const TQString& proje
_pluralFormsBox->setSpecialValueText(
i18n("automatic choose number of plural forms","Automatic"));
label->setBuddy(_pluralFormsBox);
- connect(_pluralFormsBox,TQT_SIGNAL(valueChanged(int)), this
- , TQT_SLOT(checkTestPluralButton()));
+ connect(_pluralFormsBox,TQ_SIGNAL(valueChanged(int)), this
+ , TQ_SLOT(checkTestPluralButton()));
hbox->setStretchFactor(_pluralFormsBox,1);
_testPluralButton = new TQPushButton(i18n("Te&st"),hbox);
_testPluralButton->setEnabled(false);
- connect(_testPluralButton, TQT_SIGNAL(clicked()), this
- , TQT_SLOT(testPluralForm()));
+ connect(_testPluralButton, TQ_SIGNAL(clicked()), this
+ , TQ_SLOT(testPluralForm()));
const TQString msg=i18n("<qt><p><b>Number of singular/plural forms</b></p>"
"<p><b>Note</b>: This option is TDE specific. "
@@ -512,8 +512,8 @@ IdentityPreferences::IdentityPreferences(TQWidget* parent, const TQString& proje
hbox->setStretchFactor(_gnuPluralFormHeaderEdit,1);
_testGnuPluralFormButton = new TQPushButton(i18n("&Lookup"),hbox);
- connect(_testGnuPluralFormButton, TQT_SIGNAL(clicked()), this
- , TQT_SLOT(lookupGnuPluralFormHeader()));
+ connect(_testGnuPluralFormButton, TQ_SIGNAL(clicked()), this
+ , TQ_SLOT(lookupGnuPluralFormHeader()));
_checkPluralArgumentBox = new TQCheckBox( i18n("Re&quire plural form arguments in translation")
, group, "kcfg_CheckPluralArgument" );
@@ -706,7 +706,7 @@ MiscPreferences::MiscPreferences(TQWidget *parent)
if( !TDETrader::self()->query("KRegExpEditor/KRegExpEditor").isEmpty() )
{
_regExpButton = new TQPushButton( i18n("&Edit..."), hbox );
- connect( _regExpButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( regExpButtonClicked()));
+ connect( _regExpButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( regExpButtonClicked()));
}
@@ -778,7 +778,7 @@ void MiscPreferences::regExpButtonClicked()
{
if ( _regExpEditDialog==0 )
_regExpEditDialog = KParts::ComponentFactory::createInstanceFromQuery<TQDialog>
- ("KRegExpEditor/KRegExpEditor", TQString(), TQT_TQOBJECT(this) );
+ ("KRegExpEditor/KRegExpEditor", TQString(), this );
KRegExpEditorInterface *iface = dynamic_cast<KRegExpEditorInterface *>( _regExpEditDialog );
if( iface )
@@ -811,8 +811,8 @@ SpellPreferences::SpellPreferences(TQWidget* parent)
remIgnoredBtn = new TQCheckBox(i18n("&Remember ignored words"),page, "kcfg_RememberIgnored");
layout->addWidget(remIgnoredBtn);
- connect( spellConfig, TQT_SIGNAL( configChanged() )
- , this, TQT_SIGNAL ( settingsChanged() ) );
+ connect( spellConfig, TQ_SIGNAL( configChanged() )
+ , this, TQ_SIGNAL ( settingsChanged() ) );
TQLabel *tempLabel = new TQLabel(i18n("F&ile to store ignored words:"),page);
layout->addWidget(tempLabel);
@@ -820,8 +820,8 @@ SpellPreferences::SpellPreferences(TQWidget* parent)
layout->addWidget(ignoreURLEdit);
tempLabel->setBuddy(ignoreURLEdit);
- connect(remIgnoredBtn,TQT_SIGNAL(toggled(bool)),ignoreURLEdit
- ,TQT_SLOT(setEnabled(bool)));
+ connect(remIgnoredBtn,TQ_SIGNAL(toggled(bool)),ignoreURLEdit
+ ,TQ_SLOT(setEnabled(bool)));
TQString msg = i18n("<qt><p><b>Remember ignored words</b></p>"
@@ -993,7 +993,7 @@ DirCommandsPreferences::DirCommandsPreferences(TQWidget* parent)
new TQLabel( i18n("Replaceables:\n@PACKAGE@, @PODIR@, @POTDIR@\n"
"@POFILES@, @MARKEDPOFILES@"), box);
- connect (_dirCmdEdit, TQT_SIGNAL(widgetChanged()), this, TQT_SIGNAL(settingsChanged()));
+ connect (_dirCmdEdit, TQ_SIGNAL(widgetChanged()), this, TQ_SIGNAL(settingsChanged()));
TQWhatsThis::add( box , i18n("<qt><p><b>Commands for folders</b></p>"
"<p>Insert here the commands you want to execute in folders from "
@@ -1056,7 +1056,7 @@ FileCommandsPreferences::FileCommandsPreferences(TQWidget* parent)
new TQLabel( i18n("Replaceables:\n"
"@PACKAGE@, @POFILE@,@POTFILE@,\n@PODIR@, @POTDIR@"), box);
- connect (_fileCmdEdit, TQT_SIGNAL(widgetChanged()), this, TQT_SIGNAL(settingsChanged()));
+ connect (_fileCmdEdit, TQ_SIGNAL(widgetChanged()), this, TQ_SIGNAL(settingsChanged()));
TQWhatsThis::add( box , i18n("<qt><p><b>Commands for files</b></p>"
"<p>Insert here the commands you want to execute on files from "
@@ -1168,8 +1168,8 @@ SourceContextPreferences::SourceContextPreferences(TQWidget* parent): TQWidget(p
_pathsEditor->setTitle(i18n("Path Patterns"));
layout->addWidget(_pathsEditor);
- connect ( _pathsEditor, TQT_SIGNAL (itemsChanged ())
- , this, TQT_SIGNAL (itemsChanged ()));
+ connect ( _pathsEditor, TQ_SIGNAL (itemsChanged ())
+ , this, TQ_SIGNAL (itemsChanged ()));
_pathsEditor->installEventFilter(this);
diff --git a/kbabel/commonui/projectprefwidgets.h b/kbabel/commonui/projectprefwidgets.h
index b5ccf7d0..1b523b6c 100644
--- a/kbabel/commonui/projectprefwidgets.h
+++ b/kbabel/commonui/projectprefwidgets.h
@@ -62,7 +62,7 @@ class KURLRequester;
struct ModuleInfo;
-class KDE_EXPORT SavePreferences : public KTabCtl
+class TDE_EXPORT SavePreferences : public KTabCtl
{
TQ_OBJECT
diff --git a/kbabel/commonui/projectwizard.cpp b/kbabel/commonui/projectwizard.cpp
index 79266489..9bb8dcec 100644
--- a/kbabel/commonui/projectwizard.cpp
+++ b/kbabel/commonui/projectwizard.cpp
@@ -71,9 +71,9 @@ ProjectWizard::ProjectWizard(TQWidget *parent,const char *name)
}
}
- connect( _wizard->_projectName, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(textChanged(const TQString &)));
- connect( _wizard->_projectFile, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(textChanged(const TQString &)));
- connect( this, TQT_SIGNAL( helpClicked( void ) ), this, TQT_SLOT( slotHelpClicked( void ) ) );
+ connect( _wizard->_projectName, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(textChanged(const TQString &)));
+ connect( _wizard->_projectFile, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(textChanged(const TQString &)));
+ connect( this, TQ_SIGNAL( helpClicked( void ) ), this, TQ_SLOT( slotHelpClicked( void ) ) );
addPage(_wizard, i18n("Basic Project Information"));
@@ -166,7 +166,7 @@ Project::Ptr ProjectWizard::newProject()
void ProjectWizard::slotHelpClicked( void )
{
- kapp->invokeHelp( "preferences-project-wizard", "kbabel" );
+ tdeApp->invokeHelp( "preferences-project-wizard", "kbabel" );
}
#include "projectwizard.moc"
diff --git a/kbabel/commonui/projectwizard.h b/kbabel/commonui/projectwizard.h
index cc2e3c9d..c0e07fe1 100644
--- a/kbabel/commonui/projectwizard.h
+++ b/kbabel/commonui/projectwizard.h
@@ -45,7 +45,7 @@ class ProjectStep2;
namespace KBabel {
-class KDE_EXPORT ProjectWizard : public KWizard
+class TDE_EXPORT ProjectWizard : public KWizard
{
TQ_OBJECT
diff --git a/kbabel/commonui/roughtransdlg.cpp b/kbabel/commonui/roughtransdlg.cpp
index 654bee27..609dbdcd 100644
--- a/kbabel/commonui/roughtransdlg.cpp
+++ b/kbabel/commonui/roughtransdlg.cpp
@@ -103,7 +103,7 @@ RoughTransDlg::RoughTransDlg(KBabelDictBox *dict, Catalog *cat
fuzzyButton = new TQCheckBox(i18n("&Fuzzy entries"),bBox);
transButton = new TQCheckBox(i18n("T&ranslated entries"),bBox);
- connect(bBox,TQT_SIGNAL(clicked(int)),this,TQT_SLOT(msgButtonClicked(int)));
+ connect(bBox,TQ_SIGNAL(clicked(int)),this,TQ_SLOT(msgButtonClicked(int)));
TQWhatsThis::add(bBox,i18n("<qt><p><b>What entries to translate</b></p>"
"<p>Choose here, for which entries of the file KBabel "
@@ -144,8 +144,8 @@ RoughTransDlg::RoughTransDlg(KBabelDictBox *dict, Catalog *cat
"you know what you are doing.</p></qt>"));
- connect(markFuzzyButton, TQT_SIGNAL(toggled(bool))
- , this, TQT_SLOT(fuzzyButtonToggled(bool)));
+ connect(markFuzzyButton, TQ_SIGNAL(toggled(bool))
+ , this, TQ_SLOT(fuzzyButtonToggled(bool)));
kdeButton = new TQCheckBox(i18n("Initialize &TDE-specific entries"),box);
kdeButton->setChecked(true);
@@ -249,7 +249,7 @@ void RoughTransDlg::slotUser1()
partTransCounter=0;
totalTried=0;
- TQTimer::singleShot(0,this, TQT_SLOT(translate()));
+ TQTimer::singleShot(0,this, TQ_SLOT(translate()));
}
void RoughTransDlg::translate()
@@ -278,7 +278,7 @@ void RoughTransDlg::translate()
for(int i = 0; i < total; i++)
{
progressbar->setProgress(i+1);
- kapp->processEvents(100);
+ tdeApp->processEvents(100);
if(stop || cancel) break;
diff --git a/kbabel/commonui/roughtransdlg.h b/kbabel/commonui/roughtransdlg.h
index 8c51d614..f18110c2 100644
--- a/kbabel/commonui/roughtransdlg.h
+++ b/kbabel/commonui/roughtransdlg.h
@@ -50,7 +50,7 @@ class TQHButtonGroup;
class TQRadioButton;
class TQVBox;
-class KDE_EXPORT RoughTransDlg : public KDialogBase
+class TDE_EXPORT RoughTransDlg : public KDialogBase
{
TQ_OBJECT
diff --git a/kbabel/commonui/tdeactionselector.cpp b/kbabel/commonui/tdeactionselector.cpp
index 7cb5160c..27fcd215 100644
--- a/kbabel/commonui/tdeactionselector.cpp
+++ b/kbabel/commonui/tdeactionselector.cpp
@@ -109,18 +109,18 @@ TDEActionSelector::TDEActionSelector( TQWidget *parent, const char *name )
loadIcons();
- connect( d->btnAdd, TQT_SIGNAL(clicked()), this, TQT_SLOT(buttonAddClicked()) );
- connect( d->btnRemove, TQT_SIGNAL(clicked()), this, TQT_SLOT(buttonRemoveClicked()) );
- connect( d->btnUp, TQT_SIGNAL(clicked()), this, TQT_SLOT(buttonUpClicked()) );
- connect( d->btnDown, TQT_SIGNAL(clicked()), this, TQT_SLOT(buttonDownClicked()) );
- connect( d->availableListBox, TQT_SIGNAL(doubleClicked(TQListBoxItem*)),
- this, TQT_SLOT(itemDoubleClicked(TQListBoxItem*)) );
- connect( d->selectedListBox, TQT_SIGNAL(doubleClicked(TQListBoxItem*)),
- this, TQT_SLOT(itemDoubleClicked(TQListBoxItem*)) );
- connect( d->availableListBox, TQT_SIGNAL(currentChanged(TQListBoxItem*)),
- this, TQT_SLOT(slotCurrentChanged(TQListBoxItem *)) );
- connect( d->selectedListBox, TQT_SIGNAL(currentChanged(TQListBoxItem*)),
- this, TQT_SLOT(slotCurrentChanged(TQListBoxItem *)) );
+ connect( d->btnAdd, TQ_SIGNAL(clicked()), this, TQ_SLOT(buttonAddClicked()) );
+ connect( d->btnRemove, TQ_SIGNAL(clicked()), this, TQ_SLOT(buttonRemoveClicked()) );
+ connect( d->btnUp, TQ_SIGNAL(clicked()), this, TQ_SLOT(buttonUpClicked()) );
+ connect( d->btnDown, TQ_SIGNAL(clicked()), this, TQ_SLOT(buttonDownClicked()) );
+ connect( d->availableListBox, TQ_SIGNAL(doubleClicked(TQListBoxItem*)),
+ this, TQ_SLOT(itemDoubleClicked(TQListBoxItem*)) );
+ connect( d->selectedListBox, TQ_SIGNAL(doubleClicked(TQListBoxItem*)),
+ this, TQ_SLOT(itemDoubleClicked(TQListBoxItem*)) );
+ connect( d->availableListBox, TQ_SIGNAL(currentChanged(TQListBoxItem*)),
+ this, TQ_SLOT(slotCurrentChanged(TQListBoxItem *)) );
+ connect( d->selectedListBox, TQ_SIGNAL(currentChanged(TQListBoxItem*)),
+ this, TQ_SLOT(slotCurrentChanged(TQListBoxItem *)) );
d->availableListBox->installEventFilter( this );
d->selectedListBox->installEventFilter( this );
diff --git a/kbabel/commonui/tdelisteditor.ui b/kbabel/commonui/tdelisteditor.ui
index a3130a1f..e0a7de23 100644
--- a/kbabel/commonui/tdelisteditor.ui
+++ b/kbabel/commonui/tdelisteditor.ui
@@ -242,10 +242,10 @@
<includes>
<include location="local" impldecl="in implementation">tdelisteditor.ui.h</include>
</includes>
-<Q_SIGNALS>
+<signals>
<signal>itemsChanged()</signal>
-</Q_SIGNALS>
-<Q_SLOTS>
+</signals>
+<slots>
<slot>addToList()</slot>
<slot>downInList()</slot>
<slot>removeFromList()</slot>
@@ -256,6 +256,6 @@
<slot access="protected">editChanged( const TQString &amp; s )</slot>
<slot>setTitle( const TQString &amp; s )</slot>
<slot returnType="TQStringList">list()</slot>
-</Q_SLOTS>
+</slots>
<layoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/kbabel/commonui/toolaction.cpp b/kbabel/commonui/toolaction.cpp
index 6e594834..d9245239 100644
--- a/kbabel/commonui/toolaction.cpp
+++ b/kbabel/commonui/toolaction.cpp
@@ -76,7 +76,7 @@ TQPtrList<TDEAction> ToolAction::dataToolActionList( const TQValueList<KDataTool
ToolAction * action = new ToolAction( *uit, (sc.isEmpty()?TQString():sc), *entry, *cit
, parent
, TQString(namePrefix+(*entry).service()->library()+"_"+(*cit)).utf8() );
- connect( action, TQT_SIGNAL( toolActivated( const KDataToolInfo &, const TQString & ) ),
+ connect( action, TQ_SIGNAL( toolActivated( const KDataToolInfo &, const TQString & ) ),
receiver, slot );
actionList.append( action );
diff --git a/kbabel/commonui/toolaction.h b/kbabel/commonui/toolaction.h
index de0f0227..de0fb688 100644
--- a/kbabel/commonui/toolaction.h
+++ b/kbabel/commonui/toolaction.h
@@ -39,7 +39,7 @@
class TDEShortcut;
class TDEActionCollection;
-class KDE_EXPORT ToolAction : public TDEAction
+class TDE_EXPORT ToolAction : public TDEAction
{
TQ_OBJECT
diff --git a/kbabel/commonui/toolselectionwidget.h b/kbabel/commonui/toolselectionwidget.h
index 8d11628f..9187715c 100644
--- a/kbabel/commonui/toolselectionwidget.h
+++ b/kbabel/commonui/toolselectionwidget.h
@@ -33,11 +33,11 @@
#define TOOLSELECTIONWIDGET_H
#include "tdeactionselector.h"
-#include <kdemacros.h>
+#include <tdemacros.h>
class KDataToolInfo;
-class KDE_EXPORT ToolSelectionWidget : public TDEActionSelector
+class TDE_EXPORT ToolSelectionWidget : public TDEActionSelector
{
TQ_OBJECT
diff --git a/kbabel/datatools/accelerators/main.cpp b/kbabel/datatools/accelerators/main.cpp
index 0c7cae3a..476bbdfd 100644
--- a/kbabel/datatools/accelerators/main.cpp
+++ b/kbabel/datatools/accelerators/main.cpp
@@ -64,20 +64,20 @@ bool AcceleratorTool::run( const TQString& command, void* data, const TQString&
{
kdDebug(KBABEL) << "Accelerator Tool does only accept the command 'validate'" << endl;
kdDebug(KBABEL) << " The commands " << command << " is not accepted" << endl;
- return FALSE;
+ return false;
}
// Check wether we can accept the data
if ( datatype != "CatalogItem" )
{
kdDebug(KBABEL) << "Accelerator Tool only accepts datatype CatalogItem" << endl;
- return FALSE;
+ return false;
}
if ( mimetype != "application/x-kbabel-catalogitem" )
{
kdDebug(KBABEL) << "Accelerator Tool only accepts mimetype application/x-kbabel-catalogitem" << endl;
- return FALSE;
+ return false;
}
if( command == "validate" )
@@ -131,7 +131,7 @@ bool AcceleratorTool::run( const TQString& command, void* data, const TQString&
return !hasError;
}
- return FALSE;
+ return false;
}
#include "main.moc"
diff --git a/kbabel/datatools/arguments/main.cpp b/kbabel/datatools/arguments/main.cpp
index b6c3fa5a..66896fbc 100644
--- a/kbabel/datatools/arguments/main.cpp
+++ b/kbabel/datatools/arguments/main.cpp
@@ -63,20 +63,20 @@ bool ArgumentTool::run( const TQString& command, void* data, const TQString& dat
{
kdDebug(KBABEL) << "Argument Tool does only accept the command 'validate' and 'shortcut'" << endl;
kdDebug(KBABEL) << " The commands " << command << " is not accepted" << endl;
- return FALSE;
+ return false;
}
// Check wether we can accept the data
if ( datatype != "CatalogItem" )
{
kdDebug(KBABEL) << "Argument Tool only accepts datatype CatalogItem" << endl;
- return FALSE;
+ return false;
}
if ( mimetype != "application/x-kbabel-catalogitem" )
{
kdDebug(KBABEL) << "Argument Tool only accepts mimetype application/x-kbabel-catalogitem" << endl;
- return FALSE;
+ return false;
}
if( command == "validate" )
@@ -271,7 +271,7 @@ bool ArgumentTool::run( const TQString& command, void* data, const TQString& dat
return !hasError;
}
- return FALSE;
+ return false;
}
#include "main.moc"
diff --git a/kbabel/datatools/context/main.cpp b/kbabel/datatools/context/main.cpp
index 0fb989d2..109b1084 100644
--- a/kbabel/datatools/context/main.cpp
+++ b/kbabel/datatools/context/main.cpp
@@ -64,20 +64,20 @@ bool ContextTool::run( const TQString& command, void* data, const TQString& data
{
kdDebug(KBABEL) << "Context Tool does only accept the command 'validate' and 'shortcut'" << endl;
kdDebug(KBABEL) << " The commands " << command << " is not accepted" << endl;
- return FALSE;
+ return false;
}
// Check wether we can accept the data
if ( datatype != "CatalogItem" )
{
kdDebug(KBABEL) << "Context Tool only accepts datatype CatalogItem" << endl;
- return FALSE;
+ return false;
}
if ( mimetype != "application/x-kbabel-catalogitem" )
{
kdDebug(KBABEL) << "Context Tool only accepts mimetype application/x-kbabel-catalogitem" << endl;
- return FALSE;
+ return false;
}
if( command == "validate" )
@@ -109,7 +109,7 @@ bool ContextTool::run( const TQString& command, void* data, const TQString& data
return !hasError;
}
- return FALSE;
+ return false;
}
#include "main.moc"
diff --git a/kbabel/datatools/equations/main.cpp b/kbabel/datatools/equations/main.cpp
index c0dbbba2..895bbd2d 100644
--- a/kbabel/datatools/equations/main.cpp
+++ b/kbabel/datatools/equations/main.cpp
@@ -64,20 +64,20 @@ bool EquationsTool::run( const TQString& command, void* data, const TQString& da
{
kdDebug(KBABEL) << "Equations Tool does only accept the command 'validate' and 'shortcut'" << endl;
kdDebug(KBABEL) << " The commands " << command << " is not accepted" << endl;
- return FALSE;
+ return false;
}
// Check wether we can accept the data
if ( datatype != "CatalogItem" )
{
kdDebug(KBABEL) << "Equations Tool only accepts datatype CatalogItem" << endl;
- return FALSE;
+ return false;
}
if ( mimetype != "application/x-kbabel-catalogitem" )
{
kdDebug(KBABEL) << "Equations Tool only accepts mimetype application/x-kbabel-catalogitem" << endl;
- return FALSE;
+ return false;
}
if( command == "validate" )
@@ -107,7 +107,7 @@ bool EquationsTool::run( const TQString& command, void* data, const TQString& da
return !hasError;
}
- return FALSE;
+ return false;
}
#include "main.moc"
diff --git a/kbabel/datatools/pluralforms/main.cpp b/kbabel/datatools/pluralforms/main.cpp
index 693a843b..65057631 100644
--- a/kbabel/datatools/pluralforms/main.cpp
+++ b/kbabel/datatools/pluralforms/main.cpp
@@ -65,20 +65,20 @@ bool PluralsTool::run( const TQString& command, void* data, const TQString& data
{
kdDebug(KBABEL) << "Plural Forms Tool does only accept the command 'validate' and 'shortcut'" << endl;
kdDebug(KBABEL) << " The commands " << command << " is not accepted" << endl;
- return FALSE;
+ return false;
}
// Check wether we can accept the data
if ( datatype != "CatalogItem" )
{
kdDebug(KBABEL) << "Plural Forms Tool only accepts datatype CatalogItem" << endl;
- return FALSE;
+ return false;
}
if ( mimetype != "application/x-kbabel-catalogitem" )
{
kdDebug(KBABEL) << "Plural Forms Tool only accepts mimetype application/x-kbabel-catalogitem" << endl;
- return FALSE;
+ return false;
}
if( command == "validate" )
@@ -123,7 +123,7 @@ bool PluralsTool::run( const TQString& command, void* data, const TQString& data
return !hasError;
}
- return FALSE;
+ return false;
}
#include "main.moc"
diff --git a/kbabel/datatools/punctuation/main.cpp b/kbabel/datatools/punctuation/main.cpp
index 6d779518..7f86e0ce 100644
--- a/kbabel/datatools/punctuation/main.cpp
+++ b/kbabel/datatools/punctuation/main.cpp
@@ -64,20 +64,20 @@ bool PunctuationTool::run( const TQString& command, void* data, const TQString&
{
kdDebug(KBABEL) << "Punctuation Tool does only accept the command 'validate'" << endl;
kdDebug(KBABEL) << " The commands " << command << " is not accepted" << endl;
- return FALSE;
+ return false;
}
// Check wether we can accept the data
if ( datatype != "CatalogItem" )
{
kdDebug(KBABEL) << "Punctuation Tool only accepts datatype CatalogItem" << endl;
- return FALSE;
+ return false;
}
if ( mimetype != "application/x-kbabel-catalogitem" )
{
kdDebug(KBABEL) << "Punctuation Tool only accepts mimetype application/x-kbabel-catalogitem" << endl;
- return FALSE;
+ return false;
}
if( command == "validate" )
@@ -151,7 +151,7 @@ bool PunctuationTool::run( const TQString& command, void* data, const TQString&
return !hasError;
}
- return FALSE;
+ return false;
}
#include "main.moc"
diff --git a/kbabel/datatools/setfuzzy/main.cpp b/kbabel/datatools/setfuzzy/main.cpp
index 7bc0ed16..8ff83492 100644
--- a/kbabel/datatools/setfuzzy/main.cpp
+++ b/kbabel/datatools/setfuzzy/main.cpp
@@ -60,20 +60,20 @@ bool SetFuzzyTool::run( const TQString& command, void* data, const TQString& dat
{
kdDebug(KBABEL) << "Fuzzy Toggling Tool does only accept the command 'allfuzzy'" << endl;
kdDebug(KBABEL) << " The commands " << command << " is not accepted" << endl;
- return FALSE;
+ return false;
}
// Check wether we can accept the data
if ( datatype != "Catalog" )
{
kdDebug(KBABEL) << "Fuzzy Toggling Tool only accepts datatype Catalog" << endl;
- return FALSE;
+ return false;
}
if ( mimetype != "application/x-kbabel-catalog" )
{
kdDebug(KBABEL) << "Plural Forms Tool only accepts mimetype application/x-kbabel-catalog" << endl;
- return FALSE;
+ return false;
}
if( command == "allfuzzy" )
@@ -92,7 +92,7 @@ bool SetFuzzyTool::run( const TQString& command, void* data, const TQString& dat
catalog->applyEndCommand(0,Msgstr,0);
}
- return TRUE;
+ return true;
}
#include "main.moc"
diff --git a/kbabel/datatools/xml/main.cpp b/kbabel/datatools/xml/main.cpp
index 59342c0d..07b65c3b 100644
--- a/kbabel/datatools/xml/main.cpp
+++ b/kbabel/datatools/xml/main.cpp
@@ -66,20 +66,20 @@ bool XMLTool::run( const TQString& command, void* data, const TQString& datatype
{
kdDebug(KBABEL) << "XML Tool does only accept the command 'validate' and 'shortcut'" << endl;
kdDebug(KBABEL) << " The commands " << command << " is not accepted" << endl;
- return FALSE;
+ return false;
}
// Check wether we can accept the data
if ( datatype != "CatalogItem" )
{
kdDebug(KBABEL) << "XML Tool only accepts datatype CatalogItem" << endl;
- return FALSE;
+ return false;
}
if ( mimetype != "application/x-kbabel-catalogitem" )
{
kdDebug(KBABEL) << "XML Tool only accepts mimetype application/x-kbabel-catalogitem" << endl;
- return FALSE;
+ return false;
}
if( command == "validate" )
@@ -168,7 +168,7 @@ bool XMLTool::run( const TQString& command, void* data, const TQString& datatype
return !hasError;
}
- return FALSE;
+ return false;
}
bool XMLTool::isFullyCompliant( const TQString& text)
diff --git a/kbabel/filters/gettext/gettextexport.cpp b/kbabel/filters/gettext/gettextexport.cpp
index 9b08bfd2..e0695bea 100644
--- a/kbabel/filters/gettext/gettextexport.cpp
+++ b/kbabel/filters/gettext/gettextexport.cpp
@@ -164,7 +164,7 @@ ConversionStatus GettextExportPlugin::save(const TQString& localFile , const TQS
stream << "\n";
- kapp->processEvents(10);
+ tdeApp->processEvents(10);
if( isStopped() )
{
return STOPPED;
@@ -181,7 +181,7 @@ ConversionStatus GettextExportPlugin::save(const TQString& localFile , const TQS
{
stream << (*oit) << "\n\n";
- kapp->processEvents(10);
+ tdeApp->processEvents(10);
if( isStopped() )
{
return STOPPED;
diff --git a/kbabel/filters/gettext/gettextimport.cpp b/kbabel/filters/gettext/gettextimport.cpp
index fb59fb4b..1f3ace87 100644
--- a/kbabel/filters/gettext/gettextimport.cpp
+++ b/kbabel/filters/gettext/gettextimport.cpp
@@ -171,7 +171,7 @@ ConversionStatus GettextImportPlugin::load(const TQString& filename, const TQStr
while( !stream.eof() )
{
- kapp->processEvents(10);
+ tdeApp->processEvents(10);
if( isStopped() )
{
return STOPPED;
diff --git a/kbabel/kbabel/charselectview.cpp b/kbabel/kbabel/charselectview.cpp
index 4522201e..8214dcf9 100644
--- a/kbabel/kbabel/charselectview.cpp
+++ b/kbabel/kbabel/charselectview.cpp
@@ -74,11 +74,11 @@ CharacterSelectorView::CharacterSelectorView(KBCatalog* catalog,TQWidget *parent
scroll->addChild(_table);
layout->addWidget (scroll);
- connect( _table, TQT_SIGNAL( doubleClicked() ), this, TQT_SLOT( emitChar() ) );
- connect( _tableNum, TQT_SIGNAL( valueChanged(int) ), this, TQT_SLOT( setTab(int) ));
+ connect( _table, TQ_SIGNAL( doubleClicked() ), this, TQ_SLOT( emitChar() ) );
+ connect( _tableNum, TQ_SIGNAL( valueChanged(int) ), this, TQ_SLOT( setTab(int) ));
- connect( _catalog, TQT_SIGNAL( signalFileOpened(bool) ), this, TQT_SLOT (setDisabled (bool)));
- connect( _catalog, TQT_SIGNAL( signalFileOpened(bool) ), _table, TQT_SLOT (setDisabled (bool)));
+ connect( _catalog, TQ_SIGNAL( signalFileOpened(bool) ), this, TQ_SLOT (setDisabled (bool)));
+ connect( _catalog, TQ_SIGNAL( signalFileOpened(bool) ), _table, TQ_SLOT (setDisabled (bool)));
TQWhatsThis::add(this,
i18n("<qt><p><b>Character Selector</b></p>"
diff --git a/kbabel/kbabel/commentview.cpp b/kbabel/kbabel/commentview.cpp
index 0ca858d3..27ac26fd 100644
--- a/kbabel/kbabel/commentview.cpp
+++ b/kbabel/kbabel/commentview.cpp
@@ -94,12 +94,12 @@ Hints from other translators are also sometimes contained in comments.</p>\n\
<b>Options->Show Comments</b>.</p></qt>"));
commentEdit->setReadOnly(true);
- connect(commentEdit,TQT_SIGNAL(signalUndoCmd(KBabel::EditCommand*)),this,TQT_SLOT(forwardCommentEditCmd(KBabel::EditCommand*)));
+ connect(commentEdit,TQ_SIGNAL(signalUndoCmd(KBabel::EditCommand*)),this,TQ_SLOT(forwardCommentEditCmd(KBabel::EditCommand*)));
- connect(commentEdit,TQT_SIGNAL(cursorPositionChanged(int,int))
- , this, TQT_SIGNAL(signalCursorPosChanged(int,int)));
+ connect(commentEdit,TQ_SIGNAL(cursorPositionChanged(int,int))
+ , this, TQ_SIGNAL(signalCursorPosChanged(int,int)));
- connect(_catalog, TQT_SIGNAL(signalFileOpened(bool)), this, TQT_SLOT(setDisabled(bool)));
+ connect(_catalog, TQ_SIGNAL(signalFileOpened(bool)), this, TQ_SLOT(setDisabled(bool)));
}
void CommentView::update(EditCommand* cmd, bool undo)
diff --git a/kbabel/kbabel/contextview.cpp b/kbabel/kbabel/contextview.cpp
index de5263a9..c6839480 100644
--- a/kbabel/kbabel/contextview.cpp
+++ b/kbabel/kbabel/contextview.cpp
@@ -67,7 +67,7 @@ ContextView::ContextView(KBCatalog* catalog,TQWidget *parent, Project::Ptr proje
"<p>You can hide the tools window by deactivating "
"<b>Options->Show Tools</b>.</p></qt></qt>"));
- connect(_catalog, TQT_SIGNAL(signalFileOpened(bool)), this, TQT_SLOT(setDisabled(bool)));
+ connect(_catalog, TQ_SIGNAL(signalFileOpened(bool)), this, TQ_SLOT(setDisabled(bool)));
}
void ContextView::updateView()
diff --git a/kbabel/kbabel/editorpreferences.ui b/kbabel/kbabel/editorpreferences.ui
index e0f4a612..3215a696 100644
--- a/kbabel/kbabel/editorpreferences.ui
+++ b/kbabel/kbabel/editorpreferences.ui
@@ -342,9 +342,9 @@ activated, you will still see a message in the statusbar.
<include location="global" impldecl="in implementation">kcolorbutton.h</include>
<include location="local" impldecl="in implementation">editorpreferences.ui.h</include>
</includes>
-<Q_SLOTS>
+<slots>
<slot specifier="non virtual">ledWarning( bool show )</slot>
<slot specifier="non virtual">toggleOther( bool other )</slot>
-</Q_SLOTS>
+</slots>
<layoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/kbabel/kbabel/fontpreferences.ui b/kbabel/kbabel/fontpreferences.ui
index 404f0580..a6998eb7 100644
--- a/kbabel/kbabel/fontpreferences.ui
+++ b/kbabel/kbabel/fontpreferences.ui
@@ -57,8 +57,8 @@
<include location="local" impldecl="in implementation">fontpreferences.ui.h</include>
<include location="global" impldecl="in implementation">tdefontdialog.h</include>
</includes>
-<Q_SLOTS>
+<slots>
<slot access="private">showOnlyFixedFonts( bool on )</slot>
-</Q_SLOTS>
+</slots>
<layoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/kbabel/kbabel/headereditor.cpp b/kbabel/kbabel/headereditor.cpp
index 4a7624cb..9b63f071 100644
--- a/kbabel/kbabel/headereditor.cpp
+++ b/kbabel/kbabel/headereditor.cpp
@@ -54,8 +54,8 @@ HeaderEditor::HeaderEditor(Catalog* cat,const char* name)
restoreSettings();
_catalog=cat;
- connect(_catalog,TQT_SIGNAL(signalFileOpened(bool)),this,TQT_SLOT(readHeader(bool)));
- connect(_catalog,TQT_SIGNAL(signalHeaderChanged()),this,TQT_SLOT(updateHeader()));
+ connect(_catalog,TQ_SIGNAL(signalFileOpened(bool)),this,TQ_SLOT(readHeader(bool)));
+ connect(_catalog,TQ_SIGNAL(signalHeaderChanged()),this,TQ_SLOT(updateHeader()));
setButtonText(User1,i18n("&Apply Settings"));
setButtonWhatsThis (User1, i18n("<qt><p>This button "
diff --git a/kbabel/kbabel/hidingmsgedit.cpp b/kbabel/kbabel/hidingmsgedit.cpp
index 11bf219c..13d3ce2f 100644
--- a/kbabel/kbabel/hidingmsgedit.cpp
+++ b/kbabel/kbabel/hidingmsgedit.cpp
@@ -54,8 +54,8 @@ HidingMsgEdit::HidingMsgEdit(uint numberOfPlurals, TQWidget* eventFilter, KSpell
_allEdits.clear();
setNumberOfPlurals( _numberOfPlurals );
- connect( _multipleEdit, TQT_SIGNAL(currentChanged( TQWidget* )),
- this, TQT_SLOT( newCurrentMultiple( TQWidget* )));
+ connect( _multipleEdit, TQ_SIGNAL(currentChanged( TQWidget* )),
+ this, TQ_SLOT( newCurrentMultiple( TQWidget* )));
showSingle();
}
@@ -189,12 +189,12 @@ void HidingMsgEdit::setNumberOfPlurals( uint numberOfPlurals )
for( MsgMultiLineEdit* e = _allEdits.first() ; e ; e = _allEdits.next() )
{
- connect( e, TQT_SIGNAL( signalUndoCmd( KBabel::EditCommand* )),
- this, TQT_SIGNAL( signalUndoCmd( KBabel::EditCommand* )));
- connect( e, TQT_SIGNAL( textChanged() ) , this, TQT_SIGNAL( textChanged() ));
- connect( e, TQT_SIGNAL( textChanged() ) , this, TQT_SLOT( emitTextChanged() ));
- connect( e, TQT_SIGNAL( cursorPositionChanged( int, int )),
- this, TQT_SLOT( emitCursorPositionChanged( int, int )) );
+ connect( e, TQ_SIGNAL( signalUndoCmd( KBabel::EditCommand* )),
+ this, TQ_SIGNAL( signalUndoCmd( KBabel::EditCommand* )));
+ connect( e, TQ_SIGNAL( textChanged() ) , this, TQ_SIGNAL( textChanged() ));
+ connect( e, TQ_SIGNAL( textChanged() ) , this, TQ_SLOT( emitTextChanged() ));
+ connect( e, TQ_SIGNAL( cursorPositionChanged( int, int )),
+ this, TQ_SLOT( emitCursorPositionChanged( int, int )) );
}
showPlurals( plurals );
diff --git a/kbabel/kbabel/kbabel.cpp b/kbabel/kbabel/kbabel.cpp
index 2bf4b2a0..4666ba9a 100644
--- a/kbabel/kbabel/kbabel.cpp
+++ b/kbabel/kbabel/kbabel.cpp
@@ -171,8 +171,8 @@ void KBabelMW::init(KBCatalog* catalog)
prefDialogs.setAutoDelete(true);
_statusbarTimer = new TQTimer(this, "statusbartimer");
- connect(_statusbarTimer,TQT_SIGNAL(timeout()),this
- ,TQT_SLOT(clearStatusbarMsg()));
+ connect(_statusbarTimer,TQ_SIGNAL(timeout()),this
+ ,TQ_SLOT(clearStatusbarMsg()));
// FIXME:
Q_ASSERT(_project);
@@ -206,74 +206,74 @@ void KBabelMW::init(KBCatalog* catalog)
}
- connect(catalog,TQT_SIGNAL(signalUndoAvailable(bool)),this
- ,TQT_SLOT(enableUndo(bool)));
- connect(catalog,TQT_SIGNAL(signalRedoAvailable(bool)),this
- ,TQT_SLOT(enableRedo(bool)));
- connect(catalog,TQT_SIGNAL(signalNumberOfFuzziesChanged(uint)),this
- ,TQT_SLOT(setNumberOfFuzzies(uint)));
- connect(catalog,TQT_SIGNAL(signalNumberOfUntranslatedChanged(uint)),this
- ,TQT_SLOT(setNumberOfUntranslated(uint)));
- connect(catalog,TQT_SIGNAL(signalTotalNumberChanged(uint)),this
- ,TQT_SLOT(setNumberOfTotal(uint)));
- connect(catalog,TQT_SIGNAL(signalProgress(int)),_progressBar,TQT_SLOT(setProgress(int)));
- connect(catalog,TQT_SIGNAL(signalClearProgressBar()),TQT_TQOBJECT(this),TQT_SLOT(clearProgressBar()));
- connect(catalog,TQT_SIGNAL(signalResetProgressBar(TQString,int))
- ,TQT_TQOBJECT(this),TQT_SLOT(prepareProgressBar(TQString,int)));
- connect(catalog,TQT_SIGNAL(signalFileOpened(bool)),TQT_TQOBJECT(this),TQT_SLOT(enableDefaults(bool)));
- connect(catalog,TQT_SIGNAL(signalFileOpened(bool)),m_view,TQT_SLOT(newFileOpened(bool)));
- connect(catalog,TQT_SIGNAL(signalModified(bool)),TQT_TQOBJECT(this),TQT_SLOT(showModified(bool)));
+ connect(catalog,TQ_SIGNAL(signalUndoAvailable(bool)),this
+ ,TQ_SLOT(enableUndo(bool)));
+ connect(catalog,TQ_SIGNAL(signalRedoAvailable(bool)),this
+ ,TQ_SLOT(enableRedo(bool)));
+ connect(catalog,TQ_SIGNAL(signalNumberOfFuzziesChanged(uint)),this
+ ,TQ_SLOT(setNumberOfFuzzies(uint)));
+ connect(catalog,TQ_SIGNAL(signalNumberOfUntranslatedChanged(uint)),this
+ ,TQ_SLOT(setNumberOfUntranslated(uint)));
+ connect(catalog,TQ_SIGNAL(signalTotalNumberChanged(uint)),this
+ ,TQ_SLOT(setNumberOfTotal(uint)));
+ connect(catalog,TQ_SIGNAL(signalProgress(int)),_progressBar,TQ_SLOT(setProgress(int)));
+ connect(catalog,TQ_SIGNAL(signalClearProgressBar()),this,TQ_SLOT(clearProgressBar()));
+ connect(catalog,TQ_SIGNAL(signalResetProgressBar(TQString,int))
+ ,this,TQ_SLOT(prepareProgressBar(TQString,int)));
+ connect(catalog,TQ_SIGNAL(signalFileOpened(bool)),this,TQ_SLOT(enableDefaults(bool)));
+ connect(catalog,TQ_SIGNAL(signalFileOpened(bool)),m_view,TQ_SLOT(newFileOpened(bool)));
+ connect(catalog,TQ_SIGNAL(signalModified(bool)),this,TQ_SLOT(showModified(bool)));
// allow the view to change the statusbar and caption
- connect(m_view, TQT_SIGNAL(signalChangeStatusbar(const TQString&)),
- TQT_TQOBJECT(this), TQT_SLOT(changeStatusbar(const TQString&)));
- connect(m_view, TQT_SIGNAL(signalChangeCaption(const TQString&)),
- TQT_TQOBJECT(this), TQT_SLOT(changeCaption(const TQString&)));
- connect(m_view,TQT_SIGNAL(signalFirstDisplayed(bool, bool)),this
- ,TQT_SLOT(firstEntryDisplayed(bool, bool)));
- connect(m_view,TQT_SIGNAL(signalLastDisplayed(bool, bool)),this
- ,TQT_SLOT(lastEntryDisplayed(bool, bool)));
- connect(m_view,TQT_SIGNAL(signalFuzzyDisplayed(bool)),this
- ,TQT_SLOT(fuzzyDisplayed(bool)));
- connect(m_view,TQT_SIGNAL(signalUntranslatedDisplayed(bool)),this
- ,TQT_SLOT(untranslatedDisplayed(bool)));
- connect(m_view,TQT_SIGNAL(signalFaultyDisplayed(bool)),this
- ,TQT_SLOT(faultyDisplayed(bool)));
- connect(m_view,TQT_SIGNAL(signalDisplayed(const KBabel::DocPosition&)),this
- ,TQT_SLOT(displayedEntryChanged(const KBabel::DocPosition&)));
- connect(m_view,TQT_SIGNAL(signalFuzzyAfterwards(bool)),this
- ,TQT_SLOT(hasFuzzyAfterwards(bool)));
- connect(m_view,TQT_SIGNAL(signalFuzzyInFront(bool)),this
- ,TQT_SLOT(hasFuzzyInFront(bool)));
- connect(m_view,TQT_SIGNAL(signalUntranslatedAfterwards(bool)),this
- ,TQT_SLOT(hasUntranslatedAfterwards(bool)));
- connect(m_view,TQT_SIGNAL(signalUntranslatedInFront(bool)),this
- ,TQT_SLOT(hasUntranslatedInFront(bool)));
- connect(m_view,TQT_SIGNAL(signalErrorAfterwards(bool)),this
- ,TQT_SLOT(hasErrorAfterwards(bool)));
- connect(m_view,TQT_SIGNAL(signalErrorInFront(bool)),this
- ,TQT_SLOT(hasErrorInFront(bool)));
- connect(m_view,TQT_SIGNAL(signalBackHistory(bool)),this
- ,TQT_SLOT(enableBackHistory(bool)));
- connect(m_view,TQT_SIGNAL(signalForwardHistory(bool)),this
- ,TQT_SLOT(enableForwardHistory(bool)));
-
-
- connect(m_view,TQT_SIGNAL(ledColorChanged(const TQColor&)),this
- ,TQT_SLOT(setLedColor(const TQColor&)));
-
-
- connect(m_view,TQT_SIGNAL(signalSearchActive(bool)),TQT_TQOBJECT(this),TQT_SLOT(enableStop(bool)));
-
- connect(m_view,TQT_SIGNAL(signalProgress(int)),_progressBar,TQT_SLOT(setProgress(int)));
- connect(m_view,TQT_SIGNAL(signalClearProgressBar()),TQT_TQOBJECT(this),TQT_SLOT(clearProgressBar()));
- connect(m_view,TQT_SIGNAL(signalResetProgressBar(TQString,int))
- ,TQT_TQOBJECT(this),TQT_SLOT(prepareProgressBar(TQString,int)));
-
- connect(m_view,TQT_SIGNAL(signalDictionariesChanged())
- , TQT_TQOBJECT(this), TQT_SLOT(buildDictMenus()));
- connect(m_view,TQT_SIGNAL(signalCursorPosChanged(int,int)), this
- , TQT_SLOT(updateCursorPosition(int,int)));
+ connect(m_view, TQ_SIGNAL(signalChangeStatusbar(const TQString&)),
+ this, TQ_SLOT(changeStatusbar(const TQString&)));
+ connect(m_view, TQ_SIGNAL(signalChangeCaption(const TQString&)),
+ this, TQ_SLOT(changeCaption(const TQString&)));
+ connect(m_view,TQ_SIGNAL(signalFirstDisplayed(bool, bool)),this
+ ,TQ_SLOT(firstEntryDisplayed(bool, bool)));
+ connect(m_view,TQ_SIGNAL(signalLastDisplayed(bool, bool)),this
+ ,TQ_SLOT(lastEntryDisplayed(bool, bool)));
+ connect(m_view,TQ_SIGNAL(signalFuzzyDisplayed(bool)),this
+ ,TQ_SLOT(fuzzyDisplayed(bool)));
+ connect(m_view,TQ_SIGNAL(signalUntranslatedDisplayed(bool)),this
+ ,TQ_SLOT(untranslatedDisplayed(bool)));
+ connect(m_view,TQ_SIGNAL(signalFaultyDisplayed(bool)),this
+ ,TQ_SLOT(faultyDisplayed(bool)));
+ connect(m_view,TQ_SIGNAL(signalDisplayed(const KBabel::DocPosition&)),this
+ ,TQ_SLOT(displayedEntryChanged(const KBabel::DocPosition&)));
+ connect(m_view,TQ_SIGNAL(signalFuzzyAfterwards(bool)),this
+ ,TQ_SLOT(hasFuzzyAfterwards(bool)));
+ connect(m_view,TQ_SIGNAL(signalFuzzyInFront(bool)),this
+ ,TQ_SLOT(hasFuzzyInFront(bool)));
+ connect(m_view,TQ_SIGNAL(signalUntranslatedAfterwards(bool)),this
+ ,TQ_SLOT(hasUntranslatedAfterwards(bool)));
+ connect(m_view,TQ_SIGNAL(signalUntranslatedInFront(bool)),this
+ ,TQ_SLOT(hasUntranslatedInFront(bool)));
+ connect(m_view,TQ_SIGNAL(signalErrorAfterwards(bool)),this
+ ,TQ_SLOT(hasErrorAfterwards(bool)));
+ connect(m_view,TQ_SIGNAL(signalErrorInFront(bool)),this
+ ,TQ_SLOT(hasErrorInFront(bool)));
+ connect(m_view,TQ_SIGNAL(signalBackHistory(bool)),this
+ ,TQ_SLOT(enableBackHistory(bool)));
+ connect(m_view,TQ_SIGNAL(signalForwardHistory(bool)),this
+ ,TQ_SLOT(enableForwardHistory(bool)));
+
+
+ connect(m_view,TQ_SIGNAL(ledColorChanged(const TQColor&)),this
+ ,TQ_SLOT(setLedColor(const TQColor&)));
+
+
+ connect(m_view,TQ_SIGNAL(signalSearchActive(bool)),this,TQ_SLOT(enableStop(bool)));
+
+ connect(m_view,TQ_SIGNAL(signalProgress(int)),_progressBar,TQ_SLOT(setProgress(int)));
+ connect(m_view,TQ_SIGNAL(signalClearProgressBar()),this,TQ_SLOT(clearProgressBar()));
+ connect(m_view,TQ_SIGNAL(signalResetProgressBar(TQString,int))
+ ,this,TQ_SLOT(prepareProgressBar(TQString,int)));
+
+ connect(m_view,TQ_SIGNAL(signalDictionariesChanged())
+ , this, TQ_SLOT(buildDictMenus()));
+ connect(m_view,TQ_SIGNAL(signalCursorPosChanged(int,int)), this
+ , TQ_SLOT(updateCursorPosition(int,int)));
if(!catalog->currentURL().isEmpty())
{
@@ -296,14 +296,14 @@ void KBabelMW::init(KBCatalog* catalog)
// the earlier created TDEAction for "clear_bookmarks" is now reconnected
TDEAction* action = actionCollection()->action("clear_bookmarks");
if (action) {
- action->disconnect(TQT_SIGNAL(activated()));
- connect(action, TQT_SIGNAL(activated()),
- bmHandler, TQT_SLOT(slotClearBookmarks()));
+ action->disconnect(TQ_SIGNAL(activated()));
+ connect(action, TQ_SIGNAL(activated()),
+ bmHandler, TQ_SLOT(slotClearBookmarks()));
}
- connect(bmHandler, TQT_SIGNAL(signalBookmarkSelected(int)),
- TQT_TQOBJECT(this), TQT_SLOT(slotOpenBookmark(int)));
- connect(m_view, TQT_SIGNAL(signalNewFileOpened(KURL)),
- bmHandler, TQT_SLOT(slotClearBookmarks()));
+ connect(bmHandler, TQ_SIGNAL(signalBookmarkSelected(int)),
+ this, TQ_SLOT(slotOpenBookmark(int)));
+ connect(m_view, TQ_SIGNAL(signalNewFileOpened(KURL)),
+ bmHandler, TQ_SLOT(slotClearBookmarks()));
_config = TDESharedConfig::openConfig( "kbabelrc" );
restoreSettings();
@@ -335,7 +335,7 @@ void KBabelMW::init(KBCatalog* catalog)
"set to %1. You may want to change this setting "
"according to the settings of your language team.").arg(encodingStr));
- TQTimer::singleShot(1,TQT_TQOBJECT(this),TQT_SLOT(projectConfigure()));
+ TQTimer::singleShot(1,this,TQ_SLOT(projectConfigure()));
}
_config->writeEntry("Version",VERSION);
@@ -404,289 +404,289 @@ void KBabelMW::setupActions()
TDEAction* action;
// the file menu
- action = KStdAction::open(TQT_TQOBJECT(this), TQT_SLOT(fileOpen()), actionCollection());
+ action = KStdAction::open(this, TQ_SLOT(fileOpen()), actionCollection());
- a_recent = KStdAction::openRecent(TQT_TQOBJECT(this), TQT_SLOT(openRecent(const KURL&)), actionCollection());
+ a_recent = KStdAction::openRecent(this, TQ_SLOT(openRecent(const KURL&)), actionCollection());
a_recent->setMaxItems(MAX_RECENT);
- action = KStdAction::revert(TQT_TQOBJECT(m_view),TQT_SLOT(revertToSaved()),actionCollection());
- action=KStdAction::save(TQT_TQOBJECT(this), TQT_SLOT(fileSave()), actionCollection());
- action = KStdAction::saveAs(TQT_TQOBJECT(this), TQT_SLOT(fileSaveAs()), actionCollection());
- action = new TDEAction(i18n("Save Sp&ecial..."), 0, TQT_TQOBJECT(this), TQT_SLOT(fileSaveSpecial()),
+ action = KStdAction::revert(m_view,TQ_SLOT(revertToSaved()),actionCollection());
+ action=KStdAction::save(this, TQ_SLOT(fileSave()), actionCollection());
+ action = KStdAction::saveAs(this, TQ_SLOT(fileSaveAs()), actionCollection());
+ action = new TDEAction(i18n("Save Sp&ecial..."), 0, this, TQ_SLOT(fileSaveSpecial()),
actionCollection(), "save_special" );
- action = new TDEAction(i18n("Set &Package..."), 0, TQT_TQOBJECT(m_view), TQT_SLOT(setFilePackage()),
+ action = new TDEAction(i18n("Set &Package..."), 0, m_view, TQ_SLOT(setFilePackage()),
actionCollection(), "set_package" );
- action = KStdAction::mail(TQT_TQOBJECT(this), TQT_SLOT(fileMail()), actionCollection());
+ action = KStdAction::mail(this, TQ_SLOT(fileMail()), actionCollection());
- action = new TDEAction(i18n("&New View"), 0, TQT_TQOBJECT(this), TQT_SLOT(fileNewView()),
+ action = new TDEAction(i18n("&New View"), 0, this, TQ_SLOT(fileNewView()),
actionCollection(), "file_new_view");
- action = new TDEAction(i18n("New &Window"), 0, TQT_TQOBJECT(this), TQT_SLOT(fileNewWindow()),
+ action = new TDEAction(i18n("New &Window"), 0, this, TQ_SLOT(fileNewWindow()),
actionCollection(), "file_new_window");
action->setShortcut( TDEStdAccel::openNew() );
- action = KStdAction::quit(TQT_TQOBJECT(this), TQT_SLOT(quit()), actionCollection());
+ action = KStdAction::quit(this, TQ_SLOT(quit()), actionCollection());
// the edit menu
- action = KStdAction::undo(TQT_TQOBJECT(m_view), TQT_SLOT(undo()), actionCollection());
- action = KStdAction::redo(TQT_TQOBJECT(m_view), TQT_SLOT(redo()), actionCollection());
- action = KStdAction::cut(TQT_TQOBJECT(m_view), TQT_SIGNAL(signalCut()), actionCollection());
- action = KStdAction::copy(TQT_TQOBJECT(m_view), TQT_SIGNAL(signalCopy()), actionCollection());
- action = KStdAction::paste(TQT_TQOBJECT(m_view), TQT_SIGNAL(signalPaste()), actionCollection());
- action = KStdAction::selectAll(TQT_TQOBJECT(m_view), TQT_SIGNAL(signalSelectAll()), actionCollection());
- action = KStdAction::find(TQT_TQOBJECT(m_view), TQT_SLOT(find()), actionCollection());
- action = KStdAction::findNext(TQT_TQOBJECT(m_view), TQT_SLOT(findNext()), actionCollection());
- action = KStdAction::findPrev(TQT_TQOBJECT(m_view), TQT_SLOT(findPrev()), actionCollection());
- action = KStdAction::replace(TQT_TQOBJECT(m_view), TQT_SLOT(replace()), actionCollection());
-
- action = KStdAction::clear( TQT_TQOBJECT(m_view), TQT_SLOT(clear()), actionCollection(), "clear" );
-
- action = new TDEAction(i18n("Cop&y Msgid to Msgstr"), "msgid2msgstr", CTRL+Key_Space, TQT_TQOBJECT(m_view)
- ,TQT_SLOT(msgid2msgstr()), actionCollection(), "msgid2msgstr");
+ action = KStdAction::undo(m_view, TQ_SLOT(undo()), actionCollection());
+ action = KStdAction::redo(m_view, TQ_SLOT(redo()), actionCollection());
+ action = KStdAction::cut(m_view, TQ_SIGNAL(signalCut()), actionCollection());
+ action = KStdAction::copy(m_view, TQ_SIGNAL(signalCopy()), actionCollection());
+ action = KStdAction::paste(m_view, TQ_SIGNAL(signalPaste()), actionCollection());
+ action = KStdAction::selectAll(m_view, TQ_SIGNAL(signalSelectAll()), actionCollection());
+ action = KStdAction::find(m_view, TQ_SLOT(find()), actionCollection());
+ action = KStdAction::findNext(m_view, TQ_SLOT(findNext()), actionCollection());
+ action = KStdAction::findPrev(m_view, TQ_SLOT(findPrev()), actionCollection());
+ action = KStdAction::replace(m_view, TQ_SLOT(replace()), actionCollection());
+
+ action = KStdAction::clear( m_view, TQ_SLOT(clear()), actionCollection(), "clear" );
+
+ action = new TDEAction(i18n("Cop&y Msgid to Msgstr"), "msgid2msgstr", CTRL+Key_Space, m_view
+ ,TQ_SLOT(msgid2msgstr()), actionCollection(), "msgid2msgstr");
action = new TDEAction(i18n("Copy Searc&h Result to Msgstr"), "search2msgstr",
- CTRL+ALT+Key_Space, TQT_TQOBJECT(m_view), TQT_SLOT(search2msgstr()),
+ CTRL+ALT+Key_Space, m_view, TQ_SLOT(search2msgstr()),
actionCollection(), "search2msgstr");
- action = new TDEAction(i18n("Copy Msgstr to Other &Plurals"), Key_F11, TQT_TQOBJECT(m_view)
- ,TQT_SLOT(plural2msgstr()), actionCollection(), "plural2msgstr");
- action = new TDEAction(i18n("Copy Selected Character to Msgstr"), Key_F10, TQT_TQOBJECT(m_charselectorview)
- ,TQT_SLOT(emitChar()), actionCollection(), "char2msgstr");
-
- a_unsetFuzzy = new TDEAction(i18n("To&ggle Fuzzy Status"), "togglefuzzy", CTRL+Key_U, TQT_TQOBJECT(m_view)
- , TQT_SLOT(removeFuzzyStatus()), actionCollection(), "edit_toggle_fuzzy");
- action = new TDEAction(i18n("&Edit Header..."), 0, TQT_TQOBJECT(m_view), TQT_SLOT(editHeader()),
+ action = new TDEAction(i18n("Copy Msgstr to Other &Plurals"), Key_F11, m_view
+ ,TQ_SLOT(plural2msgstr()), actionCollection(), "plural2msgstr");
+ action = new TDEAction(i18n("Copy Selected Character to Msgstr"), Key_F10, m_charselectorview
+ ,TQ_SLOT(emitChar()), actionCollection(), "char2msgstr");
+
+ a_unsetFuzzy = new TDEAction(i18n("To&ggle Fuzzy Status"), "togglefuzzy", CTRL+Key_U, m_view
+ , TQ_SLOT(removeFuzzyStatus()), actionCollection(), "edit_toggle_fuzzy");
+ action = new TDEAction(i18n("&Edit Header..."), 0, m_view, TQ_SLOT(editHeader()),
actionCollection(), "edit_edit_header");
action = new TDEAction(i18n("&Insert Next Tag"), "insert_tag", CTRL+ALT+Key_N
- , TQT_TQOBJECT(m_view), TQT_SLOT(insertNextTag())
+ , m_view, TQ_SLOT(insertNextTag())
, actionCollection(),"insert_next_tag");
- connect(m_view,TQT_SIGNAL(signalNextTagAvailable(bool)),action
- ,TQT_SLOT(setEnabled(bool)));
+ connect(m_view,TQ_SIGNAL(signalNextTagAvailable(bool)),action
+ ,TQ_SLOT(setEnabled(bool)));
action = new TDEAction(i18n("Insert Next Tag From Msgid P&osition"), "insert_tag", CTRL+Key_M
- , TQT_TQOBJECT(m_view), TQT_SLOT(insertNextTagMsgid())
+ , m_view, TQ_SLOT(insertNextTagMsgid())
, actionCollection(),"insert_next_tag_msgid");
- connect(m_view,TQT_SIGNAL(signalNextTagAvailable(bool)),action
- ,TQT_SLOT(setEnabled(bool)));
+ connect(m_view,TQ_SIGNAL(signalNextTagAvailable(bool)),action
+ ,TQ_SLOT(setEnabled(bool)));
TDEActionMenu *actionMenu= new TDEActionMenu(i18n("Inser&t Tag"), "insert_tag"
, actionCollection(),"insert_tag");
m_view->setTagsMenu(actionMenu->popupMenu());
- connect(m_view,TQT_SIGNAL(signalTagsAvailable(bool)),actionMenu
- ,TQT_SLOT(setEnabled(bool)));
- connect(actionMenu,TQT_SIGNAL(activated()),m_view,TQT_SLOT(insertNextTag()));
+ connect(m_view,TQ_SIGNAL(signalTagsAvailable(bool)),actionMenu
+ ,TQ_SLOT(setEnabled(bool)));
+ connect(actionMenu,TQ_SIGNAL(activated()),m_view,TQ_SLOT(insertNextTag()));
action = new TDEAction(i18n("Show Tags Menu"),CTRL+Key_Less
- , TQT_TQOBJECT(m_view), TQT_SLOT(showTagsMenu()), actionCollection(),"show_tags_menu");
+ , m_view, TQ_SLOT(showTagsMenu()), actionCollection(),"show_tags_menu");
action->setEnabled(false);
- connect(m_view,TQT_SIGNAL(signalTagsAvailable(bool)),action
- ,TQT_SLOT(setEnabled(bool)));
+ connect(m_view,TQ_SIGNAL(signalTagsAvailable(bool)),action
+ ,TQ_SLOT(setEnabled(bool)));
action = new TDEAction(i18n("Move to Next Tag"), 0, CTRL+ALT+Key_M
- , TQT_TQOBJECT(m_view), TQT_SLOT(skipToNextTag())
+ , m_view, TQ_SLOT(skipToNextTag())
, actionCollection(),"move_to_next_tag");
action = new TDEAction(i18n("Move to Previous Tag"), 0, CTRL+ALT+Key_B
- , TQT_TQOBJECT(m_view), TQT_SLOT(skipToPreviousTag())
+ , m_view, TQ_SLOT(skipToPreviousTag())
, actionCollection(),"move_to_prev_tag");
action = new TDEAction(i18n("Insert Next Argument"), "insert_arg", CTRL+ALT+Key_G
- , TQT_TQOBJECT(m_view), TQT_SLOT(insertNextArg())
+ , m_view, TQ_SLOT(insertNextArg())
, actionCollection(),"insert_next_arg");
- connect(m_view,TQT_SIGNAL(signalNextArgAvailable(bool)),action
- ,TQT_SLOT(setEnabled(bool)));
+ connect(m_view,TQ_SIGNAL(signalNextArgAvailable(bool)),action
+ ,TQ_SLOT(setEnabled(bool)));
actionMenu= new TDEActionMenu(i18n("Inser&t Argument"), "insert_arg"
, actionCollection(),"insert_arg");
m_view->setArgsMenu(actionMenu->popupMenu());
- connect(m_view,TQT_SIGNAL(signalArgsAvailable(bool)),actionMenu
- ,TQT_SLOT(setEnabled(bool)));
- connect(actionMenu,TQT_SIGNAL(activated()),m_view,TQT_SLOT(insertNextArg()));
+ connect(m_view,TQ_SIGNAL(signalArgsAvailable(bool)),actionMenu
+ ,TQ_SLOT(setEnabled(bool)));
+ connect(actionMenu,TQ_SIGNAL(activated()),m_view,TQ_SLOT(insertNextArg()));
action = new TDEAction(i18n("Show Arguments Menu"),CTRL+Key_Percent
- , TQT_TQOBJECT(m_view), TQT_SLOT(showArgsMenu()), actionCollection(),"show_args_menu");
+ , m_view, TQ_SLOT(showArgsMenu()), actionCollection(),"show_args_menu");
action->setEnabled(false);
- connect(m_view,TQT_SIGNAL(signalArgsAvailable(bool)),action
- ,TQT_SLOT(setEnabled(bool)));
+ connect(m_view,TQ_SIGNAL(signalArgsAvailable(bool)),action
+ ,TQ_SLOT(setEnabled(bool)));
// next, the go-menu
action = new TDEAction(i18n("&Previous"), "go-previous",
- TDEStdAccel::shortcut(TDEStdAccel::Prior), TQT_TQOBJECT(m_view) , TQT_SLOT(gotoPrev()),
+ TDEStdAccel::shortcut(TDEStdAccel::Prior), m_view , TQ_SLOT(gotoPrev()),
actionCollection(),"go_prev_entry");
action = new TDEAction(i18n("&Next"), "go-next",
- TDEStdAccel::shortcut(TDEStdAccel::Next), TQT_TQOBJECT(m_view) , TQT_SLOT(gotoNext()),
+ TDEStdAccel::shortcut(TDEStdAccel::Next), m_view , TQ_SLOT(gotoNext()),
actionCollection(),"go_next_entry");
- action = KStdAction::goTo(TQT_TQOBJECT(m_view), TQT_SLOT(gotoEntry()), actionCollection());
+ action = KStdAction::goTo(m_view, TQ_SLOT(gotoEntry()), actionCollection());
action->setShortcut( TDEStdAccel::gotoLine());
- action = KStdAction::firstPage(TQT_TQOBJECT(m_view), TQT_SLOT(gotoFirst()),actionCollection());
+ action = KStdAction::firstPage(m_view, TQ_SLOT(gotoFirst()),actionCollection());
action->setText(i18n("&First Entry"));
action->setShortcut(CTRL+ALT+Key_Home);
- action = KStdAction::lastPage(TQT_TQOBJECT(m_view), TQT_SLOT(gotoLast()),actionCollection());
+ action = KStdAction::lastPage(m_view, TQ_SLOT(gotoLast()),actionCollection());
action->setText(i18n("&Last Entry"));
action->setShortcut(CTRL+ALT+Key_End);
a_prevFoU = new TDEAction(i18n("P&revious Fuzzy or Untranslated"),"prevfuzzyuntrans",
- CTRL+SHIFT+Key_Prior, TQT_TQOBJECT(m_view),
- TQT_SLOT(gotoPrevFuzzyOrUntrans()),actionCollection(), "go_prev_fuzzyUntr");
+ CTRL+SHIFT+Key_Prior, m_view,
+ TQ_SLOT(gotoPrevFuzzyOrUntrans()),actionCollection(), "go_prev_fuzzyUntr");
a_nextFoU = new TDEAction(i18n("N&ext Fuzzy or Untranslated"),"nextfuzzyuntrans",
- CTRL+SHIFT+Key_Next, TQT_TQOBJECT(m_view),
- TQT_SLOT(gotoNextFuzzyOrUntrans()),actionCollection(), "go_next_fuzzyUntr");
+ CTRL+SHIFT+Key_Next, m_view,
+ TQ_SLOT(gotoNextFuzzyOrUntrans()),actionCollection(), "go_next_fuzzyUntr");
a_prevFuzzy = new TDEAction(i18n("Pre&vious Fuzzy"),"prevfuzzy",
- CTRL+Key_Prior, TQT_TQOBJECT(m_view),
- TQT_SLOT(gotoPrevFuzzy()),actionCollection(), "go_prev_fuzzy");
+ CTRL+Key_Prior, m_view,
+ TQ_SLOT(gotoPrevFuzzy()),actionCollection(), "go_prev_fuzzy");
a_nextFuzzy = new TDEAction(i18n("Ne&xt Fuzzy"), "nextfuzzy",
- CTRL+Key_Next, TQT_TQOBJECT(m_view),
- TQT_SLOT(gotoNextFuzzy()),actionCollection(), "go_next_fuzzy");
+ CTRL+Key_Next, m_view,
+ TQ_SLOT(gotoNextFuzzy()),actionCollection(), "go_next_fuzzy");
a_prevUntrans = new TDEAction(i18n("Prev&ious Untranslated"), "prevuntranslated",
- ALT+Key_Prior, TQT_TQOBJECT(m_view),
- TQT_SLOT(gotoPrevUntranslated()),actionCollection(), "go_prev_untrans");
+ ALT+Key_Prior, m_view,
+ TQ_SLOT(gotoPrevUntranslated()),actionCollection(), "go_prev_untrans");
a_nextUntrans = new TDEAction(i18n("Nex&t Untranslated"), "nextuntranslated",
- ALT+Key_Next, TQT_TQOBJECT(m_view),
- TQT_SLOT(gotoNextUntranslated()),actionCollection(), "go_next_untrans");
+ ALT+Key_Next, m_view,
+ TQ_SLOT(gotoNextUntranslated()),actionCollection(), "go_next_untrans");
action = new TDEAction(i18n("Previo&us Error"), "preverror",
- SHIFT+Key_Prior, TQT_TQOBJECT(m_view),
- TQT_SLOT(gotoPrevError()),actionCollection(), "go_prev_error");
+ SHIFT+Key_Prior, m_view,
+ TQ_SLOT(gotoPrevError()),actionCollection(), "go_prev_error");
action = new TDEAction(i18n("Next Err&or"), "nexterror",
- SHIFT+Key_Next, TQT_TQOBJECT(m_view),
- TQT_SLOT(gotoNextError()),actionCollection(), "go_next_error");
- action = new TDEAction(i18n("&Back in History"), "back", ALT+Key_Left, TQT_TQOBJECT(m_view),
- TQT_SLOT(backHistory()),actionCollection(), "go_back_history");
- action = new TDEAction(i18n("For&ward in History"), "forward", ALT+Key_Right, TQT_TQOBJECT(m_view),
- TQT_SLOT(forwardHistory()),actionCollection(), "go_forward_history");
+ SHIFT+Key_Next, m_view,
+ TQ_SLOT(gotoNextError()),actionCollection(), "go_next_error");
+ action = new TDEAction(i18n("&Back in History"), "back", ALT+Key_Left, m_view,
+ TQ_SLOT(backHistory()),actionCollection(), "go_back_history");
+ action = new TDEAction(i18n("For&ward in History"), "forward", ALT+Key_Right, m_view,
+ TQ_SLOT(forwardHistory()),actionCollection(), "go_forward_history");
// the search menu
actionMenu=new TDEActionMenu(i18n("&Find Text"),
"transsearch",actionCollection(),"dict_search_all");
- connect(actionMenu,TQT_SIGNAL(activated()),m_view,TQT_SLOT(startSearch()));
- dictMenu = new DictionaryMenu(actionMenu->popupMenu(),actionCollection(),TQT_TQOBJECT(this));
- connect(dictMenu,TQT_SIGNAL(activated(const TQString)), TQT_TQOBJECT(m_view)
- , TQT_SLOT(startSearch(const TQString)));
+ connect(actionMenu,TQ_SIGNAL(activated()),m_view,TQ_SLOT(startSearch()));
+ dictMenu = new DictionaryMenu(actionMenu->popupMenu(),actionCollection(),this);
+ connect(dictMenu,TQ_SIGNAL(activated(const TQString)), m_view
+ , TQ_SLOT(startSearch(const TQString)));
actionMenu=new TDEActionMenu(i18n("F&ind Selected Text"),
"transsearch",actionCollection(),"dict_search_selected");
- connect(actionMenu,TQT_SIGNAL(activated()),m_view,TQT_SLOT(startSelectionSearch()));
- selectionDictMenu = new DictionaryMenu(actionMenu->popupMenu(),actionCollection(),TQT_TQOBJECT(this));
- connect(selectionDictMenu,TQT_SIGNAL(activated(const TQString)), TQT_TQOBJECT(m_view)
- , TQT_SLOT(startSelectionSearch(const TQString)));
+ connect(actionMenu,TQ_SIGNAL(activated()),m_view,TQ_SLOT(startSelectionSearch()));
+ selectionDictMenu = new DictionaryMenu(actionMenu->popupMenu(),actionCollection(),this);
+ connect(selectionDictMenu,TQ_SIGNAL(activated(const TQString)), m_view
+ , TQ_SLOT(startSelectionSearch(const TQString)));
actionMenu=new TDEActionMenu(i18n("&Edit Dictionary"),
"transsearch",actionCollection(),"dict_edit");
- editDictMenu = new DictionaryMenu(actionMenu->popupMenu(),actionCollection(),TQT_TQOBJECT(this));
- connect(editDictMenu,TQT_SIGNAL(activated(const TQString)), TQT_TQOBJECT(m_view)
- , TQT_SLOT(editDictionary(const TQString)));
+ editDictMenu = new DictionaryMenu(actionMenu->popupMenu(),actionCollection(),this);
+ connect(editDictMenu,TQ_SIGNAL(activated(const TQString)), m_view
+ , TQ_SLOT(editDictionary(const TQString)));
actionMenu=new TDEActionMenu(i18n("Con&figure Dictionary"),
"transsearch",actionCollection(),"dict_configure");
- configDictMenu = new DictionaryMenu(actionMenu->popupMenu(),actionCollection(),TQT_TQOBJECT(this));
- connect(configDictMenu,TQT_SIGNAL(activated(const TQString)), TQT_TQOBJECT(m_view)
- , TQT_SLOT(configureDictionary(const TQString)));
+ configDictMenu = new DictionaryMenu(actionMenu->popupMenu(),actionCollection(),this);
+ connect(configDictMenu,TQ_SIGNAL(activated(const TQString)), m_view
+ , TQ_SLOT(configureDictionary(const TQString)));
actionMenu=new TDEActionMenu(i18n("About Dictionary"), "transsearch",
actionCollection(), "dict_about");
- aboutDictMenu = new DictionaryMenu(actionMenu->popupMenu(),actionCollection(),TQT_TQOBJECT(this));
- connect(aboutDictMenu,TQT_SIGNAL(activated(const TQString)), TQT_TQOBJECT(m_view)
- , TQT_SLOT(aboutDictionary(const TQString)));
+ aboutDictMenu = new DictionaryMenu(actionMenu->popupMenu(),actionCollection(),this);
+ connect(aboutDictMenu,TQ_SIGNAL(activated(const TQString)), m_view
+ , TQ_SLOT(aboutDictionary(const TQString)));
buildDictMenus();
// the project menu
action = new TDEAction(i18n("&New..."), "document-new"
- , TQT_TQOBJECT(this), TQT_SLOT(projectNew()),actionCollection()
+ , this, TQ_SLOT(projectNew()),actionCollection()
,"project_new");
action = new TDEAction(i18n("&Open..."), "document-open"
- , TQT_TQOBJECT(this), TQT_SLOT(projectOpen()),actionCollection()
+ , this, TQ_SLOT(projectOpen()),actionCollection()
,"project_open");
action = new TDEAction(i18n("C&lose"), "window-close"
- , TQT_TQOBJECT(this), TQT_SLOT(projectClose()),actionCollection()
+ , this, TQ_SLOT(projectClose()),actionCollection()
,"project_close");
action->setEnabled (_project->filename() != KBabel::ProjectManager::defaultProjectName() );
action = new TDEAction(i18n("&Configure..."), "configure"
- , TQT_TQOBJECT(this), TQT_SLOT(projectConfigure()),actionCollection()
+ , this, TQ_SLOT(projectConfigure()),actionCollection()
,"project_settings");
- a_recentprojects = new TDERecentFilesAction(i18n("Open &Recent"), 0, TQT_TQOBJECT(this), TQT_SLOT(projectOpenRecent(const KURL&)), actionCollection(), "recent_projects");
+ a_recentprojects = new TDERecentFilesAction(i18n("Open &Recent"), 0, this, TQ_SLOT(projectOpenRecent(const KURL&)), actionCollection(), "recent_projects");
// the tools menu
action = new TDEAction(i18n("&Spell Check..."), "tools-check-spelling", CTRL+Key_I
- , TQT_TQOBJECT(m_view), TQT_SLOT(spellcheckCommon()),actionCollection()
+ , m_view, TQ_SLOT(spellcheckCommon()),actionCollection()
,"spellcheck_common");
action = new TDEAction(i18n("&Check All..."), "spellcheck_all", 0
- , TQT_TQOBJECT(m_view), TQT_SLOT(spellcheckAll()),actionCollection()
+ , m_view, TQ_SLOT(spellcheckAll()),actionCollection()
,"spellcheck_all");
action = new TDEAction(i18n("C&heck From Cursor Position..."), "spellcheck_from_cursor", 0
- , TQT_TQOBJECT(m_view), TQT_SLOT(spellcheckFromCursor()),actionCollection()
+ , m_view, TQ_SLOT(spellcheckFromCursor()),actionCollection()
,"spellcheck_from_cursor");
action = new TDEAction(i18n("Ch&eck Current..."), "spellcheck_actual", 0
- , TQT_TQOBJECT(m_view), TQT_SLOT(spellcheckCurrent()),actionCollection()
+ , m_view, TQ_SLOT(spellcheckCurrent()),actionCollection()
,"spellcheck_current");
action = new TDEAction(i18n("Check Fro&m Current to End of File..."), 0
- , TQT_TQOBJECT(m_view), TQT_SLOT(spellcheckFromCurrent()),actionCollection()
+ , m_view, TQ_SLOT(spellcheckFromCurrent()),actionCollection()
,"spellcheck_from_current");
action = new TDEAction(i18n("Chec&k Selected Text..."), "spellcheck_selected", 0
- , TQT_TQOBJECT(m_view), TQT_SLOT(spellcheckMarked()),actionCollection()
+ , m_view, TQ_SLOT(spellcheckMarked()),actionCollection()
,"spellcheck_marked");
TDEToggleAction *toggleAction;
toggleAction = new TDEToggleAction(i18n("&Diffmode"), "autodiff", 0
,actionCollection(), "diff_toggleDiff");
- connect(toggleAction,TQT_SIGNAL(toggled(bool)), TQT_TQOBJECT(m_view), TQT_SLOT(toggleAutoDiff(bool)));
- connect(m_view,TQT_SIGNAL(signalDiffEnabled(bool)), toggleAction
- , TQT_SLOT(setChecked(bool)));
+ connect(toggleAction,TQ_SIGNAL(toggled(bool)), m_view, TQ_SLOT(toggleAutoDiff(bool)));
+ connect(m_view,TQ_SIGNAL(signalDiffEnabled(bool)), toggleAction
+ , TQ_SLOT(setChecked(bool)));
toggleAction->setChecked(m_view->autoDiffEnabled());
action = new TDEAction(i18n("&Show Diff"), "diff", Key_F5
- , TQT_TQOBJECT(m_view), TQT_SLOT(diff()),actionCollection()
+ , m_view, TQ_SLOT(diff()),actionCollection()
,"diff_diff");
action = new TDEAction(i18n("S&how Original Text"), "contents", Key_F6
- , TQT_TQOBJECT(m_view), TQT_SLOT(diffShowOrig()),actionCollection()
+ , m_view, TQ_SLOT(diffShowOrig()),actionCollection()
,"diff_showOrig");
action = new TDEAction(i18n("&Open File for Diff"), "document-open" ,0
- , TQT_TQOBJECT(m_view), TQT_SLOT(openDiffFile()),actionCollection()
+ , m_view, TQ_SLOT(openDiffFile()),actionCollection()
,"diff_openFile");
action = new TDEAction(i18n("&Rough Translation..."), 0
- , TQT_TQOBJECT(m_view), TQT_SLOT(roughTranslation()),actionCollection()
+ , m_view, TQ_SLOT(roughTranslation()),actionCollection()
,"rough_translation");
- action = new TDEAction(i18n("&Catalog Manager..."),"catalogmanager", 0 , TQT_TQOBJECT(this),
- TQT_SLOT(openCatalogManager()),actionCollection(), "open_catalog_manager");
+ action = new TDEAction(i18n("&Catalog Manager..."),"catalogmanager", 0 , this,
+ TQ_SLOT(openCatalogManager()),actionCollection(), "open_catalog_manager");
- new TDEAction( i18n("Toggle Edit Mode"), 0, Key_Insert,TQT_TQOBJECT(this),TQT_SLOT(toggleEditMode()), actionCollection(), "toggle_insert_mode");
+ new TDEAction( i18n("Toggle Edit Mode"), 0, Key_Insert,this,TQ_SLOT(toggleEditMode()), actionCollection(), "toggle_insert_mode");
- new TDEAction( i18n("&Word Count"), 0, TQT_TQOBJECT(m_view), TQT_SLOT(wordCount()), actionCollection(), "word_count");
+ new TDEAction( i18n("&Word Count"), 0, m_view, TQ_SLOT(wordCount()), actionCollection(), "word_count");
// next, the settings menu
createStandardStatusBarAction();
- KStdAction::configureToolbars(TQT_TQOBJECT(this),TQT_SLOT(optionsEditToolbars()),actionCollection());
+ KStdAction::configureToolbars(this,TQ_SLOT(optionsEditToolbars()),actionCollection());
- KStdAction::keyBindings(guiFactory(),TQT_SLOT(configureShortcuts()),actionCollection());
- KStdAction::preferences(TQT_TQOBJECT(this),TQT_SLOT(optionsPreferences()),actionCollection());
+ KStdAction::keyBindings(guiFactory(),TQ_SLOT(configureShortcuts()),actionCollection());
+ KStdAction::preferences(this,TQ_SLOT(optionsPreferences()),actionCollection());
setStandardToolBarMenuEnabled ( true );
- action = new TDEAction(i18n("&Stop Searching"), "process-stop",Key_Escape, TQT_TQOBJECT(m_view),
- TQT_SLOT(stopSearch()),actionCollection(), "stop_search");
+ action = new TDEAction(i18n("&Stop Searching"), "process-stop",Key_Escape, m_view,
+ TQ_SLOT(stopSearch()),actionCollection(), "stop_search");
action->setEnabled(false);
- new TDEAction(i18n("&Gettext Info"), 0, TQT_TQOBJECT(this),
- TQT_SLOT(gettextHelp()), actionCollection(), "help_gettext");
+ new TDEAction(i18n("&Gettext Info"), 0, this,
+ TQ_SLOT(gettextHelp()), actionCollection(), "help_gettext");
// the bookmarks menu
- action = KStdAction::addBookmark(TQT_TQOBJECT(this), TQT_SLOT(slotAddBookmark()),
+ action = KStdAction::addBookmark(this, TQ_SLOT(slotAddBookmark()),
actionCollection(), "add_bookmark");
action->setEnabled(false);
// this action is now connected to dummySlot(), and later reconnected
// to bmHandler after that object actually is created
- new TDEAction(i18n("Clear Bookmarks"), 0, TQT_TQOBJECT(this), TQT_SLOT(dummySlot()),
+ new TDEAction(i18n("Clear Bookmarks"), 0, this, TQ_SLOT(dummySlot()),
actionCollection(), "clear_bookmarks");
setupDynamicActions();
@@ -759,20 +759,20 @@ void KBabelMW::setupDynamicActions()
TQValueList<KDataToolInfo> tools = ToolAction::validationTools();
TQPtrList<TDEAction> actions = ToolAction::dataToolActionList(
- tools, TQT_TQOBJECT(m_view), TQT_SLOT(validateUsingTool( const KDataToolInfo &, const TQString & )),
+ tools, m_view, TQ_SLOT(validateUsingTool( const KDataToolInfo &, const TQString & )),
"validate", false, actionCollection() );
TDEActionMenu* m_menu = new TDEActionMenu(i18n("&Validation"), actionCollection(), "dynamic_validation_tools");
- TDEAction* ac = new TDEAction(i18n("Perform &All Checks"), CTRL+Key_E , TQT_TQOBJECT(m_view),
- TQT_SLOT(checkAll()),actionCollection(), "check_all");
+ TDEAction* ac = new TDEAction(i18n("Perform &All Checks"), CTRL+Key_E , m_view,
+ TQ_SLOT(checkAll()),actionCollection(), "check_all");
ac->setEnabled(false);
m_menu->insert(ac);
m_menu->insert( new TDEActionSeparator() );
- ac = new TDEAction(i18n("C&heck Syntax"), CTRL+Key_T , TQT_TQOBJECT(m_view),
- TQT_SLOT(checkSyntax()),actionCollection(), "check_syntax");
+ ac = new TDEAction(i18n("C&heck Syntax"), CTRL+Key_T , m_view,
+ TQ_SLOT(checkSyntax()),actionCollection(), "check_syntax");
ac->setEnabled(false);
m_menu->insert(ac);
@@ -801,7 +801,7 @@ void KBabelMW::setupDynamicActions()
// create corresponding actions
actions = ToolAction::dataToolActionList(
- modifyTools, TQT_TQOBJECT(m_view), TQT_SLOT(modifyUsingTool( const KDataToolInfo &, const TQString & )),
+ modifyTools, m_view, TQ_SLOT(modifyUsingTool( const KDataToolInfo &, const TQString & )),
"validate", true, actionCollection() );
// skip validation actions
@@ -833,7 +833,7 @@ void KBabelMW::setupDynamicActions()
// create corresponding actions
actions = ToolAction::dataToolActionList(
- modifyTools, TQT_TQOBJECT(m_view), TQT_SLOT(modifyUsingTool( const KDataToolInfo &, const TQString & )),
+ modifyTools, m_view, TQ_SLOT(modifyUsingTool( const KDataToolInfo &, const TQString & )),
"validate", true, actionCollection() );
// skip validation actions
@@ -844,7 +844,7 @@ void KBabelMW::setupDynamicActions()
// create corresponding actions
actions = ToolAction::dataToolActionList(
- modifyTools, TQT_TQOBJECT(m_view), TQT_SLOT(modifyCatalogUsingTool( const KDataToolInfo &, const TQString & )),
+ modifyTools, m_view, TQ_SLOT(modifyCatalogUsingTool( const KDataToolInfo &, const TQString & )),
"validate", true, actionCollection() );
// insert tools
@@ -923,7 +923,7 @@ bool KBabelMW::queryClose()
{
if(m_view->isSearching())
{
- connect(m_view,TQT_SIGNAL(signalSearchActive(bool)),TQT_TQOBJECT(this),TQT_SLOT(quit()));
+ connect(m_view,TQ_SIGNAL(signalSearchActive(bool)),this,TQ_SLOT(quit()));
m_view->stopSearch();
return false;
}
@@ -932,7 +932,7 @@ bool KBabelMW::queryClose()
{
// stop the activity and try again
m_view->catalog()->stop();
- TQTimer::singleShot(0, TQT_TQOBJECT(this), TQT_SLOT( close() ));
+ TQTimer::singleShot(0, this, TQ_SLOT( close() ));
return false;
}
@@ -1067,7 +1067,7 @@ void KBabelMW::addToRecentFiles(KURL url)
void KBabelMW::fileSave()
{
// do it asynchronously due to tdelibs bug
- TQTimer::singleShot( 0, TQT_TQOBJECT(this), TQT_SLOT( fileSave_internal() ));
+ TQTimer::singleShot( 0, this, TQ_SLOT( fileSave_internal() ));
}
void KBabelMW::fileSave_internal()
@@ -1090,7 +1090,7 @@ void KBabelMW::fileSave_internal()
KURL url=m_view->currentURL();
- DCOPClient *client = kapp->dcopClient();
+ DCOPClient *client = tdeApp->dcopClient();
TQByteArray data;
TQDataStream arg(data, IO_WriteOnly);
arg << ((url.directory(false)+url.fileName()).utf8()) ;
@@ -1107,7 +1107,7 @@ void KBabelMW::fileSaveAs()
m_view->saveFileAs();
KURL url=m_view->currentURL();
- DCOPClient *client = kapp->dcopClient();
+ DCOPClient *client = tdeApp->dcopClient();
TQByteArray data;
TQDataStream arg(data, IO_WriteOnly);
arg << ((url.directory(false)+url.fileName()).utf8()) ;
@@ -1121,7 +1121,7 @@ void KBabelMW::fileSaveSpecial()
KURL url=m_view->currentURL();
- DCOPClient *client = kapp->dcopClient();
+ DCOPClient *client = tdeApp->dcopClient();
TQByteArray data;
TQDataStream arg(data, IO_WriteOnly);
arg << ((url.directory(false)+url.fileName()).utf8()) ;
@@ -1181,7 +1181,7 @@ void KBabelMW::optionsEditToolbars()
{
saveMainWindowSettings( TDEGlobal::config(), "View" );
KEditToolbar dlg(actionCollection());
- connect(&dlg, TQT_SIGNAL(newToolbarConfig()), TQT_TQOBJECT(this), TQT_SLOT(newToolbarConfig()));
+ connect(&dlg, TQ_SIGNAL(newToolbarConfig()), this, TQ_SLOT(newToolbarConfig()));
dlg.exec();
}
@@ -1198,8 +1198,8 @@ void KBabelMW::optionsPreferences()
_prefDialog = new KBabelPreferences(m_view->dictionaries());
prefDialogs.append(_prefDialog);
- connect(_prefDialog,TQT_SIGNAL(settingsChanged())
- ,m_view,TQT_SLOT(updateSettings()));
+ connect(_prefDialog,TQ_SIGNAL(settingsChanged())
+ ,m_view,TQ_SLOT(updateSettings()));
}
int prefHeight=_prefDialog->height();
@@ -1242,7 +1242,7 @@ void KBabelMW::openCatalogManager()
TQCString service;
TQString result;
- DCOPClient * client = kapp->dcopClient();
+ DCOPClient * client = tdeApp->dcopClient();
// find out, if there is a running catalog manager
QCStringList apps = client->registeredApplications();
@@ -1261,7 +1261,7 @@ void KBabelMW::openCatalogManager()
{
TQString prog = "catalogmanager";
TQString url = "";
- if( kapp->startServiceByDesktopName(prog,url, &result,&service))
+ if( tdeApp->startServiceByDesktopName(prog,url, &result,&service))
{
KMessageBox::error(this, i18n("Unable to use TDELauncher to start "
"Catalog Manager. You should check the installation of TDE.\n"
@@ -1621,7 +1621,7 @@ KBabelMW *KBabelMW::winForURL(const KURL& url, TQString project)
}
if(p)
- kb = static_cast<KBabelMW*>(TQT_TQWIDGET(p));
+ kb = static_cast<KBabelMW*>(p);
}
return kb;
@@ -1641,7 +1641,7 @@ KBabelMW *KBabelMW::emptyWin(TQString project)
}
if(p)
- kb = static_cast<KBabelMW*>(TQT_TQWIDGET(p));
+ kb = static_cast<KBabelMW*>(p);
}
return kb;
@@ -1651,7 +1651,7 @@ void KBabelMW::spellcheckMoreFiles(TQStringList filelist)
{
if( filelist.isEmpty() ) return;
_toSpellcheck = filelist;
- connect( m_view, TQT_SIGNAL( signalSpellcheckDone(int) ), TQT_TQOBJECT(this), TQT_SLOT( spellcheckDone(int)));
+ connect( m_view, TQ_SIGNAL( signalSpellcheckDone(int) ), this, TQ_SLOT( spellcheckDone(int)));
spellcheckDone( KS_IGNORE ); // use something else than KS_STOP
}
@@ -1659,7 +1659,7 @@ void KBabelMW::spellcheckDone( int result)
{
if( _toSpellcheck.isEmpty() || result == KS_STOP)
{
- disconnect( m_view, TQT_SIGNAL( signalSpellcheckDone(int)), TQT_TQOBJECT(this), TQT_SLOT(spellcheckDone( int)));
+ disconnect( m_view, TQ_SIGNAL( signalSpellcheckDone(int)), this, TQ_SLOT(spellcheckDone( int)));
KMessageBox::information( this, i18n("MessageBox text", "Spellchecking of multiple files is finished."),
i18n("MessageBox caption", "Spellcheck Done"));
}
@@ -1670,7 +1670,7 @@ void KBabelMW::spellcheckDone( int result)
if( m_view->isModified() ) fileSave();
open(KURL( file ), TQString(), false);
kdDebug(KBABEL) << "Starting another spellcheck" << endl;
- TQTimer::singleShot( 1, TQT_TQOBJECT(m_view), TQT_SLOT(spellcheckAllMulti()));
+ TQTimer::singleShot( 1, m_view, TQ_SLOT(spellcheckAllMulti()));
}
}
@@ -1792,8 +1792,8 @@ void KBabelMW::projectConfigure()
if(!_projectDialog)
{
_projectDialog = new ProjectDialog(_project);
- connect (_projectDialog, TQT_SIGNAL (settingsChanged())
- , TQT_TQOBJECT(m_view), TQT_SLOT (updateProjectSettings()));
+ connect (_projectDialog, TQ_SIGNAL (settingsChanged())
+ , m_view, TQ_SLOT (updateProjectSettings()));
}
int prefHeight=_projectDialog->height();
diff --git a/kbabel/kbabel/kbabelpref.cpp b/kbabel/kbabel/kbabelpref.cpp
index 11c0b8ee..626b5ae7 100644
--- a/kbabel/kbabel/kbabelpref.cpp
+++ b/kbabel/kbabel/kbabelpref.cpp
@@ -61,10 +61,10 @@ KBabelPreferences::KBabelPreferences(TQPtrList<ModuleInfo> ml)
// this contains a custom widget for tool selection, set it up
TQValueList<KDataToolInfo> tools = ToolAction::validationTools();
_editorPage->_kcfg_AutoCheckTools->loadTools( "validate", tools );
- connect( _editorPage->_kcfg_AutoCheckTools, TQT_SIGNAL( added( TQListBoxItem * ) ),
- this, TQT_SLOT (updateButtons()));
- connect( _editorPage->_kcfg_AutoCheckTools, TQT_SIGNAL( removed( TQListBoxItem * ) ),
- this, TQT_SLOT (updateButtons()));
+ connect( _editorPage->_kcfg_AutoCheckTools, TQ_SIGNAL( added( TQListBoxItem * ) ),
+ this, TQ_SLOT (updateButtons()));
+ connect( _editorPage->_kcfg_AutoCheckTools, TQ_SIGNAL( removed( TQListBoxItem * ) ),
+ this, TQ_SLOT (updateButtons()));
addPage(_searchPage = new SearchPreferences(0, "search")
, i18n("title of page in preferences dialog","Search")
@@ -78,8 +78,8 @@ KBabelPreferences::KBabelPreferences(TQPtrList<ModuleInfo> ml)
_searchPage->_kcfg_DefaultModule->insertItem(info->name);
}
moduleList = ml;
- connect( _searchPage->_kcfg_DefaultModule, TQT_SIGNAL( activated(int) ),
- this, TQT_SLOT (updateButtons()));
+ connect( _searchPage->_kcfg_DefaultModule, TQ_SIGNAL( activated(int) ),
+ this, TQ_SLOT (updateButtons()));
addPage(new EditorDiffPreferences(0, "diff")
,i18n("title of page in preferences dialog","Diff")
@@ -103,7 +103,7 @@ KBabelPreferences::KBabelPreferences(TQPtrList<ModuleInfo> ml)
void KBabelPreferences::slotHelp()
{
//TODO
- kapp->invokeHelp("Preferences","");
+ tdeApp->invokeHelp("Preferences","");
}
bool KBabelPreferences::hasChanged()
diff --git a/kbabel/kbabel/kbabelsplash.cpp b/kbabel/kbabel/kbabelsplash.cpp
index 848d506f..c3526960 100644
--- a/kbabel/kbabel/kbabelsplash.cpp
+++ b/kbabel/kbabel/kbabelsplash.cpp
@@ -36,7 +36,7 @@
#include <tqfontmetrics.h>
#include <tqpainter.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
KBabelSplash* KBabelSplash::instance = 0;
diff --git a/kbabel/kbabel/kbabelview.cpp b/kbabel/kbabel/kbabelview.cpp
index a96c5a72..adb07ac7 100644
--- a/kbabel/kbabel/kbabelview.cpp
+++ b/kbabel/kbabel/kbabelview.cpp
@@ -201,57 +201,57 @@ KBabelView::KBabelView(KBCatalog* catalog,KBabelMW *parent, Project::Ptr project
msgstrEdit->setReadOnly(true);
dictBox->setEnabled(false);
- connect(this, TQT_SIGNAL(signalNewFileOpened(KURL)),
- m_cataloglistview, TQT_SLOT(slotNewFileOpened()));
+ connect(this, TQ_SIGNAL(signalNewFileOpened(KURL)),
+ m_cataloglistview, TQ_SLOT(slotNewFileOpened()));
- connect(msgstrEdit,TQT_SIGNAL(signalUndoCmd(KBabel::EditCommand*)),this,TQT_SLOT(forwardMsgstrEditCmd(KBabel::EditCommand*)));
- connect(msgstrEdit,TQT_SIGNAL(textChanged()),this
- ,TQT_SIGNAL(signalMsgstrChanged()));
+ connect(msgstrEdit,TQ_SIGNAL(signalUndoCmd(KBabel::EditCommand*)),this,TQ_SLOT(forwardMsgstrEditCmd(KBabel::EditCommand*)));
+ connect(msgstrEdit,TQ_SIGNAL(textChanged()),this
+ ,TQ_SIGNAL(signalMsgstrChanged()));
- connect(msgstrEdit,TQT_SIGNAL(textChanged(const TQString&)),m_cataloglistview
- ,TQT_SLOT(msgstrChanged(const TQString&)));
+ connect(msgstrEdit,TQ_SIGNAL(textChanged(const TQString&)),m_cataloglistview
+ ,TQ_SLOT(msgstrChanged(const TQString&)));
- connect(this,TQT_SIGNAL(signalMsgstrChanged()),this,TQT_SLOT(autoCheck()));
- connect(msgstrEdit,TQT_SIGNAL(currentFormChanged(uint)), this
- ,TQT_SLOT(msgstrPluralFormChanged(uint)));
-
- connect(msgidLabel,TQT_SIGNAL(cursorPositionChanged(int,int))
- , this, TQT_SIGNAL(signalCursorPosChanged(int,int)));
- connect(msgstrEdit,TQT_SIGNAL(cursorPositionChanged(int,int))
- , this, TQT_SIGNAL(signalCursorPosChanged(int,int)));
-
- connect(dictBox,TQT_SIGNAL(searchStarted()),this
- ,TQT_SLOT(forwardSearchStart()));
- connect(dictBox, TQT_SIGNAL(progressStarts(const TQString&)), this
- ,TQT_SLOT(forwardProgressStart(const TQString&)));
- connect(dictBox,TQT_SIGNAL(progressed(int)),this
- ,TQT_SIGNAL(signalProgress(int)));
- connect(dictBox,TQT_SIGNAL(searchStopped()),this
- ,TQT_SLOT(forwardSearchStop()));
- connect(dictBox,TQT_SIGNAL(progressEnds()),this
- ,TQT_SIGNAL(signalClearProgressBar()));
-
- connect(dictBox,TQT_SIGNAL(modulesChanged()),this,
- TQT_SIGNAL(signalDictionariesChanged()));
- connect(dictBox,TQT_SIGNAL(errorInModule(const TQString&)),this
- ,TQT_SLOT(showError(const TQString&)));
-
- connect(_catalog,TQT_SIGNAL(signalSettingsChanged(KBabel::IdentitySettings)),
- this, TQT_SLOT(setNewLanguage()));
-
- connect(_catalog,TQT_SIGNAL(signalNumberOfFuzziesChanged(uint)),
- this, TQT_SLOT(checkFuzzies()));
- connect(_catalog,TQT_SIGNAL(signalNumberOfUntranslatedChanged(uint)),
- this, TQT_SLOT(checkUntranslated()));
+ connect(this,TQ_SIGNAL(signalMsgstrChanged()),this,TQ_SLOT(autoCheck()));
+ connect(msgstrEdit,TQ_SIGNAL(currentFormChanged(uint)), this
+ ,TQ_SLOT(msgstrPluralFormChanged(uint)));
+
+ connect(msgidLabel,TQ_SIGNAL(cursorPositionChanged(int,int))
+ , this, TQ_SIGNAL(signalCursorPosChanged(int,int)));
+ connect(msgstrEdit,TQ_SIGNAL(cursorPositionChanged(int,int))
+ , this, TQ_SIGNAL(signalCursorPosChanged(int,int)));
+
+ connect(dictBox,TQ_SIGNAL(searchStarted()),this
+ ,TQ_SLOT(forwardSearchStart()));
+ connect(dictBox, TQ_SIGNAL(progressStarts(const TQString&)), this
+ ,TQ_SLOT(forwardProgressStart(const TQString&)));
+ connect(dictBox,TQ_SIGNAL(progressed(int)),this
+ ,TQ_SIGNAL(signalProgress(int)));
+ connect(dictBox,TQ_SIGNAL(searchStopped()),this
+ ,TQ_SLOT(forwardSearchStop()));
+ connect(dictBox,TQ_SIGNAL(progressEnds()),this
+ ,TQ_SIGNAL(signalClearProgressBar()));
+
+ connect(dictBox,TQ_SIGNAL(modulesChanged()),this,
+ TQ_SIGNAL(signalDictionariesChanged()));
+ connect(dictBox,TQ_SIGNAL(errorInModule(const TQString&)),this
+ ,TQ_SLOT(showError(const TQString&)));
+
+ connect(_catalog,TQ_SIGNAL(signalSettingsChanged(KBabel::IdentitySettings)),
+ this, TQ_SLOT(setNewLanguage()));
+
+ connect(_catalog,TQ_SIGNAL(signalNumberOfFuzziesChanged(uint)),
+ this, TQ_SLOT(checkFuzzies()));
+ connect(_catalog,TQ_SIGNAL(signalNumberOfUntranslatedChanged(uint)),
+ this, TQ_SLOT(checkUntranslated()));
if(buildLeds)
{
- connect(this,TQT_SIGNAL(signalFuzzyDisplayed(bool))
- ,this,TQT_SLOT(toggleFuzzyLed(bool)));
- connect(this,TQT_SIGNAL(signalUntranslatedDisplayed(bool))
- ,this,TQT_SLOT(toggleUntransLed(bool)));
- connect(this,TQT_SIGNAL(signalFaultyDisplayed(bool))
- ,this,TQT_SLOT(toggleErrorLed(bool)));
+ connect(this,TQ_SIGNAL(signalFuzzyDisplayed(bool))
+ ,this,TQ_SLOT(toggleFuzzyLed(bool)));
+ connect(this,TQ_SIGNAL(signalUntranslatedDisplayed(bool))
+ ,this,TQ_SLOT(toggleUntransLed(bool)));
+ connect(this,TQ_SIGNAL(signalFaultyDisplayed(bool))
+ ,this,TQ_SLOT(toggleErrorLed(bool)));
}
_dropMenu = new TQPopupMenu(this);
@@ -261,8 +261,8 @@ KBabelView::KBabelView(KBCatalog* catalog,KBabelMW *parent, Project::Ptr project
readSettings(_config);
readProject(_project);
- connect (project, TQT_SIGNAL(signalSpellcheckSettingsChanged()),
- this, TQT_SLOT(updateProjectSettings()));
+ connect (project, TQ_SIGNAL(signalSpellcheckSettingsChanged()),
+ this, TQ_SLOT(updateProjectSettings()));
if(!_catalog->currentURL().isEmpty())
{
@@ -356,10 +356,10 @@ of the currently displayed entry.</p></qt>"));
m_mainwindow->setMainDockWidget(mainDock); // master dockwidget
mainDock->show ();
m_mainwindow->setView (mainDock);
- connect (this, TQT_SIGNAL (signalCopy ()), this, TQT_SLOT (textCopy ()));
- connect (this, TQT_SIGNAL (signalCut ()), this, TQT_SLOT (textCut ()));
- connect (this, TQT_SIGNAL (signalPaste ()), this, TQT_SLOT (textPaste ()));
- connect (this, TQT_SIGNAL (signalSelectAll ()), this, TQT_SLOT (selectAll ()));
+ connect (this, TQ_SIGNAL (signalCopy ()), this, TQ_SLOT (textCopy ()));
+ connect (this, TQ_SIGNAL (signalCut ()), this, TQ_SLOT (textCut ()));
+ connect (this, TQ_SIGNAL (signalPaste ()), this, TQ_SLOT (textPaste ()));
+ connect (this, TQ_SIGNAL (signalSelectAll ()), this, TQ_SLOT (selectAll ()));
KDockWidget* comment_dock = m_mainwindow->createDockWidget( "Comment", TQPixmap ());
//i18n: translators: Dock window caption
@@ -372,11 +372,11 @@ of the currently displayed entry.</p></qt>"));
KDockWidget::DockRight, // dock site
20 ); // relation target/this (in percent)
comment_dock->show ();
- connect (this, TQT_SIGNAL (signalCopy ()), m_commentview, TQT_SLOT (textCopy ()));
- connect (this, TQT_SIGNAL (signalCut ()), m_commentview, TQT_SLOT (textCut ()));
- connect (this, TQT_SIGNAL (signalPaste ()), m_commentview, TQT_SLOT (textPaste ()));
- connect (this, TQT_SIGNAL (signalSelectAll ()), m_commentview, TQT_SLOT (textSelectAll ()));
- m_commentview->installEventFilter( TQT_TQOBJECT(this) );
+ connect (this, TQ_SIGNAL (signalCopy ()), m_commentview, TQ_SLOT (textCopy ()));
+ connect (this, TQ_SIGNAL (signalCut ()), m_commentview, TQ_SLOT (textCut ()));
+ connect (this, TQ_SIGNAL (signalPaste ()), m_commentview, TQ_SLOT (textPaste ()));
+ connect (this, TQ_SIGNAL (signalSelectAll ()), m_commentview, TQ_SLOT (textSelectAll ()));
+ m_commentview->installEventFilter( this );
// build the msgstr widget
tempWidget=new TQWidget(this,"msgstrWidget");
@@ -550,30 +550,30 @@ of the currently displayed entry.</p></qt>"));
20 );
dock->show ();
- connect(m_cataloglistview,TQT_SIGNAL(signalSelectionChanged(const KBabel::DocPosition&))
- ,this,TQT_SLOT(gotoEntry(const KBabel::DocPosition&)));
- connect(this,TQT_SIGNAL(signalDisplayed(const KBabel::DocPosition&))
- ,m_commentview,TQT_SLOT(gotoEntry(const KBabel::DocPosition&)));
- connect(this,TQT_SIGNAL(signalDisplayed(const KBabel::DocPosition&))
- ,m_contextview,TQT_SLOT(gotoEntry(const KBabel::DocPosition&)));
- connect(this,TQT_SIGNAL(signalDisplayed(const KBabel::DocPosition&))
- ,m_taglistview,TQT_SLOT(gotoEntry(const KBabel::DocPosition&)));
- connect(this,TQT_SIGNAL(signalDisplayed(const KBabel::DocPosition&))
- ,m_sourceview,TQT_SLOT(gotoEntry(const KBabel::DocPosition&)));
- connect(this,TQT_SIGNAL(signalDisplayed(const KBabel::DocPosition&))
- ,m_errorlistview,TQT_SLOT(gotoEntry(const KBabel::DocPosition&)));
- connect(this,TQT_SIGNAL(signalFaultyDisplayed(bool))
- ,m_errorlistview,TQT_SLOT(updateView()));
- connect(m_charselectorview, TQT_SIGNAL( characterDoubleClicked(TQChar) )
- ,this, TQT_SLOT( insertChar(TQChar) ));
- connect(m_taglistview,TQT_SIGNAL(signalTagSelected(const TQString&))
- , this, TQT_SLOT(insertTagFromTool(const TQString&)));
- connect(m_taglistview,TQT_SIGNAL(signalHighlightedTagChanged(int))
- , this, TQT_SLOT(skipToTagFromTool(int)));
- connect(this, TQT_SIGNAL(signalNextTag(int))
- , m_taglistview, TQT_SLOT(highlightTag(int)));
- connect(m_commentview,TQT_SIGNAL(signalCursorPosChanged(int,int))
- , m_mainwindow, TQT_SLOT(updateCursorPosition(int,int)));
+ connect(m_cataloglistview,TQ_SIGNAL(signalSelectionChanged(const KBabel::DocPosition&))
+ ,this,TQ_SLOT(gotoEntry(const KBabel::DocPosition&)));
+ connect(this,TQ_SIGNAL(signalDisplayed(const KBabel::DocPosition&))
+ ,m_commentview,TQ_SLOT(gotoEntry(const KBabel::DocPosition&)));
+ connect(this,TQ_SIGNAL(signalDisplayed(const KBabel::DocPosition&))
+ ,m_contextview,TQ_SLOT(gotoEntry(const KBabel::DocPosition&)));
+ connect(this,TQ_SIGNAL(signalDisplayed(const KBabel::DocPosition&))
+ ,m_taglistview,TQ_SLOT(gotoEntry(const KBabel::DocPosition&)));
+ connect(this,TQ_SIGNAL(signalDisplayed(const KBabel::DocPosition&))
+ ,m_sourceview,TQ_SLOT(gotoEntry(const KBabel::DocPosition&)));
+ connect(this,TQ_SIGNAL(signalDisplayed(const KBabel::DocPosition&))
+ ,m_errorlistview,TQ_SLOT(gotoEntry(const KBabel::DocPosition&)));
+ connect(this,TQ_SIGNAL(signalFaultyDisplayed(bool))
+ ,m_errorlistview,TQ_SLOT(updateView()));
+ connect(m_charselectorview, TQ_SIGNAL( characterDoubleClicked(TQChar) )
+ ,this, TQ_SLOT( insertChar(TQChar) ));
+ connect(m_taglistview,TQ_SIGNAL(signalTagSelected(const TQString&))
+ , this, TQ_SLOT(insertTagFromTool(const TQString&)));
+ connect(m_taglistview,TQ_SIGNAL(signalHighlightedTagChanged(int))
+ , this, TQ_SLOT(skipToTagFromTool(int)));
+ connect(this, TQ_SIGNAL(signalNextTag(int))
+ , m_taglistview, TQ_SLOT(highlightTag(int)));
+ connect(m_commentview,TQ_SIGNAL(signalCursorPosChanged(int,int))
+ , m_mainwindow, TQ_SLOT(updateCursorPosition(int,int)));
}
KBabelView *KBabelView::viewForURL(const KURL& url, const TQString project)
@@ -684,8 +684,8 @@ void KBabelView::readSettings(TDEConfig* config)
if(KBabelSettings::autoUnsetFuzzy())
{
- connect(msgstrEdit,TQT_SIGNAL(textChanged())
- ,this,TQT_SLOT(autoRemoveFuzzyStatus()));
+ connect(msgstrEdit,TQ_SIGNAL(textChanged())
+ ,this,TQ_SLOT(autoRemoveFuzzyStatus()));
}
setupAutoCheckTools();
@@ -770,7 +770,7 @@ void KBabelView::readProject(Project::Ptr project)
spell2.config->setEncoding(_spellcheckSettings.spellEncoding);
spell2.config->setDictionary(_spellcheckSettings.spellDict);
- spell2.tdespell= new KSpell(this, "", TQT_TQOBJECT(this), TQT_SLOT(dummy(KSpell *)),
+ spell2.tdespell= new KSpell(this, "", this, TQ_SLOT(dummy(KSpell *)),
spell2.config, false, false);
if(spell2.tdespell->status() == KSpell::Error)
kdWarning(KBABEL) << "Something's wrong with KSpell, can't start on-the-fly checking" << endl;
@@ -853,13 +853,13 @@ void KBabelView::updateSettings()
_errorLed->setColor(KBabelSettings::ledColor());
}
- disconnect(msgstrEdit,TQT_SIGNAL(textChanged())
- ,this,TQT_SLOT(autoRemoveFuzzyStatus()));
+ disconnect(msgstrEdit,TQ_SIGNAL(textChanged())
+ ,this,TQ_SLOT(autoRemoveFuzzyStatus()));
if(KBabelSettings::autoUnsetFuzzy())
{
- connect(msgstrEdit,TQT_SIGNAL(textChanged())
- ,this,TQT_SLOT(autoRemoveFuzzyStatus()));
+ connect(msgstrEdit,TQ_SIGNAL(textChanged())
+ ,this,TQ_SLOT(autoRemoveFuzzyStatus()));
}
msgstrEdit->setCleverEditing(KBabelSettings::cleverEditing());
@@ -1244,7 +1244,7 @@ void KBabelView::open(const KURL& _url, const TQString & package, bool checkIfMo
if ( _autoSaveDelay ) {
if ( !autoSaveTimer ) {
autoSaveTimer = new TQTimer( this, "AUTOSAVE TIMER" );
- connect( autoSaveTimer, TQT_SIGNAL( timeout( ) ), this, TQT_SLOT( slotAutoSaveTimeout( ) ) );
+ connect( autoSaveTimer, TQ_SIGNAL( timeout( ) ), this, TQ_SLOT( slotAutoSaveTimeout( ) ) );
}
autoSaveTimer->stop( );
autoSaveTimer->start( 1000 * 60 * _autoSaveDelay );
@@ -1831,7 +1831,7 @@ void KBabelView::updateEditor(int form, bool delay)
if(KBabelSettings::autoUnsetFuzzy() && !msgstrEdit->isModified())
{
- disconnect(msgstrEdit,TQT_SIGNAL(textChanged()),this,TQT_SLOT(autoRemoveFuzzyStatus()));
+ disconnect(msgstrEdit,TQ_SIGNAL(textChanged()),this,TQ_SLOT(autoRemoveFuzzyStatus()));
}
msgidLabel->setText(_catalog->msgid(_currentIndex), _catalog->msgctxt(_currentIndex));
@@ -1844,7 +1844,7 @@ void KBabelView::updateEditor(int form, bool delay)
if(KBabelSettings::autoUnsetFuzzy() && _catalog->isFuzzy(_currentIndex))
{
- connect(msgstrEdit,TQT_SIGNAL(textChanged()),this,TQT_SLOT(autoRemoveFuzzyStatus()));
+ connect(msgstrEdit,TQ_SIGNAL(textChanged()),this,TQ_SLOT(autoRemoveFuzzyStatus()));
}
msgstrEdit->blockSignals(false);
@@ -1862,7 +1862,7 @@ void KBabelView::updateEditor(int form, bool delay)
{
if (delay)
{
- TQTimer::singleShot(0, this, TQT_SLOT (startSearch()));
+ TQTimer::singleShot(0, this, TQ_SLOT (startSearch()));
}
else
{
@@ -2083,7 +2083,7 @@ bool KBabelView::findNext_internal(DocPosition& pos, bool forReplace, bool gui)
}
if( isModified() && !opts.askForSave ) saveFile();
- DCOPClient *client = kapp->dcopClient();
+ DCOPClient *client = tdeApp->dcopClient();
TQByteArray data, replyData;
TQCString replyType;
bool morefiles = false; // more files to lookup in
@@ -2518,9 +2518,9 @@ void KBabelView::replace()
if(success) {
if(!_replaceAskDialog) {
_replaceAskDialog = new ReplaceDialog(this);
- connect(_replaceAskDialog,TQT_SIGNAL(replace()),this,TQT_SLOT(replaceNext()));
- connect(_replaceAskDialog,TQT_SIGNAL(next()),this,TQT_SLOT(findNextReplace()));
- connect(_replaceAskDialog,TQT_SIGNAL(replaceAll()),this,TQT_SLOT(replaceAll()));
+ connect(_replaceAskDialog,TQ_SIGNAL(replace()),this,TQ_SLOT(replaceNext()));
+ connect(_replaceAskDialog,TQ_SIGNAL(next()),this,TQ_SLOT(findNextReplace()));
+ connect(_replaceAskDialog,TQ_SIGNAL(replaceAll()),this,TQ_SLOT(replaceAll()));
}
if(opts.ask) {
@@ -2615,7 +2615,7 @@ void KBabelView::replaceAll()
while(success)
{
- kapp->processEvents(100);
+ tdeApp->processEvents(100);
_replacesTotal++;
@@ -2749,9 +2749,9 @@ void KBabelView::replaceInFile(TQCString fileSource, KBabel::ReplaceOptions opti
else {
if(!_replaceAskDialog) {
_replaceAskDialog = new ReplaceDialog(this);
- connect(_replaceAskDialog,TQT_SIGNAL(replace()),this,TQT_SLOT(replaceNext()));
- connect(_replaceAskDialog,TQT_SIGNAL(next()),this,TQT_SLOT(findNextReplace()));
- connect(_replaceAskDialog,TQT_SIGNAL(replaceAll()),this,TQT_SLOT(replaceAll()));
+ connect(_replaceAskDialog,TQ_SIGNAL(replace()),this,TQ_SLOT(replaceNext()));
+ connect(_replaceAskDialog,TQ_SIGNAL(next()),this,TQ_SLOT(findNextReplace()));
+ connect(_replaceAskDialog,TQ_SIGNAL(replaceAll()),this,TQ_SLOT(replaceAll()));
}
if(options.ask) {
@@ -3335,7 +3335,7 @@ void KBabelView::checkUntranslated()
void KBabelView::autoRemoveFuzzyStatus()
{
// only at first text change remove fuzzy status
- disconnect(msgstrEdit,TQT_SIGNAL(textChanged()),this,TQT_SLOT(autoRemoveFuzzyStatus()));
+ disconnect(msgstrEdit,TQ_SIGNAL(textChanged()),this,TQ_SLOT(autoRemoveFuzzyStatus()));
//removeFuzzyStatus();
}
@@ -3888,7 +3888,7 @@ void KBabelView::spellcheck()
if(emitProgress)
{
emit signalResetProgressBar(i18n("Preparing spell check"),100);
- kapp->processEvents(100);
+ tdeApp->processEvents(100);
}
uint total=last-first+1;
@@ -3900,7 +3900,7 @@ void KBabelView::spellcheck()
lastPercent++;
emit signalProgress(lastPercent);
- kapp->processEvents(100);
+ tdeApp->processEvents(100);
}
TQStringList msgs=_catalog->msgstr(i);
@@ -3943,7 +3943,7 @@ void KBabelView::spellcheck()
_dontBeep=true;
spell.tdespell= new KSpell (this, i18n("Spellcheck"),
- TQT_TQOBJECT(this), TQT_SLOT(spellStart(KSpell *)), spell.config, true, true);
+ this, TQ_SLOT(spellStart(KSpell *)), spell.config, true, true);
if( spell.tdespell->status() == KSpell::Error )
{
KMessageBox::error( this, i18n("KBabel cannot start spell checker. "
@@ -3951,20 +3951,20 @@ void KBabelView::spellcheck()
return;
}
- connect(spell.tdespell, TQT_SIGNAL(death()),this, TQT_SLOT(spellCleanDone()));
+ connect(spell.tdespell, TQ_SIGNAL(death()),this, TQ_SLOT(spellCleanDone()));
- connect(spell.tdespell, TQT_SIGNAL(misspelling(const TQString &, const TQStringList &
+ connect(spell.tdespell, TQ_SIGNAL(misspelling(const TQString &, const TQStringList &
, unsigned int)), this
- , TQT_SLOT(spellMisspelled(const TQString &, const TQStringList &, unsigned int)));
+ , TQ_SLOT(spellMisspelled(const TQString &, const TQStringList &, unsigned int)));
- connect(spell.tdespell, TQT_SIGNAL(corrected(const TQString &, const TQString &, unsigned int))
- , this, TQT_SLOT(spellCorrected(const TQString &, const TQString &, unsigned int)));
+ connect(spell.tdespell, TQ_SIGNAL(corrected(const TQString &, const TQString &, unsigned int))
+ , this, TQ_SLOT(spellCorrected(const TQString &, const TQString &, unsigned int)));
- connect(spell.tdespell,TQT_SIGNAL(ignoreall(const TQString &))
- , this, TQT_SLOT(spellAddIgnore(const TQString &)));
+ connect(spell.tdespell,TQ_SIGNAL(ignoreall(const TQString &))
+ , this, TQ_SLOT(spellAddIgnore(const TQString &)));
- connect(spell.tdespell, TQT_SIGNAL(done(bool))
- , this, TQT_SLOT(spellResult(bool)));
+ connect(spell.tdespell, TQ_SIGNAL(done(bool))
+ , this, TQ_SLOT(spellResult(bool)));
spell.tdespell->setAutoDelete(true); // let KSpell handle delete
}
@@ -4018,7 +4018,7 @@ void KBabelView::spellStart(KSpell *)
if(spell.ignoreList.count() > 0)
{
emit signalResetProgressBar(i18n("Preparing spell check"),100);
- kapp->processEvents(100);
+ tdeApp->processEvents(100);
uint total = spell.ignoreList.count();
uint oldPercent=0;
@@ -4031,7 +4031,7 @@ void KBabelView::spellStart(KSpell *)
{
oldPercent++;
emit signalProgress(oldPercent);
- kapp->processEvents(100);
+ tdeApp->processEvents(100);
}
spell.tdespell->ignore(*it);
@@ -4368,7 +4368,7 @@ void KBabelView::spellResult(bool flag)
spell.tdespell->cleanUp();
emit signalSpellcheckDone(s);
- TQTimer::singleShot(0,this,TQT_SLOT(cleanUpSpellStruct()));
+ TQTimer::singleShot(0,this,TQ_SLOT(cleanUpSpellStruct()));
}
@@ -4458,16 +4458,16 @@ void KBabelView::slotAutoSaveTimeout( )
void KBabelView::useProject (Project::Ptr project)
{
// FIXME: close the current project first
- disconnect (_project, TQT_SIGNAL(signalSpellcheckSettingsChanged()),
- this, TQT_SLOT(updateProjectSettings()));
+ disconnect (_project, TQ_SIGNAL(signalSpellcheckSettingsChanged()),
+ this, TQ_SLOT(updateProjectSettings()));
_project = project;
_catalog->useProject(_project);
readProject(_project);
- connect (project, TQT_SIGNAL(signalSpellcheckSettingsChanged()),
- this, TQT_SLOT(updateProjectSettings()));
+ connect (project, TQ_SIGNAL(signalSpellcheckSettingsChanged()),
+ this, TQ_SLOT(updateProjectSettings()));
}
#include "kbabelview.moc"
diff --git a/kbabel/kbabel/kbabelview2.cpp b/kbabel/kbabel/kbabelview2.cpp
index 5089f563..cacc1290 100644
--- a/kbabel/kbabel/kbabelview2.cpp
+++ b/kbabel/kbabel/kbabelview2.cpp
@@ -273,7 +273,7 @@ void KBabelView::setTagsMenu(TQPopupMenu *menu)
{
_tagsMenu=menu;
- connect(_tagsMenu,TQT_SIGNAL(activated(int)),this,TQT_SLOT(insertTag(int)));
+ connect(_tagsMenu,TQ_SIGNAL(activated(int)),this,TQ_SLOT(insertTag(int)));
}
void KBabelView::modifyMsgstrText(const uint offset, const TQString& text, bool clearFirst)
@@ -407,7 +407,7 @@ void KBabelView::setArgsMenu(TQPopupMenu *menu)
{
_argsMenu=menu;
- connect(_argsMenu,TQT_SIGNAL(activated(int)),this,TQT_SLOT(insertArg(int)));
+ connect(_argsMenu,TQ_SIGNAL(activated(int)),this,TQ_SLOT(insertArg(int)));
}
@@ -706,7 +706,7 @@ bool KBabelView::openDiffFile(bool autoDiff)
Catalog cat;
- connect(&cat,TQT_SIGNAL(signalProgress(int)),this,TQT_SIGNAL(signalProgress(int)));
+ connect(&cat,TQ_SIGNAL(signalProgress(int)),this,TQ_SIGNAL(signalProgress(int)));
emit signalResetProgressBar(i18n("loading file for diff"),100);
ConversionStatus stat = cat.openURL(url);
diff --git a/kbabel/kbabel/kbbookmarkhandler.cpp b/kbabel/kbabel/kbbookmarkhandler.cpp
index 488a4281..2f128fc8 100644
--- a/kbabel/kbabel/kbbookmarkhandler.cpp
+++ b/kbabel/kbabel/kbbookmarkhandler.cpp
@@ -95,7 +95,7 @@ void KBabelBookmarkHandler::addBookmark(KBabelBookmark* b)
// if it's okay then add the bookmark
_list.append(b);
_menu->insertItem(TQString("#%1 - %2").arg(b->msgindex()).arg(b->msgtext()),
- this, TQT_SIGNAL(signalBookmarkSelected(int)), 0, b->msgindex());
+ this, TQ_SIGNAL(signalBookmarkSelected(int)), 0, b->msgindex());
}
void KBabelBookmarkHandler::addBookmark(int msgindex, TQString msgtext)
diff --git a/kbabel/kbabel/kbcataloglistview.cpp b/kbabel/kbabel/kbcataloglistview.cpp
index 40822862..fea743b7 100644
--- a/kbabel/kbabel/kbcataloglistview.cpp
+++ b/kbabel/kbabel/kbcataloglistview.cpp
@@ -52,7 +52,7 @@ KBCatalogListView::KBCatalogListView(KBCatalog* catalog, TQWidget *parent, KBabe
layout->addWidget(m_listview);
layout->setStretchFactor(m_listview,1);
- connect(m_listview,TQT_SIGNAL(selectionChanged(TQListViewItem *)), this,TQT_SLOT(selectionChanged(TQListViewItem *)));
+ connect(m_listview,TQ_SIGNAL(selectionChanged(TQListViewItem *)), this,TQ_SLOT(selectionChanged(TQListViewItem *)));
}
KBCatalogListView::~KBCatalogListView()
diff --git a/kbabel/kbabel/kbcataloglistviewitem.cpp b/kbabel/kbabel/kbcataloglistviewitem.cpp
index 5507e9db..361b967c 100644
--- a/kbabel/kbabel/kbcataloglistviewitem.cpp
+++ b/kbabel/kbabel/kbcataloglistviewitem.cpp
@@ -80,8 +80,8 @@ void KBCatalogListViewItem::setup()
widthChanged();
- m_doc_msgid.reset(0);
- m_doc_msgstr.reset(0);
+ m_doc_msgid.reset();
+ m_doc_msgstr.reset();
makeDocAvailable();
@@ -170,7 +170,7 @@ void KBCatalogListViewItem::paintMsgStrCell(TQPainter* p, const TQColorGroup& cg
void KBCatalogListViewItem::paintCell(TQPainter* p, const TQColorGroup& cg,
int column, int width, int align)
{
- assert(m_doc_msgid.get() && m_doc_msgstr.get() && p);
+ assert(m_doc_msgid && m_doc_msgstr && p);
// paint background (empty text)
@@ -191,7 +191,7 @@ void KBCatalogListViewItem::paintCell(TQPainter* p, const TQColorGroup& cg,
void KBCatalogListViewItem::makeDocAvailable()
{
- if (m_doc_msgid.get() && m_doc_msgstr.get())
+ if (m_doc_msgid && m_doc_msgstr)
return;
assert(listView());
diff --git a/kbabel/kbabel/kbcataloglistviewitem.h b/kbabel/kbabel/kbcataloglistviewitem.h
index 6384360f..a29ca9ba 100644
--- a/kbabel/kbabel/kbcataloglistviewitem.h
+++ b/kbabel/kbabel/kbcataloglistviewitem.h
@@ -65,8 +65,8 @@ private:
TQString m_msgid;
TQString m_msgstr;
- std::auto_ptr<TQSimpleRichText> m_doc_msgid;
- std::auto_ptr<TQSimpleRichText> m_doc_msgstr;
+ std::unique_ptr<TQSimpleRichText> m_doc_msgid;
+ std::unique_ptr<TQSimpleRichText> m_doc_msgstr;
};
#endif
diff --git a/kbabel/kbabel/kbcatalogview.cpp b/kbabel/kbabel/kbcatalogview.cpp
index 1871b221..990eea93 100644
--- a/kbabel/kbabel/kbcatalogview.cpp
+++ b/kbabel/kbabel/kbcatalogview.cpp
@@ -49,8 +49,8 @@ KBCatalogView::KBCatalogView(KBCatalog* catalog, TQWidget* parent, Project::Ptr
_currentIndex=1; // here we use 1 to accept update at opening a file
- connect ( _project, TQT_SIGNAL (signalSettingsChanged()), this, TQT_SLOT (readProjectSettings()) );
- connect ( _catalog, TQT_SIGNAL (signalFileOpened(bool)), this, TQT_SLOT (readFileSettings() ) );
+ connect ( _project, TQ_SIGNAL (signalSettingsChanged()), this, TQ_SLOT (readProjectSettings()) );
+ connect ( _catalog, TQ_SIGNAL (signalFileOpened(bool)), this, TQ_SLOT (readFileSettings() ) );
readProjectSettings();
readFileSettings();
diff --git a/kbabel/kbabel/kbcharselect.cpp b/kbabel/kbabel/kbcharselect.cpp
index 70977aaa..76a89d3f 100644
--- a/kbabel/kbabel/kbcharselect.cpp
+++ b/kbabel/kbabel/kbcharselect.cpp
@@ -61,8 +61,8 @@ KBCharSelect::KBCharSelect(TQWidget* parent,const char* name)
scroll->addChild(_table);
- connect( _table, TQT_SIGNAL( doubleClicked() ), this, TQT_SLOT( emitChar() ) );
- connect( _tableNum, TQT_SIGNAL( valueChanged(int) ), this, TQT_SLOT( setTab(int) ));
+ connect( _table, TQ_SIGNAL( doubleClicked() ), this, TQ_SLOT( emitChar() ) );
+ connect( _tableNum, TQ_SIGNAL( valueChanged(int) ), this, TQ_SLOT( setTab(int) ));
}
void KBCharSelect::emitChar()
diff --git a/kbabel/kbabel/kbhighlighting.cpp b/kbabel/kbabel/kbhighlighting.cpp
index 3f9df538..85daae34 100644
--- a/kbabel/kbabel/kbhighlighting.cpp
+++ b/kbabel/kbabel/kbhighlighting.cpp
@@ -74,7 +74,7 @@ KBabelHighlighter::KBabelHighlighter( TQTextEdit * edit, KSpell *spell ) : TQObj
readSettings( );
regexps << accelMarker + "[\\w]";
- connect( _edit, TQT_SIGNAL( textChanged( ) ), this, TQT_SLOT( highlight( ) ) );
+ connect( _edit, TQ_SIGNAL( textChanged( ) ), this, TQ_SLOT( highlight( ) ) );
setSpellChecker(spell);
}
@@ -285,8 +285,8 @@ void KBabelHighlighter::setSpellChecker( KSpell* spell )
{
if( mSpell )
{
- disconnect(mSpell, TQT_SIGNAL(misspelling(const TQString &, const TQStringList &, unsigned int)),
- this, TQT_SLOT(slotMisspelling(const TQString &, const TQStringList &, unsigned int)));
+ disconnect(mSpell, TQ_SIGNAL(misspelling(const TQString &, const TQStringList &, unsigned int)),
+ this, TQ_SLOT(slotMisspelling(const TQString &, const TQStringList &, unsigned int)));
// cleanup the cache
dict.clear();
@@ -296,11 +296,11 @@ void KBabelHighlighter::setSpellChecker( KSpell* spell )
if( mSpell )
{
- connect(mSpell, TQT_SIGNAL(misspelling(const TQString &, const TQStringList &, unsigned int)),
- this, TQT_SLOT(slotMisspelling(const TQString &, const TQStringList &, unsigned int)));
+ connect(mSpell, TQ_SIGNAL(misspelling(const TQString &, const TQStringList &, unsigned int)),
+ this, TQ_SLOT(slotMisspelling(const TQString &, const TQStringList &, unsigned int)));
// wait for KSpell to startup correctly
- kapp->processEvents(500);
+ tdeApp->processEvents(500);
}
highlight();
diff --git a/kbabel/kbabel/main.cpp b/kbabel/kbabel/main.cpp
index a6282e83..37132825 100644
--- a/kbabel/kbabel/main.cpp
+++ b/kbabel/kbabel/main.cpp
@@ -46,7 +46,7 @@
#include <kcursor.h>
#include <tdelocale.h>
#include <tdemessagebox.h>
-#include <kuniqueapplication.h>
+#include <tdeuniqueapplication.h>
#include <twin.h>
#include <tqfile.h>
@@ -87,7 +87,7 @@ private:
};
-class KBabelApp : public KUniqueApplication
+class KBabelApp : public TDEUniqueApplication
{
public:
KBabelApp();
@@ -100,7 +100,7 @@ private:
};
KBabelApp::KBabelApp()
- : KUniqueApplication()
+ : TDEUniqueApplication()
{
kbInterface = new KBabelInterface;
}
@@ -126,7 +126,7 @@ int KBabelApp::newInstance()
#endif
{
kdDebug () << "Suspending DCOP" << endl;
- kapp->dcopClient()->suspend();
+ tdeApp->dcopClient()->suspend();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
@@ -162,7 +162,7 @@ int KBabelApp::newInstance()
TQString m = TQString::fromLocal8Bit(msgid);
kdDebug () << "Resuming DCOP" << endl;
- kapp->dcopClient()->resume();
+ tdeApp->dcopClient()->resume();
kbInterface->gotoFileEntry(args->url(0).url().local8Bit(),m.utf8());
}
else
@@ -191,7 +191,7 @@ int KBabelApp::newInstance()
}
kdDebug () << "Resuming DCOP" << endl;
- kapp->dcopClient()->resume();
+ tdeApp->dcopClient()->resume();
}
@@ -237,7 +237,7 @@ void KBabelInterface::openURL(TQCString url, TQCString package, WId window, int
KURL u(TQString::fromLocal8Bit(url));
kdDebug () << "Suspending DCOP" << endl;
- kapp->dcopClient()->suspend();
+ tdeApp->dcopClient()->suspend();
KBabelMW *kb = KBabelMW::winForURL(u,project);
if(kb)
@@ -259,7 +259,7 @@ void KBabelInterface::openURL(TQCString url, TQCString package, WId window, int
kb->open(u, TQString::fromUtf8(package),newWindow);
kdDebug () << "Resuming DCOP" << endl;
- kapp->dcopClient()->resume();
+ tdeApp->dcopClient()->resume();
return ;
}
@@ -277,7 +277,7 @@ void KBabelInterface::openURL(TQCString url, TQCString package, WId window, int
kb->open(u,TQString::fromUtf8(package),false);
kdDebug () << "Resuming DCOP" << endl;
- kapp->dcopClient()->resume();
+ tdeApp->dcopClient()->resume();
return;
}
@@ -293,7 +293,7 @@ void KBabelInterface::openURL(TQCString url, TQCString package, WId window, int
kb->open(u, TQString::fromUtf8(package),newWindow);
kdDebug () << "Resuming DCOP" << endl;
- kapp->dcopClient()->resume();
+ tdeApp->dcopClient()->resume();
return ;
}
@@ -310,7 +310,7 @@ void KBabelInterface::openURL(TQCString url, TQCString package, WId window, int
}
kdDebug () << "Resuming DCOP" << endl;
- kapp->dcopClient()->resume();
+ tdeApp->dcopClient()->resume();
}
void KBabelInterface::openTemplate(TQCString openFilename, TQCString saveFilename, TQCString package, int newWindow)
@@ -326,7 +326,7 @@ void KBabelInterface::openTemplate(TQCString openFilename, TQCString saveFilenam
const KURL t( TQString::fromLocal8Bit( openFilename ) );
kdDebug () << "Suspending DCOP" << endl;
- kapp->dcopClient()->suspend();
+ tdeApp->dcopClient()->suspend();
KBabelMW *kb = KBabelMW::winForURL(u, project);
if(kb)
@@ -356,7 +356,7 @@ void KBabelInterface::openTemplate(TQCString openFilename, TQCString saveFilenam
}
kdDebug () << "Resuming DCOP" << endl;
- kapp->dcopClient()->resume();
+ tdeApp->dcopClient()->resume();
}
void KBabelInterface::gotoFileEntry(TQCString url, TQCString m)
@@ -496,7 +496,7 @@ void KBabelInterface::spellcheck(TQStringList fileList)
KBabelMW* KBabelInterface::findInstance( const KURL& url, const TQString& project, const TQString& package) const
{
kdDebug () << "Suspending DCOP" << endl;
- kapp->dcopClient()->suspend();
+ tdeApp->dcopClient()->suspend();
KBabelMW *kb = 0;
if( !url.isEmpty() )
@@ -527,7 +527,7 @@ KBabelMW* KBabelInterface::findInstance( const KURL& url, const TQString& projec
}
kdDebug () << "Resuming DCOP" << endl;
- kapp->dcopClient()->resume();
+ tdeApp->dcopClient()->resume();
return kb;
}
@@ -593,10 +593,10 @@ int main(int argc, char **argv)
TDECmdLineArgs::addCmdLineOptions( options );
// Add options from other components
- KUniqueApplication::addCmdLineOptions();
+ TDEUniqueApplication::addCmdLineOptions();
- if(!KUniqueApplication::start())
+ if(!TDEUniqueApplication::start())
{
return 0;
}
diff --git a/kbabel/kbabel/mymultilineedit.cpp b/kbabel/kbabel/mymultilineedit.cpp
index 3d614f68..80bc4c90 100644
--- a/kbabel/kbabel/mymultilineedit.cpp
+++ b/kbabel/kbabel/mymultilineedit.cpp
@@ -77,7 +77,7 @@ MyMultiLineEdit::MyMultiLineEdit(int ID, TQWidget* parent,const char* name)
setWordWrap( WidgetWidth );
viewport()->setAcceptDrops( false ); // we need our parent to get drops
- connect(this, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT( onSelectionChanged() ) );
+ connect(this, TQ_SIGNAL(selectionChanged()), this, TQ_SLOT( onSelectionChanged() ) );
}
void MyMultiLineEdit::onSelectionChanged()
@@ -641,11 +641,11 @@ MsgMultiLineEdit::MsgMultiLineEdit(int ID, KSpell* spell, TQWidget* parent,const
// this will setup bitBlt pixmaps
setFont( font() );
highlighter = new KBabelHighlighter( this, spell );
- connect( this, TQT_SIGNAL( signalSyntaxHighlightingChanged( bool ) ), highlighter, TQT_SLOT( setSyntaxHighlighting( bool ) ) );
+ connect( this, TQ_SIGNAL( signalSyntaxHighlightingChanged( bool ) ), highlighter, TQ_SLOT( setSyntaxHighlighting( bool ) ) );
- connect( this, TQT_SIGNAL( selectionChanged() ), this, TQT_SLOT( paintSpacePoints() ) );
- connect( this, TQT_SIGNAL( cursorPositionChanged( int, int ) ), this, TQT_SLOT( paintSpacePoints(int, int) ) );
- connect( this, TQT_SIGNAL( textChanged() ), this, TQT_SLOT( emittedTextChanged() ) );
+ connect( this, TQ_SIGNAL( selectionChanged() ), this, TQ_SLOT( paintSpacePoints() ) );
+ connect( this, TQ_SIGNAL( cursorPositionChanged( int, int ) ), this, TQ_SLOT( paintSpacePoints(int, int) ) );
+ connect( this, TQ_SIGNAL( textChanged() ), this, TQ_SLOT( emittedTextChanged() ) );
}
MsgMultiLineEdit::~MsgMultiLineEdit ()
diff --git a/kbabel/kbabel/mymultilineedit.h b/kbabel/kbabel/mymultilineedit.h
index 1c27d264..2fac95af 100644
--- a/kbabel/kbabel/mymultilineedit.h
+++ b/kbabel/kbabel/mymultilineedit.h
@@ -155,7 +155,7 @@ protected:
bool _dontUpdate;
protected slots:
- virtual void insert ( const TQString & text, bool indent = FALSE, bool checkNewLine = TRUE, bool removeSelected = TRUE );
+ virtual void insert ( const TQString & text, bool indent = false, bool checkNewLine = true, bool removeSelected = true );
virtual void emitCursorPosition();
signals:
diff --git a/kbabel/kbabel/sourceview.cpp b/kbabel/kbabel/sourceview.cpp
index 58013eac..6f7de0a1 100644
--- a/kbabel/kbabel/sourceview.cpp
+++ b/kbabel/kbabel/sourceview.cpp
@@ -54,7 +54,7 @@ SourceView::SourceView(KBCatalog* catalog,TQWidget *parent, Project::Ptr project
_contextView = new SourceContext (this, project);
layout->addWidget (_contextView);
- connect(_catalog, TQT_SIGNAL(signalFileOpened(bool)), this, TQT_SLOT(setDisabled(bool)));
+ connect(_catalog, TQ_SIGNAL(signalFileOpened(bool)), this, TQ_SLOT(setDisabled(bool)));
}
void SourceView::updateView()
diff --git a/kbabel/kbabel/taglistview.cpp b/kbabel/kbabel/taglistview.cpp
index 3233ab57..326a0bc7 100644
--- a/kbabel/kbabel/taglistview.cpp
+++ b/kbabel/kbabel/taglistview.cpp
@@ -54,13 +54,13 @@ TagListView::TagListView(KBCatalog* catalog,TQWidget *parent, Project::Ptr proje
layout->addWidget (_tagBox);
- connect(_tagBox,TQT_SIGNAL(selected(const TQString&))
- , this, TQT_SIGNAL(signalTagSelected(const TQString&)));
- connect(_tagBox,TQT_SIGNAL(highlighted(int))
- , this, TQT_SIGNAL(signalHighlightedTagChanged(int)));
+ connect(_tagBox,TQ_SIGNAL(selected(const TQString&))
+ , this, TQ_SIGNAL(signalTagSelected(const TQString&)));
+ connect(_tagBox,TQ_SIGNAL(highlighted(int))
+ , this, TQ_SIGNAL(signalHighlightedTagChanged(int)));
- connect(_catalog, TQT_SIGNAL(signalFileOpened(bool))
- , this, TQT_SLOT(setDisabled(bool)));
+ connect(_catalog, TQ_SIGNAL(signalFileOpened(bool))
+ , this, TQ_SLOT(setDisabled(bool)));
}
void TagListView::updateView()
diff --git a/kbabel/kbabeldict/dictchooser.cpp b/kbabel/kbabeldict/dictchooser.cpp
index bcd1fcbc..09227802 100644
--- a/kbabel/kbabeldict/dictchooser.cpp
+++ b/kbabel/kbabeldict/dictchooser.cpp
@@ -122,17 +122,17 @@ DictChooser::DictChooser(KBabelDictBox*b, TQStringList selected
}
- connect(selectedBox,TQT_SIGNAL(highlighted(int)), this
- , TQT_SLOT(selectedMarked(int)));
- connect(unselectedBox,TQT_SIGNAL(highlighted(int)), this
- , TQT_SLOT(unselectedMarked(int)));
-
- connect(selectBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(select()));
- connect(unselectBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(unselect()));
- connect(upBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(up()));
- connect(downBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(down()));
- connect(configureBtn,TQT_SIGNAL(clicked()), this
- , TQT_SLOT(configureSelected()));
+ connect(selectedBox,TQ_SIGNAL(highlighted(int)), this
+ , TQ_SLOT(selectedMarked(int)));
+ connect(unselectedBox,TQ_SIGNAL(highlighted(int)), this
+ , TQ_SLOT(unselectedMarked(int)));
+
+ connect(selectBtn, TQ_SIGNAL(clicked()), this, TQ_SLOT(select()));
+ connect(unselectBtn, TQ_SIGNAL(clicked()), this, TQ_SLOT(unselect()));
+ connect(upBtn, TQ_SIGNAL(clicked()), this, TQ_SLOT(up()));
+ connect(downBtn, TQ_SIGNAL(clicked()), this, TQ_SLOT(down()));
+ connect(configureBtn,TQ_SIGNAL(clicked()), this
+ , TQ_SLOT(configureSelected()));
selectedBox->installEventFilter(this);
diff --git a/kbabel/kbabeldict/dictchooser.h b/kbabel/kbabeldict/dictchooser.h
index 5bdc685a..d775412c 100644
--- a/kbabel/kbabeldict/dictchooser.h
+++ b/kbabel/kbabeldict/dictchooser.h
@@ -47,7 +47,7 @@ class TQPushButton;
class TQListBoxItem;
-class KDE_EXPORT DictChooser : public TQWidget
+class TDE_EXPORT DictChooser : public TQWidget
{
TQ_OBJECT
diff --git a/kbabel/kbabeldict/dictionarymenu.cpp b/kbabel/kbabeldict/dictionarymenu.cpp
index 4b4f1002..ae414c91 100644
--- a/kbabel/kbabeldict/dictionarymenu.cpp
+++ b/kbabel/kbabeldict/dictionarymenu.cpp
@@ -50,12 +50,12 @@ DictionaryMenu::DictionaryMenu(TDEPopupMenu *popupMenu, TDEActionCollection *col
if(popup)
{
- connect(popup,TQT_SIGNAL(activated(int)),this,TQT_SLOT(activated(int)));
+ connect(popup,TQ_SIGNAL(activated(int)),this,TQ_SLOT(activated(int)));
}
dictionaryMapper = new TQSignalMapper( this );
- connect( dictionaryMapper, TQT_SIGNAL( mapped( int ) ),
- this, TQT_SLOT( activated( int ) ) );
+ connect( dictionaryMapper, TQ_SIGNAL( mapped( int ) ),
+ this, TQ_SLOT( activated( int ) ) );
}
@@ -81,15 +81,15 @@ void DictionaryMenu::clear()
// create new mapper
delete dictionaryMapper;
dictionaryMapper = new TQSignalMapper( this );
- connect( dictionaryMapper, TQT_SIGNAL( mapped( int ) ),
- this, TQT_SLOT( activated( int ) ) );
+ connect( dictionaryMapper, TQ_SIGNAL( mapped( int ) ),
+ this, TQ_SLOT( activated( int ) ) );
}
void DictionaryMenu::add(const TQString& name, const TQString& moduleId)
{
if(popup)
{
- TDEAction* dictionaryAction = new TDEAction( name, 0, dictionaryMapper, TQT_SLOT(map()), actionCollection, moduleId.utf8() );
+ TDEAction* dictionaryAction = new TDEAction( name, 0, dictionaryMapper, TQ_SLOT(map()), actionCollection, moduleId.utf8() );
uint id = maxId++;
dictionaryAction->plug(popup, id);
@@ -116,7 +116,7 @@ void DictionaryMenu::add(const TQString& n, const TQString& moduleId
}
TDEShortcut k(keyString);
- TDEAction* dictionaryAction = new TDEAction( name, k, dictionaryMapper, TQT_SLOT(map()), actionCollection, key.arg(moduleId).utf8() );
+ TDEAction* dictionaryAction = new TDEAction( name, k, dictionaryMapper, TQ_SLOT(map()), actionCollection, key.arg(moduleId).utf8() );
uint id = maxId++;
dictionaryAction->plug(popup,id);
diff --git a/kbabel/kbabeldict/dictionarymenu.h b/kbabel/kbabeldict/dictionarymenu.h
index 62e216e0..635ad013 100644
--- a/kbabel/kbabeldict/dictionarymenu.h
+++ b/kbabel/kbabeldict/dictionarymenu.h
@@ -37,13 +37,13 @@
#include <tqobject.h>
#include <tqstringlist.h>
#include <tqguardedptr.h>
-#include <kdemacros.h>
+#include <tdemacros.h>
class TQSignalMapper;
class TDEPopupMenu;
class TDEActionCollection;
-class KDE_EXPORT DictionaryMenu : public TQObject
+class TDE_EXPORT DictionaryMenu : public TQObject
{
TQ_OBJECT
diff --git a/kbabel/kbabeldict/kbabeldict.cpp b/kbabel/kbabeldict/kbabeldict.cpp
index 03d08e38..0777a1b9 100644
--- a/kbabel/kbabeldict/kbabeldict.cpp
+++ b/kbabel/kbabeldict/kbabeldict.cpp
@@ -47,13 +47,13 @@ KBabelDict::KBabelDict()
, i18n("About"), i18n("About Module")
, i18n("Hide Sett&ings"))
{
- connect(this, TQT_SIGNAL(closeClicked()),this,TQT_SLOT(saveConfig()));
- connect(this, TQT_SIGNAL(closeClicked()),this,TQT_SLOT(quit()));
+ connect(this, TQ_SIGNAL(closeClicked()),this,TQ_SLOT(saveConfig()));
+ connect(this, TQ_SIGNAL(closeClicked()),this,TQ_SLOT(quit()));
view = new KBabelDictView(this);
- connect(this, TQT_SIGNAL(user1Clicked()), view, TQT_SLOT(about()));
- connect(this, TQT_SIGNAL(user2Clicked()), view, TQT_SLOT(aboutModule()));
- connect(this, TQT_SIGNAL(user3Clicked()), this, TQT_SLOT(togglePref()));
+ connect(this, TQ_SIGNAL(user1Clicked()), view, TQ_SLOT(about()));
+ connect(this, TQ_SIGNAL(user2Clicked()), view, TQ_SLOT(aboutModule()));
+ connect(this, TQ_SIGNAL(user3Clicked()), this, TQ_SLOT(togglePref()));
// HACK: hide default button, otherwise it would be Help button
showButtonOK(false);
@@ -92,7 +92,7 @@ void KBabelDict::readConfig()
void KBabelDict::quit()
{
- kapp->quit();
+ tdeApp->quit();
}
void KBabelDict::togglePref()
diff --git a/kbabel/kbabeldict/kbabeldictbox.cpp b/kbabel/kbabeldict/kbabeldictbox.cpp
index 1be091ff..8d0a7a97 100644
--- a/kbabel/kbabeldict/kbabeldictbox.cpp
+++ b/kbabel/kbabeldict/kbabeldictbox.cpp
@@ -52,7 +52,7 @@
#include <tdelistview.h>
#include <tdelocale.h>
#include <tdemessagebox.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include <tdeglobal.h>
#include <kdebug.h>
#include <ktrader.h>
@@ -254,12 +254,12 @@ KBabelDictBox::KBabelDictBox( TQWidget* parent, const char* name, WFlags fl )
listButton = new TQToolButton(TQt::UpArrow,this);
listButton->setFixedSize(20,15);
listButton->setAutoRepeat(false);
- connect(listButton,TQT_SIGNAL(clicked()),this,TQT_SLOT(showListOnly()));
+ connect(listButton,TQ_SIGNAL(clicked()),this,TQ_SLOT(showListOnly()));
hbox->addWidget(listButton);
detailButton = new TQToolButton(TQt::DownArrow,this);
detailButton->setFixedSize(20,15);
detailButton->setAutoRepeat(false);
- connect(detailButton,TQT_SIGNAL(clicked()),this,TQT_SLOT(showDetailsOnly()));
+ connect(detailButton,TQ_SIGNAL(clicked()),this,TQ_SLOT(showDetailsOnly()));
hbox->addWidget(detailButton);
mainLayout->addLayout(hbox);
@@ -291,14 +291,14 @@ KBabelDictBox::KBabelDictBox( TQWidget* parent, const char* name, WFlags fl )
resultListView->installEventFilter(this);
connect(resultListView
- , TQT_SIGNAL(doubleClicked(TQListViewItem *,const TQPoint&,int))
- , this, TQT_SLOT(editFile()));
- connect(resultListView, TQT_SIGNAL(returnPressed(TQListViewItem *))
- , this, TQT_SLOT(editFile()));
+ , TQ_SIGNAL(doubleClicked(TQListViewItem *,const TQPoint&,int))
+ , this, TQ_SLOT(editFile()));
+ connect(resultListView, TQ_SIGNAL(returnPressed(TQListViewItem *))
+ , this, TQ_SLOT(editFile()));
connect(resultListView
- , TQT_SIGNAL(contextMenu(TDEListView *,TQListViewItem *,const TQPoint&))
+ , TQ_SIGNAL(contextMenu(TDEListView *,TQListViewItem *,const TQPoint&))
, this
- , TQT_SLOT(showContextMenu(TDEListView *,TQListViewItem *,const TQPoint&)));
+ , TQ_SLOT(showContextMenu(TDEListView *,TQListViewItem *,const TQPoint&)));
resultSplitter->setResizeMode(viewContainer,TQSplitter::KeepSize);
TQValueList<int> sizes;
@@ -388,7 +388,7 @@ KBabelDictBox::KBabelDictBox( TQWidget* parent, const char* name, WFlags fl )
if(factory)
{
- SearchEngine *e = (SearchEngine *)factory->create(TQT_TQOBJECT(this)
+ SearchEngine *e = (SearchEngine *)factory->create(this
, "searchengine", "SearchEngine");
if(!e)
{
@@ -419,7 +419,7 @@ KBabelDictBox::KBabelDictBox( TQWidget* parent, const char* name, WFlags fl )
if(factory)
{
- SearchEngine *e = (SearchEngine *)factory->create(TQT_TQOBJECT(this)
+ SearchEngine *e = (SearchEngine *)factory->create(this
, "searchengine", "SearchEngine");
if(!e)
{
@@ -447,7 +447,7 @@ KBabelDictBox::KBabelDictBox( TQWidget* parent, const char* name, WFlags fl )
if(factory)
{
- SearchEngine *e = (SearchEngine *)factory->create(TQT_TQOBJECT(this)
+ SearchEngine *e = (SearchEngine *)factory->create(this
, "searchengine", "SearchEngine");
if(!e)
{
@@ -464,9 +464,9 @@ KBabelDictBox::KBabelDictBox( TQWidget* parent, const char* name, WFlags fl )
}
}
- connect(nextButton,TQT_SIGNAL(clicked()),this,TQT_SLOT(slotNextResult()));
- connect(prevButton,TQT_SIGNAL(clicked()),this,TQT_SLOT(slotPrevResult()));
- connect(moreButton,TQT_SIGNAL(clicked()),this,TQT_SLOT(nextInfo()));
+ connect(nextButton,TQ_SIGNAL(clicked()),this,TQ_SLOT(slotNextResult()));
+ connect(prevButton,TQ_SIGNAL(clicked()),this,TQ_SLOT(slotPrevResult()));
+ connect(moreButton,TQ_SIGNAL(clicked()),this,TQ_SLOT(nextInfo()));
origView->installEventFilter(this);
@@ -475,8 +475,8 @@ KBabelDictBox::KBabelDictBox( TQWidget* parent, const char* name, WFlags fl )
resultListView->setSorting(0,false);
resultListView->setAllColumnsShowFocus(true);
- connect(resultListView,TQT_SIGNAL(selectionChanged(TQListViewItem*))
- , this, TQT_SLOT(showResult(TQListViewItem*)));
+ connect(resultListView,TQ_SIGNAL(selectionChanged(TQListViewItem*))
+ , this, TQ_SLOT(showResult(TQListViewItem*)));
}
/*
@@ -490,18 +490,18 @@ void KBabelDictBox::registerModule( SearchEngine* e )
{
active = 0;
moduleList.append(e);
- connect(e, TQT_SIGNAL(started()),this,TQT_SIGNAL(searchStarted()));
- connect(e, TQT_SIGNAL(finished()),this,TQT_SIGNAL(searchStopped()));
- connect(e, TQT_SIGNAL(finished()),this
- ,TQT_SLOT(clearModuleResults()));
- connect(e, TQT_SIGNAL(progress(int)),this,TQT_SIGNAL(progressed(int)));
- connect(e, TQT_SIGNAL(progressStarts(const TQString&)),this
- , TQT_SIGNAL(progressStarts(const TQString&)));
- connect(e, TQT_SIGNAL(progressEnds()),this,TQT_SIGNAL(progressEnds()));
- connect(e, TQT_SIGNAL(resultFound(const SearchResult*)), this
- , TQT_SLOT(addResult(const SearchResult*)));
- connect(e, TQT_SIGNAL(hasError(const TQString&)), this
- , TQT_SIGNAL(errorInModule(const TQString&)));
+ connect(e, TQ_SIGNAL(started()),this,TQ_SIGNAL(searchStarted()));
+ connect(e, TQ_SIGNAL(finished()),this,TQ_SIGNAL(searchStopped()));
+ connect(e, TQ_SIGNAL(finished()),this
+ ,TQ_SLOT(clearModuleResults()));
+ connect(e, TQ_SIGNAL(progress(int)),this,TQ_SIGNAL(progressed(int)));
+ connect(e, TQ_SIGNAL(progressStarts(const TQString&)),this
+ , TQ_SIGNAL(progressStarts(const TQString&)));
+ connect(e, TQ_SIGNAL(progressEnds()),this,TQ_SIGNAL(progressEnds()));
+ connect(e, TQ_SIGNAL(resultFound(const SearchResult*)), this
+ , TQ_SLOT(addResult(const SearchResult*)));
+ connect(e, TQ_SIGNAL(hasError(const TQString&)), this
+ , TQ_SIGNAL(errorInModule(const TQString&)));
}
void KBabelDictBox::saveSettings(TDEConfigBase *config)
@@ -661,8 +661,8 @@ void KBabelDictBox::startSearch(const TQString text)
if(engine->isSearching())
{
engine->stopSearch();
- connect(this, TQT_SIGNAL(searchStopped()), this
- , TQT_SLOT(startDelayedSearch()));
+ connect(this, TQ_SIGNAL(searchStopped()), this
+ , TQ_SLOT(startDelayedSearch()));
searchText=text;
}
@@ -687,8 +687,8 @@ void KBabelDictBox::startTranslationSearch(const TQString text)
if(engine->isSearching())
{
engine->stopSearch();
- connect(this, TQT_SIGNAL(searchStopped()), this
- , TQT_SLOT(startDelayedTranslationSearch()));
+ connect(this, TQ_SIGNAL(searchStopped()), this
+ , TQ_SLOT(startDelayedTranslationSearch()));
searchText=text;
}
@@ -713,13 +713,13 @@ void KBabelDictBox::startDelayedSearch(const TQString text)
{
engine->stopSearch();
- connect(this, TQT_SIGNAL(searchStopped()), this
- , TQT_SLOT(startDelayedSearch()));
+ connect(this, TQ_SIGNAL(searchStopped()), this
+ , TQ_SLOT(startDelayedSearch()));
}
else
{
- TQTimer::singleShot(5,this,TQT_SLOT(startDelayedSearch()));
+ TQTimer::singleShot(5,this,TQ_SLOT(startDelayedSearch()));
}
}
}
@@ -741,13 +741,13 @@ void KBabelDictBox::startDelayedTranslationSearch(const TQString text)
{
engine->stopSearch();
- connect(this, TQT_SIGNAL(searchStopped()), this
- , TQT_SLOT(startDelayedTranslationSearch()));
+ connect(this, TQ_SIGNAL(searchStopped()), this
+ , TQ_SLOT(startDelayedTranslationSearch()));
}
else
{
- TQTimer::singleShot(5,this,TQT_SLOT(startDelayedTranslationSearch()));
+ TQTimer::singleShot(5,this,TQ_SLOT(startDelayedTranslationSearch()));
}
}
}
@@ -824,8 +824,8 @@ void KBabelDictBox::startDelayedSearch()
}
else
{
- disconnect(this, TQT_SIGNAL(searchStopped()), this
- , TQT_SLOT(startDelayedSearch()));
+ disconnect(this, TQ_SIGNAL(searchStopped()), this
+ , TQ_SLOT(startDelayedSearch()));
engine->startSearch(searchText);
@@ -844,8 +844,8 @@ void KBabelDictBox::startDelayedTranslationSearch()
}
else
{
- disconnect(this, TQT_SIGNAL(searchStopped()), this
- , TQT_SLOT(startDelayedTranslationSearch()));
+ disconnect(this, TQ_SIGNAL(searchStopped()), this
+ , TQ_SLOT(startDelayedTranslationSearch()));
engine->startSearchInTranslation(searchText);
@@ -1447,7 +1447,7 @@ void KBabelDictBox::setRMBMenu(TQPopupMenu *popup)
popup->insertSeparator();
editFileIndex = popup->insertItem(i18n("Edit File")
- , this, TQT_SLOT(editFile()));
+ , this, TQ_SLOT(editFile()));
popup->setItemEnabled(editFileIndex,false);
KContextMenuManager::insert(origView,popup);
@@ -1513,12 +1513,12 @@ void KBabelDictBox::configure(const TQString& id, bool modal)
PrefWidget *prefWidget = e->preferencesWidget(dialog);
dialog->setMainWidget(prefWidget);
- connect(dialog, TQT_SIGNAL(okClicked()),prefWidget,TQT_SLOT(apply()));
- connect(dialog, TQT_SIGNAL(applyClicked()),prefWidget,TQT_SLOT(apply()));
- connect(dialog, TQT_SIGNAL(defaultClicked()),prefWidget,TQT_SLOT(standard()));
- connect(dialog, TQT_SIGNAL(cancelClicked()),prefWidget,TQT_SLOT(cancel()));
+ connect(dialog, TQ_SIGNAL(okClicked()),prefWidget,TQ_SLOT(apply()));
+ connect(dialog, TQ_SIGNAL(applyClicked()),prefWidget,TQ_SLOT(apply()));
+ connect(dialog, TQ_SIGNAL(defaultClicked()),prefWidget,TQ_SLOT(standard()));
+ connect(dialog, TQ_SIGNAL(cancelClicked()),prefWidget,TQ_SLOT(cancel()));
- connect(dialog, TQT_SIGNAL(finished()),this,TQT_SLOT(destroyConfigDialog()));
+ connect(dialog, TQ_SIGNAL(finished()),this,TQ_SLOT(destroyConfigDialog()));
prefDialogs.insert(id,dialog);
@@ -1676,7 +1676,7 @@ void KBabelDictBox::editFile()
msgid = result->found.first();
}
- DCOPClient *dcop = kapp->dcopClient();
+ DCOPClient *dcop = tdeApp->dcopClient();
QCStringList list = dcop->registeredApplications();
int index = list.findIndex("kbabel");
@@ -1691,7 +1691,7 @@ void KBabelDictBox::editFile()
argList.append("--gotomsgid");
argList.append(msgid.local8Bit());
argList.append(url.local8Bit());
- kapp->tdeinitExec("kbabel",argList,&error);
+ tdeApp->tdeinitExec("kbabel",argList,&error);
if(!error.isNull())
{
KMessageBox::sorry(this
diff --git a/kbabel/kbabeldict/kbabeldictbox.h b/kbabel/kbabeldict/kbabeldictbox.h
index 5e506793..859df4af 100644
--- a/kbabel/kbabeldict/kbabeldictbox.h
+++ b/kbabel/kbabeldict/kbabeldictbox.h
@@ -60,7 +60,7 @@ struct ModuleInfo
};
-class KDE_EXPORT KBabelDictBox : public TQWidget, virtual public KBabelDictIFace
+class TDE_EXPORT KBabelDictBox : public TQWidget, virtual public KBabelDictIFace
{
TQ_OBJECT
diff --git a/kbabel/kbabeldict/kbabeldictview.cpp b/kbabel/kbabeldict/kbabeldictview.cpp
index 7964c65a..0579dee8 100644
--- a/kbabel/kbabeldict/kbabeldictview.cpp
+++ b/kbabel/kbabeldict/kbabeldictview.cpp
@@ -158,25 +158,25 @@ KBabelDictView::KBabelDictView( TQWidget* parent, const char* name, WFlags fl )
progressLabel = new TQLabel(h);
progressBar = new KProgress(h);
- connect(textEdit,TQT_SIGNAL(returnPressed()),startButton,TQT_SLOT(animateClick()));
- connect(startButton,TQT_SIGNAL(clicked()),this, TQT_SLOT(startSearch()));
- connect(stopButton, TQT_SIGNAL(clicked()), dictBox,TQT_SLOT(slotStopSearch()));
- connect(editButton, TQT_SIGNAL(clicked()), dictBox, TQT_SLOT(edit()));
- connect(dictBox, TQT_SIGNAL(searchStarted()), this, TQT_SLOT(searchStarted()));
- connect(dictBox, TQT_SIGNAL(searchStopped()), this, TQT_SLOT(searchStopped()));
- connect(dictBox, TQT_SIGNAL(progressed(int)), progressBar, TQT_SLOT(setProgress(int)));
- connect(dictBox, TQT_SIGNAL(activeModuleChanged(bool))
- , editButton, TQT_SLOT(setEnabled(bool)));
+ connect(textEdit,TQ_SIGNAL(returnPressed()),startButton,TQ_SLOT(animateClick()));
+ connect(startButton,TQ_SIGNAL(clicked()),this, TQ_SLOT(startSearch()));
+ connect(stopButton, TQ_SIGNAL(clicked()), dictBox,TQ_SLOT(slotStopSearch()));
+ connect(editButton, TQ_SIGNAL(clicked()), dictBox, TQ_SLOT(edit()));
+ connect(dictBox, TQ_SIGNAL(searchStarted()), this, TQ_SLOT(searchStarted()));
+ connect(dictBox, TQ_SIGNAL(searchStopped()), this, TQ_SLOT(searchStopped()));
+ connect(dictBox, TQ_SIGNAL(progressed(int)), progressBar, TQ_SLOT(setProgress(int)));
+ connect(dictBox, TQ_SIGNAL(activeModuleChanged(bool))
+ , editButton, TQ_SLOT(setEnabled(bool)));
- connect(dictBox, TQT_SIGNAL(progressStarts(const TQString&))
- , this, TQT_SLOT(progressStarted(const TQString&)));
- connect(dictBox, TQT_SIGNAL(progressEnds()), this, TQT_SLOT(progressStopped()));
+ connect(dictBox, TQ_SIGNAL(progressStarts(const TQString&))
+ , this, TQ_SLOT(progressStarted(const TQString&)));
+ connect(dictBox, TQ_SIGNAL(progressEnds()), this, TQ_SLOT(progressStopped()));
- connect(moduleCombo, TQT_SIGNAL(activated(int)),
- dictBox, TQT_SLOT(setActiveModule(int)));
- connect(dictBox, TQT_SIGNAL(activeModuleChanged(int))
- , this, TQT_SLOT(switchModule(int)));
- connect(clearButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotClearSearch()));
+ connect(moduleCombo, TQ_SIGNAL(activated(int)),
+ dictBox, TQ_SLOT(setActiveModule(int)));
+ connect(dictBox, TQ_SIGNAL(activeModuleChanged(int))
+ , this, TQ_SLOT(switchModule(int)));
+ connect(clearButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotClearSearch()));
}
/*
diff --git a/kbabel/kbabeldict/kbabelsplash.cpp b/kbabel/kbabeldict/kbabelsplash.cpp
index 56c5e3a8..655f6425 100644
--- a/kbabel/kbabeldict/kbabelsplash.cpp
+++ b/kbabel/kbabeldict/kbabelsplash.cpp
@@ -36,7 +36,7 @@
#include <tqfontmetrics.h>
#include <tqpainter.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
KBabelSplash* KBabelSplash::instance = 0;
diff --git a/kbabel/kbabeldict/main.cpp b/kbabel/kbabeldict/main.cpp
index 98d00d05..77ad6e48 100644
--- a/kbabel/kbabeldict/main.cpp
+++ b/kbabel/kbabeldict/main.cpp
@@ -91,8 +91,8 @@ KBabelDictApplication::KBabelDictApplication()
TDEApplication::restoreOverrideCursor();
}
- TQObject::connect( topLevel, TQT_SIGNAL( destroyed() ),
- this, TQT_SLOT( quit() ) );
+ TQObject::connect( topLevel, TQ_SIGNAL( destroyed() ),
+ this, TQ_SLOT( quit() ) );
}
KBabelDictApplication::~KBabelDictApplication()
diff --git a/kbabel/kbabeldict/modules/dbsearchengine/KDBSearchEngine.cpp b/kbabel/kbabeldict/modules/dbsearchengine/KDBSearchEngine.cpp
index 5423bca9..9fee3217 100644
--- a/kbabel/kbabeldict/modules/dbsearchengine/KDBSearchEngine.cpp
+++ b/kbabel/kbabeldict/modules/dbsearchengine/KDBSearchEngine.cpp
@@ -39,7 +39,7 @@
#include <tdemessagebox.h>
#include <tdefiledialog.h>
#include <kurlrequester.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include "tdeapplication.h"
#include "KDBSearchEngine.h"
@@ -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!!!
@@ -91,8 +91,8 @@ SearchEngine (parent, name)
searching = false;
stopNow = false;
- norm = false; // Normalize white space = FALSE
- comm = true; // Remove Comments = TRUE
+ norm = false; // Normalize white space = false
+ comm = true; // Remove Comments = true
}
@@ -474,7 +474,7 @@ KDBSearchEngine::messagesForFilter (const SearchFilter * filter,
if (count % step == 0)
{
emit progress (100 * count / totalRecord);
- kapp->processEvents (100);
+ tdeApp->processEvents (100);
}
if (stopNow)
{
@@ -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";
@@ -582,7 +582,7 @@ KDBSearchEngine::repeat ()
if (count % step == 0)
{
emit progress (100 * count / totalRecord);
- kapp->processEvents (100);
+ tdeApp->processEvents (100);
}
if (stopNow)
{
@@ -755,7 +755,7 @@ KDBSearchEngine::startSearchNow (int searchmode)
step = 100;
emit progress (0);
- kapp->processEvents (100);
+ tdeApp->processEvents (100);
if (stopNow)
{
stopNow = false;
@@ -775,7 +775,7 @@ KDBSearchEngine::startSearchNow (int searchmode)
{
emit progress (100 * count / /*TQMAX( */
totalprogress /*,1) */ );
- kapp->processEvents (100);
+ tdeApp->processEvents (100);
if (stopNow)
{
@@ -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 ();
@@ -1715,7 +1715,7 @@ TQValueList < KeyAndScore > KDBSearchEngine::searchWords (TQString phrase,
{
emit
progress (100 * count / totalprogress);
- kapp->processEvents (100);
+ tdeApp->processEvents (100);
}
if (stopNow)
{
diff --git a/kbabel/kbabeldict/modules/dbsearchengine/dbscan.cpp b/kbabel/kbabeldict/modules/dbsearchengine/dbscan.cpp
index 183b1e4d..8ea17024 100644
--- a/kbabel/kbabeldict/modules/dbsearchengine/dbscan.cpp
+++ b/kbabel/kbabeldict/modules/dbsearchengine/dbscan.cpp
@@ -121,7 +121,7 @@ Catalog * catalog=new Catalog(this,"ScanPoCatalog");
TQString location=fileName.right(fileName.length()-fileName.findRev("/")-1);
-connect(catalog,TQT_SIGNAL(signalProgress(int)),this,TQT_SIGNAL(fileLoading(int)));
+connect(catalog,TQ_SIGNAL(signalProgress(int)),this,TQ_SIGNAL(fileLoading(int)));
emit filename(location);
emit fileProgress(0);
emit fileLoading(0);
@@ -159,7 +159,7 @@ for (i=0;i<tot;i++) //Skip header = ????
{
emit fileProgress(100*i/tot);
emit added(count);
- kapp->processEvents(100);
+ tdeApp->processEvents(100);
}
fuzzy=catalog->isFuzzy(i);
diff --git a/kbabel/kbabeldict/modules/dbsearchengine/dbse_factory.cpp b/kbabel/kbabeldict/modules/dbsearchengine/dbse_factory.cpp
index 2273a9c4..6b51da7b 100644
--- a/kbabel/kbabeldict/modules/dbsearchengine/dbse_factory.cpp
+++ b/kbabel/kbabeldict/modules/dbsearchengine/dbse_factory.cpp
@@ -1,6 +1,6 @@
#include <tdelocale.h>
-#include <kinstance.h>
+#include <tdeinstance.h>
#include <tdeaboutdata.h>
#include <kdebug.h>
@@ -10,7 +10,7 @@
extern "C"
{
- KDE_EXPORT void *init_kbabeldict_dbsearchengine()
+ TDE_EXPORT void *init_kbabeldict_dbsearchengine()
{
return new DbSeFactory;
}
diff --git a/kbabel/kbabeldict/modules/dbsearchengine/preferenceswidget.cpp b/kbabel/kbabeldict/modules/dbsearchengine/preferenceswidget.cpp
index e87294e4..1c82c47a 100644
--- a/kbabel/kbabeldict/modules/dbsearchengine/preferenceswidget.cpp
+++ b/kbabel/kbabeldict/modules/dbsearchengine/preferenceswidget.cpp
@@ -9,7 +9,7 @@
#include <kurlrequester.h>
#include <tqtoolbutton.h>
#include <klineedit.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include "dbseprefwidget.h"
#include "preferenceswidget.h"
@@ -27,7 +27,7 @@ PreferencesWidget::PreferencesWidget(TQWidget *parent, const char* name)
layout->addWidget(dbpw);
resize(TQSize(200,200).expandedTo(minimumSizeHint()));
-// connect(dbpw->browseTB_3,TQT_SIGNAL(clicked()),TQT_SLOT(browse1()));
+// connect(dbpw->browseTB_3,TQ_SIGNAL(clicked()),TQ_SLOT(browse1()));
emit restoreNow(); //Fill with actual params.
diff --git a/kbabel/kbabeldict/modules/dbsearchengine2/KDBSearchEngine2.cpp b/kbabel/kbabeldict/modules/dbsearchengine2/KDBSearchEngine2.cpp
index 2d564267..1399cc6f 100644
--- a/kbabel/kbabeldict/modules/dbsearchengine2/KDBSearchEngine2.cpp
+++ b/kbabel/kbabeldict/modules/dbsearchengine2/KDBSearchEngine2.cpp
@@ -39,7 +39,7 @@
#include <kurlrequester.h>
#include <tqcheckbox.h>
#include <knuminput.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include <tdemessagebox.h>
#include <tqmap.h>
@@ -55,7 +55,7 @@ KDBSearchEngine2::KDBSearchEngine2(TQObject *parent,const char*name)
di=0; //Database Interface is not yet initialized
- connect(this,TQT_SIGNAL(hasError(TQString)),TQT_SLOT(setLastError(TQString)));
+ connect(this,TQ_SIGNAL(hasError(TQString)),TQ_SLOT(setLastError(TQString)));
searching=false; // i'm not searching
iAmReady=true; //there are no reason to say I'm not ready.
@@ -134,8 +134,8 @@ bool KDBSearchEngine2::startSearch(TQString str)
strategy.addAlgorithm(&wbyw);
- connect(&strategy,TQT_SIGNAL(newResult(QueryResult)),this,TQT_SLOT(receiveResult(QueryResult)));
- strategy.exec(searchingString); disconnect(&strategy,TQT_SIGNAL(newResult(QueryResult)),this,TQT_SLOT(receiveResult(QueryResult)));
+ connect(&strategy,TQ_SIGNAL(newResult(QueryResult)),this,TQ_SLOT(receiveResult(QueryResult)));
+ strategy.exec(searchingString); disconnect(&strategy,TQ_SIGNAL(newResult(QueryResult)),this,TQ_SLOT(receiveResult(QueryResult)));
kdDebug(0) << "End of search for " << searchingString << endl;
@@ -230,7 +230,7 @@ bool KDBSearchEngine2::init()
else
{
di = new DataBaseInterface(dbDirectory,&settings);
- connect(di,TQT_SIGNAL(newResult(QueryResult)),this,TQT_SLOT(receiveResult(QueryResult)));
+ connect(di,TQ_SIGNAL(newResult(QueryResult)),this,TQ_SLOT(receiveResult(QueryResult)));
//FIXME: what wbout ready()
if(!di->mainOk()) return false; //check if the main DB is OK.
@@ -261,16 +261,16 @@ PrefWidget * KDBSearchEngine2::preferencesWidget(TQWidget *parent)
pw = new KDB2PreferencesWidget(parent);
kdDebug(0) << "new KDB2 preferences widget" << endl;
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,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->scanAll,TQT_SIGNAL(clicked()),this,TQT_SLOT(scanAllPressed()));
- connect(pw->dbpw->scanSource,TQT_SIGNAL(clicked()),this,TQT_SLOT(scanNowPressed()));
- connect(pw->dbpw->addSource,TQT_SIGNAL(clicked()),this,TQT_SLOT(addSource()));
- connect(pw->dbpw->editSource,TQT_SIGNAL(clicked()),this,TQT_SLOT(editSource()));
- connect(pw->dbpw->removeSource,TQT_SIGNAL(clicked()),this,TQT_SLOT(removeSource()));
+ connect(pw->dbpw->scanAll,TQ_SIGNAL(clicked()),this,TQ_SLOT(scanAllPressed()));
+ connect(pw->dbpw->scanSource,TQ_SIGNAL(clicked()),this,TQ_SLOT(scanNowPressed()));
+ connect(pw->dbpw->addSource,TQ_SIGNAL(clicked()),this,TQ_SLOT(addSource()));
+ connect(pw->dbpw->editSource,TQ_SIGNAL(clicked()),this,TQ_SLOT(editSource()));
+ connect(pw->dbpw->removeSource,TQ_SIGNAL(clicked()),this,TQ_SLOT(removeSource()));
return pw;
diff --git a/kbabel/kbabeldict/modules/dbsearchengine2/algorithms.cpp b/kbabel/kbabeldict/modules/dbsearchengine2/algorithms.cpp
index 466b68e5..fc3fd048 100644
--- a/kbabel/kbabeldict/modules/dbsearchengine2/algorithms.cpp
+++ b/kbabel/kbabeldict/modules/dbsearchengine2/algorithms.cpp
@@ -42,12 +42,12 @@ DataBaseInterface::ResultList GenericSearchAlgorithm::exec(const TQString& query
uint countResults=0;
for(TQValueList<AbstractSearchAlgorithm *>::iterator algoit = algoChain.begin(); algoit!=algoChain.end() && countResults < maxResults; algoit++)
{
- connect(*algoit,TQT_SIGNAL(newResult(QueryResult)),this,TQT_SIGNAL(newResult(QueryResult)));
+ connect(*algoit,TQ_SIGNAL(newResult(QueryResult)),this,TQ_SIGNAL(newResult(QueryResult)));
kdDebug(0) << "Algo pointer" << (*algoit) << endl;
res+=(*algoit)->exec(query);
countResults=res.count();
kdDebug(0) << "Count = " << countResults << endl;
- disconnect(*algoit,TQT_SIGNAL(newResult(QueryResult)),this,TQT_SIGNAL(newResult(QueryResult)));
+ disconnect(*algoit,TQ_SIGNAL(newResult(QueryResult)),this,TQ_SIGNAL(newResult(QueryResult)));
}
return res;
}
diff --git a/kbabel/kbabeldict/modules/dbsearchengine2/database.cpp b/kbabel/kbabeldict/modules/dbsearchengine2/database.cpp
index aa64a4b0..862e7db3 100644
--- a/kbabel/kbabeldict/modules/dbsearchengine2/database.cpp
+++ b/kbabel/kbabeldict/modules/dbsearchengine2/database.cpp
@@ -172,7 +172,7 @@ DataBaseInterface::MainEntry DataBaseInterface::get(const TQString& query,Search
//int r=
main->get(&k,&d);
// kdDebug(0) << "MAINDB->GET returned: " << r << endl;
- if(counter%5==0) kapp->processEvents(100);
+ if(counter%5==0) tdeApp->processEvents(100);
// kdDebug(0) << "events processed" << endl;
return qMakePair(k,d);
@@ -726,7 +726,7 @@ DataBaseInterface::MainEntry DataBaseInterface::getSentence( const TQString & qu
DBItemMainKey k(query);
DBItemMainData d;
sentence->get(&k,&d);
- if(counter%5==0) kapp->processEvents(100);
+ if(counter%5==0) tdeApp->processEvents(100);
return qMakePair(k,d);
}
diff --git a/kbabel/kbabeldict/modules/dbsearchengine2/dbscan.cpp b/kbabel/kbabeldict/modules/dbsearchengine2/dbscan.cpp
index 2fe4ae98..9ae67fde 100644
--- a/kbabel/kbabeldict/modules/dbsearchengine2/dbscan.cpp
+++ b/kbabel/kbabeldict/modules/dbsearchengine2/dbscan.cpp
@@ -205,7 +205,7 @@ Catalog * catalog=new Catalog(this,"ScanPoCatalog");
TQString pretty=u.prettyURL();
TQString location=pretty.right(pretty.length()-pretty.findRev("/")-1);
-connect(catalog,TQT_SIGNAL(signalProgress(int)),this,TQT_SIGNAL(fileLoading(int)));
+connect(catalog,TQ_SIGNAL(signalProgress(int)),this,TQ_SIGNAL(fileLoading(int)));
emit filename(location);
emit fileProgress(0);
emit fileLoading(0);
@@ -243,7 +243,7 @@ for (i=0;i<tot;i++) //Skip header = ????
{
emit fileProgress(100*i/tot);
emit added(count);
- kapp->processEvents(100);
+ tdeApp->processEvents(100);
}
fuzzy=catalog->isFuzzy(i);
diff --git a/kbabel/kbabeldict/modules/dbsearchengine2/dbse2_factory.cpp b/kbabel/kbabeldict/modules/dbsearchengine2/dbse2_factory.cpp
index ad2aa0dd..a51001ae 100644
--- a/kbabel/kbabeldict/modules/dbsearchengine2/dbse2_factory.cpp
+++ b/kbabel/kbabeldict/modules/dbsearchengine2/dbse2_factory.cpp
@@ -1,6 +1,6 @@
#include <tdelocale.h>
-#include <kinstance.h>
+#include <tdeinstance.h>
#include <tdeaboutdata.h>
#include <kdebug.h>
@@ -10,7 +10,7 @@
extern "C"
{
- KDE_EXPORT void *init_kbabeldict_dbsearchengine2()
+ TDE_EXPORT void *init_kbabeldict_dbsearchengine2()
// void *init_libdbsearchengine2()
{
return new DbSe2Factory;
diff --git a/kbabel/kbabeldict/modules/dbsearchengine2/preferenceswidget.cpp b/kbabel/kbabeldict/modules/dbsearchengine2/preferenceswidget.cpp
index 0b332eef..a4301d88 100644
--- a/kbabel/kbabeldict/modules/dbsearchengine2/preferenceswidget.cpp
+++ b/kbabel/kbabeldict/modules/dbsearchengine2/preferenceswidget.cpp
@@ -9,7 +9,7 @@
#include <kurlrequester.h>
#include <tqtoolbutton.h>
#include <klineedit.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include <knuminput.h>
#include "dbse2.h"
@@ -30,7 +30,7 @@ KDB2PreferencesWidget::KDB2PreferencesWidget(TQWidget *parent, const char* name)
standard();
-// connect(dbpw->browseTB_3,TQT_SIGNAL(clicked()),TQT_SLOT(browse1()));
+// connect(dbpw->browseTB_3,TQ_SIGNAL(clicked()),TQ_SLOT(browse1()));
emit restoreNow(); //Fill with actual params.
diff --git a/kbabel/kbabeldict/modules/poauxiliary/pa_factory.cpp b/kbabel/kbabeldict/modules/poauxiliary/pa_factory.cpp
index 8d706b99..5dce4c5e 100644
--- a/kbabel/kbabeldict/modules/poauxiliary/pa_factory.cpp
+++ b/kbabel/kbabeldict/modules/poauxiliary/pa_factory.cpp
@@ -33,7 +33,7 @@
#include <tdelocale.h>
-#include <kinstance.h>
+#include <tdeinstance.h>
#include <tdeaboutdata.h>
#include <kdebug.h>
@@ -43,7 +43,7 @@
extern "C"
{
- KDE_EXPORT void *init_kbabeldict_poauxiliary()
+ TDE_EXPORT void *init_kbabeldict_poauxiliary()
{
return new PaFactory;
}
diff --git a/kbabel/kbabeldict/modules/poauxiliary/poauxiliary.cpp b/kbabel/kbabeldict/modules/poauxiliary/poauxiliary.cpp
index 815e025f..60f2f699 100644
--- a/kbabel/kbabeldict/modules/poauxiliary/poauxiliary.cpp
+++ b/kbabel/kbabeldict/modules/poauxiliary/poauxiliary.cpp
@@ -35,7 +35,7 @@
#include <tdecmdlineargs.h>
#include <kdebug.h>
#include <tdeglobal.h>
-#include <kinstance.h>
+#include <tdeinstance.h>
#include <tqregexp.h>
#include <tqtimer.h>
@@ -64,7 +64,7 @@ PoAuxiliary::PoAuxiliary(TQObject *parent, const char *name)
ignoreFuzzy=true;
loadTimer = new TQTimer(this);
- connect(loadTimer,TQT_SIGNAL(timeout()),this,TQT_SLOT(loadAuxiliary()));
+ connect(loadTimer,TQ_SIGNAL(timeout()),this,TQ_SLOT(loadAuxiliary()));
msgidDict.setAutoDelete(true);
}
@@ -127,9 +127,9 @@ void PoAuxiliary::readSettings(TDEConfigBase *config)
PrefWidget *PoAuxiliary::preferencesWidget(TQWidget *parent)
{
prefWidget = new AuxiliaryPreferencesWidget(parent,"pocompendium_prefwidget");
- connect(prefWidget, TQT_SIGNAL(applySettings()), this, TQT_SLOT(applySettings()));
- connect(prefWidget, TQT_SIGNAL(restoreSettings())
- , this, TQT_SLOT(restoreSettings()));
+ connect(prefWidget, TQ_SIGNAL(applySettings()), this, TQ_SLOT(applySettings()));
+ connect(prefWidget, TQ_SIGNAL(restoreSettings())
+ , this, TQ_SLOT(restoreSettings()));
restoreSettings();
@@ -182,7 +182,7 @@ bool PoAuxiliary::startSearch(const TQString& t, uint pluralForm, const SearchFi
clearResults();
- kapp->processEvents(100);
+ tdeApp->processEvents(100);
text.replace("\n","");
@@ -255,7 +255,7 @@ bool PoAuxiliary::startSearchInTranslation(const TQString& text)
clearResults();
- kapp->processEvents(100);
+ tdeApp->processEvents(100);
Entry *entry = msgstrDict[text];
if(entry)
@@ -424,8 +424,8 @@ void PoAuxiliary::loadAuxiliary()
}
emit progressStarts(i18n("Loading PO auxiliary"));
- connect(catalog, TQT_SIGNAL(signalProgress(int))
- , this, TQT_SIGNAL(progress(int)));
+ connect(catalog, TQ_SIGNAL(signalProgress(int))
+ , this, TQ_SIGNAL(progress(int)));
ConversionStatus stat = catalog->openURL(u);
if( stat != OK && stat != RECOVERED_PARSE_ERROR)
@@ -455,7 +455,7 @@ void PoAuxiliary::loadAuxiliary()
if( (100*(i+1))%total < 100 )
{
emit progress((100*(i+1))/total);
- kapp->processEvents(100);
+ tdeApp->processEvents(100);
}
Entry *e = new Entry;
@@ -476,8 +476,8 @@ void PoAuxiliary::loadAuxiliary()
auxTranslator = catalog->lastTranslator();
}
- disconnect(catalog, TQT_SIGNAL(signalProgress(int))
- , this, TQT_SIGNAL(progress(int)));
+ disconnect(catalog, TQ_SIGNAL(signalProgress(int))
+ , this, TQ_SIGNAL(progress(int)));
emit progressEnds();
diff --git a/kbabel/kbabeldict/modules/poauxiliary/preferenceswidget.cpp b/kbabel/kbabeldict/modules/poauxiliary/preferenceswidget.cpp
index 378b1830..ddf63616 100644
--- a/kbabel/kbabeldict/modules/poauxiliary/preferenceswidget.cpp
+++ b/kbabel/kbabeldict/modules/poauxiliary/preferenceswidget.cpp
@@ -53,8 +53,8 @@ AuxiliaryPreferencesWidget::AuxiliaryPreferencesWidget(TQWidget *parent, const c
layout->addWidget(prefWidget);
- connect(prefWidget->urlInput->lineEdit(),TQT_SIGNAL(textChanged(const TQString&))
- , this, TQT_SLOT(setChanged()));
+ connect(prefWidget->urlInput->lineEdit(),TQ_SIGNAL(textChanged(const TQString&))
+ , this, TQ_SLOT(setChanged()));
}
AuxiliaryPreferencesWidget::~AuxiliaryPreferencesWidget()
diff --git a/kbabel/kbabeldict/modules/pocompendium/compendiumdata.cpp b/kbabel/kbabeldict/modules/pocompendium/compendiumdata.cpp
index 22598cbf..33bd2981 100644
--- a/kbabel/kbabeldict/modules/pocompendium/compendiumdata.cpp
+++ b/kbabel/kbabeldict/modules/pocompendium/compendiumdata.cpp
@@ -77,12 +77,12 @@ bool CompendiumData::load(KURL url)
emit progressStarts(i18n("Loading PO compendium"));
- connect(_catalog, TQT_SIGNAL(signalProgress(int)), this, TQT_SIGNAL(progress(int)));
+ connect(_catalog, TQ_SIGNAL(signalProgress(int)), this, TQ_SIGNAL(progress(int)));
ConversionStatus stat=_catalog->openURL(url);
- disconnect(_catalog, TQT_SIGNAL(signalProgress(int))
- , this, TQT_SIGNAL(progress(int)));
+ disconnect(_catalog, TQ_SIGNAL(signalProgress(int))
+ , this, TQ_SIGNAL(progress(int)));
if( stat!= OK && stat != RECOVERED_PARSE_ERROR)
@@ -109,7 +109,7 @@ bool CompendiumData::load(KURL url)
if( (100*(i+1))%total < 100 )
{
emit progress((100*(i+1))/total);
- kapp->processEvents(100);
+ tdeApp->processEvents(100);
}
// FIXME: shoudl care about plural forms
diff --git a/kbabel/kbabeldict/modules/pocompendium/pc_factory.cpp b/kbabel/kbabeldict/modules/pocompendium/pc_factory.cpp
index 936a5a5a..fff60355 100644
--- a/kbabel/kbabeldict/modules/pocompendium/pc_factory.cpp
+++ b/kbabel/kbabeldict/modules/pocompendium/pc_factory.cpp
@@ -33,7 +33,7 @@
#include <tdelocale.h>
-#include <kinstance.h>
+#include <tdeinstance.h>
#include <tdeaboutdata.h>
#include <kdebug.h>
@@ -43,7 +43,7 @@
extern "C"
{
- KDE_EXPORT void *init_kbabeldict_pocompendium()
+ TDE_EXPORT void *init_kbabeldict_pocompendium()
{
return new PcFactory;
}
diff --git a/kbabel/kbabeldict/modules/pocompendium/pocompendium.cpp b/kbabel/kbabeldict/modules/pocompendium/pocompendium.cpp
index 9d1f6440..eab0231b 100644
--- a/kbabel/kbabeldict/modules/pocompendium/pocompendium.cpp
+++ b/kbabel/kbabeldict/modules/pocompendium/pocompendium.cpp
@@ -38,7 +38,7 @@
#include <kstaticdeleter.h>
#include <kdebug.h>
#include <tdeglobal.h>
-#include <kinstance.h>
+#include <tdeinstance.h>
#include <tdeio/netaccess.h>
#include <tqregexp.h>
@@ -88,7 +88,7 @@ PoCompendium::PoCompendium(TQObject *parent, const char *name)
loadTimer = new TQTimer(this);
- connect(loadTimer,TQT_SIGNAL(timeout()),this,TQT_SLOT(slotLoadCompendium()));
+ connect(loadTimer,TQ_SIGNAL(timeout()),this,TQ_SLOT(slotLoadCompendium()));
}
PoCompendium::~PoCompendium()
@@ -164,9 +164,9 @@ PrefWidget *PoCompendium::preferencesWidget(TQWidget *parent)
{
prefWidget = new CompendiumPreferencesWidget(parent,"pocompendium_prefwidget");
kdDebug(KBABEL_SEARCH) << "PreferencesWidget is " << prefWidget << endl;
- connect(prefWidget, TQT_SIGNAL(applySettings()), this, TQT_SLOT(applySettings()));
- connect(prefWidget, TQT_SIGNAL(restoreSettings())
- , this, TQT_SLOT(restoreSettings()));
+ connect(prefWidget, TQ_SIGNAL(applySettings()), this, TQ_SLOT(applySettings()));
+ connect(prefWidget, TQ_SIGNAL(restoreSettings())
+ , this, TQ_SLOT(restoreSettings()));
restoreSettings();
@@ -369,7 +369,7 @@ bool PoCompendium::searchWords(const TQString& searchStr, uint pluralForm, TQPtr
emit progress( (50*checkCounter+1)/catalogInfo.total);
}
- kapp->processEvents(100);
+ tdeApp->processEvents(100);
TQString origStr = data->catalog()->msgid(*it).first();
origStr = CompendiumData::simplify(origStr);
@@ -537,7 +537,7 @@ bool PoCompendium::searchNGram(const TQString& searchStr, uint pluralForm, TQPtr
continue;
}
- kapp->processEvents(100);
+ tdeApp->processEvents(100);
TQString origStr = data->catalog()->msgid(i).first();
origStr = CompendiumData::simplify(origStr);
@@ -828,7 +828,7 @@ void PoCompendium::slotLoadCompendium()
}
else
{
- connect(data, TQT_SIGNAL(progressEnds()), this, TQT_SLOT(recheckData()));
+ connect(data, TQ_SIGNAL(progressEnds()), this, TQ_SLOT(recheckData()));
}
}
else
@@ -847,7 +847,7 @@ void PoCompendium::recheckData()
{
if(data)
{
- disconnect(data, TQT_SIGNAL(progressEnds()), this, TQT_SLOT(recheckData()));
+ disconnect(data, TQ_SIGNAL(progressEnds()), this, TQ_SLOT(recheckData()));
error = data->hasErrors();
errorMsg = data->errorMsg();
@@ -1153,14 +1153,14 @@ void PoCompendium::unregisterData()
{
if(data)
{
- disconnect(data, TQT_SIGNAL(progressStarts(const TQString&)), this
- , TQT_SIGNAL(progressStarts(const TQString&)));
- disconnect(data, TQT_SIGNAL(progressEnds()), this , TQT_SIGNAL(progressEnds()));
- disconnect(data, TQT_SIGNAL(progress(int)), this , TQT_SIGNAL(progress(int)));
+ disconnect(data, TQ_SIGNAL(progressStarts(const TQString&)), this
+ , TQ_SIGNAL(progressStarts(const TQString&)));
+ disconnect(data, TQ_SIGNAL(progressEnds()), this , TQ_SIGNAL(progressEnds()));
+ disconnect(data, TQ_SIGNAL(progress(int)), this , TQ_SIGNAL(progress(int)));
if(data->active())
{
- disconnect(data,TQT_SIGNAL(progressEnds()),this,TQT_SLOT(recheckData()));
+ disconnect(data,TQ_SIGNAL(progressEnds()),this,TQ_SLOT(recheckData()));
}
if(data->unregisterObject(this))
@@ -1171,7 +1171,7 @@ void PoCompendium::unregisterData()
}
else
{
- connect(data,TQT_SIGNAL(progressEnds()),this,TQT_SLOT(removeData()));
+ connect(data,TQ_SIGNAL(progressEnds()),this,TQ_SLOT(removeData()));
}
}
@@ -1195,11 +1195,11 @@ void PoCompendium::registerData()
emit progressStarts(i18n("Loading PO compendium"));
}
- connect(data, TQT_SIGNAL(
+ connect(data, TQ_SIGNAL(
progressStarts(const TQString&)), this
- , TQT_SIGNAL(progressStarts(const TQString&)));
- connect(data, TQT_SIGNAL(progressEnds()), this , TQT_SIGNAL(progressEnds()));
- connect(data, TQT_SIGNAL(progress(int)), this , TQT_SIGNAL(progress(int)));
+ , TQ_SIGNAL(progressStarts(const TQString&)));
+ connect(data, TQ_SIGNAL(progressEnds()), this , TQ_SIGNAL(progressEnds()));
+ connect(data, TQ_SIGNAL(progress(int)), this , TQ_SIGNAL(progress(int)));
}
void PoCompendium::removeData()
diff --git a/kbabel/kbabeldict/modules/pocompendium/preferenceswidget.cpp b/kbabel/kbabeldict/modules/pocompendium/preferenceswidget.cpp
index 4ecb2886..d152e3b1 100644
--- a/kbabel/kbabeldict/modules/pocompendium/preferenceswidget.cpp
+++ b/kbabel/kbabeldict/modules/pocompendium/preferenceswidget.cpp
@@ -53,36 +53,36 @@ CompendiumPreferencesWidget::CompendiumPreferencesWidget(TQWidget *parent, const
prefWidget = new CompendiumPWidget(this);
layout->addWidget(prefWidget);
- connect(prefWidget->caseBtn, TQT_SIGNAL(toggled(bool))
- , this, TQT_SLOT(setChanged()));
- connect(prefWidget->equalBtn, TQT_SIGNAL(toggled(bool))
- , this, TQT_SLOT(setChanged()));
- connect(prefWidget->ngramBtn, TQT_SIGNAL(toggled(bool))
- , this, TQT_SLOT(setChanged()));
- connect(prefWidget->isContainedBtn, TQT_SIGNAL(toggled(bool))
- , this, TQT_SLOT(setChanged()));
- connect(prefWidget->containsBtn, TQT_SIGNAL(toggled(bool))
- , this, TQT_SLOT(setChanged()));
- connect(prefWidget->fuzzyBtn, TQT_SIGNAL(toggled(bool))
- , this, TQT_SLOT(setChanged()));
- connect(prefWidget->hasWordBtn, TQT_SIGNAL(toggled(bool))
- , this, TQT_SLOT(setChanged()));
- connect(prefWidget->wholeBtn, TQT_SIGNAL(toggled(bool))
- , this, TQT_SLOT(setChanged()));
+ connect(prefWidget->caseBtn, TQ_SIGNAL(toggled(bool))
+ , this, TQ_SLOT(setChanged()));
+ connect(prefWidget->equalBtn, TQ_SIGNAL(toggled(bool))
+ , this, TQ_SLOT(setChanged()));
+ connect(prefWidget->ngramBtn, TQ_SIGNAL(toggled(bool))
+ , this, TQ_SLOT(setChanged()));
+ connect(prefWidget->isContainedBtn, TQ_SIGNAL(toggled(bool))
+ , this, TQ_SLOT(setChanged()));
+ connect(prefWidget->containsBtn, TQ_SIGNAL(toggled(bool))
+ , this, TQ_SLOT(setChanged()));
+ connect(prefWidget->fuzzyBtn, TQ_SIGNAL(toggled(bool))
+ , this, TQ_SLOT(setChanged()));
+ connect(prefWidget->hasWordBtn, TQ_SIGNAL(toggled(bool))
+ , this, TQ_SLOT(setChanged()));
+ connect(prefWidget->wholeBtn, TQ_SIGNAL(toggled(bool))
+ , this, TQ_SLOT(setChanged()));
- connect(prefWidget->urlInput->lineEdit(),TQT_SIGNAL(textChanged(const TQString&))
- , this, TQT_SLOT(setChanged()));
-
- connect(prefWidget->equalBtn, TQT_SIGNAL(toggled(bool))
- , this, TQT_SLOT(equalBtnToggled(bool)));
- connect(prefWidget->ngramBtn, TQT_SIGNAL(toggled(bool))
- , this, TQT_SLOT(ngramBtnToggled(bool)));
- connect(prefWidget->isContainedBtn, TQT_SIGNAL(toggled(bool))
- , this, TQT_SLOT(isContainedBtnToggled(bool)));
- connect(prefWidget->containsBtn, TQT_SIGNAL(toggled(bool))
- , this, TQT_SLOT(containsBtnToggled(bool)));
- connect(prefWidget->hasWordBtn, TQT_SIGNAL(toggled(bool))
- , this, TQT_SLOT(hasWordBtnToggled(bool)));
+ connect(prefWidget->urlInput->lineEdit(),TQ_SIGNAL(textChanged(const TQString&))
+ , this, TQ_SLOT(setChanged()));
+
+ connect(prefWidget->equalBtn, TQ_SIGNAL(toggled(bool))
+ , this, TQ_SLOT(equalBtnToggled(bool)));
+ connect(prefWidget->ngramBtn, TQ_SIGNAL(toggled(bool))
+ , this, TQ_SLOT(ngramBtnToggled(bool)));
+ connect(prefWidget->isContainedBtn, TQ_SIGNAL(toggled(bool))
+ , this, TQ_SLOT(isContainedBtnToggled(bool)));
+ connect(prefWidget->containsBtn, TQ_SIGNAL(toggled(bool))
+ , this, TQ_SLOT(containsBtnToggled(bool)));
+ connect(prefWidget->hasWordBtn, TQ_SIGNAL(toggled(bool))
+ , this, TQ_SLOT(hasWordBtnToggled(bool)));
TQString whatsthis=i18n("<qt><p><b>Parameters</b></p>"
diff --git a/kbabel/kbabeldict/modules/tmx/pc_factory.cpp b/kbabel/kbabeldict/modules/tmx/pc_factory.cpp
index 6a522d4c..1ff113f6 100644
--- a/kbabel/kbabeldict/modules/tmx/pc_factory.cpp
+++ b/kbabel/kbabeldict/modules/tmx/pc_factory.cpp
@@ -33,7 +33,7 @@
#include <tdelocale.h>
-#include <kinstance.h>
+#include <tdeinstance.h>
#include <tdeaboutdata.h>
#include <kdebug.h>
@@ -43,7 +43,7 @@
extern "C"
{
- KDE_EXPORT void *init_kbabeldict_tmxcompendium()
+ TDE_EXPORT void *init_kbabeldict_tmxcompendium()
{
return new PcFactory;
}
diff --git a/kbabel/kbabeldict/modules/tmx/preferenceswidget.cpp b/kbabel/kbabeldict/modules/tmx/preferenceswidget.cpp
index 9b4cde15..a4ba2cb4 100644
--- a/kbabel/kbabeldict/modules/tmx/preferenceswidget.cpp
+++ b/kbabel/kbabeldict/modules/tmx/preferenceswidget.cpp
@@ -55,34 +55,34 @@ TmxCompendiumPreferencesWidget::TmxCompendiumPreferencesWidget(TQWidget *parent,
prefWidget = new TmxCompendiumPWidget(this);
layout->addWidget(prefWidget);
- connect(prefWidget->caseBtn, TQT_SIGNAL(toggled(bool))
- , this, TQT_SLOT(setChanged()));
- connect(prefWidget->equalBtn, TQT_SIGNAL(toggled(bool))
- , this, TQT_SLOT(setChanged()));
- connect(prefWidget->ngramBtn, TQT_SIGNAL(toggled(bool))
- , this, TQT_SLOT(setChanged()));
- connect(prefWidget->isContainedBtn, TQT_SIGNAL(toggled(bool))
- , this, TQT_SLOT(setChanged()));
- connect(prefWidget->containsBtn, TQT_SIGNAL(toggled(bool))
- , this, TQT_SLOT(setChanged()));
- connect(prefWidget->hasWordBtn, TQT_SIGNAL(toggled(bool))
- , this, TQT_SLOT(setChanged()));
- connect(prefWidget->wholeBtn, TQT_SIGNAL(toggled(bool))
- , this, TQT_SLOT(setChanged()));
+ connect(prefWidget->caseBtn, TQ_SIGNAL(toggled(bool))
+ , this, TQ_SLOT(setChanged()));
+ connect(prefWidget->equalBtn, TQ_SIGNAL(toggled(bool))
+ , this, TQ_SLOT(setChanged()));
+ connect(prefWidget->ngramBtn, TQ_SIGNAL(toggled(bool))
+ , this, TQ_SLOT(setChanged()));
+ connect(prefWidget->isContainedBtn, TQ_SIGNAL(toggled(bool))
+ , this, TQ_SLOT(setChanged()));
+ connect(prefWidget->containsBtn, TQ_SIGNAL(toggled(bool))
+ , this, TQ_SLOT(setChanged()));
+ connect(prefWidget->hasWordBtn, TQ_SIGNAL(toggled(bool))
+ , this, TQ_SLOT(setChanged()));
+ connect(prefWidget->wholeBtn, TQ_SIGNAL(toggled(bool))
+ , this, TQ_SLOT(setChanged()));
- connect(prefWidget->urlInput->lineEdit(),TQT_SIGNAL(textChanged(const TQString&))
- , this, TQT_SLOT(setChanged()));
-
- connect(prefWidget->equalBtn, TQT_SIGNAL(toggled(bool))
- , this, TQT_SLOT(equalBtnToggled(bool)));
- connect(prefWidget->ngramBtn, TQT_SIGNAL(toggled(bool))
- , this, TQT_SLOT(ngramBtnToggled(bool)));
- connect(prefWidget->isContainedBtn, TQT_SIGNAL(toggled(bool))
- , this, TQT_SLOT(isContainedBtnToggled(bool)));
- connect(prefWidget->containsBtn, TQT_SIGNAL(toggled(bool))
- , this, TQT_SLOT(containsBtnToggled(bool)));
- connect(prefWidget->hasWordBtn, TQT_SIGNAL(toggled(bool))
- , this, TQT_SLOT(hasWordBtnToggled(bool)));
+ connect(prefWidget->urlInput->lineEdit(),TQ_SIGNAL(textChanged(const TQString&))
+ , this, TQ_SLOT(setChanged()));
+
+ connect(prefWidget->equalBtn, TQ_SIGNAL(toggled(bool))
+ , this, TQ_SLOT(equalBtnToggled(bool)));
+ connect(prefWidget->ngramBtn, TQ_SIGNAL(toggled(bool))
+ , this, TQ_SLOT(ngramBtnToggled(bool)));
+ connect(prefWidget->isContainedBtn, TQ_SIGNAL(toggled(bool))
+ , this, TQ_SLOT(isContainedBtnToggled(bool)));
+ connect(prefWidget->containsBtn, TQ_SIGNAL(toggled(bool))
+ , this, TQ_SLOT(containsBtnToggled(bool)));
+ connect(prefWidget->hasWordBtn, TQ_SIGNAL(toggled(bool))
+ , this, TQ_SLOT(hasWordBtnToggled(bool)));
TQString whatsthis=i18n("<qt><p><b>Parameters</b></p>"
diff --git a/kbabel/kbabeldict/modules/tmx/tmxcompendium.cpp b/kbabel/kbabeldict/modules/tmx/tmxcompendium.cpp
index 6ce92e84..1f19a4cd 100644
--- a/kbabel/kbabeldict/modules/tmx/tmxcompendium.cpp
+++ b/kbabel/kbabeldict/modules/tmx/tmxcompendium.cpp
@@ -38,7 +38,7 @@
#include <kstaticdeleter.h>
#include <kdebug.h>
#include <tdeglobal.h>
-#include <kinstance.h>
+#include <tdeinstance.h>
#include <tdeio/netaccess.h>
#include <tqtextstream.h>
@@ -82,7 +82,7 @@ TmxCompendium::TmxCompendium(TQObject *parent, const char *name)
loadTimer = new TQTimer(this);
- connect(loadTimer,TQT_SIGNAL(timeout()),this,TQT_SLOT(slotLoadCompendium()));
+ connect(loadTimer,TQ_SIGNAL(timeout()),this,TQ_SLOT(slotLoadCompendium()));
}
TmxCompendium::~TmxCompendium()
@@ -155,9 +155,9 @@ void TmxCompendium::readSettings(TDEConfigBase *config)
PrefWidget *TmxCompendium::preferencesWidget(TQWidget *parent)
{
prefWidget = new TmxCompendiumPreferencesWidget(parent,"tmxcompendium_prefwidget");
- connect(prefWidget, TQT_SIGNAL(applySettings()), this, TQT_SLOT(applySettings()));
- connect(prefWidget, TQT_SIGNAL(restoreSettings())
- , this, TQT_SLOT(restoreSettings()));
+ connect(prefWidget, TQ_SIGNAL(applySettings()), this, TQ_SLOT(applySettings()));
+ connect(prefWidget, TQ_SIGNAL(restoreSettings())
+ , this, TQ_SLOT(restoreSettings()));
restoreSettings();
@@ -337,7 +337,7 @@ bool TmxCompendium::startSearch(const TQString& text, uint pluralForm, const Sea
emit progress( (100*(checkCounter+1))/data->numberOfEntries());
}
- kapp->processEvents(100);
+ tdeApp->processEvents(100);
TQString origStr = data->msgid(*it);
origStr = TmxCompendiumData::simplify(origStr);
@@ -484,7 +484,7 @@ bool TmxCompendium::startSearch(const TQString& text, uint pluralForm, const Sea
continue;
}
- kapp->processEvents(100);
+ tdeApp->processEvents(100);
if(i >= data->numberOfEntries())
{
@@ -718,7 +718,7 @@ void TmxCompendium::slotLoadCompendium()
}
else
{
- connect(data, TQT_SIGNAL(progressEnds()), this, TQT_SLOT(recheckData()));
+ connect(data, TQ_SIGNAL(progressEnds()), this, TQ_SLOT(recheckData()));
}
}
else
@@ -737,7 +737,7 @@ void TmxCompendium::recheckData()
{
if(data)
{
- disconnect(data, TQT_SIGNAL(progressEnds()), this, TQT_SLOT(recheckData()));
+ disconnect(data, TQ_SIGNAL(progressEnds()), this, TQ_SLOT(recheckData()));
error = data->hasErrors();
errorMsg = data->errorMsg();
@@ -915,14 +915,14 @@ void TmxCompendium::unregisterData()
{
if(data)
{
- disconnect(data, TQT_SIGNAL(progressStarts(const TQString&)), this
- , TQT_SIGNAL(progressStarts(const TQString&)));
- disconnect(data, TQT_SIGNAL(progressEnds()), this , TQT_SIGNAL(progressEnds()));
- disconnect(data, TQT_SIGNAL(progress(int)), this , TQT_SIGNAL(progress(int)));
+ disconnect(data, TQ_SIGNAL(progressStarts(const TQString&)), this
+ , TQ_SIGNAL(progressStarts(const TQString&)));
+ disconnect(data, TQ_SIGNAL(progressEnds()), this , TQ_SIGNAL(progressEnds()));
+ disconnect(data, TQ_SIGNAL(progress(int)), this , TQ_SIGNAL(progress(int)));
if(data->active())
{
- disconnect(data,TQT_SIGNAL(progressEnds()),this,TQT_SLOT(recheckData()));
+ disconnect(data,TQ_SIGNAL(progressEnds()),this,TQ_SLOT(recheckData()));
}
if(data->unregisterObject(this))
@@ -933,7 +933,7 @@ void TmxCompendium::unregisterData()
}
else
{
- connect(data,TQT_SIGNAL(progressEnds()),this,TQT_SLOT(removeData()));
+ connect(data,TQ_SIGNAL(progressEnds()),this,TQ_SLOT(removeData()));
}
}
@@ -957,10 +957,10 @@ void TmxCompendium::registerData()
emit progressStarts(i18n("Loading PO compendium"));
}
- connect(data, TQT_SIGNAL(progressStarts(const TQString&)), this
- , TQT_SIGNAL(progressStarts(const TQString&)));
- connect(data, TQT_SIGNAL(progressEnds()), this , TQT_SIGNAL(progressEnds()));
- connect(data, TQT_SIGNAL(progress(int)), this , TQT_SIGNAL(progress(int)));
+ connect(data, TQ_SIGNAL(progressStarts(const TQString&)), this
+ , TQ_SIGNAL(progressStarts(const TQString&)));
+ connect(data, TQ_SIGNAL(progressEnds()), this , TQ_SIGNAL(progressEnds()));
+ connect(data, TQ_SIGNAL(progress(int)), this , TQ_SIGNAL(progress(int)));
}
void TmxCompendium::removeData()
diff --git a/kbabel/kbabeldict/modules/tmx/tmxcompendiumdata.cpp b/kbabel/kbabeldict/modules/tmx/tmxcompendiumdata.cpp
index 17a9ec15..85902961 100644
--- a/kbabel/kbabeldict/modules/tmx/tmxcompendiumdata.cpp
+++ b/kbabel/kbabeldict/modules/tmx/tmxcompendiumdata.cpp
@@ -146,7 +146,7 @@ bool TmxCompendiumData::load(const KURL& url, const TQString& language)
if( (100*(i+1))%total < 100 )
{
emit progress((100*(i+1))/total);
- kapp->processEvents(100);
+ tdeApp->processEvents(100);
}
TQDomNodeList tuvTags = tuTags.item(i).toElement().elementsByTagName("tuv");
diff --git a/kbabel/kbabeldict/searchengine.h b/kbabel/kbabeldict/searchengine.h
index c04640ce..729e0644 100644
--- a/kbabel/kbabeldict/searchengine.h
+++ b/kbabel/kbabeldict/searchengine.h
@@ -48,7 +48,7 @@
* Information, that is not available in a specific implementation of
* the SearchEngine, should be left empty.
*/
-class KDE_EXPORT TranslationInfo
+class TDE_EXPORT TranslationInfo
{
public:
/**
@@ -107,7 +107,7 @@ public:
* plus additional information where it was found,
* the date and time of the last change, the translator, etc.
*/
-class KDE_EXPORT SearchResult
+class TDE_EXPORT SearchResult
{
public:
SearchResult();
@@ -162,7 +162,7 @@ public:
/**
*
*/
-class KDE_EXPORT SearchFilter
+class TDE_EXPORT SearchFilter
{
public:
SearchFilter() :
@@ -241,7 +241,7 @@ private:
* necessary function. The widget should not be bigger than 400x400.
* If you need more space, you maybe want to use a tabbed widget.
*/
-class KDE_EXPORT PrefWidget : public TQWidget
+class TDE_EXPORT PrefWidget : public TQWidget
{
TQ_OBJECT
@@ -266,7 +266,7 @@ public slots:
};
-class KDE_EXPORT SearchEngine : public TQObject
+class TDE_EXPORT SearchEngine : public TQObject
{
TQ_OBJECT