summaryrefslogtreecommitdiffstats
path: root/quanta/src/quanta_init.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/src/quanta_init.cpp')
-rw-r--r--quanta/src/quanta_init.cpp506
1 files changed, 253 insertions, 253 deletions
diff --git a/quanta/src/quanta_init.cpp b/quanta/src/quanta_init.cpp
index e7a5fa75..2fcdda6b 100644
--- a/quanta/src/quanta_init.cpp
+++ b/quanta/src/quanta_init.cpp
@@ -119,7 +119,7 @@ QuantaInit::QuantaInit(QuantaApp * quantaApp)
: TQObject()
{
m_quanta = quantaApp;
- connect(this, TQT_SIGNAL(hideSplash()), m_quanta, TQT_SLOT(slotHideSplash()));
+ connect(this, TQT_SIGNAL(hideSplash()), TQT_TQOBJECT(m_quanta), TQT_SLOT(slotHideSplash()));
}
QuantaInit::~QuantaInit()
@@ -138,7 +138,7 @@ void QuantaInit::initQuanta()
tmpDir = tmpDirs[0];
for (uint i = 0; i < tmpDirs.count(); i++)
{
- if (tmpDirs[i].contains("kde-"))
+ if (tmpDirs[i].tqcontains("kde-"))
tmpDir = tmpDirs[i];
}
dir.mkdir(tmpDir + "quanta");
@@ -154,9 +154,9 @@ void QuantaInit::initQuanta()
//defaultDocType must be read before the Project object is created!!
m_config->setGroup("General Options");
qConfig.defaultDocType = m_config->readEntry("Default DTD",DEFAULT_DTD);
- if (! DTDs::ref()->find(qConfig.defaultDocType))
+ if (! DTDs::ref()->tqfind(qConfig.defaultDocType))
qConfig.defaultDocType = DEFAULT_DTD;
- DTDs::ref()->find("dtd"); //load on startup
+ DTDs::ref()->tqfind("dtd"); //load on startup
initView();
initDocument(); // after initView because of init of treeViews
@@ -170,14 +170,14 @@ void QuantaInit::initQuanta()
readAbbreviations();
// Initialize debugger
- m_quanta->m_debugger = new DebuggerManager(m_quanta);
+ m_quanta->m_debugger = new DebuggerManager(TQT_TQOBJECT(m_quanta));
connect(Project::ref(), TQT_SIGNAL(newProjectLoaded(const TQString &, const KURL &, const KURL &)),
m_quanta->m_debugger, TQT_SLOT(slotNewProjectLoaded(const TQString &, const KURL &, const KURL &)));
connect(Project::ref(), TQT_SIGNAL(eventHappened(const TQString &, const TQString &, const TQString &)),
m_quanta->m_debugger, TQT_SLOT(slotHandleEvent(const TQString &, const TQString &, const TQString &)));
- connect(m_quanta->m_debugger, TQT_SIGNAL(hideSplash()), m_quanta, TQT_SLOT(slotHideSplash()));
+ connect(m_quanta->m_debugger, TQT_SIGNAL(hideSplash()), TQT_TQOBJECT(m_quanta), TQT_SLOT(slotHideSplash()));
- //m_quanta->KDockMainWindow::createGUI( TQString::null, false /* conserveMemory */ );
+ //m_quanta->KDockMainWindow::createGUI( TQString(), false /* conserveMemory */ );
m_quanta->createShellGUI(true);
addToolTreeView(m_quanta->fTab, i18n("Files"), UserIcon("ftab"), KDockWidget::DockLeft);
@@ -191,13 +191,13 @@ void QuantaInit::initQuanta()
m_quanta->m_problemsOutputView = addToolTreeView(m_quanta->m_problemOutput, i18n("Problems"), SmallIcon("info"), KDockWidget::DockBottom);
m_quanta->m_annotationOutputView = addToolTreeView(m_quanta->m_annotationOutput, i18n("Annotations"), SmallIcon("stamp"), KDockWidget::DockBottom);
- // Restore the dock layout
+ // Restore the dock tqlayout
m_config->setGroup ("General Options");
- TQString layout = m_config->readEntry("Window layout", "Default");
+ TQString tqlayout = m_config->readEntry("Window tqlayout", "Default");
int mdiMode = m_config->readNumEntry("MDI mode", -1);
- if (mdiMode != -1 && layout != "Default")
+ if (mdiMode != -1 && tqlayout != "Default")
{
- m_quanta->readDockConfig(m_config); //FIXME: This causes the visible widget construction on startup, but is needed to restore the window layout...
+ m_quanta->readDockConfig(m_config); //FIXME: This causes the visible widget construction on startup, but is needed to restore the window tqlayout...
if (mdiMode != KMdi::IDEAlMode)
m_quanta->setToolviewStyle(qConfig.toolviewTabs);
}
@@ -209,7 +209,7 @@ void QuantaInit::initQuanta()
if (mdiMode == KMdi::ToplevelMode)
{
m_quanta->switchToChildframeMode();
- TQTimer::singleShot(0, m_quanta, TQT_SLOT(switchToToplevelMode()));
+ TQTimer::singleShot(0, TQT_TQOBJECT(m_quanta), TQT_SLOT(switchToToplevelMode()));
}
// Always hide debugger toolbar at this point
@@ -229,7 +229,7 @@ void QuantaInit::initQuanta()
TQDomElement el = node.toElement();
m_quanta->oldShortcuts.insert(el.attribute("name"), el.attribute("shortcut"));
node = node.nextSibling();
- el.parentNode().removeChild(el);
+ el.tqparentNode().removeChild(el);
} else
{
node = node.nextSibling();
@@ -253,22 +253,22 @@ void QuantaInit::initQuanta()
toolviewMenu->plug(m_quanta->windowMenu());
TQPopupMenu *toolbarsMenu = (TQPopupMenu*)(m_quanta->guiFactory())->container("toolbars_load", m_quanta);
- connect(toolbarsMenu, TQT_SIGNAL(aboutToShow()), m_quanta, TQT_SLOT(slotBuildPrjToolbarsMenu()));
+ connect(toolbarsMenu, TQT_SIGNAL(aboutToShow()), TQT_TQOBJECT(m_quanta), TQT_SLOT(slotBuildPrjToolbarsMenu()));
TQPopupMenu *contextMenu = (TQPopupMenu*)(m_quanta->guiFactory())->container("popup_editor", m_quanta);
- connect(contextMenu, TQT_SIGNAL(aboutToShow()), m_quanta, TQT_SLOT(slotContextMenuAboutToShow()));
+ connect(contextMenu, TQT_SIGNAL(aboutToShow()), TQT_TQOBJECT(m_quanta), TQT_SLOT(slotContextMenuAboutToShow()));
connect(m_quanta->m_messageOutput, TQT_SIGNAL(clicked(const TQString&, int, int)),
- m_quanta, TQT_SLOT(gotoFileAndLine(const TQString&, int, int)));
+ TQT_TQOBJECT(m_quanta), TQT_SLOT(gotoFileAndLine(const TQString&, int, int)));
connect(m_quanta->m_problemOutput, TQT_SIGNAL(clicked(const TQString&, int, int)),
- m_quanta, TQT_SLOT(gotoFileAndLine(const TQString&, int, int)));
+ TQT_TQOBJECT(m_quanta), TQT_SLOT(gotoFileAndLine(const TQString&, int, int)));
connect(m_quanta->m_annotationOutput->currentFileAnnotations(), TQT_SIGNAL(clicked(const TQString&, int, int)),
- m_quanta, TQT_SLOT(gotoFileAndLine(const TQString&, int, int)));
+ TQT_TQOBJECT(m_quanta), TQT_SLOT(gotoFileAndLine(const TQString&, int, int)));
connect(m_quanta->m_annotationOutput, TQT_SIGNAL(clicked(const TQString&, int, int)),
- m_quanta, TQT_SLOT(gotoFileAndLine(const TQString&, int, int)));
+ TQT_TQOBJECT(m_quanta), TQT_SLOT(gotoFileAndLine(const TQString&, int, int)));
m_quanta->slotFileNew();
- m_quanta->slotNewStatus();
+ m_quanta->slotNewtqStatus();
initToolBars();
Project::ref()->setProjectToolbarVisible(m_quanta->factory()->container("project_toolbar", m_quanta)->isShown());
Project::ref()->slotShowProjectToolbar(Project::ref()->hasProject());
@@ -279,12 +279,12 @@ void QuantaInit::initQuanta()
qConfig.backupDirPath = KGlobal::instance()->dirs()->saveLocation("data", resourceDir + "backups/");
m_quanta->autosaveTimer = new TQTimer(m_quanta);
- connect(m_quanta->autosaveTimer, TQT_SIGNAL(timeout()), m_quanta, TQT_SLOT(slotAutosaveTimer()));
+ connect(m_quanta->autosaveTimer, TQT_SIGNAL(timeout()), TQT_TQOBJECT(m_quanta), TQT_SLOT(slotAutosaveTimer()));
m_quanta->autosaveTimer->start(qConfig.autosaveInterval * 60000, false);
- connect(m_quanta->m_doc, TQT_SIGNAL(hideSplash()), m_quanta, TQT_SLOT(slotHideSplash()));
+ connect(m_quanta->m_doc, TQT_SIGNAL(hideSplash()), TQT_TQOBJECT(m_quanta), TQT_SLOT(slotHideSplash()));
connect(parser, TQT_SIGNAL(rebuildStructureTree(bool)),
- m_quanta, TQT_SLOT(slotReloadStructTreeView(bool)));
+ TQT_TQOBJECT(m_quanta), TQT_SLOT(slotReloadStructTreeView(bool)));
// Read list of characters
TQFile file(locate("appdata","chars"));
@@ -296,26 +296,26 @@ void QuantaInit::initQuanta()
{
s = t.readLine();
charList << i18n(s.utf8()); // line excluding '\n'
- int begin = s.find("(&") + 1;
+ int begin = s.tqfind("(&") + 1;
if (begin == 1)
continue;
- int length = s.find(";)") - begin + 1;
+ int length = s.tqfind(";)") - begin + 1;
TQString s2 = s.mid(begin, length - 1);
- replacementMap[s[0].unicode()] = s2;
+ replacementMap[s[0].tqunicode()] = s2;
}
file.close();
}
TQString infoCss = tmpDir;
- infoCss.replace(TQRegExp("/quanta$"),"");
+ infoCss.tqreplace(TQRegExp("/quanta$"),"");
infoCss += "/info.css";
- QExtFileInfo::copy(KURL().fromPathOrURL(qConfig.globalDataDir + resourceDir + "scripts/info.css"), KURL().fromPathOrURL(infoCss));
+ TQExtFileInfo::copy(KURL().fromPathOrURL(qConfig.globalDataDir + resourceDir + "scripts/info.css"), KURL().fromPathOrURL(infoCss));
checkRuntimeDependencies();
ViewManager::ref()->activeDocument()->view()->setFocus();
m_quanta->refreshTimer = new TQTimer(m_quanta);
- connect(m_quanta->refreshTimer, TQT_SIGNAL(timeout()), m_quanta, TQT_SLOT(slotReparse()));
+ connect(m_quanta->refreshTimer, TQT_SIGNAL(timeout()), TQT_TQOBJECT(m_quanta), TQT_SLOT(slotReparse()));
m_quanta->refreshTimer->start( qConfig.refreshFrequency*1000, false ); //update the structure tree every 5 seconds
if (qConfig.instantUpdate || qConfig.refreshFrequency == 0)
{
@@ -334,7 +334,7 @@ void QuantaInit::initStatusBar()
{
m_quanta->statusbarTimer = new TQTimer(m_quanta);
connect(m_quanta->statusbarTimer,TQT_SIGNAL(timeout()),
- m_quanta, TQT_SLOT(statusBarTimeout()));
+ TQT_TQOBJECT(m_quanta), TQT_SLOT(statusBarTimeout()));
progressBar = new KProgress(m_quanta->statusBar());
progressBar->setTextEnabled(false);
@@ -356,30 +356,30 @@ void QuantaInit::initStatusBar()
void QuantaInit::initDocument()
{
m_quanta->m_doc = new QuantaDoc(0L);
- connect(m_quanta->m_doc, TQT_SIGNAL(newStatus()),
- m_quanta, TQT_SLOT(slotNewStatus()));
+ connect(m_quanta->m_doc, TQT_SIGNAL(newtqStatus()),
+ TQT_TQOBJECT(m_quanta), TQT_SLOT(slotNewtqStatus()));
}
void QuantaInit::initProject()
{
Project *m_project = Project::ref(m_quanta);
- connect(m_project, TQT_SIGNAL(getTreeStatus(TQStringList *)),
- pTab, TQT_SLOT(slotGetTreeStatus(TQStringList *)));
+ connect(m_project, TQT_SIGNAL(getTreetqStatus(TQStringList *)),
+ pTab, TQT_SLOT(slotGetTreetqStatus(TQStringList *)));
connect(m_project, TQT_SIGNAL(loadToolbarFile(const KURL &)),
- m_quanta, TQT_SLOT(slotLoadToolbarFile(const KURL &)));
+ TQT_TQOBJECT(m_quanta), TQT_SLOT(slotLoadToolbarFile(const KURL &)));
connect(m_project, TQT_SIGNAL(getUserToolbarFiles(KURL::List *)),
- m_quanta, TQT_SLOT(slotGetUserToolbarFiles(KURL::List *)));
+ TQT_TQOBJECT(m_quanta), TQT_SLOT(slotGetUserToolbarFiles(KURL::List *)));
connect(m_project, TQT_SIGNAL(openFiles(const KURL::List &, const TQString&)),
- m_quanta, TQT_SLOT(slotFileOpen(const KURL::List &, const TQString&)));
+ TQT_TQOBJECT(m_quanta), TQT_SLOT(slotFileOpen(const KURL::List &, const TQString&)));
connect(m_project, TQT_SIGNAL(openFile(const KURL &, const TQString&)),
- m_quanta, TQT_SLOT(slotFileOpen(const KURL &, const TQString&)));
+ TQT_TQOBJECT(m_quanta), TQT_SLOT(slotFileOpen(const KURL &, const TQString&)));
connect(m_project, TQT_SIGNAL(closeFile(const KURL &)),
- m_quanta, TQT_SLOT(slotFileClose(const KURL &)));
+ TQT_TQOBJECT(m_quanta), TQT_SLOT(slotFileClose(const KURL &)));
connect(m_project, TQT_SIGNAL(reloadTree(ProjectList *, bool, const TQStringList &)),
pTab, TQT_SLOT(slotReloadTree(ProjectList *, bool, const TQStringList &)));
connect(m_project, TQT_SIGNAL(closeFiles()), ViewManager::ref(), TQT_SLOT(closeAll()));
- connect(m_project, TQT_SIGNAL(eventHappened(const TQString&, const TQString&, const TQString& )), QPEvents::ref(m_quanta), TQT_SLOT(slotEventHappened(const TQString&, const TQString&, const TQString& )));
+ connect(m_project, TQT_SIGNAL(eventHappened(const TQString&, const TQString&, const TQString& )), TQPEvents::ref(TQT_TQOBJECT(m_quanta)), TQT_SLOT(slotEventHappened(const TQString&, const TQString&, const TQString& )));
connect(m_quanta->fTab, TQT_SIGNAL(insertDirInProject(const KURL&)),
m_project, TQT_SLOT(slotAddDirectory(const KURL&)));
@@ -393,8 +393,8 @@ void QuantaInit::initProject()
connect(TemplatesTreeView::ref(), TQT_SIGNAL(insertFileInProject(const KURL&)),
m_project, TQT_SLOT(slotInsertFile(const KURL&)));
connect(TemplatesTreeView::ref(), TQT_SIGNAL(downloadTemplate()),
- m_quanta, TQT_SLOT(slotDownloadTemplate()));
- connect(TemplatesTreeView::ref(), TQT_SIGNAL(uploadTemplate(const TQString&)), m_quanta, TQT_SLOT(slotUploadTemplate(const TQString&)));
+ TQT_TQOBJECT(m_quanta), TQT_SLOT(slotDownloadTemplate()));
+ connect(TemplatesTreeView::ref(), TQT_SIGNAL(uploadTemplate(const TQString&)), TQT_TQOBJECT(m_quanta), TQT_SLOT(slotUploadTemplate(const TQString&)));
// inform project if something was renamed
connect(pTab, TQT_SIGNAL(renamed(const KURL&, const KURL&)),
@@ -419,13 +419,13 @@ void QuantaInit::initProject()
connect(m_project, TQT_SIGNAL(addProjectDoc(const KURL&)), m_quanta->dTab, TQT_SLOT(slotAddProjectDoc(const KURL&)));
connect(m_project, TQT_SIGNAL(enableMessageWidget()),
- m_quanta, TQT_SLOT(slotShowMessagesView()));
+ TQT_TQOBJECT(m_quanta), TQT_SLOT(slotShowMessagesView()));
connect(m_project, TQT_SIGNAL(messages(const TQString&)),
m_quanta->m_messageOutput, TQT_SLOT(showMessage(const TQString&)));
- connect(m_project, TQT_SIGNAL(newStatus()),
- m_quanta, TQT_SLOT(slotNewStatus()));
+ connect(m_project, TQT_SIGNAL(newtqStatus()),
+ TQT_TQOBJECT(m_quanta), TQT_SLOT(slotNewtqStatus()));
connect(m_project, TQT_SIGNAL(newProjectLoaded(const TQString &, const KURL &, const KURL &)),
TemplatesTreeView::ref(), TQT_SLOT(slotNewProjectLoaded(const TQString &, const KURL &, const KURL &)));
@@ -438,20 +438,20 @@ void QuantaInit::initProject()
connect(pTab, TQT_SIGNAL(changeFileDescription(const KURL&, const TQString&)),
m_project, TQT_SLOT(slotFileDescChanged(const KURL&, const TQString&)));
- connect(pTab, TQT_SIGNAL(changeUploadStatus(const KURL&, int)),
+ connect(pTab, TQT_SIGNAL(changeUploadtqStatus(const KURL&, int)),
m_project, TQT_SLOT(slotUploadStatusChanged(const KURL&, int)));
- connect(pTab, TQT_SIGNAL(changeDocumentFolderStatus(const KURL&, bool)),
- m_project, TQT_SLOT(slotChangeDocumentFolderStatus(const KURL&, bool)));
+ connect(pTab, TQT_SIGNAL(changeDocumentFoldertqStatus(const KURL&, bool)),
+ m_project, TQT_SLOT(slotChangeDocumentFoldertqStatus(const KURL&, bool)));
- connect(m_project, TQT_SIGNAL(hideSplash()), m_quanta, TQT_SLOT(slotHideSplash()));
+ connect(m_project, TQT_SIGNAL(hideSplash()), TQT_TQOBJECT(m_quanta), TQT_SLOT(slotHideSplash()));
connect(m_project, TQT_SIGNAL(statusMsg(const TQString &)),
- m_quanta, TQT_SLOT(slotStatusMsg(const TQString & )));
+ TQT_TQOBJECT(m_quanta), TQT_SLOT(slotStatusMsg(const TQString & )));
}
void QuantaInit::initView()
{
- ViewManager *m_viewManager = ViewManager::ref(m_quanta);
+ ViewManager *m_viewManager = ViewManager::ref(TQT_TQOBJECT(m_quanta));
connect(m_quanta, TQT_SIGNAL(viewActivated (KMdiChildView *)), m_viewManager, TQT_SLOT(slotViewActivated(KMdiChildView*)));
connect(m_quanta, TQT_SIGNAL(lastChildViewClosed()), m_viewManager, TQT_SLOT(slotLastViewClosed()));
// connect(m_quanta, TQT_SIGNAL(viewDeactivated(KMdiChildView *)), m_viewManager, TQT_SLOT(slotViewDeactivated(KMdiChildView*)));
@@ -472,7 +472,7 @@ void QuantaInit::initView()
m_quanta->setStandardMDIMenuEnabled(false);
m_quanta->setManagedDockPositionModeEnabled(true);
- m_quanta->fTab = new FilesTreeView(m_config, m_quanta, "filestree");
+ m_quanta->fTab = new FilesTreeView(m_config, m_quanta, "filestree");
m_quanta->aTab = new EnhancedTagAttributeTree(m_quanta, "TagAttributes");
pTab = ProjectTreeView::ref(m_quanta, "Project");
tTab = TemplatesTreeView::ref(m_quanta, "Templates"); // creates the treeview
@@ -481,15 +481,15 @@ void QuantaInit::initView()
m_quanta->scriptTab = new ScriptTreeView(m_quanta, "Scripts");
m_quanta->m_messageOutput = new MessageOutput(m_quanta, "Messages");
- m_quanta->m_messageOutput->setFocusPolicy(TQWidget::NoFocus);
+ m_quanta->m_messageOutput->setFocusPolicy(TQ_NoFocus);
m_quanta->m_messageOutput->showMessage(i18n("Message Window..."));
connect(m_quanta, TQT_SIGNAL(showMessage(const TQString&, bool)), m_quanta->m_messageOutput, TQT_SLOT(showMessage(const TQString&, bool)));
connect(m_quanta, TQT_SIGNAL(clearMessages()), m_quanta->m_messageOutput, TQT_SLOT(clear()));
m_quanta->m_problemOutput = new MessageOutput(m_quanta, "Problems");
- m_quanta->m_problemOutput->setFocusPolicy(TQWidget::NoFocus);
+ m_quanta->m_problemOutput->setFocusPolicy(TQ_NoFocus);
m_quanta->m_annotationOutput = new AnnotationOutput(m_quanta, "Annotations");
- m_quanta->m_annotationOutput->setFocusPolicy(TQWidget::NoFocus);
+ m_quanta->m_annotationOutput->setFocusPolicy(TQ_NoFocus);
m_quanta->createPreviewPart();
m_quanta->createDocPart();
@@ -498,7 +498,7 @@ void QuantaInit::initView()
m_quanta->fTab, TQT_SLOT(slotReloadAllTrees()));
connect(pTab, TQT_SIGNAL(loadToolbarFile (const KURL&)),
- m_quanta, TQT_SLOT(slotLoadToolbarFile(const KURL&)));
+ TQT_TQOBJECT(m_quanta), TQT_SLOT(slotLoadToolbarFile(const KURL&)));
connect(m_viewManager, TQT_SIGNAL(viewActivated(const KURL&)),
pTab, TQT_SLOT(slotViewActivated(const KURL&)));
@@ -512,39 +512,39 @@ void QuantaInit::initView()
m_quanta->fTab, TQT_SLOT(slotDocumentClosed(const KURL&)));
connect(tTab, TQT_SIGNAL(insertFile (const KURL &)),
- m_quanta, TQT_SLOT(slotInsertFile(const KURL &)));
+ TQT_TQOBJECT(m_quanta), TQT_SLOT(slotInsertFile(const KURL &)));
connect(m_quanta->scriptTab, TQT_SIGNAL(openFileInPreview(const KURL &)),
- m_quanta, TQT_SLOT(slotOpenFileInPreview(const KURL &)));
+ TQT_TQOBJECT(m_quanta), TQT_SLOT(slotOpenFileInPreview(const KURL &)));
connect(m_quanta->scriptTab, TQT_SIGNAL(showPreviewWidget(bool)),
- m_quanta, TQT_SLOT(slotShowPreviewWidget(bool)));
+ TQT_TQOBJECT(m_quanta), TQT_SLOT(slotShowPreviewWidget(bool)));
connect(m_quanta->scriptTab, TQT_SIGNAL(assignActionToScript(const KURL &, const TQString&)),
- m_quanta, TQT_SLOT(slotAssignActionToScript(const KURL &, const TQString&)));
- connect(m_quanta->scriptTab, TQT_SIGNAL(downloadScript()), m_quanta, TQT_SLOT(slotDownloadScript()));
- connect(m_quanta->scriptTab, TQT_SIGNAL(uploadScript(const TQString&)), m_quanta, TQT_SLOT(slotUploadScript(const TQString&)));
- connect(m_quanta->dTab, TQT_SIGNAL(downloadDoc()), m_quanta, TQT_SLOT(slotDownloadDoc()));
+ TQT_TQOBJECT(m_quanta), TQT_SLOT(slotAssignActionToScript(const KURL &, const TQString&)));
+ connect(m_quanta->scriptTab, TQT_SIGNAL(downloadScript()), TQT_TQOBJECT(m_quanta), TQT_SLOT(slotDownloadScript()));
+ connect(m_quanta->scriptTab, TQT_SIGNAL(uploadScript(const TQString&)), TQT_TQOBJECT(m_quanta), TQT_SLOT(slotUploadScript(const TQString&)));
+ connect(m_quanta->dTab, TQT_SIGNAL(downloadDoc()), TQT_TQOBJECT(m_quanta), TQT_SLOT(slotDownloadDoc()));
connect(m_quanta->m_htmlPart, TQT_SIGNAL(onURL(const TQString&)),
- m_quanta, TQT_SLOT(slotStatusMsg(const TQString&)));
+ TQT_TQOBJECT(m_quanta), TQT_SLOT(slotStatusMsg(const TQString&)));
connect(m_quanta->m_htmlPartDoc, TQT_SIGNAL(onURL(const TQString&)),
- m_quanta, TQT_SLOT(slotStatusMsg(const TQString&)));
+ TQT_TQOBJECT(m_quanta), TQT_SLOT(slotStatusMsg(const TQString&)));
- connect(sTab, TQT_SIGNAL(newCursorPosition(int,int)), m_quanta, TQT_SLOT(setCursorPosition(int,int)));
- connect(sTab, TQT_SIGNAL(selectArea(int,int,int,int)), m_quanta, TQT_SLOT( selectArea(int,int,int,int)));
- connect(sTab, TQT_SIGNAL(selectTagArea(Node*)), m_quanta, TQT_SLOT(slotSelectTagArea(Node*)));
- connect(sTab, TQT_SIGNAL(needReparse()), m_quanta, TQT_SLOT(slotForceReparse()));
- connect(sTab, TQT_SIGNAL(showGroupsForDTEP(const TQString&, bool)), m_quanta, TQT_SLOT(slotShowGroupsForDTEP(const TQString&, bool)));
+ connect(sTab, TQT_SIGNAL(newCursorPosition(int,int)), TQT_TQOBJECT(m_quanta), TQT_SLOT(setCursorPosition(int,int)));
+ connect(sTab, TQT_SIGNAL(selectArea(int,int,int,int)), TQT_TQOBJECT(m_quanta), TQT_SLOT( selectArea(int,int,int,int)));
+ connect(sTab, TQT_SIGNAL(selectTagArea(Node*)), TQT_TQOBJECT(m_quanta), TQT_SLOT(slotSelectTagArea(Node*)));
+ connect(sTab, TQT_SIGNAL(needReparse()), TQT_TQOBJECT(m_quanta), TQT_SLOT(slotForceReparse()));
+ connect(sTab, TQT_SIGNAL(showGroupsForDTEP(const TQString&, bool)), TQT_TQOBJECT(m_quanta), TQT_SLOT(slotShowGroupsForDTEP(const TQString&, bool)));
connect(sTab, TQT_SIGNAL(openFile(const KURL &)),
- m_quanta, TQT_SLOT (slotFileOpen(const KURL &)));
+ TQT_TQOBJECT(m_quanta), TQT_SLOT (slotFileOpen(const KURL &)));
connect(sTab, TQT_SIGNAL(openImage (const KURL&)),
- m_quanta, TQT_SLOT(slotImageOpen(const KURL&)));
+ TQT_TQOBJECT(m_quanta), TQT_SLOT(slotImageOpen(const KURL&)));
connect(sTab, TQT_SIGNAL(showProblemMessage(const TQString&)),
m_quanta->m_problemOutput, TQT_SLOT(showMessage(const TQString&)));
connect(sTab, TQT_SIGNAL(clearProblemOutput()),
m_quanta->m_problemOutput, TQT_SLOT(clear()));
connect(parser, TQT_SIGNAL(nodeTreeChanged()), sTab, TQT_SLOT(slotNodeTreeChanged()));
- connect(m_quanta->dTab, TQT_SIGNAL(openURL(const TQString&)), m_quanta, TQT_SLOT(openDoc(const TQString&)));
+ connect(m_quanta->dTab, TQT_SIGNAL(openURL(const TQString&)), TQT_TQOBJECT(m_quanta), TQT_SLOT(openDoc(const TQString&)));
connect(m_viewManager, TQT_SIGNAL(dragInsert(TQDropEvent *)), tTab, TQT_SLOT(slotDragInsert(TQDropEvent *)));
@@ -679,7 +679,7 @@ void QuantaInit::openLastFiles()
if (w) //w==0 might happen on quick close on startup
{
m_quanta->setTitle(w->url().prettyURL(0, KURL::StripFileProtocol) );
-// m_quanta->slotUpdateStatus(w);//FIXME:
+// m_quanta->slotUpdatetqStatus(w);//FIXME:
}
}
@@ -706,75 +706,75 @@ void QuantaInit::loadInitialProject(const TQString& url)
void QuantaInit::initActions()
{
KActionCollection *ac = m_quanta->actionCollection();
- new KAction(i18n("Annotate..."), 0, m_quanta, TQT_SLOT(slotAnnotate()),ac, "annotate");
+ new KAction(i18n("Annotate..."), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotAnnotate()),ac, "annotate");
m_quanta->editTagAction = new KAction( i18n( "&Edit Current Tag..." ), CTRL+Key_E,
- m_quanta, TQT_SLOT( slotEditCurrentTag() ),
- ac, "edit_current_tag" );
+ TQT_TQOBJECT(m_quanta), TQT_SLOT( slotEditCurrentTag() ),
+ TQT_TQOBJECT(ac), "edit_current_tag" );
m_quanta->selectTagAreaAction = new KAction( i18n( "&Select Current Tag Area" ), 0,
- m_quanta, TQT_SLOT( slotSelectTagArea() ),
- ac, "select_tag_area" );
+ TQT_TQOBJECT(m_quanta), TQT_SLOT( slotSelectTagArea() ),
+ TQT_TQOBJECT(ac), "select_tag_area" );
new KAction( i18n( "E&xpand Abbreviation" ), CTRL+SHIFT+Key_J,
- m_quanta, TQT_SLOT( slotExpandAbbreviation() ),
- ac, "expand_abbreviation" );
+ TQT_TQOBJECT(m_quanta), TQT_SLOT( slotExpandAbbreviation() ),
+ TQT_TQOBJECT(ac), "expand_abbreviation" );
- new KAction(i18n("&Report Bug..."), 0, m_quanta, TQT_SLOT(slotReportBug()), ac, "help_reportbug"); //needed, because quanta_be bugs should be reported for quanta
+ new KAction(i18n("&Report Bug..."), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotReportBug()), TQT_TQOBJECT(ac), "help_reportbug"); //needed, because quanta_be bugs should be reported for quanta
//Kate actions
//Edit menu
- KStdAction::undo(m_quanta, TQT_SLOT(slotUndo()), ac);
- KStdAction::redo(m_quanta, TQT_SLOT(slotRedo()), ac);
- KStdAction::cut(m_quanta, TQT_SLOT(slotCut()), ac);
- KStdAction::copy(m_quanta, TQT_SLOT(slotCopy()), ac) ;
- KStdAction::pasteText(m_quanta, TQT_SLOT(slotPaste()), ac);
+ KStdAction::undo(TQT_TQOBJECT(m_quanta), TQT_SLOT(slotUndo()), ac);
+ KStdAction::redo(TQT_TQOBJECT(m_quanta), TQT_SLOT(slotRedo()), ac);
+ KStdAction::cut(TQT_TQOBJECT(m_quanta), TQT_SLOT(slotCut()), ac);
+ KStdAction::copy(TQT_TQOBJECT(m_quanta), TQT_SLOT(slotCopy()), ac) ;
+ KStdAction::pasteText(TQT_TQOBJECT(m_quanta), TQT_SLOT(slotPaste()), ac);
//help
- (void) new KAction(i18n("Ti&p of the Day"), "idea", "", m_quanta,
- TQT_SLOT(slotHelpTip()), ac, "help_tip");
+ (void) new KAction(i18n("Ti&p of the Day"), "idea", "", TQT_TQOBJECT(m_quanta),
+ TQT_SLOT(slotHelpTip()), TQT_TQOBJECT(ac), "help_tip");
// File actions
//
- KStdAction::openNew( m_quanta, TQT_SLOT( slotFileNew() ), ac);
- KStdAction::open ( m_quanta, TQT_SLOT( slotFileOpen() ), ac, "file_open");
- (void) new KAction(i18n("Close Other Tabs"), 0, ViewManager::ref(), TQT_SLOT(slotCloseOtherTabs()), ac, "close_other_tabs");
+ KStdAction::openNew( TQT_TQOBJECT(m_quanta), TQT_SLOT( slotFileNew() ), ac);
+ KStdAction::open ( TQT_TQOBJECT(m_quanta), TQT_SLOT( slotFileOpen() ), ac, "file_open");
+ (void) new KAction(i18n("Close Other Tabs"), 0, ViewManager::ref(), TQT_SLOT(slotCloseOtherTabs()), TQT_TQOBJECT(ac), "close_other_tabs");
- m_quanta->fileRecent = KStdAction::openRecent(m_quanta, TQT_SLOT(slotFileOpenRecent(const KURL&)),
+ m_quanta->fileRecent = KStdAction::openRecent(TQT_TQOBJECT(m_quanta), TQT_SLOT(slotFileOpenRecent(const KURL&)),
ac, "file_open_recent");
m_quanta->fileRecent->setToolTip(i18n("Open / Open Recent"));
- connect(m_quanta->fileRecent, TQT_SIGNAL(activated()), m_quanta, TQT_SLOT(slotFileOpen()));
+ connect(m_quanta->fileRecent, TQT_SIGNAL(activated()), TQT_TQOBJECT(m_quanta), TQT_SLOT(slotFileOpen()));
- (void) new KAction( i18n( "Close All" ), 0, m_quanta,
+ (void) new KAction( i18n( "Close All" ), 0, TQT_TQOBJECT(m_quanta),
TQT_SLOT( slotFileCloseAll() ),
- ac, "file_close_all" );
+ TQT_TQOBJECT(ac), "file_close_all" );
- m_quanta->saveAction = KStdAction::save(m_quanta, TQT_SLOT( slotFileSave() ), ac);
+ m_quanta->saveAction = KStdAction::save(TQT_TQOBJECT(m_quanta), TQT_SLOT( slotFileSave() ), ac);
- KStdAction::saveAs( m_quanta, TQT_SLOT( slotFileSaveAs() ), ac );
+ KStdAction::saveAs( TQT_TQOBJECT(m_quanta), TQT_SLOT( slotFileSaveAs() ), ac );
m_quanta->saveAllAction = new KAction( i18n( "Save All..." ), "save_all", SHIFT+KStdAccel::shortcut(KStdAccel::Save).keyCodeQt(),
- m_quanta, TQT_SLOT( slotFileSaveAll() ),
- ac, "file_save_all" );
- (void) new KAction(i18n("Reloa&d"), "revert", SHIFT+Key_F5, m_quanta,
- TQT_SLOT(slotFileReload()), ac, "file_reload");
+ TQT_TQOBJECT(m_quanta), TQT_SLOT( slotFileSaveAll() ),
+ TQT_TQOBJECT(ac), "file_save_all" );
+ (void) new KAction(i18n("Reloa&d"), "revert", SHIFT+Key_F5, TQT_TQOBJECT(m_quanta),
+ TQT_SLOT(slotFileReload()), TQT_TQOBJECT(ac), "file_reload");
// (void) new KAction(i18n("Reload All "), 0, 0, m_quanta,
-// TQT_SLOT(slotFileReloadAll()), ac, "file_reload_all");
+// TQT_SLOT(slotFileReloadAll()), TQT_TQOBJECT(ac), "file_reload_all");
(void) new KAction( i18n( "Save as Local Template..." ), 0,
- m_quanta, TQT_SLOT( slotFileSaveAsLocalTemplate() ),
- ac, "save_local_template" );
+ TQT_TQOBJECT(m_quanta), TQT_SLOT( slotFileSaveAsLocalTemplate() ),
+ TQT_TQOBJECT(ac), "save_local_template" );
(void) new KAction( i18n( "Save Selection to Local Template File..." ), 0,
- m_quanta, TQT_SLOT( slotFileSaveSelectionAsLocalTemplate() ),
- ac, "save_selection_local_template" );
+ TQT_TQOBJECT(m_quanta), TQT_SLOT( slotFileSaveSelectionAsLocalTemplate() ),
+ TQT_TQOBJECT(ac), "save_selection_local_template" );
- KStdAction::quit( m_quanta, TQT_SLOT( slotFileQuit() ), ac );
+ KStdAction::quit( TQT_TQOBJECT(m_quanta), TQT_SLOT( slotFileQuit() ), ac );
// Edit actions
(void) new KAction( i18n( "Find in Files..." ),
- SmallIcon("filefind"), CTRL+ALT+Key_F,
- m_quanta, TQT_SLOT( slotEditFindInFiles() ),
- ac, "find_in_files" );
+ SmallIcon("filetqfind"), CTRL+ALT+Key_F,
+ TQT_TQOBJECT(m_quanta), TQT_SLOT( slotEditFindInFiles() ),
+ TQT_TQOBJECT(ac), "find_in_files" );
KAction* aux = TagActionManager::self()->actionCollection()->action("apply_source_indentation");
aux->setEnabled(false);
@@ -783,90 +783,90 @@ void QuantaInit::initActions()
// Tool actions
(void) new KAction( i18n( "&Context Help..." ), CTRL+Key_H,
- m_quanta, TQT_SLOT( slotContextHelp() ),
- ac, "context_help" );
+ TQT_TQOBJECT(m_quanta), TQT_SLOT( slotContextHelp() ),
+ TQT_TQOBJECT(ac), "context_help" );
(void) new KAction( i18n( "&Quanta Homepage" ), 0,
- m_quanta, TQT_SLOT( slotHelpHomepage() ),
- ac, "help_homepage" );
+ TQT_TQOBJECT(m_quanta), TQT_SLOT( slotHelpHomepage() ),
+ TQT_TQOBJECT(ac), "help_homepage" );
(void) new KAction( i18n( "&User Mailing List" ), 0,
- m_quanta, TQT_SLOT( slotHelpUserList() ),
- ac, "help_userlist" );
+ TQT_TQOBJECT(m_quanta), TQT_SLOT( slotHelpUserList() ),
+ TQT_TQOBJECT(ac), "help_userlist" );
(void) new KAction( i18n( "Make &Donation" ), 0,
- m_quanta, TQT_SLOT( slotMakeDonation() ),
- ac, "help_donation" );
+ TQT_TQOBJECT(m_quanta), TQT_SLOT( slotMakeDonation() ),
+ TQT_TQOBJECT(ac), "help_donation" );
(void) new KAction( i18n( "Tag &Attributes..." ), ALT+Key_Down,
m_quanta->m_doc, TQT_SLOT( slotAttribPopup() ),
- ac, "tag_attributes" );
+ TQT_TQOBJECT(ac), "tag_attributes" );
(void) new KAction( i18n( "&Change the DTD..." ), 0,
- m_quanta, TQT_SLOT( slotChangeDTD() ),
- ac, "change_dtd" );
+ TQT_TQOBJECT(m_quanta), TQT_SLOT( slotChangeDTD() ),
+ TQT_TQOBJECT(ac), "change_dtd" );
(void) new KAction( i18n( "&Edit DTD Settings..." ), 0,
- m_quanta, TQT_SLOT( slotEditDTD() ),
- ac, "edit_dtd" );
+ TQT_TQOBJECT(m_quanta), TQT_SLOT( slotEditDTD() ),
+ TQT_TQOBJECT(ac), "edit_dtd" );
(void) new KAction( i18n( "&Load && Convert DTD..." ), 0,
DTDs::ref(), TQT_SLOT( slotLoadDTD() ),
- ac, "load_dtd" );
+ TQT_TQOBJECT(ac), "load_dtd" );
(void) new KAction( i18n( "Load DTD E&ntities..." ), 0,
DTDs::ref(), TQT_SLOT( slotLoadEntities() ),
- ac, "load_entities" );
+ TQT_TQOBJECT(ac), "load_entities" );
(void) new KAction( i18n( "Load DTD &Package (DTEP)..." ), 0,
- m_quanta, TQT_SLOT( slotLoadDTEP() ),
- ac, "load_dtep" );
+ TQT_TQOBJECT(m_quanta), TQT_SLOT( slotLoadDTEP() ),
+ TQT_TQOBJECT(ac), "load_dtep" );
(void) new KAction( i18n( "Send DTD Package (DTEP) in E&mail..." ), "mail_send", 0,
- m_quanta, TQT_SLOT( slotEmailDTEP() ),
- ac, "send_dtep" );
+ TQT_TQOBJECT(m_quanta), TQT_SLOT( slotEmailDTEP() ),
+ TQT_TQOBJECT(ac), "send_dtep" );
(void) new KAction( i18n( "&Download DTD Package (DTEP)..." ), "network", 0,
- m_quanta, TQT_SLOT( slotDownloadDTEP() ),
- ac, "download_dtep" );
+ TQT_TQOBJECT(m_quanta), TQT_SLOT( slotDownloadDTEP() ),
+ TQT_TQOBJECT(ac), "download_dtep" );
(void) new KAction( i18n( "&Upload DTD Package (DTEP)..." ), "network", 0,
- m_quanta, TQT_SLOT( slotUploadDTEP() ),
- ac, "upload_dtep" );
+ TQT_TQOBJECT(m_quanta), TQT_SLOT( slotUploadDTEP() ),
+ TQT_TQOBJECT(ac), "upload_dtep" );
/*
(void) new KAction( i18n( "&Upload DTD Package (DTEP)..." ), 0,
- m_quanta, TQT_SLOT( slotUploadDTEP() ),
- ac, "send_dtep" );
+ TQT_TQOBJECT(m_quanta), TQT_SLOT( slotUploadDTEP() ),
+ TQT_TQOBJECT(ac), "send_dtep" );
*/
(void) new KAction( i18n( "&Document Properties" ), 0,
- m_quanta, TQT_SLOT( slotDocumentProperties() ),
- ac, "tools_document_properties" );
+ TQT_TQOBJECT(m_quanta), TQT_SLOT( slotDocumentProperties() ),
+ TQT_TQOBJECT(ac), "tools_document_properties" );
(void) new KAction ( i18n ("F&ormat XML Code"), 0,
- m_quanta, TQT_SLOT( slotCodeFormatting() ),
- ac, "tools_code_formatting");
+ TQT_TQOBJECT(m_quanta), TQT_SLOT( slotCodeFormatting() ),
+ TQT_TQOBJECT(ac), "tools_code_formatting");
(void) new KAction( i18n( "&Convert Tag && Attribute Case..."), 0,
- m_quanta, TQT_SLOT(slotConvertCase()),
- ac, "tools_change_case");
+ TQT_TQOBJECT(m_quanta), TQT_SLOT(slotConvertCase()),
+ TQT_TQOBJECT(ac), "tools_change_case");
// View actions
m_quanta->showSourceAction =
new KToggleAction( i18n( "&Source Editor"), UserIcon ("view_text"), ALT+Key_F9,
- m_quanta, TQT_SLOT( slotShowSourceEditor()),
- ac, "show_quanta_editor");
+ TQT_TQOBJECT(m_quanta), TQT_SLOT( slotShowSourceEditor()),
+ TQT_TQOBJECT(ac), "show_quanta_editor");
m_quanta->showSourceAction->setExclusiveGroup("view");
m_quanta->showVPLAction =
new KToggleAction( i18n( "&VPL Editor"), UserIcon ("vpl"), CTRL+SHIFT+Key_F9,
- m_quanta, TQT_SLOT( slotShowVPLOnly() ),
- ac, "show_kafka_view");
+ TQT_TQOBJECT(m_quanta), TQT_SLOT( slotShowVPLOnly() ),
+ TQT_TQOBJECT(ac), "show_kafka_view");
m_quanta->showVPLAction->setExclusiveGroup("view");
m_quanta->showVPLSourceAction =
new KToggleAction( i18n("VPL && So&urce Editors"), UserIcon ("vpl_text"), Key_F9,
- m_quanta, TQT_SLOT( slotShowVPLAndSourceEditor() ),
- ac, "show_kafka_and_quanta");
+ TQT_TQOBJECT(m_quanta), TQT_SLOT( slotShowVPLAndSourceEditor() ),
+ TQT_TQOBJECT(ac), "show_kafka_and_quanta");
m_quanta->showVPLSourceAction->setExclusiveGroup("view");
/**kafkaSelectAction = new KSelectAction(i18n("Main &View"), 0, ac,"show_kafka");
TQStringList list2;
@@ -874,73 +874,73 @@ void QuantaInit::initActions()
list2.append(i18n("&VPL Editor (experimental)"));
list2.append(i18n("&Both Editors"));
kafkaSelectAction->setItems(list2);
- connect(kafkaSelectAction, TQT_SIGNAL(activated(int)), m_quanta, TQT_SLOT(slotShowKafkaPartl(int)));*/
+ connect(kafkaSelectAction, TQT_SIGNAL(activated(int)), TQT_TQOBJECT(m_quanta), TQT_SLOT(slotShowKafkaPartl(int)));*/
(void) new KAction( i18n( "&Reload Preview" ), "reload",
KStdAccel::shortcut(KStdAccel::Reload).keyCodeQt(),
- m_quanta, TQT_SLOT(slotRepaintPreview()),
- ac, "reload" );
+ TQT_TQOBJECT(m_quanta), TQT_SLOT(slotRepaintPreview()),
+ TQT_TQOBJECT(ac), "reload" );
(void) new KAction( i18n( "&Previous File" ), "1leftarrow", KStdAccel::back(),
- m_quanta, TQT_SLOT( slotBack() ),
- ac, "previous_file" );
+ TQT_TQOBJECT(m_quanta), TQT_SLOT( slotBack() ),
+ TQT_TQOBJECT(ac), "previous_file" );
(void) new KAction( i18n( "&Next File" ), "1rightarrow", KStdAccel::forward(),
- m_quanta, TQT_SLOT( slotForward() ),
- ac, "next_file" );
+ TQT_TQOBJECT(m_quanta), TQT_SLOT( slotForward() ),
+ TQT_TQOBJECT(ac), "next_file" );
// Options actions
//
(void) new KAction( i18n( "Configure &Actions..." ), UserIcon("ball"),0,
- m_quanta, TQT_SLOT( slotOptionsConfigureActions() ),
- ac, "configure_actions" );
+ TQT_TQOBJECT(m_quanta), TQT_SLOT( slotOptionsConfigureActions() ),
+ TQT_TQOBJECT(ac), "configure_actions" );
- KStdAction::showMenubar(m_quanta, TQT_SLOT(slotShowMenuBar()), ac, "options_show_menubar");
- KStdAction::keyBindings(m_quanta, TQT_SLOT( slotOptionsConfigureKeys() ), ac, "configure_shortcuts");
- KStdAction::configureToolbars( m_quanta, TQT_SLOT( slotOptionsConfigureToolbars() ), ac, "options_configure_toolbars");
- KStdAction::preferences(m_quanta, TQT_SLOT( slotOptions() ), ac, "general_options");
- new KAction(i18n("Configure Pre&view..."), SmallIcon("konqueror"), 0, m_quanta, TQT_SLOT(slotPreviewOptions()), ac, "preview_options");
+ KStdAction::showMenubar(TQT_TQOBJECT(m_quanta), TQT_SLOT(slotShowMenuBar()), ac, "options_show_menubar");
+ KStdAction::keyBindings(TQT_TQOBJECT(m_quanta), TQT_SLOT( slotOptionsConfigureKeys() ), ac, "configure_shortcuts");
+ KStdAction::configureToolbars(TQT_TQOBJECT(m_quanta), TQT_SLOT( slotOptionsConfigureToolbars() ), ac, "options_configure_toolbars");
+ KStdAction::preferences(TQT_TQOBJECT(m_quanta), TQT_SLOT( slotOptions() ), ac, "general_options");
+ new KAction(i18n("Configure Pre&view..."), SmallIcon("konqueror"), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotPreviewOptions()), TQT_TQOBJECT(ac), "preview_options");
// Toolbars actions
m_quanta->projectToolbarFiles = new KRecentFilesAction(i18n("Load &Project Toolbar"),0,
- m_quanta, TQT_SLOT(slotLoadToolbarFile(const KURL&)),
- ac, "toolbars_load_project");
-
- new KAction(i18n("Load &Global Toolbar..."), 0, m_quanta, TQT_SLOT(slotLoadGlobalToolbar()), ac, "toolbars_load_global");
- new KAction(i18n("Load &Local Toolbar..."), 0, m_quanta, TQT_SLOT(slotLoadToolbar()), ac, "toolbars_load_user");
- new KAction(i18n("Save as &Local Toolbar..."), 0, m_quanta, TQT_SLOT(slotSaveLocalToolbar()), ac, "toolbars_save_local");
- new KAction(i18n("Save as &Project Toolbar..."), 0, m_quanta, TQT_SLOT(slotSaveProjectToolbar()), ac, "toolbars_save_project");
- new KAction(i18n("&New User Toolbar..."), 0, m_quanta, TQT_SLOT(slotAddToolbar()), ac, "toolbars_add");
- new KAction(i18n("&Remove User Toolbar..."), 0, m_quanta, TQT_SLOT(slotRemoveToolbar()), ac, "toolbars_remove");
- new KAction(i18n("Re&name User Toolbar..."), 0, m_quanta, TQT_SLOT(slotRenameToolbar()), ac, "toolbars_rename");
- new KAction(i18n("Send Toolbar in E&mail..."), "mail_send", 0, m_quanta, TQT_SLOT(slotSendToolbar()), ac, "toolbars_send");
- new KAction(i18n("&Upload Toolbar..." ), "network", 0, m_quanta, TQT_SLOT(slotUploadToolbar()), ac, "toolbars_upload" );
- new KAction(i18n("&Download Toolbar..." ), "network", 0, m_quanta, TQT_SLOT(slotDownloadToolbar()), ac, "toolbars_download" );
-
- KToggleAction *toggle = new KToggleAction( i18n("Smart Tag Insertion"), 0, ac, "smart_tag_insertion");
- connect(toggle, TQT_SIGNAL(toggled(bool)), m_quanta, TQT_SLOT(slotSmartTagInsertion()));
-
- m_quanta->showDTDToolbar=new KToggleAction(i18n("Show DTD Toolbar"), 0, ac, "view_dtd_toolbar");
-
- connect(m_quanta->showDTDToolbar, TQT_SIGNAL(toggled(bool)), m_quanta, TQT_SLOT(slotToggleDTDToolbar(bool)));
+ TQT_TQOBJECT(m_quanta), TQT_SLOT(slotLoadToolbarFile(const KURL&)),
+ TQT_TQOBJECT(ac), "toolbars_load_project");
+
+ new KAction(i18n("Load &Global Toolbar..."), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotLoadGlobalToolbar()), TQT_TQOBJECT(ac), "toolbars_load_global");
+ new KAction(i18n("Load &Local Toolbar..."), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotLoadToolbar()), TQT_TQOBJECT(ac), "toolbars_load_user");
+ new KAction(i18n("Save as &Local Toolbar..."), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotSaveLocalToolbar()), TQT_TQOBJECT(ac), "toolbars_save_local");
+ new KAction(i18n("Save as &Project Toolbar..."), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotSaveProjectToolbar()), TQT_TQOBJECT(ac), "toolbars_save_project");
+ new KAction(i18n("&New User Toolbar..."), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotAddToolbar()), TQT_TQOBJECT(ac), "toolbars_add");
+ new KAction(i18n("&Remove User Toolbar..."), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotRemoveToolbar()), TQT_TQOBJECT(ac), "toolbars_remove");
+ new KAction(i18n("Re&name User Toolbar..."), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotRenameToolbar()), TQT_TQOBJECT(ac), "toolbars_rename");
+ new KAction(i18n("Send Toolbar in E&mail..."), "mail_send", 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotSendToolbar()), TQT_TQOBJECT(ac), "toolbars_send");
+ new KAction(i18n("&Upload Toolbar..." ), "network", 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotUploadToolbar()), TQT_TQOBJECT(ac), "toolbars_upload" );
+ new KAction(i18n("&Download Toolbar..." ), "network", 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotDownloadToolbar()), TQT_TQOBJECT(ac), "toolbars_download" );
+
+ KToggleAction *toggle = new KToggleAction( i18n("Smart Tag Insertion"), 0, TQT_TQOBJECT(ac), "smart_tag_insertion");
+ connect(toggle, TQT_SIGNAL(toggled(bool)), TQT_TQOBJECT(m_quanta), TQT_SLOT(slotSmartTagInsertion()));
+
+ m_quanta->showDTDToolbar=new KToggleAction(i18n("Show DTD Toolbar"), 0, TQT_TQOBJECT(ac), "view_dtd_toolbar");
+
+ connect(m_quanta->showDTDToolbar, TQT_SIGNAL(toggled(bool)), TQT_TQOBJECT(m_quanta), TQT_SLOT(slotToggleDTDToolbar(bool)));
m_quanta->showDTDToolbar->setCheckedState(i18n("Hide DTD Toolbar"));
new KAction(i18n("Complete Text"), CTRL+Key_Space,
- m_quanta, TQT_SLOT(slotShowCompletion()), ac,"show_completion");
+ TQT_TQOBJECT(m_quanta), TQT_SLOT(slotShowCompletion()), ac,"show_completion");
new KAction(i18n("Completion Hints"), CTRL+SHIFT+Key_Space,
- m_quanta, TQT_SLOT(slotShowCompletionHint()), ac,"show_completion_hint");
+ TQT_TQOBJECT(m_quanta), TQT_SLOT(slotShowCompletionHint()), ac,"show_completion_hint");
- KStdAction::back(m_quanta, TQT_SLOT( slotBack() ), ac, "w_back");
- KStdAction::forward(m_quanta, TQT_SLOT( slotForward() ), ac, "w_forward");
+ KStdAction::back(TQT_TQOBJECT(m_quanta), TQT_SLOT( slotBack() ), ac, "w_back");
+ KStdAction::forward(TQT_TQOBJECT(m_quanta), TQT_SLOT( slotForward() ), ac, "w_forward");
- new KAction(i18n("Open File: none"), 0, m_quanta, TQT_SLOT(slotOpenFileUnderCursor()), ac, "open_file_under_cursor");
- new KAction(i18n("Upload..."), 0, m_quanta, TQT_SLOT(slotUploadFile()), ac, "upload_file");
- new KAction(i18n("Delete File"), 0, m_quanta, TQT_SLOT(slotDeleteFile()), ac, "delete_file");
+ new KAction(i18n("Open File: none"), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotOpenFileUnderCursor()), TQT_TQOBJECT(ac), "open_file_under_cursor");
+ new KAction(i18n("Upload..."), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotUploadFile()), TQT_TQOBJECT(ac), "upload_file");
+ new KAction(i18n("Delete File"), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotDeleteFile()), TQT_TQOBJECT(ac), "delete_file");
TQString ss = i18n("Upload Opened Project Files...");
-/* new KAction(i18n("Upload Opened Project Files"), 0, m_quanta, TQT_SLOT(slotUploadOpenedFiles()), ac, "upload_opened_files"); */
+/* new KAction(i18n("Upload Opened Project Files"), 0, TQT_TQOBJECT(m_quanta), TQT_SLOT(slotUploadOpenedFiles()), TQT_TQOBJECT(ac), "upload_opened_files"); */
TQString error;
int el, ec;
@@ -963,7 +963,7 @@ void QuantaInit::initActions()
n = n.nextSibling();
}
} else
- kdError(24000) << TQString("Error %1 at (%2, %3) in %4").arg(error).arg(el).arg(ec).arg(f.name()) << endl;
+ kdError(24000) << TQString("Error %1 at (%2, %3) in %4").tqarg(error).tqarg(el).tqarg(ec).tqarg(f.name()) << endl;
f.close();
}
m_quanta->m_actions->clear();
@@ -990,7 +990,7 @@ void QuantaInit::initActions()
n = n.nextSibling();
}
} else
- kdError(24000) << TQString("Error %1 at (%2, %3) in %4").arg(error).arg(el).arg(ec).arg(f.name()) << endl;
+ kdError(24000) << TQString("Error %1 at (%2, %3) in %4").tqarg(error).tqarg(el).tqarg(ec).tqarg(f.name()) << endl;
f.close();
}
} else
@@ -1001,17 +1001,17 @@ void QuantaInit::initActions()
// create the preview action
m_quanta->showPreviewAction =
new KToolBarPopupAction( i18n( "&Preview" ), "preview", Key_F6,
- m_quanta, TQT_SLOT( slotToggleShowPreview() ),
- ac, "show_preview" );
+ TQT_TQOBJECT(m_quanta), TQT_SLOT( slotToggleShowPreview() ),
+ TQT_TQOBJECT(ac), "show_preview" );
KAction *act = new KAction( i18n( "Preview Without Frames" ), "", 0,
- m_quanta, TQT_SLOT(slotShowNoFramesPreview()),
- ac, "show_preview_no_frames" );
+ TQT_TQOBJECT(m_quanta), TQT_SLOT(slotShowNoFramesPreview()),
+ TQT_TQOBJECT(ac), "show_preview_no_frames" );
act->plug(m_quanta->showPreviewAction->popupMenu());
act = new KAction( i18n( "View with &Konqueror" ), "konqueror", Key_F12,
- m_quanta, TQT_SLOT( slotViewInKFM() ),
- ac, "view_with_konqueror" );
+ TQT_TQOBJECT(m_quanta), TQT_SLOT( slotViewInKFM() ),
+ TQT_TQOBJECT(ac), "view_with_konqueror" );
act->plug(m_quanta->showPreviewAction->popupMenu());
@@ -1032,62 +1032,62 @@ void QuantaInit::initActions()
act->plug(m_quanta->showPreviewAction->popupMenu());
act = new KAction( i18n( "View with L&ynx" ), "terminal", 0,
- m_quanta, TQT_SLOT( slotViewInLynx() ),
- ac, "view_with_lynx" );
+ TQT_TQOBJECT(m_quanta), TQT_SLOT( slotViewInLynx() ),
+ TQT_TQOBJECT(ac), "view_with_lynx" );
act->plug(m_quanta->showPreviewAction->popupMenu());
(void) new KAction( i18n( "Table Editor..." ), "quick_table", 0,
- m_quanta, TQT_SLOT( slotTagEditTable() ),
- ac, "tag_edit_table" );
+ TQT_TQOBJECT(m_quanta), TQT_SLOT( slotTagEditTable() ),
+ TQT_TQOBJECT(ac), "tag_edit_table" );
(void) new KAction( i18n( "Quick List..." ), "quick_list", 0,
- m_quanta, TQT_SLOT( slotTagQuickList() ),
- ac, "tag_quick_list" );
+ TQT_TQOBJECT(m_quanta), TQT_SLOT( slotTagQuickList() ),
+ TQT_TQOBJECT(ac), "tag_quick_list" );
(void) new KAction( i18n( "Color..." ), "colorize", CTRL+SHIFT+Key_C,
- m_quanta, TQT_SLOT( slotTagColor() ),
- ac, "tag_color" );
+ TQT_TQOBJECT(m_quanta), TQT_SLOT( slotTagColor() ),
+ TQT_TQOBJECT(ac), "tag_color" );
(void) new KAction( i18n( "Email..." ), "tag_mail", 0,
- m_quanta, TQT_SLOT( slotTagMail() ),
- ac, "tag_mail" );
+ TQT_TQOBJECT(m_quanta), TQT_SLOT( slotTagMail() ),
+ TQT_TQOBJECT(ac), "tag_mail" );
(void) new KAction( i18n( "Misc. Tag..." ), "tag_misc", CTRL+SHIFT+Key_T,
- m_quanta, TQT_SLOT( slotTagMisc() ),
- ac, "tag_misc" );
+ TQT_TQOBJECT(m_quanta), TQT_SLOT( slotTagMisc() ),
+ TQT_TQOBJECT(ac), "tag_misc" );
(void) new KAction( i18n( "Frame Wizard..." ), "frame", 0,
- m_quanta, TQT_SLOT( slotFrameWizard() ),
- ac, "tag_frame_wizard" );
+ TQT_TQOBJECT(m_quanta), TQT_SLOT( slotFrameWizard() ),
+ TQT_TQOBJECT(ac), "tag_frame_wizard" );
(void) new KAction( i18n( "Paste &HTML Quoted" ), "editpaste", 0,
- m_quanta, TQT_SLOT( slotPasteHTMLQuoted() ),
- ac, "edit_paste_html_quoted" );
+ TQT_TQOBJECT(m_quanta), TQT_SLOT( slotPasteHTMLQuoted() ),
+ TQT_TQOBJECT(ac), "edit_paste_html_quoted" );
(void) new KAction( i18n( "Paste &URL Encoded" ), "editpaste", 0,
- m_quanta, TQT_SLOT( slotPasteURLEncoded() ),
- ac, "edit_paste_url_encoded" );
+ TQT_TQOBJECT(m_quanta), TQT_SLOT( slotPasteURLEncoded() ),
+ TQT_TQOBJECT(ac), "edit_paste_url_encoded" );
(void) new KAction( i18n( "Insert CSS..." ),"css", 0,
- m_quanta, TQT_SLOT( slotInsertCSS() ),
- ac, "insert_css" );
+ TQT_TQOBJECT(m_quanta), TQT_SLOT( slotInsertCSS() ),
+ TQT_TQOBJECT(ac), "insert_css" );
// special-character combo
KAction* char_action = new KAction(
i18n( "Insert Special Character" ), "charset", 0,
- ac, "insert_char" );
+ TQT_TQOBJECT(ac), "insert_char" );
connect( char_action, TQT_SIGNAL(activated()),
- m_quanta, TQT_SLOT(slotInsertChar()) );
+ TQT_TQOBJECT(m_quanta), TQT_SLOT(slotInsertChar()) );
- connect(m_quanta, TQT_SIGNAL(eventHappened(const TQString&, const TQString&, const TQString& )), QPEvents::ref(m_quanta), TQT_SLOT(slotEventHappened(const TQString&, const TQString&, const TQString& )));
- connect(m_quanta->doc(), TQT_SIGNAL(eventHappened(const TQString&, const TQString&, const TQString& )), QPEvents::ref(m_quanta), TQT_SLOT(slotEventHappened(const TQString&, const TQString&, const TQString& )));
- connect(ViewManager::ref(), TQT_SIGNAL(eventHappened(const TQString&, const TQString&, const TQString& )), QPEvents::ref(m_quanta), TQT_SLOT(slotEventHappened(const TQString&, const TQString&, const TQString& )));
+ connect(m_quanta, TQT_SIGNAL(eventHappened(const TQString&, const TQString&, const TQString& )), TQPEvents::ref(TQT_TQOBJECT(m_quanta)), TQT_SLOT(slotEventHappened(const TQString&, const TQString&, const TQString& )));
+ connect(m_quanta->doc(), TQT_SIGNAL(eventHappened(const TQString&, const TQString&, const TQString& )), TQPEvents::ref(TQT_TQOBJECT(m_quanta)), TQT_SLOT(slotEventHappened(const TQString&, const TQString&, const TQString& )));
+ connect(ViewManager::ref(), TQT_SIGNAL(eventHappened(const TQString&, const TQString&, const TQString& )), TQPEvents::ref(TQT_TQOBJECT(m_quanta)), TQT_SLOT(slotEventHappened(const TQString&, const TQString&, const TQString& )));
- QuantaBookmarks *m_bookmarks = new QuantaBookmarks(ViewManager::ref(m_quanta));
+ QuantaBookmarks *m_bookmarks = new QuantaBookmarks(ViewManager::ref(TQT_TQOBJECT(m_quanta)));
m_bookmarks->createActions(ac);
- connect(m_bookmarks, TQT_SIGNAL(gotoFileAndLine(const TQString&, int, int)), m_quanta, TQT_SLOT(gotoFileAndLine(const TQString&, int, int)));
+ connect(m_bookmarks, TQT_SIGNAL(gotoFileAndLine(const TQString&, int, int)), TQT_TQOBJECT(m_quanta), TQT_SLOT(gotoFileAndLine(const TQString&, int, int)));
}
/** Initialize the plugin architecture. */
@@ -1098,9 +1098,9 @@ void QuantaInit::initPlugins()
m_quanta->m_pluginInterface = QuantaPluginInterface::ref(m_quanta);
connect(m_quanta->m_pluginInterface, TQT_SIGNAL(hideSplash()),
- m_quanta, TQT_SLOT(slotHideSplash()));
+ TQT_TQOBJECT(m_quanta), TQT_SLOT(slotHideSplash()));
connect(m_quanta->m_pluginInterface, TQT_SIGNAL(statusMsg(const TQString &)),
- m_quanta, TQT_SLOT(slotStatusMsg(const TQString & )));
+ TQT_TQOBJECT(m_quanta), TQT_SLOT(slotStatusMsg(const TQString & )));
m_quanta->m_pluginInterface->readConfig();
if (!m_quanta->m_pluginInterface->pluginAvailable("KFileReplace"))
@@ -1140,7 +1140,7 @@ void QuantaInit::recoverCrashed(TQStringList& recoveredFileNameList)
{
// when quanta crashes and file autoreloading option is on
// then if user restarts quanta, the backup copies will reload
- TQString backedUpFileName = (*backedUpUrlsIt).left((*backedUpUrlsIt).findRev(".")); //the filename without the PID
+ TQString backedUpFileName = (*backedUpUrlsIt).left((*backedUpUrlsIt).tqfindRev(".")); //the filename without the PID
bool notFound;
TQString autosavedPath = searchPathListEntry(backedUpFileName, autosavedUrlsList, notFound);
if (!autosavedPath.isEmpty()) //the current item was autosaved and is not in use by another Quanta
@@ -1180,9 +1180,9 @@ void QuantaInit::recoverCrashed(TQStringList& recoveredFileNameList)
"Backup file size: <b>%4</b><br>"
"Backup created on: <b>%5</b><br><br>"
"</qt>")
- .arg(originalVersion.prettyURL(0, KURL::StripFileProtocol ))
- .arg(KIO::convertSize(origSize)).arg(origTime)
- .arg(KIO::convertSize(backupSize)).arg(backupTime));
+ .tqarg(originalVersion.prettyURL(0, KURL::StripFileProtocol ))
+ .tqarg(KIO::convertSize(origSize)).tqarg(origTime)
+ .tqarg(KIO::convertSize(backupSize)).tqarg(backupTime));
w->buttonLoad->setText(i18n("&Restore the file from backup"));
w->buttonIgnore->setText(i18n("Do &not restore the file from backup"));
delete w->warningLabel;
@@ -1199,9 +1199,9 @@ void QuantaInit::recoverCrashed(TQStringList& recoveredFileNameList)
//backup the current version and restore it from the autosaved backup
KURL backupURL = originalVersion;
backupURL.setPath(backupURL.path() + "." + TQString::number(getpid(),10) + ".backup");
- QExtFileInfo::copy(originalVersion, backupURL, -1, true, false, m_quanta);
- QExtFileInfo::copy(autosavedVersion, originalVersion, -1, true, false, m_quanta);
- //we save a list of autosaved file names so "KQApplicationPrivate::init()"
+ TQExtFileInfo::copy(originalVersion, backupURL, -1, true, false, m_quanta);
+ TQExtFileInfo::copy(autosavedVersion, originalVersion, -1, true, false, m_quanta);
+ //we save a list of autosaved file names so "KTQApplicationPrivate::init()"
//can open them. If autosavedVersion.path().right(1) == "U" then we are recovering
//an untitled document
if(isUntitledDocument)
@@ -1285,11 +1285,11 @@ void QuantaInit::recoverCrashed(TQStringList& recoveredFileNameList)
*(execCommand) << TQStringList::split(" ",cmd);
connect(execCommand, TQT_SIGNAL(receivedStdout(KProcess*,char*,int)),
- m_quanta, TQT_SLOT(slotGetScriptOutput(KProcess*,char*,int)));
+ TQT_TQOBJECT(m_quanta), TQT_SLOT(slotGetScriptOutput(KProcess*,char*,int)));
connect(execCommand, TQT_SIGNAL(receivedStderr(KProcess*,char*,int)),
- m_quanta, TQT_SLOT(slotGetScriptError(KProcess*,char*,int)));
+ TQT_TQOBJECT(m_quanta), TQT_SLOT(slotGetScriptError(KProcess*,char*,int)));
connect(execCommand, TQT_SIGNAL(processExited(KProcess*)),
- m_quanta, TQT_SLOT(slotProcessExited(KProcess*)));
+ TQT_TQOBJECT(m_quanta), TQT_SLOT(slotProcessExited(KProcess*)));
if (!execCommand->start(KProcess::NotifyOnExit,KProcess::All))
{
@@ -1300,9 +1300,9 @@ void QuantaInit::recoverCrashed(TQStringList& recoveredFileNameList)
//To avoid lock-ups, start a timer.
TQTimer *timer = new TQTimer(m_quanta);
connect(timer, TQT_SIGNAL(timeout()),
- m_quanta, TQT_SLOT(slotProcessTimeout()));
+ TQT_TQOBJECT(m_quanta), TQT_SLOT(slotProcessTimeout()));
timer->start(180*1000, true);
- QExtFileInfo internalFileInfo;
+ TQExtFileInfo internalFileInfo;
m_quanta->m_loopStarted = true;
internalFileInfo.enter_loop();
delete timer;
@@ -1341,14 +1341,14 @@ void QuantaInit::recoverCrashed(TQStringList& recoveredFileNameList)
}
}
- return TQString::null;
+ return TQString();
}
/** Retrieves hashed path from the name of a backup file */
TQString QuantaInit::retrieveHashedPath(const TQString& filename)
{
- int lastPoint = filename.findRev(".");
- int Ppos = filename.find("P", lastPoint);
+ int lastPoint = filename.tqfindRev(".");
+ int Ppos = filename.tqfind("P", lastPoint);
return filename.mid(lastPoint + 1,
Ppos - lastPoint);
}
@@ -1357,11 +1357,11 @@ TQString QuantaInit::retrieveHashedPath(const TQString& filename)
/** Retrieves PID from the name of a backup file */
TQString QuantaInit::retrievePID(const TQString& filename)
{
- TQString strPID = TQString::null;
- strPID = filename.mid(filename.findRev("P") + 1);
+ TQString strPID = TQString();
+ strPID = filename.mid(filename.tqfindRev("P") + 1);
if (strPID.isEmpty())
- strPID = filename.mid(filename.findRev("N") + 1);
+ strPID = filename.mid(filename.tqfindRev("N") + 1);
if (strPID.endsWith("U"))
strPID = strPID.left(strPID.length() - 1);
@@ -1460,7 +1460,7 @@ void QuantaInit::checkRuntimeDependencies()
dependencies.append(dependency);
- dependency.name = "KLinkStatus";
+ dependency.name = "KLinktqStatus";
dependency.execName = "Link Checker";
dependency.url = "http://kde-apps.org/content/show.php?content=12318";
dependency.description = i18n("link validity checking");
@@ -1482,13 +1482,13 @@ void QuantaInit::checkRuntimeDependencies()
if (dependency.type == Dependency::Executable)
{
if (KStandardDirs::findExe(dependency.execName).isNull())
- errorStr += TQString(stdErrorMsg).arg(dependency.name).arg(dependency.url).arg(dependency.description);
+ errorStr += TQString(stdErrorMsg).tqarg(dependency.name).tqarg(dependency.url).tqarg(dependency.description);
} else
if (dependency.type == Dependency::Plugin)
{
if (!QuantaPlugin::validatePlugin(m_quanta->m_pluginInterface->plugin(dependency.execName)))
- errorStr += TQString(stdErrorMsg).arg(dependency.name).arg(dependency.url).arg(dependency.description);
+ errorStr += TQString(stdErrorMsg).tqarg(dependency.name).tqarg(dependency.url).tqarg(dependency.description);
}
}
@@ -1500,14 +1500,14 @@ void QuantaInit::checkRuntimeDependencies()
&appId);
if (appId.isEmpty())
{
- errorStr += TQString(stdErrorMsg).arg("Cervisia (cvsservice)").arg("http://www.kde.org/apps/cervisia").arg(i18n("integrated CVS management"));
+ errorStr += TQString(stdErrorMsg).tqarg("Cervisia (cvsservice)").tqarg("http://www.kde.org/apps/cervisia").tqarg(i18n("integrated CVS management"));
} else
{
CVSService::ref(m_quanta->actionCollection())->setAppId(appId);
connect(CVSService::ref(), TQT_SIGNAL(clearMessages()), m_quanta->m_messageOutput, TQT_SLOT(clear()));
connect(CVSService::ref(), TQT_SIGNAL(showMessage(const TQString&, bool)), m_quanta->m_messageOutput, TQT_SLOT(showMessage(const TQString&, bool)));
- connect(CVSService::ref(), TQT_SIGNAL(commandExecuted(const TQString&, const TQStringList&)), m_quanta, TQT_SLOT(slotCVSCommandExecuted(const TQString&, const TQStringList&)));
- //connect(CVSService::ref(), TQT_SIGNAL(statusMsg(const TQString &)), m_quanta, TQT_SLOT(slotStatusMsg(const TQString & )));
+ connect(CVSService::ref(), TQT_SIGNAL(commandExecuted(const TQString&, const TQStringList&)), TQT_TQOBJECT(m_quanta), TQT_SLOT(slotCVSCommandExecuted(const TQString&, const TQStringList&)));
+ //connect(CVSService::ref(), TQT_SIGNAL(statusMsg(const TQString &)), TQT_TQOBJECT(m_quanta), TQT_SLOT(slotStatusMsg(const TQString & )));
m_quanta->fTab->plugCVSMenu();
pTab->plugCVSMenu();
}
@@ -1569,7 +1569,7 @@ void QuantaInit::readAbbreviations()
TQStringList::Iterator it;
for (it = filenameList.begin(); it != filenameList.end(); ++it)
{
- int pos =(*it).find('|');
+ int pos =(*it).tqfind('|');
TQString dirName = (*it).mid(pos + 1);
TQString dtepName = (*it).left(pos);
KURL dirURL(dirName);
@@ -1622,7 +1622,7 @@ int QuantaInit::runningQuantas()
int i = 0;
for (QCStringList::iterator it = list.begin(); it != list.end(); ++it)
{
- if (TQString(*it).startsWith("quanta", false))
+ if (TQString(*it).tqstartsWith("quanta", false))
++i;
}
return i;