summaryrefslogtreecommitdiffstats
path: root/kbabel/catalogmanager/catalogmanager.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
commit4ae0c208b66e0f7954e194384464fe2d0a2c56dd (patch)
treeb0a7cd1c184f0003c0292eb416ed27f674f9cc43 /kbabel/catalogmanager/catalogmanager.cpp
parent1964ea0fb4ab57493ca2ebb709c8d3b5395fd653 (diff)
downloadtdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.tar.gz
tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kbabel/catalogmanager/catalogmanager.cpp')
-rw-r--r--kbabel/catalogmanager/catalogmanager.cpp440
1 files changed, 220 insertions, 220 deletions
diff --git a/kbabel/catalogmanager/catalogmanager.cpp b/kbabel/catalogmanager/catalogmanager.cpp
index 6cbe964d..1292c0cf 100644
--- a/kbabel/catalogmanager/catalogmanager.cpp
+++ b/kbabel/catalogmanager/catalogmanager.cpp
@@ -45,8 +45,8 @@
#include "msgfmt.h"
#include "toolaction.h"
-#include <qlabel.h>
-#include <qpainter.h>
+#include <tqlabel.h>
+#include <tqpainter.h>
#include <dcopclient.h>
#include <kapplication.h>
@@ -72,24 +72,24 @@
#include <ktoolbar.h>
#include <kwin.h>
-#include <qfileinfo.h>
-#include <qdir.h>
-#include <qtimer.h>
-#include <qbitmap.h>
-#include <qwhatsthis.h>
-#include <qheader.h>
-#include <qdragobject.h>
-#include <qlayout.h>
-#include <qhbox.h>
+#include <tqfileinfo.h>
+#include <tqdir.h>
+#include <tqtimer.h>
+#include <tqbitmap.h>
+#include <tqwhatsthis.h>
+#include <tqheader.h>
+#include <tqdragobject.h>
+#include <tqlayout.h>
+#include <tqhbox.h>
using namespace KBabel;
WId CatalogManagerApp::_preferredWindow = 0;
-QStringList CatalogManager::_foundFilesList;
-QStringList CatalogManager::_toBeSearched;
+TQStringList CatalogManager::_foundFilesList;
+TQStringList CatalogManager::_toBeSearched;
-CatalogManager::CatalogManager(QString configFile )
+CatalogManager::CatalogManager(TQString configFile )
:KMainWindow(0,0)
{
if ( configFile.isEmpty() )
@@ -114,8 +114,8 @@ void CatalogManager::init()
_totalFound = 0;
_foundFilesList.clear();
_toBeSearched.clear();
- _timerFind = new QTimer( this );
- connect(_timerFind, SIGNAL( timeout() ), this, SLOT(findNextFile()) );
+ _timerFind = new TQTimer( this );
+ connect(_timerFind, TQT_SIGNAL( timeout() ), this, TQT_SLOT(findNextFile()) );
_searchStopped = false;
_prefDialog=0;
@@ -132,11 +132,11 @@ void CatalogManager::init()
_project = KBabel::ProjectManager::open(KBabel::ProjectManager::defaultProjectName());
}
- connect( _project, SIGNAL (signalCatManSettingsChanged())
- , this, SLOT (updateSettings()));
+ connect( _project, TQT_SIGNAL (signalCatManSettingsChanged())
+ , this, TQT_SLOT (updateSettings()));
- QWidget *view = new QWidget(this);
- QVBoxLayout* layout= new QVBoxLayout(view);
+ TQWidget *view = new TQWidget(this);
+ TQVBoxLayout* layout= new TQVBoxLayout(view);
layout->setMargin(0);
layout->setSpacing(KDialog::spacingHint());
@@ -144,26 +144,26 @@ void CatalogManager::init()
layout->addWidget(_catalogManager);
layout->setStretchFactor(_catalogManager,1);
- connect(this,SIGNAL(settingsChanged(KBabel::CatManSettings))
- ,_catalogManager,SLOT(setSettings(KBabel::CatManSettings)));
- connect(_catalogManager,SIGNAL(openFile(QString,QString))
- ,this,SLOT(openFile(QString,QString)));
- connect(_catalogManager,SIGNAL(openFileInNewWindow(QString,QString))
- ,this,SLOT(openFileInNewWindow(QString,QString)));
- connect(_catalogManager,SIGNAL(openTemplate(QString,QString,QString))
- ,this,SLOT(openTemplate(QString,QString,QString)));
- connect(_catalogManager,SIGNAL(openTemplateInNewWindow(QString,QString,QString))
- ,this,SLOT(openTemplateInNewWindow(QString,QString,QString)));
- connect(_catalogManager,SIGNAL(gotoFileEntry(QString,QString,int))
- ,this,SLOT(openFile(QString,QString,int)));
- connect(_catalogManager, SIGNAL(selectedChanged(uint)),
- this, SLOT(selectedChanged(uint)));
+ connect(this,TQT_SIGNAL(settingsChanged(KBabel::CatManSettings))
+ ,_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)),
+ this, TQT_SLOT(selectedChanged(uint)));
KWin::setIcons(winId(),BarIcon("catalogmanager",32)
,SmallIcon("catalogmanager"));
- QHBoxLayout* hBoxL = new QHBoxLayout(layout);
- _progressLabel = new QLabel(view);
+ TQHBoxLayout* hBoxL = new TQHBoxLayout(layout);
+ _progressLabel = new TQLabel(view);
hBoxL->addWidget(_progressLabel);
_progressBar=new KProgress(view);
hBoxL->addWidget(_progressBar);
@@ -172,20 +172,20 @@ void CatalogManager::init()
_progressLabel->hide();
_progressBar->hide();
- connect(_catalogManager,SIGNAL(prepareProgressBar(QString,int))
- , this, SLOT(prepareProgressBar(QString,int)));
- connect(_catalogManager,SIGNAL(clearProgressBar())
- , this, SLOT(clearProgressBar()));
- connect(_catalogManager,SIGNAL(progress(int))
- , _progressBar, SLOT(setProgress(int)));
-// connect(_catalogManager, SIGNAL(signalBuildTree(bool))
-// , this, SLOT(enableMenuForFiles(bool)));
- connect(_catalogManager, SIGNAL(signalBuildTree(bool))
- , this, SLOT(enableActions(bool)));
- connect(this, SIGNAL(searchStopped())
- , _catalogManager, SLOT(stopSearch()));
- connect(_catalogManager, SIGNAL(prepareFindProgressBar(int))
- , this, SLOT(prepareStatusProgressBar(int)));
+ connect(_catalogManager,TQT_SIGNAL(prepareProgressBar(TQString,int))
+ , this, TQT_SLOT(prepareProgressBar(TQString,int)));
+ connect(_catalogManager,TQT_SIGNAL(clearProgressBar())
+ , this, TQT_SLOT(clearProgressBar()));
+ connect(_catalogManager,TQT_SIGNAL(progress(int))
+ , _progressBar, TQT_SLOT(setProgress(int)));
+// connect(_catalogManager, TQT_SIGNAL(signalBuildTree(bool))
+// , this, TQT_SLOT(enableMenuForFiles(bool)));
+ connect(_catalogManager, TQT_SIGNAL(signalBuildTree(bool))
+ , this, TQT_SLOT(enableActions(bool)));
+ connect(this, TQT_SIGNAL(searchStopped())
+ , _catalogManager, TQT_SLOT(stopSearch()));
+ connect(_catalogManager, TQT_SIGNAL(prepareFindProgressBar(int))
+ , this, TQT_SLOT(prepareStatusProgressBar(int)));
setCentralWidget(view);
resize( 600,300);
@@ -194,20 +194,20 @@ void CatalogManager::init()
setupActions();
- QPopupMenu* popup;
- popup = (QPopupMenu*)(factory()->container("rmb_file", this));
+ TQPopupMenu* popup;
+ popup = (TQPopupMenu*)(factory()->container("rmb_file", this));
if(popup)
{
_catalogManager->setRMBMenuFile(popup);
}
- popup = (QPopupMenu*)(factory()->container("rmb_dir", this));
+ popup = (TQPopupMenu*)(factory()->container("rmb_dir", this));
if(popup)
{
_catalogManager->setRMBMenuDir(popup);
}
- connect(_catalogManager, SIGNAL(signalSearchedFile(int))
- , _statusProgressBar, SLOT(advance(int)));
+ connect(_catalogManager, TQT_SIGNAL(signalSearchedFile(int))
+ , _statusProgressBar, TQT_SLOT(advance(int)));
restoreView();
}
@@ -220,60 +220,60 @@ void CatalogManager::setupActions()
// the file menu
action = new KAction( i18n("&Open"), CTRL+Key_O, _catalogManager,
- SLOT(slotOpenFile()),actionCollection(), "open");
+ TQT_SLOT(slotOpenFile()),actionCollection(), "open");
action->setEnabled(false);
action = new KAction(i18n("&Open Template"),Key_Space,_catalogManager,
- SLOT(slotOpenTemplate()),actionCollection(), "open_template");
+ TQT_SLOT(slotOpenTemplate()),actionCollection(), "open_template");
action->setEnabled(false);
action = new KAction(i18n("Open in &New Window"),CTRL+SHIFT+Key_O,_catalogManager,
- SLOT(slotOpenFileInNewWindow()),actionCollection(), "open_new_window");
+ TQT_SLOT(slotOpenFileInNewWindow()),actionCollection(), "open_new_window");
action->setEnabled(false);
- action = KStdAction::quit(kapp, SLOT (closeAllWindows()), actionCollection());
+ action = KStdAction::quit(kapp, TQT_SLOT (closeAllWindows()), actionCollection());
actionMap["open_template"] = NEEDS_POT;
// the edit menu
action = new KAction( i18n("Fi&nd in Files..."), CTRL+Key_F, this,
- SLOT(find()), actionCollection(), "find_in_files");
+ TQT_SLOT(find()), actionCollection(), "find_in_files");
action->setEnabled(false);
action = new KAction( i18n("Re&place in Files..."), CTRL+Key_R, this,
- SLOT(replace()), actionCollection(), "replace_in_files");
+ TQT_SLOT(replace()), actionCollection(), "replace_in_files");
action->setEnabled(false);
action = new KAction( i18n("&Stop Searching"), "stop", Key_Escape, this,
- SLOT(stopSearching()), actionCollection(), "stop_search");
+ TQT_SLOT(stopSearching()), actionCollection(), "stop_search");
action->setEnabled(false);
action = new KAction( i18n("&Reload"), "reload", KStdAccel::reload(), _catalogManager,
- SLOT(updateCurrent()), actionCollection(), "reload");
+ TQT_SLOT(updateCurrent()), actionCollection(), "reload");
action->setEnabled(false);
// the marking menu
action = new KAction( i18n("&Toggle Marking"), CTRL+Key_M, _catalogManager,
- SLOT(toggleMark()), actionCollection(), "toggle_marking");
+ TQT_SLOT(toggleMark()), actionCollection(), "toggle_marking");
action->setEnabled(false);
action = new KAction( i18n("Remove Marking"), 0, _catalogManager,
- SLOT(slotClearMarksInDir()), actionCollection(), "remove_marking");
+ TQT_SLOT(slotClearMarksInDir()), actionCollection(), "remove_marking");
action->setEnabled(false);
action = new KAction( i18n("Toggle All Markings"), 0, _catalogManager,
- SLOT(toggleAllMarks()), actionCollection(), "toggle_all_marking");
+ TQT_SLOT(toggleAllMarks()), actionCollection(), "toggle_all_marking");
action->setEnabled(false);
action = new KAction( i18n("Remove All Markings"), 0, _catalogManager,
- SLOT(clearAllMarks()), actionCollection(), "remove_all_marking");
+ TQT_SLOT(clearAllMarks()), actionCollection(), "remove_all_marking");
action->setEnabled(false);
action = new KAction( i18n("Mark Modified Files"), 0, _catalogManager,
- SLOT(markModifiedFiles()), actionCollection(), "mark_modified_files");
+ TQT_SLOT(markModifiedFiles()), actionCollection(), "mark_modified_files");
// fixme to enabling this when loading is done using updateFinished() signal
action->setEnabled(true);
action = new KAction( i18n("&Load Markings..."), 0, _catalogManager,
- SLOT(loadMarks()), actionCollection(), "load_marking");
+ TQT_SLOT(loadMarks()), actionCollection(), "load_marking");
action->setEnabled(false);
action = new KAction( i18n("&Save Markings..."), 0, _catalogManager,
- SLOT(saveMarks()), actionCollection(), "save_marking");
+ TQT_SLOT(saveMarks()), actionCollection(), "save_marking");
action->setEnabled(false);
(void)new KAction(i18n("&Mark Files..."), 0, _catalogManager,
- SLOT(slotMarkPattern()), actionCollection(), "mark_pattern");
+ TQT_SLOT(slotMarkPattern()), actionCollection(), "mark_pattern");
(void)new KAction(i18n("&Unmark Files..."), 0, _catalogManager,
- SLOT(slotUnmarkPattern()), actionCollection(), "unmark_pattern");
+ TQT_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 KAction(i18n("Nex&t Untranslated"), "nextuntranslated", ALT+Key_Next,
- _catalogManager, SLOT(gotoNextUntranslated()),actionCollection(), "go_next_untrans");
+ _catalogManager, TQT_SLOT(gotoNextUntranslated()),actionCollection(), "go_next_untrans");
action->setEnabled(false);
action = new KAction(i18n("Prev&ious Untranslated"), "prevuntranslated", ALT+Key_Prior,
- _catalogManager, SLOT(gotoPreviousUntranslated()),actionCollection(), "go_prev_untrans");
+ _catalogManager, TQT_SLOT(gotoPreviousUntranslated()),actionCollection(), "go_prev_untrans");
action->setEnabled(false);
action = new KAction(i18n("Ne&xt Fuzzy"), "nextfuzzy", CTRL+Key_Next,
- _catalogManager, SLOT(gotoNextFuzzy()),actionCollection(), "go_next_fuzzy");
+ _catalogManager, TQT_SLOT(gotoNextFuzzy()),actionCollection(), "go_next_fuzzy");
action->setEnabled(false);
action = new KAction(i18n("Pre&vious Fuzzy"), "prevfuzzy", CTRL+Key_Prior,
- _catalogManager, SLOT(gotoPreviousFuzzy()),actionCollection(), "go_prev_fuzzy");
+ _catalogManager, TQT_SLOT(gotoPreviousFuzzy()),actionCollection(), "go_prev_fuzzy");
action->setEnabled(false);
action = new KAction(i18n("N&ext Fuzzy or Untranslated"), "nextfuzzyuntrans", CTRL+SHIFT+Key_Next,
- _catalogManager, SLOT(gotoNextFuzzyOrUntranslated()),actionCollection(), "go_next_fuzzyUntr");
+ _catalogManager, TQT_SLOT(gotoNextFuzzyOrUntranslated()),actionCollection(), "go_next_fuzzyUntr");
action->setEnabled(false);
action = new KAction(i18n("P&revious Fuzzy or Untranslated"), "prevfuzzyuntrans", CTRL+SHIFT+Key_Prior,
- _catalogManager, SLOT(gotoPreviousFuzzyOrUntranslated()),actionCollection(), "go_prev_fuzzyUntr");
+ _catalogManager, TQT_SLOT(gotoPreviousFuzzyOrUntranslated()),actionCollection(), "go_prev_fuzzyUntr");
action->setEnabled(false);
action = new KAction(i18n("Next Err&or"), "nexterror", ALT+SHIFT+Key_Next,
- _catalogManager, SLOT(gotoNextError()),actionCollection(), "go_next_error");
+ _catalogManager, TQT_SLOT(gotoNextError()),actionCollection(), "go_next_error");
action->setEnabled(false);
action = new KAction(i18n("Previo&us Error"), "preverror", ALT+SHIFT+Key_Prior,
- _catalogManager, SLOT(gotoPreviousError()),actionCollection(), "go_prev_error");
+ _catalogManager, TQT_SLOT(gotoPreviousError()),actionCollection(), "go_prev_error");
action->setEnabled(false);
action = new KAction(i18n("Next Te&mplate Only"), "nexttemplate", CTRL+Key_Down,
- _catalogManager, SLOT(gotoNextTemplate()),actionCollection(), "go_next_template");
+ _catalogManager, TQT_SLOT(gotoNextTemplate()),actionCollection(), "go_next_template");
action->setEnabled(false);
action = new KAction(i18n("Previous Temp&late Only"), "prevtemplate", CTRL+Key_Up,
- _catalogManager, SLOT(gotoPreviousTemplate()),actionCollection(), "go_prev_template");
+ _catalogManager, TQT_SLOT(gotoPreviousTemplate()),actionCollection(), "go_prev_template");
action->setEnabled(false);
action = new KAction(i18n("Next Tran&slation Exists"), "nextpo", ALT+Key_Down,
- _catalogManager, SLOT(gotoNextPo()),actionCollection(), "go_next_po");
+ _catalogManager, TQT_SLOT(gotoNextPo()),actionCollection(), "go_next_po");
action->setEnabled(false);
action = new KAction(i18n("Previous Transl&ation Exists"), "prevpo", ALT+Key_Up,
- _catalogManager, SLOT(gotoPreviousPo()),actionCollection(), "go_prev_po");
+ _catalogManager, TQT_SLOT(gotoPreviousPo()),actionCollection(), "go_prev_po");
action->setEnabled(false);
action = new KAction(i18n("Previous Marke&d"), "prevmarked", SHIFT+Key_Up,
- _catalogManager, SLOT(gotoPreviousMarked()),actionCollection(), "go_prev_marked");
+ _catalogManager, TQT_SLOT(gotoPreviousMarked()),actionCollection(), "go_prev_marked");
action->setEnabled(false);
action = new KAction(i18n("Next &Marked"), "nextmarked", SHIFT+Key_Down,
- _catalogManager, SLOT(gotoNextMarked()),actionCollection(), "go_next_marked");
+ _catalogManager, TQT_SLOT(gotoNextMarked()),actionCollection(), "go_next_marked");
action->setEnabled(false);
// project menu
// the project menu
action = new KAction(i18n("&New..."), "filenew"
- , this, SLOT(projectNew()),actionCollection()
+ , this, TQT_SLOT(projectNew()),actionCollection()
,"project_new");
action = new KAction(i18n("&Open..."), "fileopen"
- , this, SLOT(projectOpen()),actionCollection()
+ , this, TQT_SLOT(projectOpen()),actionCollection()
,"project_open");
action = new KAction(i18n("C&lose"), "fileclose"
- , this, SLOT(projectClose()),actionCollection()
+ , this, TQT_SLOT(projectClose()),actionCollection()
,"project_close");
action->setEnabled (_project->filename() != KBabel::ProjectManager::defaultProjectName() );
action = new KAction(i18n("&Configure..."), "configure"
- , this, SLOT(projectConfigure()),actionCollection()
+ , this, TQT_SLOT(projectConfigure()),actionCollection()
,"project_settings");
// tools menu
action = new KAction( i18n("&Statistics"), "statistics", CTRL+Key_S,
- _catalogManager, SLOT(statistics()), actionCollection(), "statistics");
+ _catalogManager, TQT_SLOT(statistics()), actionCollection(), "statistics");
action->setEnabled(false);
action = new KAction( i18n("S&tatistics in Marked"), "statistics", CTRL+ALT+Key_S,
- _catalogManager, SLOT(markedStatistics()), actionCollection(), "statistics_marked");
+ _catalogManager, TQT_SLOT(markedStatistics()), actionCollection(), "statistics_marked");
action->setEnabled(false);
action = new KAction( i18n("Check S&yntax"), "syntax", CTRL+Key_Y,
- _catalogManager, SLOT(checkSyntax()), actionCollection(), "syntax");
+ _catalogManager, TQT_SLOT(checkSyntax()), actionCollection(), "syntax");
action->setEnabled(false);
action = new KAction( i18n("S&pell Check"), "spellcheck", CTRL+Key_I,
- this, SLOT(spellcheck()), actionCollection(), "spellcheck");
+ this, TQT_SLOT(spellcheck()), actionCollection(), "spellcheck");
action->setEnabled(false);
action = new KAction( i18n("Spell Check in &Marked"), "spellcheck", CTRL+ALT+Key_I,
- this, SLOT(markedSpellcheck()), actionCollection(), "spellcheck_marked");
+ this, TQT_SLOT(markedSpellcheck()), actionCollection(), "spellcheck_marked");
action->setEnabled(false);
action = new KAction( i18n("&Rough Translation"), CTRL+Key_T,
- _catalogManager, SLOT(roughTranslation()), actionCollection(), "rough_translation");
+ _catalogManager, TQT_SLOT(roughTranslation()), actionCollection(), "rough_translation");
action->setEnabled(false);
action = new KAction( i18n("Rough Translation in M&arked"), CTRL+ALT+Key_T,
- _catalogManager, SLOT(markedRoughTranslation()), actionCollection(), "rough_translation_marked");
+ _catalogManager, TQT_SLOT(markedRoughTranslation()), actionCollection(), "rough_translation_marked");
action->setEnabled(false);
action = new KAction( i18n("Mai&l"), "mail_send", CTRL+Key_A,
- _catalogManager, SLOT(mailFiles()), actionCollection(), "mail_file");
+ _catalogManager, TQT_SLOT(mailFiles()), actionCollection(), "mail_file");
action->setEnabled(false);
action = new KAction( i18n("Mail Mar&ked"), "mail_send", CTRL+ALT+Key_A,
- _catalogManager, SLOT(mailMarkedFiles()), actionCollection(), "mail_file_marked");
+ _catalogManager, TQT_SLOT(mailMarkedFiles()), actionCollection(), "mail_file_marked");
action->setEnabled(false);
action = new KAction( i18n("&Pack"), "tar", CTRL+Key_B,
- _catalogManager, SLOT(packageFiles()), actionCollection(), "package_file");
- action = new KAction( i18n("Pack &Marked"), "tar", CTRL+ALT+Key_B, _catalogManager, SLOT(packageMarkedFiles()), actionCollection(), "package_file_marked");
+ _catalogManager, TQT_SLOT(packageFiles()), actionCollection(), "package_file");
+ action = new KAction( i18n("Pack &Marked"), "tar", CTRL+ALT+Key_B, _catalogManager, TQT_SLOT(packageMarkedFiles()), actionCollection(), "package_file_marked");
action->setEnabled(false);
actionMap["statistics_marked"] = NEEDS_DIR | NEEDS_MARK;
@@ -390,10 +390,10 @@ void CatalogManager::setupActions()
actionMap["package_file_marked"] = NEEDS_PO | NEEDS_MARK;
// dynamic tools
- QValueList<KDataToolInfo> tools = ToolAction::validationTools();
+ TQValueList<KDataToolInfo> tools = ToolAction::validationTools();
- QPtrList<KAction> actions = ToolAction::dataToolActionList(
- tools, _catalogManager, SLOT(validateUsingTool( const KDataToolInfo &, const QString& ))
+ TQPtrList<KAction> actions = ToolAction::dataToolActionList(
+ tools, _catalogManager, TQT_SLOT(validateUsingTool( const KDataToolInfo &, const TQString& ))
,"validate", false, actionCollection() );
KActionMenu* m_menu = new KActionMenu(i18n("&Validation"), actionCollection(),
@@ -407,7 +407,7 @@ void CatalogManager::setupActions()
}
actions = ToolAction::dataToolActionList(
- tools, _catalogManager, SLOT(validateMarkedUsingTool( const KDataToolInfo &, const QString& ))
+ tools, _catalogManager, TQT_SLOT(validateMarkedUsingTool( const KDataToolInfo &, const TQString& ))
,"validate", false, actionCollection(), "marked_" );
m_menu = new KActionMenu(i18n("V&alidation Marked"), actionCollection(),
"dynamic_validation_marked");
@@ -423,19 +423,19 @@ void CatalogManager::setupActions()
// CVS submenu
// Actions for PO files
(void)new KAction( i18n( "Update" ), "down", 0, _catalogManager,
- SLOT( cvsUpdate( ) ), actionCollection( ), "cvs_update" );
+ TQT_SLOT( cvsUpdate( ) ), actionCollection( ), "cvs_update" );
(void)new KAction( i18n( "Update Marked" ), 0, _catalogManager,
- SLOT( cvsUpdateMarked( ) ), actionCollection( ), "cvs_update_marked" );
+ TQT_SLOT( cvsUpdateMarked( ) ), actionCollection( ), "cvs_update_marked" );
(void)new KAction( i18n( "Commit" ), "up", 0, _catalogManager,
- SLOT( cvsCommit( ) ), actionCollection( ), "cvs_commit" );
+ TQT_SLOT( cvsCommit( ) ), actionCollection( ), "cvs_commit" );
(void)new KAction( i18n( "Commit Marked" ), 0, _catalogManager,
- SLOT( cvsCommitMarked( ) ), actionCollection( ), "cvs_commit_marked" );
+ TQT_SLOT( cvsCommitMarked( ) ), actionCollection( ), "cvs_commit_marked" );
(void)new KAction( i18n( "Status" ), 0, _catalogManager,
- SLOT( cvsStatus( ) ), actionCollection( ), "cvs_status" );
+ TQT_SLOT( cvsStatus( ) ), actionCollection( ), "cvs_status" );
(void)new KAction( i18n( "Status for Marked" ), 0, _catalogManager,
- SLOT( cvsStatusMarked( ) ), actionCollection( ), "cvs_status_marked" );
+ TQT_SLOT( cvsStatusMarked( ) ), actionCollection( ), "cvs_status_marked" );
(void)new KAction( i18n( "Show Diff" ), 0, _catalogManager,
- SLOT( cvsDiff( ) ), actionCollection( ), "cvs_diff" );
+ TQT_SLOT( cvsDiff( ) ), actionCollection( ), "cvs_diff" );
// CVS
actionMap["cvs_update"] = NEEDS_PO | NEEDS_PO_CVS;
@@ -449,27 +449,27 @@ void CatalogManager::setupActions()
// SVN submenu
// Actions for PO files
(void)new KAction( i18n( "Update" ), "down", 0, _catalogManager,
- SLOT( svnUpdate( ) ), actionCollection( ), "svn_update" );
+ TQT_SLOT( svnUpdate( ) ), actionCollection( ), "svn_update" );
(void)new KAction( i18n( "Update Marked" ), 0, _catalogManager,
- SLOT( svnUpdateMarked( ) ), actionCollection( ), "svn_update_marked" );
+ TQT_SLOT( svnUpdateMarked( ) ), actionCollection( ), "svn_update_marked" );
(void)new KAction( i18n( "Commit" ), "up", 0, _catalogManager,
- SLOT( svnCommit( ) ), actionCollection( ), "svn_commit" );
+ TQT_SLOT( svnCommit( ) ), actionCollection( ), "svn_commit" );
(void)new KAction( i18n( "Commit Marked" ), 0, _catalogManager,
- SLOT( svnCommitMarked( ) ), actionCollection( ), "svn_commit_marked" );
+ TQT_SLOT( svnCommitMarked( ) ), actionCollection( ), "svn_commit_marked" );
(void)new KAction( i18n( "Status (Local)" ), 0, _catalogManager,
- SLOT( svnStatusLocal() ), actionCollection( ), "svn_status_local" );
+ TQT_SLOT( svnStatusLocal() ), actionCollection( ), "svn_status_local" );
(void)new KAction( i18n( "Status (Local) for Marked" ), 0, _catalogManager,
- SLOT( svnStatusLocalMarked() ), actionCollection( ), "svn_status_local_marked" );
+ TQT_SLOT( svnStatusLocalMarked() ), actionCollection( ), "svn_status_local_marked" );
(void)new KAction( i18n( "Status (Remote)" ), 0, _catalogManager,
- SLOT( svnStatusRemote() ), actionCollection( ), "svn_status_remote" );
+ TQT_SLOT( svnStatusRemote() ), actionCollection( ), "svn_status_remote" );
(void)new KAction( i18n( "Status (Remote) for Marked" ), 0, _catalogManager,
- SLOT( svnStatusRemoteMarked() ), actionCollection( ), "svn_status_remote_marked" );
+ TQT_SLOT( svnStatusRemoteMarked() ), actionCollection( ), "svn_status_remote_marked" );
(void)new KAction( i18n( "Show Diff" ), 0, _catalogManager,
- SLOT( svnDiff( ) ), actionCollection( ), "svn_diff" );
+ TQT_SLOT( svnDiff( ) ), actionCollection( ), "svn_diff" );
(void)new KAction( i18n( "Show Information" ), 0, _catalogManager,
- SLOT( svnInfo() ), actionCollection( ), "svn_info" );
+ TQT_SLOT( svnInfo() ), actionCollection( ), "svn_info" );
(void)new KAction( i18n( "Show Information for Marked" ), 0, _catalogManager,
- SLOT( svnInfoMarked() ), actionCollection( ), "svn_info_marked" );
+ TQT_SLOT( svnInfoMarked() ), actionCollection( ), "svn_info_marked" );
// SVN
actionMap["svn_update"] = NEEDS_PO | NEEDS_PO_SVN;
@@ -486,13 +486,13 @@ void CatalogManager::setupActions()
// CVS Actions for POT files
(void)new KAction( i18n( "Update Templates" ), 0, _catalogManager,
- SLOT( cvsUpdateTemplate( ) ), actionCollection( ), "cvs_update_template" );
+ TQT_SLOT( cvsUpdateTemplate( ) ), actionCollection( ), "cvs_update_template" );
(void)new KAction( i18n( "Update Marked Templates" ), 0, _catalogManager,
- SLOT( cvsUpdateMarkedTemplate( ) ), actionCollection( ), "cvs_update_marked_template" );
+ TQT_SLOT( cvsUpdateMarkedTemplate( ) ), actionCollection( ), "cvs_update_marked_template" );
(void)new KAction( i18n( "Commit Templates" ), 0, _catalogManager,
- SLOT( cvsCommitTemplate( ) ), actionCollection( ), "cvs_commit_template" );
+ TQT_SLOT( cvsCommitTemplate( ) ), actionCollection( ), "cvs_commit_template" );
(void)new KAction( i18n( "Commit Marked Templates" ), 0, _catalogManager,
- SLOT( cvsCommitMarkedTemplate( ) ), actionCollection( ), "cvs_commit_marked_template" );
+ TQT_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;
@@ -501,13 +501,13 @@ void CatalogManager::setupActions()
// SVN Actions for POT files
(void)new KAction( i18n( "Update Templates" ), 0, _catalogManager,
- SLOT( svnUpdateTemplate( ) ), actionCollection( ), "svn_update_template" );
+ TQT_SLOT( svnUpdateTemplate( ) ), actionCollection( ), "svn_update_template" );
(void)new KAction( i18n( "Update Marked Templates" ), 0, _catalogManager,
- SLOT( svnUpdateMarkedTemplate( ) ), actionCollection( ), "svn_update_marked_template" );
+ TQT_SLOT( svnUpdateMarkedTemplate( ) ), actionCollection( ), "svn_update_marked_template" );
(void)new KAction( i18n( "Commit Templates" ), 0, _catalogManager,
- SLOT( svnCommitTemplate( ) ), actionCollection( ), "svn_commit_template" );
+ TQT_SLOT( svnCommitTemplate( ) ), actionCollection( ), "svn_commit_template" );
(void)new KAction( i18n( "Commit Marked Templates" ), 0, _catalogManager,
- SLOT( svnCommitMarkedTemplate( ) ), actionCollection( ), "svn_commit_marked_template" );
+ TQT_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, SLOT( optionsPreferences()), actionCollection());
+ // FIXME: KStdAction::preferences(this, TQT_SLOT( optionsPreferences()), actionCollection());
createStandardStatusBarAction();
@@ -530,7 +530,7 @@ void CatalogManager::setupActions()
actionCollection(), "file_commands");
_catalogManager->setFileCommandsMenu( actionMenu->popupMenu());
- action = new KAction(i18n("&Delete"),Key_Delete,_catalogManager,SLOT(slotDeleteFile()),actionCollection(), "delete");
+ action = new KAction(i18n("&Delete"),Key_Delete,_catalogManager,TQT_SLOT(slotDeleteFile()),actionCollection(), "delete");
action->setEnabled(false);
#if KDE_IS_VERSION( 3, 2, 90 )
@@ -542,19 +542,19 @@ void CatalogManager::setupActions()
void CatalogManager::setupStatusBar()
{
- _foundLabel = new QLabel( " ", statusBar());
+ _foundLabel = new TQLabel( " ", statusBar());
statusBar()->addWidget(_foundLabel,0);
- QHBox* progressBox = new QHBox(statusBar(), "progressBox" );
+ TQHBox* progressBox = new TQHBox(statusBar(), "progressBox" );
progressBox->setSpacing(2);
- _statusProgressLabel = new QLabel( "", progressBox );
+ _statusProgressLabel = new TQLabel( "", progressBox );
_statusProgressBar = new KProgress( progressBox, "progressBar");
_statusProgressBar->hide();
statusBar()->addWidget(progressBox,1);
statusBar()->setMinimumHeight(_statusProgressBar->sizeHint().height());
- QWhatsThis::add(statusBar(),
+ TQWhatsThis::add(statusBar(),
i18n("<qt><p><b>Statusbar</b></p>\n"
"<p>The statusbar displays information about progress of"
" the current find or replace operation. The first number in <b>Found:</b>"
@@ -570,7 +570,7 @@ void CatalogManager::enableMenuForFiles(bool enable)
void CatalogManager::selectedChanged(uint actionValue)
{
- QMap<QString,uint>::Iterator it;
+ TQMap<TQString,uint>::Iterator it;
for (it = actionMap.begin( ); it != actionMap.end( ); ++it) {
KAction * action = actionCollection()->action(it.key( ).latin1( ));
if (action) action->setEnabled((actionValue & it.data( )) == it.data( ));
@@ -589,7 +589,7 @@ void CatalogManager::updateSettings()
_openNewWindow=_settings.openWindow;
}
-void CatalogManager::saveSettings( QString configFile )
+void CatalogManager::saveSettings( TQString configFile )
{
_settings = _catalogManager->settings(); // restore settings from the view
@@ -615,12 +615,12 @@ void CatalogManager::setPreferredWindow(WId window)
kdDebug(KBABEL_CATMAN) << "setPrefereedWindow set to :" << _preferredWindow << endl;
}
-void CatalogManager::updateFile(QString fileWithPath)
+void CatalogManager::updateFile(TQString fileWithPath)
{
_catalogManager->updateFile(fileWithPath,true); //force update
}
-void CatalogManager::updateAfterSave(QString fileWithPath, PoInfo &info)
+void CatalogManager::updateAfterSave(TQString fileWithPath, PoInfo &info)
{
_catalogManager->updateAfterSave(fileWithPath, info);
}
@@ -630,16 +630,16 @@ CatalogManagerView *CatalogManager::view()
return _catalogManager;
}
-void CatalogManager::openFile(QString filename, QString package)
+void CatalogManager::openFile(TQString filename, TQString package)
{
DCOPClient * client = kapp->dcopClient();
if( startKBabel() )
{
- QByteArray data;
- QCString url = filename.local8Bit();
- QDataStream arg(data, IO_WriteOnly);
+ TQByteArray data;
+ TQCString url = filename.local8Bit();
+ TQDataStream arg(data, IO_WriteOnly);
arg << url;
arg << package.utf8();
arg << CatalogManagerApp::_preferredWindow;
@@ -647,11 +647,11 @@ void CatalogManager::openFile(QString filename, QString package)
kdDebug(KBABEL_CATMAN) << "Open file with project " << _configFile << endl;
- QCString callfunc="openURL(QCString, QCString, WId,int)";
+ TQCString callfunc="openURL(TQCString, TQCString, WId,int)";
if(_configFile != "kbabelrc" )
{
arg << _configFile.utf8();
- callfunc="openURL(QCString, QCString, WId,int,QCString)";
+ callfunc="openURL(TQCString, TQCString, WId,int,TQCString)";
}
kdDebug(KBABEL_CATMAN) << callfunc << endl;
@@ -665,26 +665,26 @@ void CatalogManager::openFile(QString filename, QString package)
}
}
-void CatalogManager::openFile(QString filename, QString package, int msgid)
+void CatalogManager::openFile(TQString filename, TQString package, int msgid)
{
DCOPClient * client = kapp->dcopClient();
if( startKBabel() )
{
- QByteArray data;
- QCString url = filename.local8Bit();
- QDataStream arg(data, IO_WriteOnly);
+ TQByteArray data;
+ TQCString url = filename.local8Bit();
+ TQDataStream arg(data, IO_WriteOnly);
arg << url;
arg << package.utf8();
arg << msgid;
kdDebug(KBABEL_CATMAN) << "Open file with project " << _configFile << endl;
- QCString callfunc="gotoFileEntry(QCString, QCString, int)";
+ TQCString callfunc="gotoFileEntry(TQCString, TQCString, int)";
if(_configFile != "kbabelrc" )
{
arg << _configFile.utf8();
- callfunc="gotoFileEntry(QCString, QCString,int,QCString)";
+ callfunc="gotoFileEntry(TQCString, TQCString,int,TQCString)";
}
kdDebug(KBABEL_CATMAN) << callfunc << endl;
@@ -698,26 +698,26 @@ void CatalogManager::openFile(QString filename, QString package, int msgid)
}
}
-void CatalogManager::openFileInNewWindow(QString filename, QString package)
+void CatalogManager::openFileInNewWindow(TQString filename, TQString package)
{
DCOPClient * client = kapp->dcopClient();
if( startKBabel() )
{
- QByteArray data;
- QCString url = filename.local8Bit();
- QDataStream arg(data, IO_WriteOnly);
+ TQByteArray data;
+ TQCString url = filename.local8Bit();
+ TQDataStream arg(data, IO_WriteOnly);
arg << url;
arg << package.utf8();
arg << CatalogManagerApp::_preferredWindow;
arg << ((int)1);
- QCString callfunc="openURL(QCString, QCString, WId,int)";
+ TQCString callfunc="openURL(TQCString, TQCString, WId,int)";
if(_configFile != "kbabelrc" )
{
arg << _configFile.utf8();
- callfunc="openURL(QCString, QCString, WId,int,QCString)";
+ callfunc="openURL(TQCString, TQCString, WId,int,TQCString)";
}
// update the user timestamp for KBabel to get it a focus
@@ -729,25 +729,25 @@ void CatalogManager::openFileInNewWindow(QString filename, QString package)
}
}
-void CatalogManager::openTemplate(QString openFilename,QString saveFilename,QString package)
+void CatalogManager::openTemplate(TQString openFilename,TQString saveFilename,TQString package)
{
DCOPClient * client = kapp->dcopClient();
if( startKBabel() ) {
- QByteArray data;
- QCString url = openFilename.local8Bit();
- QDataStream arg(data, IO_WriteOnly);
+ TQByteArray data;
+ TQCString url = openFilename.local8Bit();
+ TQDataStream arg(data, IO_WriteOnly);
arg << url;
url = saveFilename.utf8();
arg << url;
arg << package.utf8();
arg << (_openNewWindow ? 1 : 0 );
- QCString callfunc="openTemplate(QCString,QCString,QCString,int)";
+ TQCString callfunc="openTemplate(TQCString,TQCString,TQCString,int)";
if(_configFile != "kbabelrc" )
{
arg << _configFile.utf8();
- callfunc="openTemplate(QCString,QCString,QCString,int,QCString)";
+ callfunc="openTemplate(TQCString,TQCString,TQCString,int,TQCString)";
}
// update the user timestamp for KBabel to get it a focus
@@ -759,25 +759,25 @@ void CatalogManager::openTemplate(QString openFilename,QString saveFilename,QStr
}
}
-void CatalogManager::openTemplateInNewWindow(QString openFilename,QString saveFilename,QString package)
+void CatalogManager::openTemplateInNewWindow(TQString openFilename,TQString saveFilename,TQString package)
{
DCOPClient * client = kapp->dcopClient();
if( startKBabel() ) {
- QByteArray data;
- QCString url = openFilename.local8Bit();
- QDataStream arg(data, IO_WriteOnly);
+ TQByteArray data;
+ TQCString url = openFilename.local8Bit();
+ TQDataStream arg(data, IO_WriteOnly);
arg << url;
url = saveFilename.utf8();
arg << url;
arg << package.utf8();
arg << ((int)1);
- QCString callfunc="openTemplate(QCString,QCString,QCString,int)";
+ TQCString callfunc="openTemplate(TQCString,TQCString,TQCString,int)";
if(_configFile != "kbabelrc" )
{
arg << _configFile.utf8();
- callfunc="openTemplate(QCString,QCString,QCString,int,QCString)";
+ callfunc="openTemplate(TQCString,TQCString,TQCString,int,TQCString)";
}
// update the user timestamp for KBabel to get it a focus
@@ -793,17 +793,17 @@ void CatalogManager::spellcheck()
{
DCOPClient * client = kapp->dcopClient();
- QStringList fileList = _catalogManager->current();
+ TQStringList fileList = _catalogManager->current();
if( startKBabel() ) {
- QByteArray data;
- QDataStream arg(data, IO_WriteOnly);
+ TQByteArray data;
+ TQDataStream arg(data, IO_WriteOnly);
arg << fileList;
// update the user timestamp for KBabel to get it a focus
kapp->updateRemoteUserTimestamp ("kbabel");
- if( !client->send("kbabel","KBabelIFace", "spellcheck(QStringList)", data) )
+ if( !client->send("kbabel","KBabelIFace", "spellcheck(TQStringList)", data) )
KMessageBox::error(this, i18n("Cannot send a message to KBabel.\n"
"Please check your installation of KDE."));
}
@@ -813,17 +813,17 @@ void CatalogManager::markedSpellcheck()
{
DCOPClient * client = kapp->dcopClient();
- QStringList fileList = _catalogManager->marked();
+ TQStringList fileList = _catalogManager->marked();
if( startKBabel() ) {
- QByteArray data;
- QDataStream arg(data, IO_WriteOnly);
+ TQByteArray data;
+ TQDataStream arg(data, IO_WriteOnly);
arg << fileList;
// update the user timestamp for KBabel to get it a focus
kapp->updateRemoteUserTimestamp ("kbabel");
- if( !client->send("kbabel","KBabelIFace", "spellcheck(QStringList)", data) )
+ if( !client->send("kbabel","KBabelIFace", "spellcheck(TQStringList)", data) )
KMessageBox::error(this, i18n("Cannot send a message to KBabel.\n"
"Please check your installation of KDE."));
}
@@ -831,8 +831,8 @@ void CatalogManager::markedSpellcheck()
bool CatalogManager::startKBabel()
{
- QCString service;
- QString result;
+ TQCString service;
+ TQString result;
DCOPClient * client = kapp->dcopClient();
@@ -840,7 +840,7 @@ bool CatalogManager::startKBabel()
QCStringList apps = client->registeredApplications();
for( QCStringList::Iterator it = apps.begin() ; it != apps.end() ; ++it )
{
- QString clientID = *it;
+ TQString clientID = *it;
if( clientID=="kbabel" )
{
service = *it;
@@ -851,8 +851,8 @@ bool CatalogManager::startKBabel()
// if there is no running kbabel, start one
if( service.isEmpty() )
{
- QString app = "kbabel";
- QString url = "";
+ TQString app = "kbabel";
+ TQString url = "";
if( kapp->startServiceByDesktopName(app,url, &result, &service))
{
KMessageBox::error( this, i18n("Unable to use KLauncher to start KBabel.\n"
@@ -866,7 +866,7 @@ bool CatalogManager::startKBabel()
}
-void CatalogManager::prepareProgressBar(QString msg, int max)
+void CatalogManager::prepareProgressBar(TQString msg, int max)
{
_progressBar->setTotalSteps(max);
_progressBar->setProgress(0);
@@ -884,7 +884,7 @@ void CatalogManager::clearProgressBar()
_progressLabel->hide();
}
-void CatalogManager::prepareStatusProgressBar(QString msg, int max)
+void CatalogManager::prepareStatusProgressBar(TQString msg, int max)
{
_totalFound = 0;
_foundToBeSent = 0;
@@ -932,7 +932,7 @@ void CatalogManager::find()
{
if( !_findDialog ) _findDialog = new FindInFilesDialog(false,this);
- if( _findDialog->exec("") == QDialog::Accepted )
+ if( _findDialog->exec("") == TQDialog::Accepted )
{
_timerFind->stop();
_searchStopped = false;
@@ -946,22 +946,22 @@ void CatalogManager::find()
_findOptions = _findDialog->findOpts();
// get from options the information for ignoring text parts
- _findOptions.contextInfo = QRegExp( _project->miscSettings().contextInfo );
+ _findOptions.contextInfo = TQRegExp( _project->miscSettings().contextInfo );
_findOptions.accelMarker = _project->miscSettings().accelMarker;
_foundFilesList.clear();
kdDebug(KBABEL_CATMAN) << "Calling catalogmanagerview::find" << endl;
- QString url = _catalogManager->find(_findOptions, _toBeSearched );
+ TQString url = _catalogManager->find(_findOptions, _toBeSearched );
if( _catalogManager->isStopped() ) return;
if( !url.isEmpty() )
{
if( startKBabel() )
{
- QCString funcCall("findInFile(QCString,QCString,QString,int,int,int,int,int,int,int,int,int,int)");
+ TQCString funcCall("findInFile(TQCString,TQCString,TQString,int,int,int,int,int,int,int,int,int,int)");
DCOPClient *client = kapp->dcopClient();
- QByteArray data;
- QDataStream arg(data, IO_WriteOnly);
+ TQByteArray data;
+ TQDataStream arg(data, IO_WriteOnly);
arg << client->appId();
arg << url.utf8();
arg << _findOptions.findStr;
@@ -977,9 +977,9 @@ void CatalogManager::find()
arg << (_findOptions.askForSave ? 1 : 0);
if(_configFile != "kbabelrc" ) {
arg << _configFile.utf8();
- funcCall="findInFile(QCString,QCString,QString,int,int,int,int,int,int,int,int,int,int,QCString)";
+ funcCall="findInFile(TQCString,TQCString,TQString,int,int,int,int,int,int,int,int,int,int,TQCString)";
}
- kdDebug(KBABEL) << "DCOP: " << QString(data.data()) << endl;
+ kdDebug(KBABEL) << "DCOP: " << TQString(data.data()) << endl;
if( !client->send("kbabel","KBabelIFace",
funcCall, data)
) {
@@ -1016,7 +1016,7 @@ void CatalogManager::replace()
if( !_replaceDialog ) _replaceDialog = new FindInFilesDialog(true,this);
- if( _replaceDialog->exec("") == QDialog::Accepted )
+ if( _replaceDialog->exec("") == TQDialog::Accepted )
{
_timerFind->stop();
_searchStopped = false;
@@ -1032,21 +1032,21 @@ void CatalogManager::replace()
_findOptions = options;
// get from options the information for ignoring text parts
- options.contextInfo = QRegExp( _project->miscSettings().contextInfo );
+ options.contextInfo = TQRegExp( _project->miscSettings().contextInfo );
options.accelMarker = _project->miscSettings().accelMarker;
_foundFilesList.clear();
- QString url = _catalogManager->find(options, _toBeSearched );
+ TQString url = _catalogManager->find(options, _toBeSearched );
if( _catalogManager->isStopped() ) return;
if( !url.isEmpty() )
{
if( startKBabel() )
{
- QCString funcCall("replaceInFile(QCString,QCString,QString,QString,int,int,int,int,int,int,int,int,int,int,int)");
+ TQCString funcCall("replaceInFile(TQCString,TQCString,TQString,TQString,int,int,int,int,int,int,int,int,int,int,int)");
DCOPClient *client = kapp->dcopClient();
- QByteArray data;
- QDataStream arg(data, IO_WriteOnly);
+ TQByteArray data;
+ TQDataStream arg(data, IO_WriteOnly);
arg << client->appId();
arg << url.utf8();
@@ -1065,7 +1065,7 @@ void CatalogManager::replace()
arg << (options.askForSave ? 1 : 0);
if(_configFile != "kbabelrc" ) {
arg << _configFile.utf8();
- funcCall="replaceInFile(QCString,QCString,QString,QString,int,int,int,int,int,int,int,int,int,int,int,QCString)";
+ funcCall="replaceInFile(TQCString,TQCString,TQString,TQString,int,int,int,int,int,int,int,int,int,int,int,TQCString)";
}
if( !client->send("kbabel","KBabelIFace",
funcCall, data)
@@ -1105,7 +1105,7 @@ void CatalogManager::findNextFile()
stopSearching();
return;
}
- QString file = _toBeSearched.first();
+ TQString file = _toBeSearched.first();
_toBeSearched.pop_front();
if( PoInfo::findInFile( file, _findOptions ) )
{
@@ -1188,11 +1188,11 @@ void CatalogManager::projectNew()
KBabel::Project::Ptr p = KBabel::ProjectWizard::newProject();
if( p )
{
- disconnect( _project, SIGNAL (signalCatManSettingsChanged())
- , this, SLOT (updateSettings()));
+ disconnect( _project, TQT_SIGNAL (signalCatManSettingsChanged())
+ , this, TQT_SLOT (updateSettings()));
_project = p;
- connect( _project, SIGNAL (signalCatManSettingsChanged())
- , this, SLOT (updateSettings()));
+ connect( _project, TQT_SIGNAL (signalCatManSettingsChanged())
+ , this, TQT_SLOT (updateSettings()));
_configFile = _project->filename();
restoreSettings();
@@ -1204,12 +1204,12 @@ void CatalogManager::projectNew()
void CatalogManager::projectOpen()
{
- QString oldproject = _project->filename();
+ TQString oldproject = _project->filename();
if( oldproject == KBabel::ProjectManager::defaultProjectName() )
{
- oldproject = QString();
+ oldproject = TQString();
}
- const QString file = KFileDialog::getOpenFileName(oldproject, QString::null, this);
+ const TQString file = KFileDialog::getOpenFileName(oldproject, TQString::null, this);
if (file.isEmpty())
{
return;
@@ -1217,11 +1217,11 @@ void CatalogManager::projectOpen()
KBabel::Project::Ptr p = KBabel::ProjectManager::open(file);
if( p )
{
- disconnect( _project, SIGNAL (signalCatManSettingsChanged())
- , this, SLOT (updateSettings()));
+ disconnect( _project, TQT_SIGNAL (signalCatManSettingsChanged())
+ , this, TQT_SLOT (updateSettings()));
_project = p;
- connect( _project, SIGNAL (signalCatManSettingsChanged())
- , this, SLOT (updateSettings()));
+ connect( _project, TQT_SIGNAL (signalCatManSettingsChanged())
+ , this, TQT_SLOT (updateSettings()));
_configFile = p->filename();
restoreSettings();
@@ -1238,11 +1238,11 @@ void CatalogManager::projectOpen()
void CatalogManager::projectClose()
{
- disconnect( _project, SIGNAL (signalCatManSettingsChanged())
- , this, SLOT (updateSettings()));
+ disconnect( _project, TQT_SIGNAL (signalCatManSettingsChanged())
+ , this, TQT_SLOT (updateSettings()));
_project = KBabel::ProjectManager::open(KBabel::ProjectManager::defaultProjectName());
- connect( _project, SIGNAL (signalCatManSettingsChanged())
- , this, SLOT (updateSettings()));
+ connect( _project, TQT_SIGNAL (signalCatManSettingsChanged())
+ , this, TQT_SLOT (updateSettings()));
_configFile = _project->filename();
restoreSettings();
updateSettings();
@@ -1250,7 +1250,7 @@ void CatalogManager::projectClose()
emit settingsChanged(_settings);
}
-void CatalogManager::changeProjectActions(const QString& project)
+void CatalogManager::changeProjectActions(const TQString& project)
{
bool def = ( project == KBabel::ProjectManager::defaultProjectName() ) ;
@@ -1262,8 +1262,8 @@ void CatalogManager::projectConfigure()
{
KBabel::ProjectDialog* _projectDialog = new ProjectDialog(_project);
- connect (_projectDialog, SIGNAL (settingsChanged())
- , this, SLOT (updateSettings()));
+ connect (_projectDialog, TQT_SIGNAL (settingsChanged())
+ , this, TQT_SLOT (updateSettings()));
// settings are updated via signals
_projectDialog->exec();