summaryrefslogtreecommitdiffstats
path: root/kbabel/kbabel/kbabel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kbabel/kbabel/kbabel.cpp')
-rw-r--r--kbabel/kbabel/kbabel.cpp574
1 files changed, 287 insertions, 287 deletions
diff --git a/kbabel/kbabel/kbabel.cpp b/kbabel/kbabel/kbabel.cpp
index cae7bf77..0c3c897d 100644
--- a/kbabel/kbabel/kbabel.cpp
+++ b/kbabel/kbabel/kbabel.cpp
@@ -48,15 +48,15 @@
#include "taglistview.h"
#include "sourceview.h"
-#include <qdragobject.h>
-#include <qlineedit.h>
-#include <qpopupmenu.h>
-#include <qhbox.h>
-#include <qwhatsthis.h>
-#include <qsize.h>
-#include <qtextcodec.h>
-#include <qtooltip.h>
-#include <qtimer.h>
+#include <tqdragobject.h>
+#include <tqlineedit.h>
+#include <tqpopupmenu.h>
+#include <tqhbox.h>
+#include <tqwhatsthis.h>
+#include <tqsize.h>
+#include <tqtextcodec.h>
+#include <tqtooltip.h>
+#include <tqtimer.h>
#include <dcopclient.h>
#include <kdatatool.h>
@@ -108,19 +108,19 @@
using namespace KBabel;
-QPtrList<KBabelPreferences> KBabelMW::prefDialogs;
+TQPtrList<KBabelPreferences> KBabelMW::prefDialogs;
class MyKProgress: public KProgress
{
public:
- MyKProgress( QWidget *parent, const char *name ) : KProgress( parent, name )
+ MyKProgress( TQWidget *parent, const char *name ) : KProgress( parent, name )
{
- setSizePolicy( QSizePolicy::Minimum, QSizePolicy::Preferred );
+ setSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Preferred );
}
- QSize sizeHint() const { return QSize( 1, 1);}
+ TQSize sizeHint() const { return TQSize( 1, 1);}
};
-KBabelMW::KBabelMW(QString projectFile)
+KBabelMW::KBabelMW(TQString projectFile)
: KDockMainWindow (), m_charselectorview(0)
{
if ( projectFile.isEmpty() )
@@ -138,7 +138,7 @@ KBabelMW::KBabelMW(QString projectFile)
init(catalog);
}
-KBabelMW::KBabelMW(KBCatalog* catalog, QString projectFile)
+KBabelMW::KBabelMW(KBCatalog* catalog, TQString projectFile)
: KDockMainWindow (), m_charselectorview(0)
{
if ( projectFile.isEmpty() )
@@ -170,9 +170,9 @@ void KBabelMW::init(KBCatalog* catalog)
_prefDialog=0;
prefDialogs.setAutoDelete(true);
- _statusbarTimer = new QTimer(this, "statusbartimer");
- connect(_statusbarTimer,SIGNAL(timeout()),this
- ,SLOT(clearStatusbarMsg()));
+ _statusbarTimer = new TQTimer(this, "statusbartimer");
+ connect(_statusbarTimer,TQT_SIGNAL(timeout()),this
+ ,TQT_SLOT(clearStatusbarMsg()));
// FIXME:
Q_ASSERT(_project);
@@ -193,87 +193,87 @@ void KBabelMW::init(KBCatalog* catalog)
stateChanged( "fileopened" , StateReverse );
stateChanged( "readonly", StateNoReverse );
- QPopupMenu* popup;
- popup = (QPopupMenu*)(factory()->container("rmb_edit", this));
+ TQPopupMenu* popup;
+ popup = (TQPopupMenu*)(factory()->container("rmb_edit", this));
if(popup)
{
m_view->setRMBEditMenu(popup);
}
- popup = (QPopupMenu*)(factory()->container("rmb_search", this));
+ popup = (TQPopupMenu*)(factory()->container("rmb_search", this));
if(popup)
{
m_view->setRMBSearchMenu(popup);
}
- connect(catalog,SIGNAL(signalUndoAvailable(bool)),this
- ,SLOT(enableUndo(bool)));
- connect(catalog,SIGNAL(signalRedoAvailable(bool)),this
- ,SLOT(enableRedo(bool)));
- connect(catalog,SIGNAL(signalNumberOfFuzziesChanged(uint)),this
- ,SLOT(setNumberOfFuzzies(uint)));
- connect(catalog,SIGNAL(signalNumberOfUntranslatedChanged(uint)),this
- ,SLOT(setNumberOfUntranslated(uint)));
- connect(catalog,SIGNAL(signalTotalNumberChanged(uint)),this
- ,SLOT(setNumberOfTotal(uint)));
- connect(catalog,SIGNAL(signalProgress(int)),_progressBar,SLOT(setProgress(int)));
- connect(catalog,SIGNAL(signalClearProgressBar()),this,SLOT(clearProgressBar()));
- connect(catalog,SIGNAL(signalResetProgressBar(QString,int))
- ,this,SLOT(prepareProgressBar(QString,int)));
- connect(catalog,SIGNAL(signalFileOpened(bool)),this,SLOT(enableDefaults(bool)));
- connect(catalog,SIGNAL(signalFileOpened(bool)),m_view,SLOT(newFileOpened(bool)));
- connect(catalog,SIGNAL(signalModified(bool)),this,SLOT(showModified(bool)));
+ 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()),this,TQT_SLOT(clearProgressBar()));
+ connect(catalog,TQT_SIGNAL(signalResetProgressBar(TQString,int))
+ ,this,TQT_SLOT(prepareProgressBar(TQString,int)));
+ connect(catalog,TQT_SIGNAL(signalFileOpened(bool)),this,TQT_SLOT(enableDefaults(bool)));
+ connect(catalog,TQT_SIGNAL(signalFileOpened(bool)),m_view,TQT_SLOT(newFileOpened(bool)));
+ connect(catalog,TQT_SIGNAL(signalModified(bool)),this,TQT_SLOT(showModified(bool)));
// allow the view to change the statusbar and caption
- connect(m_view, SIGNAL(signalChangeStatusbar(const QString&)),
- this, SLOT(changeStatusbar(const QString&)));
- connect(m_view, SIGNAL(signalChangeCaption(const QString&)),
- this, SLOT(changeCaption(const QString&)));
- connect(m_view,SIGNAL(signalFirstDisplayed(bool, bool)),this
- ,SLOT(firstEntryDisplayed(bool, bool)));
- connect(m_view,SIGNAL(signalLastDisplayed(bool, bool)),this
- ,SLOT(lastEntryDisplayed(bool, bool)));
- connect(m_view,SIGNAL(signalFuzzyDisplayed(bool)),this
- ,SLOT(fuzzyDisplayed(bool)));
- connect(m_view,SIGNAL(signalUntranslatedDisplayed(bool)),this
- ,SLOT(untranslatedDisplayed(bool)));
- connect(m_view,SIGNAL(signalFaultyDisplayed(bool)),this
- ,SLOT(faultyDisplayed(bool)));
- connect(m_view,SIGNAL(signalDisplayed(const KBabel::DocPosition&)),this
- ,SLOT(displayedEntryChanged(const KBabel::DocPosition&)));
- connect(m_view,SIGNAL(signalFuzzyAfterwards(bool)),this
- ,SLOT(hasFuzzyAfterwards(bool)));
- connect(m_view,SIGNAL(signalFuzzyInFront(bool)),this
- ,SLOT(hasFuzzyInFront(bool)));
- connect(m_view,SIGNAL(signalUntranslatedAfterwards(bool)),this
- ,SLOT(hasUntranslatedAfterwards(bool)));
- connect(m_view,SIGNAL(signalUntranslatedInFront(bool)),this
- ,SLOT(hasUntranslatedInFront(bool)));
- connect(m_view,SIGNAL(signalErrorAfterwards(bool)),this
- ,SLOT(hasErrorAfterwards(bool)));
- connect(m_view,SIGNAL(signalErrorInFront(bool)),this
- ,SLOT(hasErrorInFront(bool)));
- connect(m_view,SIGNAL(signalBackHistory(bool)),this
- ,SLOT(enableBackHistory(bool)));
- connect(m_view,SIGNAL(signalForwardHistory(bool)),this
- ,SLOT(enableForwardHistory(bool)));
-
-
- connect(m_view,SIGNAL(ledColorChanged(const QColor&)),this
- ,SLOT(setLedColor(const QColor&)));
-
-
- connect(m_view,SIGNAL(signalSearchActive(bool)),this,SLOT(enableStop(bool)));
-
- connect(m_view,SIGNAL(signalProgress(int)),_progressBar,SLOT(setProgress(int)));
- connect(m_view,SIGNAL(signalClearProgressBar()),this,SLOT(clearProgressBar()));
- connect(m_view,SIGNAL(signalResetProgressBar(QString,int))
- ,this,SLOT(prepareProgressBar(QString,int)));
-
- connect(m_view,SIGNAL(signalDictionariesChanged())
- , this, SLOT(buildDictMenus()));
- connect(m_view,SIGNAL(signalCursorPosChanged(int,int)), this
- , SLOT(updateCursorPosition(int,int)));
+ connect(m_view, TQT_SIGNAL(signalChangeStatusbar(const TQString&)),
+ this, TQT_SLOT(changeStatusbar(const TQString&)));
+ connect(m_view, TQT_SIGNAL(signalChangeCaption(const TQString&)),
+ 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)),this,TQT_SLOT(enableStop(bool)));
+
+ connect(m_view,TQT_SIGNAL(signalProgress(int)),_progressBar,TQT_SLOT(setProgress(int)));
+ connect(m_view,TQT_SIGNAL(signalClearProgressBar()),this,TQT_SLOT(clearProgressBar()));
+ connect(m_view,TQT_SIGNAL(signalResetProgressBar(TQString,int))
+ ,this,TQT_SLOT(prepareProgressBar(TQString,int)));
+
+ connect(m_view,TQT_SIGNAL(signalDictionariesChanged())
+ , this, TQT_SLOT(buildDictMenus()));
+ connect(m_view,TQT_SIGNAL(signalCursorPosChanged(int,int)), this
+ , TQT_SLOT(updateCursorPosition(int,int)));
if(!catalog->currentURL().isEmpty())
{
@@ -292,18 +292,18 @@ void KBabelMW::init(KBCatalog* catalog)
mailer = new KBabelMailer( this, _project );
- bmHandler = new KBabelBookmarkHandler((QPopupMenu*)factory()->container("bookmark", this));
+ bmHandler = new KBabelBookmarkHandler((TQPopupMenu*)factory()->container("bookmark", this));
// the earlier created KAction for "clear_bookmarks" is now reconnected
KAction* action = actionCollection()->action("clear_bookmarks");
if (action) {
- action->disconnect(SIGNAL(activated()));
- connect(action, SIGNAL(activated()),
- bmHandler, SLOT(slotClearBookmarks()));
+ action->disconnect(TQT_SIGNAL(activated()));
+ connect(action, TQT_SIGNAL(activated()),
+ bmHandler, TQT_SLOT(slotClearBookmarks()));
}
- connect(bmHandler, SIGNAL(signalBookmarkSelected(int)),
- this, SLOT(slotOpenBookmark(int)));
- connect(m_view, SIGNAL(signalNewFileOpened(KURL)),
- bmHandler, SLOT(slotClearBookmarks()));
+ connect(bmHandler, TQT_SIGNAL(signalBookmarkSelected(int)),
+ this, TQT_SLOT(slotOpenBookmark(int)));
+ connect(m_view, TQT_SIGNAL(signalNewFileOpened(KURL)),
+ bmHandler, TQT_SLOT(slotClearBookmarks()));
_config = KSharedConfig::openConfig( "kbabelrc" );
restoreSettings();
@@ -312,17 +312,17 @@ void KBabelMW::init(KBCatalog* catalog)
if(!_config->hasKey("Version"))
{
- QString encodingStr;
+ TQString encodingStr;
switch(catalog->saveSettings().encoding)
{
case KBabel::ProjectSettingsBase::UTF8:
- encodingStr=QTextCodec::codecForName("UTF-8")->name();
+ encodingStr=TQTextCodec::codecForName("UTF-8")->name();
break;
case KBabel::ProjectSettingsBase::UTF16:
- encodingStr=QTextCodec::codecForName("UTF-16")->name();
+ encodingStr=TQTextCodec::codecForName("UTF-16")->name();
break;
default:
- encodingStr=QTextCodec::codecForLocale()->name();
+ encodingStr=TQTextCodec::codecForLocale()->name();
}
if( KBabelSplash::instance ) KBabelSplash::instance->close(); //close splash screen window, if there is one
@@ -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));
- QTimer::singleShot(1,this,SLOT(projectConfigure()));
+ TQTimer::singleShot(1,this,TQT_SLOT(projectConfigure()));
}
_config->writeEntry("Version",VERSION);
@@ -404,296 +404,296 @@ void KBabelMW::setupActions()
KAction* action;
// the file menu
- action = KStdAction::open(this, SLOT(fileOpen()), actionCollection());
+ action = KStdAction::open(this, TQT_SLOT(fileOpen()), actionCollection());
- a_recent = KStdAction::openRecent(this, SLOT(openRecent(const KURL&)), actionCollection());
+ a_recent = KStdAction::openRecent(this, TQT_SLOT(openRecent(const KURL&)), actionCollection());
a_recent->setMaxItems(MAX_RECENT);
- action = KStdAction::revert(m_view,SLOT(revertToSaved()),actionCollection());
- action=KStdAction::save(this, SLOT(fileSave()), actionCollection());
- action = KStdAction::saveAs(this, SLOT(fileSaveAs()), actionCollection());
- action = new KAction(i18n("Save Sp&ecial..."), 0, this, SLOT(fileSaveSpecial()),
+ action = KStdAction::revert(m_view,TQT_SLOT(revertToSaved()),actionCollection());
+ action=KStdAction::save(this, TQT_SLOT(fileSave()), actionCollection());
+ action = KStdAction::saveAs(this, TQT_SLOT(fileSaveAs()), actionCollection());
+ action = new KAction(i18n("Save Sp&ecial..."), 0, this, TQT_SLOT(fileSaveSpecial()),
actionCollection(), "save_special" );
- action = new KAction(i18n("Set &Package..."), 0, m_view, SLOT(setFilePackage()),
+ action = new KAction(i18n("Set &Package..."), 0, m_view, TQT_SLOT(setFilePackage()),
actionCollection(), "set_package" );
- action = KStdAction::mail(this, SLOT(fileMail()), actionCollection());
+ action = KStdAction::mail(this, TQT_SLOT(fileMail()), actionCollection());
- action = new KAction(i18n("&New View"), 0, this, SLOT(fileNewView()),
+ action = new KAction(i18n("&New View"), 0, this, TQT_SLOT(fileNewView()),
actionCollection(), "file_new_view");
- action = new KAction(i18n("New &Window"), 0, this, SLOT(fileNewWindow()),
+ action = new KAction(i18n("New &Window"), 0, this, TQT_SLOT(fileNewWindow()),
actionCollection(), "file_new_window");
action->setShortcut( KStdAccel::openNew() );
- action = KStdAction::quit(this, SLOT(quit()), actionCollection());
+ action = KStdAction::quit(this, TQT_SLOT(quit()), actionCollection());
// the edit menu
- action = KStdAction::undo(m_view, SLOT(undo()), actionCollection());
- action = KStdAction::redo(m_view, SLOT(redo()), actionCollection());
- action = KStdAction::cut(m_view, SIGNAL(signalCut()), actionCollection());
- action = KStdAction::copy(m_view, SIGNAL(signalCopy()), actionCollection());
- action = KStdAction::paste(m_view, SIGNAL(signalPaste()), actionCollection());
- action = KStdAction::selectAll(m_view, SIGNAL(signalSelectAll()), actionCollection());
- action = KStdAction::find(m_view, SLOT(find()), actionCollection());
- action = KStdAction::findNext(m_view, SLOT(findNext()), actionCollection());
- action = KStdAction::findPrev(m_view, SLOT(findPrev()), actionCollection());
- action = KStdAction::replace(m_view, SLOT(replace()), actionCollection());
-
- action = KStdAction::clear( m_view, SLOT(clear()), actionCollection(), "clear" );
+ action = KStdAction::undo(m_view, TQT_SLOT(undo()), actionCollection());
+ action = KStdAction::redo(m_view, TQT_SLOT(redo()), actionCollection());
+ action = KStdAction::cut(m_view, TQT_SIGNAL(signalCut()), actionCollection());
+ action = KStdAction::copy(m_view, TQT_SIGNAL(signalCopy()), actionCollection());
+ action = KStdAction::paste(m_view, TQT_SIGNAL(signalPaste()), actionCollection());
+ action = KStdAction::selectAll(m_view, TQT_SIGNAL(signalSelectAll()), actionCollection());
+ action = KStdAction::find(m_view, TQT_SLOT(find()), actionCollection());
+ action = KStdAction::findNext(m_view, TQT_SLOT(findNext()), actionCollection());
+ action = KStdAction::findPrev(m_view, TQT_SLOT(findPrev()), actionCollection());
+ action = KStdAction::replace(m_view, TQT_SLOT(replace()), actionCollection());
+
+ action = KStdAction::clear( m_view, TQT_SLOT(clear()), actionCollection(), "clear" );
action = new KAction(i18n("Cop&y Msgid to Msgstr"), "msgid2msgstr", CTRL+Key_Space, m_view
- ,SLOT(msgid2msgstr()), actionCollection(), "msgid2msgstr");
+ ,TQT_SLOT(msgid2msgstr()), actionCollection(), "msgid2msgstr");
action = new KAction(i18n("Copy Searc&h Result to Msgstr"), "search2msgstr",
- CTRL+ALT+Key_Space, m_view, SLOT(search2msgstr()),
+ CTRL+ALT+Key_Space, m_view, TQT_SLOT(search2msgstr()),
actionCollection(), "search2msgstr");
action = new KAction(i18n("Copy Msgstr to Other &Plurals"), Key_F11, m_view
- ,SLOT(plural2msgstr()), actionCollection(), "plural2msgstr");
+ ,TQT_SLOT(plural2msgstr()), actionCollection(), "plural2msgstr");
action = new KAction(i18n("Copy Selected Character to Msgstr"), Key_F10, m_charselectorview
- ,SLOT(emitChar()), actionCollection(), "char2msgstr");
+ ,TQT_SLOT(emitChar()), actionCollection(), "char2msgstr");
a_unsetFuzzy = new KAction(i18n("To&ggle Fuzzy Status"), "togglefuzzy", CTRL+Key_U, m_view
- , SLOT(removeFuzzyStatus()), actionCollection(), "edit_toggle_fuzzy");
- action = new KAction(i18n("&Edit Header..."), 0, m_view, SLOT(editHeader()),
+ , TQT_SLOT(removeFuzzyStatus()), actionCollection(), "edit_toggle_fuzzy");
+ action = new KAction(i18n("&Edit Header..."), 0, m_view, TQT_SLOT(editHeader()),
actionCollection(), "edit_edit_header");
action = new KAction(i18n("&Insert Next Tag"), "insert_tag", CTRL+ALT+Key_N
- , m_view, SLOT(insertNextTag())
+ , m_view, TQT_SLOT(insertNextTag())
, actionCollection(),"insert_next_tag");
- connect(m_view,SIGNAL(signalNextTagAvailable(bool)),action
- ,SLOT(setEnabled(bool)));
+ connect(m_view,TQT_SIGNAL(signalNextTagAvailable(bool)),action
+ ,TQT_SLOT(setEnabled(bool)));
action = new KAction(i18n("Insert Next Tag From Msgid P&osition"), "insert_tag", CTRL+Key_M
- , m_view, SLOT(insertNextTagMsgid())
+ , m_view, TQT_SLOT(insertNextTagMsgid())
, actionCollection(),"insert_next_tag_msgid");
- connect(m_view,SIGNAL(signalNextTagAvailable(bool)),action
- ,SLOT(setEnabled(bool)));
+ connect(m_view,TQT_SIGNAL(signalNextTagAvailable(bool)),action
+ ,TQT_SLOT(setEnabled(bool)));
KActionMenu *actionMenu= new KActionMenu(i18n("Inser&t Tag"), "insert_tag"
, actionCollection(),"insert_tag");
m_view->setTagsMenu(actionMenu->popupMenu());
- connect(m_view,SIGNAL(signalTagsAvailable(bool)),actionMenu
- ,SLOT(setEnabled(bool)));
- connect(actionMenu,SIGNAL(activated()),m_view,SLOT(insertNextTag()));
+ connect(m_view,TQT_SIGNAL(signalTagsAvailable(bool)),actionMenu
+ ,TQT_SLOT(setEnabled(bool)));
+ connect(actionMenu,TQT_SIGNAL(activated()),m_view,TQT_SLOT(insertNextTag()));
action = new KAction(i18n("Show Tags Menu"),CTRL+Key_Less
- , m_view, SLOT(showTagsMenu()), actionCollection(),"show_tags_menu");
+ , m_view, TQT_SLOT(showTagsMenu()), actionCollection(),"show_tags_menu");
action->setEnabled(false);
- connect(m_view,SIGNAL(signalTagsAvailable(bool)),action
- ,SLOT(setEnabled(bool)));
+ connect(m_view,TQT_SIGNAL(signalTagsAvailable(bool)),action
+ ,TQT_SLOT(setEnabled(bool)));
action = new KAction(i18n("Move to Next Tag"), 0, CTRL+ALT+Key_M
- , m_view, SLOT(skipToNextTag())
+ , m_view, TQT_SLOT(skipToNextTag())
, actionCollection(),"move_to_next_tag");
action = new KAction(i18n("Move to Previous Tag"), 0, CTRL+ALT+Key_B
- , m_view, SLOT(skipToPreviousTag())
+ , m_view, TQT_SLOT(skipToPreviousTag())
, actionCollection(),"move_to_prev_tag");
action = new KAction(i18n("Insert Next Argument"), "insert_arg", CTRL+ALT+Key_G
- , m_view, SLOT(insertNextArg())
+ , m_view, TQT_SLOT(insertNextArg())
, actionCollection(),"insert_next_arg");
- connect(m_view,SIGNAL(signalNextArgAvailable(bool)),action
- ,SLOT(setEnabled(bool)));
+ connect(m_view,TQT_SIGNAL(signalNextArgAvailable(bool)),action
+ ,TQT_SLOT(setEnabled(bool)));
actionMenu= new KActionMenu(i18n("Inser&t Argument"), "insert_arg"
, actionCollection(),"insert_arg");
m_view->setArgsMenu(actionMenu->popupMenu());
- connect(m_view,SIGNAL(signalArgsAvailable(bool)),actionMenu
- ,SLOT(setEnabled(bool)));
- connect(actionMenu,SIGNAL(activated()),m_view,SLOT(insertNextArg()));
+ connect(m_view,TQT_SIGNAL(signalArgsAvailable(bool)),actionMenu
+ ,TQT_SLOT(setEnabled(bool)));
+ connect(actionMenu,TQT_SIGNAL(activated()),m_view,TQT_SLOT(insertNextArg()));
action = new KAction(i18n("Show Arguments Menu"),CTRL+Key_Percent
- , m_view, SLOT(showArgsMenu()), actionCollection(),"show_args_menu");
+ , m_view, TQT_SLOT(showArgsMenu()), actionCollection(),"show_args_menu");
action->setEnabled(false);
- connect(m_view,SIGNAL(signalArgsAvailable(bool)),action
- ,SLOT(setEnabled(bool)));
+ connect(m_view,TQT_SIGNAL(signalArgsAvailable(bool)),action
+ ,TQT_SLOT(setEnabled(bool)));
// next, the go-menu
action = new KAction(i18n("&Previous"), "previous",
- KStdAccel::shortcut(KStdAccel::Prior), m_view , SLOT(gotoPrev()),
+ KStdAccel::shortcut(KStdAccel::Prior), m_view , TQT_SLOT(gotoPrev()),
actionCollection(),"go_prev_entry");
action = new KAction(i18n("&Next"), "next",
- KStdAccel::shortcut(KStdAccel::Next), m_view , SLOT(gotoNext()),
+ KStdAccel::shortcut(KStdAccel::Next), m_view , TQT_SLOT(gotoNext()),
actionCollection(),"go_next_entry");
- action = KStdAction::goTo(m_view, SLOT(gotoEntry()), actionCollection());
+ action = KStdAction::goTo(m_view, TQT_SLOT(gotoEntry()), actionCollection());
action->setShortcut( KStdAccel::gotoLine());
- action = KStdAction::firstPage(m_view, SLOT(gotoFirst()),actionCollection());
+ action = KStdAction::firstPage(m_view, TQT_SLOT(gotoFirst()),actionCollection());
action->setText(i18n("&First Entry"));
action->setShortcut(CTRL+ALT+Key_Home);
- action = KStdAction::lastPage(m_view, SLOT(gotoLast()),actionCollection());
+ action = KStdAction::lastPage(m_view, TQT_SLOT(gotoLast()),actionCollection());
action->setText(i18n("&Last Entry"));
action->setShortcut(CTRL+ALT+Key_End);
a_prevFoU = new KAction(i18n("P&revious Fuzzy or Untranslated"),"prevfuzzyuntrans",
CTRL+SHIFT+Key_Prior, m_view,
- SLOT(gotoPrevFuzzyOrUntrans()),actionCollection(), "go_prev_fuzzyUntr");
+ TQT_SLOT(gotoPrevFuzzyOrUntrans()),actionCollection(), "go_prev_fuzzyUntr");
a_nextFoU = new KAction(i18n("N&ext Fuzzy or Untranslated"),"nextfuzzyuntrans",
CTRL+SHIFT+Key_Next, m_view,
- SLOT(gotoNextFuzzyOrUntrans()),actionCollection(), "go_next_fuzzyUntr");
+ TQT_SLOT(gotoNextFuzzyOrUntrans()),actionCollection(), "go_next_fuzzyUntr");
a_prevFuzzy = new KAction(i18n("Pre&vious Fuzzy"),"prevfuzzy",
CTRL+Key_Prior, m_view,
- SLOT(gotoPrevFuzzy()),actionCollection(), "go_prev_fuzzy");
+ TQT_SLOT(gotoPrevFuzzy()),actionCollection(), "go_prev_fuzzy");
a_nextFuzzy = new KAction(i18n("Ne&xt Fuzzy"), "nextfuzzy",
CTRL+Key_Next, m_view,
- SLOT(gotoNextFuzzy()),actionCollection(), "go_next_fuzzy");
+ TQT_SLOT(gotoNextFuzzy()),actionCollection(), "go_next_fuzzy");
a_prevUntrans = new KAction(i18n("Prev&ious Untranslated"), "prevuntranslated",
ALT+Key_Prior, m_view,
- SLOT(gotoPrevUntranslated()),actionCollection(), "go_prev_untrans");
+ TQT_SLOT(gotoPrevUntranslated()),actionCollection(), "go_prev_untrans");
a_nextUntrans = new KAction(i18n("Nex&t Untranslated"), "nextuntranslated",
ALT+Key_Next, m_view,
- SLOT(gotoNextUntranslated()),actionCollection(), "go_next_untrans");
+ TQT_SLOT(gotoNextUntranslated()),actionCollection(), "go_next_untrans");
action = new KAction(i18n("Previo&us Error"), "preverror",
SHIFT+Key_Prior, m_view,
- SLOT(gotoPrevError()),actionCollection(), "go_prev_error");
+ TQT_SLOT(gotoPrevError()),actionCollection(), "go_prev_error");
action = new KAction(i18n("Next Err&or"), "nexterror",
SHIFT+Key_Next, m_view,
- SLOT(gotoNextError()),actionCollection(), "go_next_error");
+ TQT_SLOT(gotoNextError()),actionCollection(), "go_next_error");
action = new KAction(i18n("&Back in History"), "back", ALT+Key_Left, m_view,
- SLOT(backHistory()),actionCollection(), "go_back_history");
+ TQT_SLOT(backHistory()),actionCollection(), "go_back_history");
action = new KAction(i18n("For&ward in History"), "forward", ALT+Key_Right, m_view,
- SLOT(forwardHistory()),actionCollection(), "go_forward_history");
+ TQT_SLOT(forwardHistory()),actionCollection(), "go_forward_history");
// the search menu
actionMenu=new KActionMenu(i18n("&Find Text"),
"transsearch",actionCollection(),"dict_search_all");
- connect(actionMenu,SIGNAL(activated()),m_view,SLOT(startSearch()));
+ connect(actionMenu,TQT_SIGNAL(activated()),m_view,TQT_SLOT(startSearch()));
dictMenu = new DictionaryMenu(actionMenu->popupMenu(),actionCollection(),this);
- connect(dictMenu,SIGNAL(activated(const QString)), m_view
- , SLOT(startSearch(const QString)));
+ connect(dictMenu,TQT_SIGNAL(activated(const TQString)), m_view
+ , TQT_SLOT(startSearch(const TQString)));
actionMenu=new KActionMenu(i18n("F&ind Selected Text"),
"transsearch",actionCollection(),"dict_search_selected");
- connect(actionMenu,SIGNAL(activated()),m_view,SLOT(startSelectionSearch()));
+ connect(actionMenu,TQT_SIGNAL(activated()),m_view,TQT_SLOT(startSelectionSearch()));
selectionDictMenu = new DictionaryMenu(actionMenu->popupMenu(),actionCollection(),this);
- connect(selectionDictMenu,SIGNAL(activated(const QString)), m_view
- , SLOT(startSelectionSearch(const QString)));
+ connect(selectionDictMenu,TQT_SIGNAL(activated(const TQString)), m_view
+ , TQT_SLOT(startSelectionSearch(const TQString)));
actionMenu=new KActionMenu(i18n("&Edit Dictionary"),
"transsearch",actionCollection(),"dict_edit");
editDictMenu = new DictionaryMenu(actionMenu->popupMenu(),actionCollection(),this);
- connect(editDictMenu,SIGNAL(activated(const QString)), m_view
- , SLOT(editDictionary(const QString)));
+ connect(editDictMenu,TQT_SIGNAL(activated(const TQString)), m_view
+ , TQT_SLOT(editDictionary(const TQString)));
actionMenu=new KActionMenu(i18n("Con&figure Dictionary"),
"transsearch",actionCollection(),"dict_configure");
configDictMenu = new DictionaryMenu(actionMenu->popupMenu(),actionCollection(),this);
- connect(configDictMenu,SIGNAL(activated(const QString)), m_view
- , SLOT(configureDictionary(const QString)));
+ connect(configDictMenu,TQT_SIGNAL(activated(const TQString)), m_view
+ , TQT_SLOT(configureDictionary(const TQString)));
actionMenu=new KActionMenu(i18n("About Dictionary"), "transsearch",
actionCollection(), "dict_about");
aboutDictMenu = new DictionaryMenu(actionMenu->popupMenu(),actionCollection(),this);
- connect(aboutDictMenu,SIGNAL(activated(const QString)), m_view
- , SLOT(aboutDictionary(const QString)));
+ connect(aboutDictMenu,TQT_SIGNAL(activated(const TQString)), m_view
+ , TQT_SLOT(aboutDictionary(const TQString)));
buildDictMenus();
// 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");
- a_recentprojects = new KRecentFilesAction(i18n("Open &Recent"), 0, this, SLOT(projectOpenRecent(const KURL&)), actionCollection(), "recent_projects");
+ a_recentprojects = new KRecentFilesAction(i18n("Open &Recent"), 0, this, TQT_SLOT(projectOpenRecent(const KURL&)), actionCollection(), "recent_projects");
// the tools menu
action = new KAction(i18n("&Spell Check..."), "spellcheck", CTRL+Key_I
- , m_view, SLOT(spellcheckCommon()),actionCollection()
+ , m_view, TQT_SLOT(spellcheckCommon()),actionCollection()
,"spellcheck_common");
action = new KAction(i18n("&Check All..."), "spellcheck_all", 0
- , m_view, SLOT(spellcheckAll()),actionCollection()
+ , m_view, TQT_SLOT(spellcheckAll()),actionCollection()
,"spellcheck_all");
action = new KAction(i18n("C&heck From Cursor Position..."), "spellcheck_from_cursor", 0
- , m_view, SLOT(spellcheckFromCursor()),actionCollection()
+ , m_view, TQT_SLOT(spellcheckFromCursor()),actionCollection()
,"spellcheck_from_cursor");
action = new KAction(i18n("Ch&eck Current..."), "spellcheck_actual", 0
- , m_view, SLOT(spellcheckCurrent()),actionCollection()
+ , m_view, TQT_SLOT(spellcheckCurrent()),actionCollection()
,"spellcheck_current");
action = new KAction(i18n("Check Fro&m Current to End of File..."), 0
- , m_view, SLOT(spellcheckFromCurrent()),actionCollection()
+ , m_view, TQT_SLOT(spellcheckFromCurrent()),actionCollection()
,"spellcheck_from_current");
action = new KAction(i18n("Chec&k Selected Text..."), "spellcheck_selected", 0
- , m_view, SLOT(spellcheckMarked()),actionCollection()
+ , m_view, TQT_SLOT(spellcheckMarked()),actionCollection()
,"spellcheck_marked");
KToggleAction *toggleAction;
toggleAction = new KToggleAction(i18n("&Diffmode"), "autodiff", 0
,actionCollection(), "diff_toggleDiff");
- connect(toggleAction,SIGNAL(toggled(bool)), m_view, SLOT(toggleAutoDiff(bool)));
- connect(m_view,SIGNAL(signalDiffEnabled(bool)), toggleAction
- , SLOT(setChecked(bool)));
+ connect(toggleAction,TQT_SIGNAL(toggled(bool)), m_view, TQT_SLOT(toggleAutoDiff(bool)));
+ connect(m_view,TQT_SIGNAL(signalDiffEnabled(bool)), toggleAction
+ , TQT_SLOT(setChecked(bool)));
toggleAction->setChecked(m_view->autoDiffEnabled());
action = new KAction(i18n("&Show Diff"), "diff", Key_F5
- , m_view, SLOT(diff()),actionCollection()
+ , m_view, TQT_SLOT(diff()),actionCollection()
,"diff_diff");
action = new KAction(i18n("S&how Original Text"), "contents", Key_F6
- , m_view, SLOT(diffShowOrig()),actionCollection()
+ , m_view, TQT_SLOT(diffShowOrig()),actionCollection()
,"diff_showOrig");
action = new KAction(i18n("&Open File for Diff"), "fileopen" ,0
- , m_view, SLOT(openDiffFile()),actionCollection()
+ , m_view, TQT_SLOT(openDiffFile()),actionCollection()
,"diff_openFile");
action = new KAction(i18n("&Rough Translation..."), 0
- , m_view, SLOT(roughTranslation()),actionCollection()
+ , m_view, TQT_SLOT(roughTranslation()),actionCollection()
,"rough_translation");
action = new KAction(i18n("&Catalog Manager..."),"catalogmanager", 0 , this,
- SLOT(openCatalogManager()),actionCollection(), "open_catalog_manager");
+ TQT_SLOT(openCatalogManager()),actionCollection(), "open_catalog_manager");
- new KAction( i18n("Toggle Edit Mode"), 0, Key_Insert,this,SLOT(toggleEditMode()), actionCollection(), "toggle_insert_mode");
+ new KAction( i18n("Toggle Edit Mode"), 0, Key_Insert,this,TQT_SLOT(toggleEditMode()), actionCollection(), "toggle_insert_mode");
- new KAction( i18n("&Word Count"), 0, m_view, SLOT(wordCount()), actionCollection(), "word_count");
+ new KAction( i18n("&Word Count"), 0, m_view, TQT_SLOT(wordCount()), actionCollection(), "word_count");
// next, the settings menu
createStandardStatusBarAction();
- KStdAction::configureToolbars(this,SLOT(optionsEditToolbars()),actionCollection());
+ KStdAction::configureToolbars(this,TQT_SLOT(optionsEditToolbars()),actionCollection());
- KStdAction::keyBindings(guiFactory(),SLOT(configureShortcuts()),actionCollection());
- KStdAction::preferences(this,SLOT(optionsPreferences()),actionCollection());
+ KStdAction::keyBindings(guiFactory(),TQT_SLOT(configureShortcuts()),actionCollection());
+ KStdAction::preferences(this,TQT_SLOT(optionsPreferences()),actionCollection());
setStandardToolBarMenuEnabled ( true );
action = new KAction(i18n("&Stop Searching"), "stop",Key_Escape, m_view,
- SLOT(stopSearch()),actionCollection(), "stop_search");
+ TQT_SLOT(stopSearch()),actionCollection(), "stop_search");
action->setEnabled(false);
new KAction(i18n("&Gettext Info"), 0, this,
- SLOT(gettextHelp()), actionCollection(), "help_gettext");
+ TQT_SLOT(gettextHelp()), actionCollection(), "help_gettext");
// the bookmarks menu
- action = KStdAction::addBookmark(this, SLOT(slotAddBookmark()),
+ action = KStdAction::addBookmark(this, TQT_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 KAction(i18n("Clear Bookmarks"), 0, this, SLOT(dummySlot()),
+ new KAction(i18n("Clear Bookmarks"), 0, this, TQT_SLOT(dummySlot()),
actionCollection(), "clear_bookmarks");
setupDynamicActions();
createGUI(0);
- QPopupMenu *popup = static_cast<QPopupMenu*>(factory()->container("settings",this));
+ TQPopupMenu *popup = static_cast<TQPopupMenu*>(factory()->container("settings",this));
popup->insertItem( i18n("&Views"), dockHideShowMenu(), -1, 0 );
}
@@ -707,22 +707,22 @@ void KBabelMW::setupStatusBar()
if(KBabelSettings::ledInStatusbar())
{
- QColor ledColor=KBabelSettings::ledColor();
- QHBox* statusBox = new QHBox(statusBar(),"statusBox");
+ TQColor ledColor=KBabelSettings::ledColor();
+ TQHBox* statusBox = new TQHBox(statusBar(),"statusBox");
statusBox->setSpacing(2);
- new QLabel(" "+i18n("Status: "),statusBox);
+ new TQLabel(" "+i18n("Status: "),statusBox);
_fuzzyLed = new KLed(ledColor,KLed::Off,KLed::Sunken,KLed::Rectangular
,statusBox);
_fuzzyLed->setFixedSize(15,12);
- new QLabel(i18n("fuzzy")+" ",statusBox);
+ new TQLabel(i18n("fuzzy")+" ",statusBox);
_untransLed = new KLed(ledColor,KLed::Off,KLed::Sunken,KLed::Rectangular
,statusBox);
_untransLed->setFixedSize(15,12);
- new QLabel(i18n("untranslated")+" ",statusBox);
+ new TQLabel(i18n("untranslated")+" ",statusBox);
_errorLed = new KLed(ledColor,KLed::Off,KLed::Sunken,KLed::Rectangular
,statusBox);
_errorLed->setFixedSize(15,12);
- new QLabel(i18n("faulty")+" ",statusBox);
+ new TQLabel(i18n("faulty")+" ",statusBox);
statusBox->setFixedWidth(statusBox->sizeHint().width());
statusBar()->addWidget(statusBox);
@@ -735,7 +735,7 @@ void KBabelMW::setupStatusBar()
statusBar()->insertItem(i18n("Line: %1 Col: %2").arg(1).arg(1)
,ID_STATUS_CURSOR);
- QHBox* progressBox = new QHBox(statusBar(),"progressBox");
+ TQHBox* progressBox = new TQHBox(statusBar(),"progressBox");
progressBox->setSpacing(2);
_progressLabel = new KSqueezedTextLabel( "", progressBox );
_progressBar=new MyKProgress(progressBox,"progressbar");
@@ -745,7 +745,7 @@ void KBabelMW::setupStatusBar()
statusBar()->addWidget(progressBox,1);
statusBar()->setMinimumHeight(progressBox->sizeHint().height());
- QWhatsThis::add(statusBar(),
+ TQWhatsThis::add(statusBar(),
i18n("<qt><p><b>Statusbar</b></p>\n\
<p>The statusbar displays some information about the opened file,\n\
like the total number of entries and the number of fuzzy and untranslated\n\
@@ -756,23 +756,23 @@ messages. Also the index and the status of the currently displayed entry is show
void KBabelMW::setupDynamicActions()
{
// dynamic validation tools
- QValueList<KDataToolInfo> tools = ToolAction::validationTools();
+ TQValueList<KDataToolInfo> tools = ToolAction::validationTools();
- QPtrList<KAction> actions = ToolAction::dataToolActionList(
- tools, m_view, SLOT(validateUsingTool( const KDataToolInfo &, const QString & )),
+ TQPtrList<KAction> actions = ToolAction::dataToolActionList(
+ tools, m_view, TQT_SLOT(validateUsingTool( const KDataToolInfo &, const TQString & )),
"validate", false, actionCollection() );
KActionMenu* m_menu = new KActionMenu(i18n("&Validation"), actionCollection(), "dynamic_validation_tools");
KAction* ac = new KAction(i18n("Perform &All Checks"), CTRL+Key_E , m_view,
- SLOT(checkAll()),actionCollection(), "check_all");
+ TQT_SLOT(checkAll()),actionCollection(), "check_all");
ac->setEnabled(false);
m_menu->insert(ac);
m_menu->insert( new KActionSeparator() );
ac = new KAction(i18n("C&heck Syntax"), CTRL+Key_T , m_view,
- SLOT(checkSyntax()),actionCollection(), "check_syntax");
+ TQT_SLOT(checkSyntax()),actionCollection(), "check_syntax");
ac->setEnabled(false);
m_menu->insert(ac);
@@ -784,13 +784,13 @@ void KBabelMW::setupDynamicActions()
// dynamic modify tools
// query available tools
- QValueList<KDataToolInfo> allTools = KDataToolInfo::query
+ TQValueList<KDataToolInfo> allTools = KDataToolInfo::query
("CatalogItem", "application/x-kbabel-catalogitem", KGlobal::instance());
// skip read-only tools for single items
- QValueList<KDataToolInfo> modifyTools;
+ TQValueList<KDataToolInfo> modifyTools;
- QValueList<KDataToolInfo>::ConstIterator entry = allTools.begin();
+ TQValueList<KDataToolInfo>::ConstIterator entry = allTools.begin();
for( ; entry != allTools.end(); ++entry )
{
if( !(*entry).isReadOnly() )
@@ -801,7 +801,7 @@ void KBabelMW::setupDynamicActions()
// create corresponding actions
actions = ToolAction::dataToolActionList(
- modifyTools, m_view, SLOT(modifyUsingTool( const KDataToolInfo &, const QString & )),
+ modifyTools, m_view, TQT_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, m_view, SLOT(modifyUsingTool( const KDataToolInfo &, const QString & )),
+ modifyTools, m_view, TQT_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, m_view, SLOT(modifyCatalogUsingTool( const KDataToolInfo &, const QString & )),
+ modifyTools, m_view, TQT_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,SIGNAL(signalSearchActive(bool)),this,SLOT(quit()));
+ connect(m_view,TQT_SIGNAL(signalSearchActive(bool)),this,TQT_SLOT(quit()));
m_view->stopSearch();
return false;
}
@@ -932,7 +932,7 @@ bool KBabelMW::queryClose()
{
// stop the activity and try again
m_view->catalog()->stop();
- QTimer::singleShot(0, this, SLOT( close() ));
+ TQTimer::singleShot(0, this, TQT_SLOT( close() ));
return false;
}
@@ -973,13 +973,13 @@ void KBabelMW::quit()
}
-void KBabelMW::dragEnterEvent(QDragEnterEvent *event)
+void KBabelMW::dragEnterEvent(TQDragEnterEvent *event)
{
// accept uri drops only
event->accept(KURLDrag::canDecode(event));
}
-void KBabelMW::dropEvent(QDropEvent *event)
+void KBabelMW::dropEvent(TQDropEvent *event)
{
KURL::List uri;
// see if we can decode a URI.. if not, just ignore it
@@ -989,14 +989,14 @@ void KBabelMW::dropEvent(QDropEvent *event)
}
}
-void KBabelMW::wheelEvent(QWheelEvent *e)
+void KBabelMW::wheelEvent(TQWheelEvent *e)
{
m_view->wheelEvent(e);
}
void KBabelMW::openRecent(const KURL& url)
{
- KBabelView *view = KBabelView::viewForURL(url,QString::null);
+ KBabelView *view = KBabelView::viewForURL(url,TQString::null);
if(view)
{
KWin::activateWindow(view->topLevelWidget()->winId());
@@ -1008,10 +1008,10 @@ void KBabelMW::openRecent(const KURL& url)
void KBabelMW::open(const KURL& url)
{
- open(url,QString::null,false);
+ open(url,TQString::null,false);
}
-void KBabelMW::open(const KURL& url, const QString package, bool newWindow)
+void KBabelMW::open(const KURL& url, const TQString package, bool newWindow)
{
kdDebug(KBABEL) << "opening file with project:" << _project->filename() << endl;
kdDebug(KBABEL) << "URL:" << url.prettyURL() << endl;
@@ -1036,7 +1036,7 @@ void KBabelMW::open(const KURL& url, const QString package, bool newWindow)
}
}
-void KBabelMW::openTemplate(const KURL& openURL,const KURL& saveURL,const QString& package, bool newWindow)
+void KBabelMW::openTemplate(const KURL& openURL,const KURL& saveURL,const TQString& package, bool newWindow)
{
if(newWindow)
{
@@ -1067,7 +1067,7 @@ void KBabelMW::addToRecentFiles(KURL url)
void KBabelMW::fileSave()
{
// do it asynchronously due to kdelibs bug
- QTimer::singleShot( 0, this, SLOT( fileSave_internal() ));
+ TQTimer::singleShot( 0, this, TQT_SLOT( fileSave_internal() ));
}
void KBabelMW::fileSave_internal()
@@ -1091,10 +1091,10 @@ void KBabelMW::fileSave_internal()
KURL url=m_view->currentURL();
DCOPClient *client = kapp->dcopClient();
- QByteArray data;
- QDataStream arg(data, IO_WriteOnly);
+ TQByteArray data;
+ TQDataStream arg(data, IO_WriteOnly);
arg << ((url.directory(false)+url.fileName()).utf8()) ;
- if( !client->send( "catalogmanager-*", "CatalogManagerIFace", "updatedFile(QCString)", data ))
+ if( !client->send( "catalogmanager-*", "CatalogManagerIFace", "updatedFile(TQCString)", data ))
kdDebug(KBABEL) << "Unable to send file update info via DCOP" << endl;
// reenable save action
@@ -1108,10 +1108,10 @@ void KBabelMW::fileSaveAs()
KURL url=m_view->currentURL();
DCOPClient *client = kapp->dcopClient();
- QByteArray data;
- QDataStream arg(data, IO_WriteOnly);
+ TQByteArray data;
+ TQDataStream arg(data, IO_WriteOnly);
arg << ((url.directory(false)+url.fileName()).utf8()) ;
- if( !client->send( "catalogmanager-*", "CatalogManagerIFace", "updatedFile(QCString)", data ))
+ if( !client->send( "catalogmanager-*", "CatalogManagerIFace", "updatedFile(TQCString)", data ))
kdDebug(KBABEL) << "Unable to send file update info via DCOP" << endl;
}
@@ -1122,10 +1122,10 @@ void KBabelMW::fileSaveSpecial()
KURL url=m_view->currentURL();
DCOPClient *client = kapp->dcopClient();
- QByteArray data;
- QDataStream arg(data, IO_WriteOnly);
+ TQByteArray data;
+ TQDataStream arg(data, IO_WriteOnly);
arg << ((url.directory(false)+url.fileName()).utf8()) ;
- if( !client->send( "catalogmanager-*", "CatalogManagerIFace", "updatedFile(QCString)", data ))
+ if( !client->send( "catalogmanager-*", "CatalogManagerIFace", "updatedFile(TQCString)", data ))
kdDebug(KBABEL) << "Unable to send file update info via DCOP" << endl;
}
@@ -1181,7 +1181,7 @@ void KBabelMW::optionsEditToolbars()
{
saveMainWindowSettings( KGlobal::config(), "View" );
KEditToolbar dlg(actionCollection());
- connect(&dlg, SIGNAL(newToolbarConfig()), this, SLOT(newToolbarConfig()));
+ connect(&dlg, TQT_SIGNAL(newToolbarConfig()), this, TQT_SLOT(newToolbarConfig()));
dlg.exec();
}
@@ -1198,8 +1198,8 @@ void KBabelMW::optionsPreferences()
_prefDialog = new KBabelPreferences(m_view->dictionaries());
prefDialogs.append(_prefDialog);
- connect(_prefDialog,SIGNAL(settingsChanged())
- ,m_view,SLOT(updateSettings()));
+ connect(_prefDialog,TQT_SIGNAL(settingsChanged())
+ ,m_view,TQT_SLOT(updateSettings()));
}
int prefHeight=_prefDialog->height();
@@ -1210,7 +1210,7 @@ void KBabelMW::optionsPreferences()
int x=width/2-prefWidth/2;
int y=height/2-prefHeight/2;
- _prefDialog->move(mapToGlobal(QPoint(x,y)));
+ _prefDialog->move(mapToGlobal(TQPoint(x,y)));
if(!_prefDialog->isVisible())
{
@@ -1221,7 +1221,7 @@ void KBabelMW::optionsPreferences()
KWin::activateWindow(_prefDialog->winId());
}
-void KBabelMW::setLedColor(const QColor& color)
+void KBabelMW::setLedColor(const TQColor& color)
{
if(_fuzzyLed)
{
@@ -1239,8 +1239,8 @@ void KBabelMW::setLedColor(const QColor& color)
void KBabelMW::openCatalogManager()
{
- QCString service;
- QString result;
+ TQCString service;
+ TQString result;
DCOPClient * client = kapp->dcopClient();
@@ -1248,7 +1248,7 @@ void KBabelMW::openCatalogManager()
QCStringList apps = client->registeredApplications();
for( QCStringList::Iterator it = apps.begin() ; it != apps.end() ; ++it )
{
- QString clientID = *it;
+ TQString clientID = *it;
if( clientID.startsWith("catalogmanager") )
{
service = *it;
@@ -1259,8 +1259,8 @@ void KBabelMW::openCatalogManager()
// if there is no running catalog manager, start one
if( service.isEmpty() )
{
- QString prog = "catalogmanager";
- QString url = "";
+ TQString prog = "catalogmanager";
+ TQString url = "";
if( kapp->startServiceByDesktopName(prog,url, &result,&service))
{
KMessageBox::error(this, i18n("Unable to use KLauncher to start "
@@ -1271,8 +1271,8 @@ void KBabelMW::openCatalogManager()
}
// set preferred window
- QByteArray data;
- QDataStream arg(data, IO_WriteOnly);
+ TQByteArray data;
+ TQDataStream arg(data, IO_WriteOnly);
arg << (this->winId()) ;
if( !client->send( service, "CatalogManagerIFace", "setPreferredWindow( WId )", data )) kdDebug(KBABEL) << "Unable to set preferred window via DCOP" << endl;
}
@@ -1469,7 +1469,7 @@ void KBabelMW::enableForwardHistory(bool on)
}
-void KBabelMW::prepareProgressBar(QString msg,int max)
+void KBabelMW::prepareProgressBar(TQString msg,int max)
{
if(_statusbarTimer->isActive())
_statusbarTimer->stop();
@@ -1489,7 +1489,7 @@ void KBabelMW::clearProgressBar()
}
-void KBabelMW::changeStatusbar(const QString& text)
+void KBabelMW::changeStatusbar(const TQString& text)
{
// display the text on the statusbar
_progressLabel->setText(" "+text);
@@ -1505,7 +1505,7 @@ void KBabelMW::clearStatusbarMsg()
_progressLabel->setText("");
}
-void KBabelMW::changeCaption(const QString& text)
+void KBabelMW::changeCaption(const TQString& text)
{
// display the text on the caption
setCaption(text + ( _project->filename () != KBabel::ProjectManager::defaultProjectName() ?
@@ -1559,9 +1559,9 @@ void KBabelMW::enableStop(bool flag)
void KBabelMW::gettextHelp()
{
- QString error;
+ TQString error;
KApplication::startServiceByDesktopName("khelpcenter",
- QString("info:/gettext"), &error);
+ TQString("info:/gettext"), &error);
if(!error.isEmpty())
{
@@ -1572,7 +1572,7 @@ void KBabelMW::gettextHelp()
void KBabelMW::buildDictMenus()
{
- QPtrList<ModuleInfo> dictList = m_view->dictionaries();
+ TQPtrList<ModuleInfo> dictList = m_view->dictionaries();
dictList.setAutoDelete(true);
dictMenu->clear();
@@ -1584,10 +1584,10 @@ void KBabelMW::buildDictMenus()
ModuleInfo *info;
for(info = dictList.first(); info !=0; info = dictList.next())
{
- QString accel="Ctrl+Alt+%1";
+ TQString accel="Ctrl+Alt+%1";
dictMenu->add(info->name,info->id, accel);
- accel=QString("Ctrl+%1");
+ accel=TQString("Ctrl+%1");
selectionDictMenu->add(info->name,info->id, accel);
configDictMenu->add(info->name,info->id);
@@ -1607,14 +1607,14 @@ void KBabelMW::updateCursorPosition(int line, int col)
}
-KBabelMW *KBabelMW::winForURL(const KURL& url, QString project)
+KBabelMW *KBabelMW::winForURL(const KURL& url, TQString project)
{
KBabelMW *kb=0;
KBabelView *v = KBabelView::viewForURL(url,project);
if(v)
{
- QObject *p = v->parent();
+ TQObject *p = v->parent();
while(p && !p->inherits("KBabelMW"))
{
p = p->parent();
@@ -1627,14 +1627,14 @@ KBabelMW *KBabelMW::winForURL(const KURL& url, QString project)
return kb;
}
-KBabelMW *KBabelMW::emptyWin(QString project)
+KBabelMW *KBabelMW::emptyWin(TQString project)
{
KBabelMW *kb=0;
KBabelView *v = KBabelView::emptyView(project);
if(v)
{
- QObject *p = v->parent();
+ TQObject *p = v->parent();
while(p && !p->inherits("KBabelMW"))
{
p = p->parent();
@@ -1647,11 +1647,11 @@ KBabelMW *KBabelMW::emptyWin(QString project)
return kb;
}
-void KBabelMW::spellcheckMoreFiles(QStringList filelist)
+void KBabelMW::spellcheckMoreFiles(TQStringList filelist)
{
if( filelist.isEmpty() ) return;
_toSpellcheck = filelist;
- connect( m_view, SIGNAL( signalSpellcheckDone(int) ), this, SLOT( spellcheckDone(int)));
+ connect( m_view, TQT_SIGNAL( signalSpellcheckDone(int) ), this, TQT_SLOT( spellcheckDone(int)));
spellcheckDone( KS_IGNORE ); // use something else than KS_STOP
}
@@ -1659,22 +1659,22 @@ void KBabelMW::spellcheckDone( int result)
{
if( _toSpellcheck.isEmpty() || result == KS_STOP)
{
- disconnect( m_view, SIGNAL( signalSpellcheckDone(int)), this, SLOT(spellcheckDone( int)));
+ disconnect( m_view, TQT_SIGNAL( signalSpellcheckDone(int)), this, TQT_SLOT(spellcheckDone( int)));
KMessageBox::information( this, i18n("MessageBox text", "Spellchecking of multiple files is finished."),
i18n("MessageBox caption", "Spellcheck Done"));
}
else
{
- QString file = _toSpellcheck.first();
+ TQString file = _toSpellcheck.first();
_toSpellcheck.pop_front();
if( m_view->isModified() ) fileSave();
- open(KURL( file ), QString::null, false);
+ open(KURL( file ), TQString::null, false);
kdDebug(KBABEL) << "Starting another spellcheck" << endl;
- QTimer::singleShot( 1, m_view, SLOT(spellcheckAllMulti()));
+ TQTimer::singleShot( 1, m_view, TQT_SLOT(spellcheckAllMulti()));
}
}
-void KBabelMW::initBookmarks(QPtrList<KBabelBookmark> list)
+void KBabelMW::initBookmarks(TQPtrList<KBabelBookmark> list)
{
bmHandler->setBookmarks(list);
}
@@ -1705,12 +1705,12 @@ void KBabelMW::projectNew()
void KBabelMW::projectOpen()
{
- QString oldproject = m_view->project();
+ TQString oldproject = m_view->project();
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;
@@ -1731,9 +1731,9 @@ void KBabelMW::projectOpenRecent(const KURL& url)
}
}
-void KBabelMW::projectOpen(const QString& file)
+void KBabelMW::projectOpen(const TQString& file)
{
- QString oldproject = m_view->project();
+ TQString oldproject = m_view->project();
if( oldproject == KBabel::ProjectManager::defaultProjectName() )
{
oldproject = "";
@@ -1761,13 +1761,13 @@ void KBabelMW::projectOpen(const QString& file)
void KBabelMW::projectClose()
{
- QString defaultProject = KBabel::ProjectManager::defaultProjectName();
+ TQString defaultProject = KBabel::ProjectManager::defaultProjectName();
m_view->useProject( KBabel::ProjectManager::open(defaultProject) );
_project = ProjectManager::open(defaultProject);
changeProjectActions(defaultProject);
}
-void KBabelMW::changeProjectActions(const QString& project)
+void KBabelMW::changeProjectActions(const TQString& project)
{
bool def = (project == KBabel::ProjectManager::defaultProjectName());
@@ -1792,8 +1792,8 @@ void KBabelMW::projectConfigure()
if(!_projectDialog)
{
_projectDialog = new ProjectDialog(_project);
- connect (_projectDialog, SIGNAL (settingsChanged())
- , m_view, SLOT (updateProjectSettings()));
+ connect (_projectDialog, TQT_SIGNAL (settingsChanged())
+ , m_view, TQT_SLOT (updateProjectSettings()));
}
int prefHeight=_projectDialog->height();
@@ -1804,7 +1804,7 @@ void KBabelMW::projectConfigure()
int x=width/2-prefWidth/2;
int y=height/2-prefHeight/2;
- _projectDialog->move(mapToGlobal(QPoint(x,y)));
+ _projectDialog->move(mapToGlobal(TQPoint(x,y)));
if(!_projectDialog->isVisible())
{