summaryrefslogtreecommitdiffstats
path: root/quanta
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2025-01-20 19:39:12 +0900
committerMichele Calgaro <[email protected]>2025-01-20 21:02:39 +0900
commitf989443912807e83607d0bb08a6ff7889632cf17 (patch)
treed58e2ad3c6caae9e0105b30c6a80b0c2cd17c0b4 /quanta
parentba0eac4558cc2044486988c42039afa274a7db87 (diff)
downloadtdewebdev-f989443912807e83607d0bb08a6ff7889632cf17.tar.gz
tdewebdev-f989443912807e83607d0bb08a6ff7889632cf17.zip
Use tdeApp
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'quanta')
-rw-r--r--quanta/components/csseditor/csseditor.cpp2
-rw-r--r--quanta/components/tableeditor/tableeditor.cpp2
-rw-r--r--quanta/data/templates/pages/docbook/tde-doc-template.docbook13
-rw-r--r--quanta/messages/messageoutput.cpp2
-rw-r--r--quanta/parsers/parser.cpp2
-rw-r--r--quanta/parts/kafka/undoredo.cpp2
-rw-r--r--quanta/project/project.cpp8
-rw-r--r--quanta/project/projectprivate.cpp4
-rw-r--r--quanta/src/document.cpp2
-rw-r--r--quanta/src/dtds.cpp4
-rw-r--r--quanta/src/kqapp.cpp4
-rw-r--r--quanta/src/quanta.cpp10
-rw-r--r--quanta/src/quanta_init.cpp2
-rw-r--r--quanta/treeviews/basetreeview.cpp2
-rw-r--r--quanta/treeviews/projecttreeview.cpp2
-rw-r--r--quanta/treeviews/scripttreeview.cpp4
-rw-r--r--quanta/treeviews/structtreeview.cpp2
-rw-r--r--quanta/treeviews/templatestreeview.cpp4
-rw-r--r--quanta/utility/qpevents.cpp2
-rw-r--r--quanta/utility/quantabookmarks.cpp2
-rw-r--r--quanta/utility/quantacommon.cpp2
-rw-r--r--quanta/utility/tagaction.cpp4
-rw-r--r--quanta/utility/tagactionset.cpp2
23 files changed, 39 insertions, 44 deletions
diff --git a/quanta/components/csseditor/csseditor.cpp b/quanta/components/csseditor/csseditor.cpp
index 34ea4a23..47379268 100644
--- a/quanta/components/csseditor/csseditor.cpp
+++ b/quanta/components/csseditor/csseditor.cpp
@@ -183,7 +183,7 @@ void CSSEditor::hidePreviewer(){
void CSSEditor::initialize(){
- m_config = kapp->config();
+ m_config = tdeApp->config();
connect(pbOk, TQ_SIGNAL(clicked()), this, TQ_SLOT(toggleShortendForm()));
m_config->setGroup("CSSEditor Options");
SHckb->setChecked(m_config->readBoolEntry("Shorthand form enabled",false));
diff --git a/quanta/components/tableeditor/tableeditor.cpp b/quanta/components/tableeditor/tableeditor.cpp
index 96c5ccf8..08fe60b1 100644
--- a/quanta/components/tableeditor/tableeditor.cpp
+++ b/quanta/components/tableeditor/tableeditor.cpp
@@ -1242,7 +1242,7 @@ void TableEditor::slotEditChildTable()
void TableEditor::slotHelpInvoked()
{
- kapp->invokeHelp("table-editor","quanta");
+ tdeApp->invokeHelp("table-editor","quanta");
}
void TableEditor::configureTable( TQTable * table )
diff --git a/quanta/data/templates/pages/docbook/tde-doc-template.docbook b/quanta/data/templates/pages/docbook/tde-doc-template.docbook
index 1a45a424..5f90131d 100644
--- a/quanta/data/templates/pages/docbook/tde-doc-template.docbook
+++ b/quanta/data/templates/pages/docbook/tde-doc-template.docbook
@@ -138,7 +138,7 @@ any problems or feature requests to the &tde; mailing lists.
</para>
</chapter>
-<chapter id="using-kapp">
+<chapter id="using-tdeApp">
<title>Using &tdemyapplication;</title>
<!-- This chapter should tell the user how to use your app. You should use as
@@ -167,7 +167,7 @@ patent issues. -->
</para>
-<sect1 id="kapp-features">
+<sect1 id="tdeApp-features">
<title>More &tdemyapplication; features</title>
<para>It slices! It dices! and it comes with a free toaster!</para>
@@ -198,7 +198,7 @@ Also include any keys that have a special function but have no equivalent in the
menus or toolbars. This may not be necessary for small apps or apps with no tool
or menu bars. -->
-<sect1 id="kapp-mainwindow">
+<sect1 id="tdeApp-mainwindow">
<title>The main &tdemyapplication; window</title>
<sect2>
@@ -486,7 +486,7 @@ Documentation Copyright &copy; 1999 George N. Ugnacious <email>gnu@trinitydeskto
<appendix id="installation">
<title>Installation</title>
-<sect1 id="getting-kapp">
+<sect1 id="getting-tdeApp">
<title>How to obtain &tdemyapplication;</title>
<!-- This first entity contains boiler plate for applications that are
@@ -518,11 +518,6 @@ about 5 megs of memory to run, but this may vary depending on your
platform and configuration.
</para>
-<para>
-All required libraries as well as &tdemyapplication; itself can be found
-on <ulink url="ftp://ftp.kapp.org">The &tdemyapplication; home page</ulink>.
-</para>
-
<!-- For a list of updates, you may refer to the application web site
or the ChangeLog file, or ... -->
<para>
diff --git a/quanta/messages/messageoutput.cpp b/quanta/messages/messageoutput.cpp
index 1abab263..6aae9836 100644
--- a/quanta/messages/messageoutput.cpp
+++ b/quanta/messages/messageoutput.cpp
@@ -146,7 +146,7 @@ TQString MessageOutput::content()
void MessageOutput::copyContent()
{
- kapp->clipboard()->setText(content(), TQClipboard::Clipboard);
+ tdeApp->clipboard()->setText(content(), TQClipboard::Clipboard);
}
void MessageOutput::saveContent()
diff --git a/quanta/parsers/parser.cpp b/quanta/parsers/parser.cpp
index f789f911..775fa3ec 100644
--- a/quanta/parsers/parser.cpp
+++ b/quanta/parsers/parser.cpp
@@ -1751,7 +1751,7 @@ void Parser::synchParseInDetail()
void Parser::setSAParserEnabled(bool enabled)
{
m_saParser->setParsingEnabled(enabled);
- //kapp->processEvents(TQEventLoop::ExcludeUserInput | TQEventLoop::ExcludeSocketNotifiers); //this makes sure that the parsing is really disabled
+ //tdeApp->processEvents(TQEventLoop::ExcludeUserInput | TQEventLoop::ExcludeSocketNotifiers); //this makes sure that the parsing is really disabled
}
#include "parser.moc"
diff --git a/quanta/parts/kafka/undoredo.cpp b/quanta/parts/kafka/undoredo.cpp
index 1e53946c..163eb24c 100644
--- a/quanta/parts/kafka/undoredo.cpp
+++ b/quanta/parts/kafka/undoredo.cpp
@@ -190,7 +190,7 @@ void undoRedo::addNewModifsSet(NodeModifsSet *modifs, int modifLocation, NodeSel
return;
}
- TDEConfig* config = kapp->config();
+ TDEConfig* config = tdeApp->config();
config->setGroup("Kate Document Defaults");
int indentationWidth = config->readNumEntry("Indentation Width", 4);
diff --git a/quanta/project/project.cpp b/quanta/project/project.cpp
index 48e13beb..32db4b11 100644
--- a/quanta/project/project.cpp
+++ b/quanta/project/project.cpp
@@ -997,7 +997,7 @@ KURL Project::projectBaseURL()
void Project::savePassword(const TQString &entry, const TQString &passwd, bool store)
{
d->m_passwdList[entry] = passwd;
- TDEConfig *config = kapp->config();
+ TDEConfig *config = tdeApp->config();
config->setGroup("Projects");
if (store)
{
@@ -1017,7 +1017,7 @@ TQString Project::password(const TQString &entry)
return d->m_passwdList[entry];
else
{
- TDEConfig *config = kapp->config();
+ TDEConfig *config = tdeApp->config();
config->setGroup("Projects");
TQString passwd = KStringHandler::obscure(config->readEntry(d->projectName + " | " + entry,""));
// TQString passwd = config->readEntry(d->projectName + " | " + entry,"");
@@ -1027,7 +1027,7 @@ TQString Project::password(const TQString &entry)
bool Project::passwordSaved(const TQString &entry)
{
- TDEConfig *config = kapp->config();
+ TDEConfig *config = tdeApp->config();
config->setGroup("Projects");
TQString passwd = KStringHandler::obscure(config->readEntry(d->projectName + " | " + entry,""));
// TQString passwd = config->readEntry(d->projectName + " | " + entry,"");
@@ -1281,7 +1281,7 @@ bool Project::queryClose()
d->adjustActions();
d->m_projectRecent->setCurrentItem(-1);
newStatus();
-// kapp->processEvents(TQEventLoop::ExcludeUserInput | TQEventLoop::ExcludeSocketNotifiers);
+// tdeApp->processEvents(TQEventLoop::ExcludeUserInput | TQEventLoop::ExcludeSocketNotifiers);
}
}
return canExit;
diff --git a/quanta/project/projectprivate.cpp b/quanta/project/projectprivate.cpp
index f1e13c5d..fe505ff7 100644
--- a/quanta/project/projectprivate.cpp
+++ b/quanta/project/projectprivate.cpp
@@ -1231,7 +1231,7 @@ void ProjectPrivate::slotProceedWithCloseProject(bool success)
adjustActions();
m_projectRecent->setCurrentItem(-1);
parent->newStatus();
- kapp->processEvents(TQEventLoop::ExcludeUserInput | TQEventLoop::ExcludeSocketNotifiers);
+ tdeApp->processEvents(TQEventLoop::ExcludeUserInput | TQEventLoop::ExcludeSocketNotifiers);
}
@@ -1669,7 +1669,7 @@ bool ProjectPrivate::uploadProjectFile()
void ProjectPrivate::slotNewProjectHelpClicked()
{
- kapp->invokeHelp("create-new-project-3-2", "quanta");
+ tdeApp->invokeHelp("create-new-project-3-2", "quanta");
}
#include "projectprivate.moc"
diff --git a/quanta/src/document.cpp b/quanta/src/document.cpp
index 49b3d195..8e667b3b 100644
--- a/quanta/src/document.cpp
+++ b/quanta/src/document.cpp
@@ -2793,7 +2793,7 @@ void Document::convertCase()
progressDlg.setLabel(i18n("Changing tag and attribute case. This may take some time, depending on the document complexity."));
progressDlg.setAllowCancel(false);
progressDlg.show();
- kapp->eventLoop()->processEvents( TQEventLoop::ExcludeUserInput | TQEventLoop::ExcludeSocketNotifiers);
+ tdeApp->eventLoop()->processEvents( TQEventLoop::ExcludeUserInput | TQEventLoop::ExcludeSocketNotifiers);
KProgress *pBar = progressDlg.progressBar();
pBar->setValue(0);
pBar->setTotalSteps(nodeNum);
diff --git a/quanta/src/dtds.cpp b/quanta/src/dtds.cpp
index bf257a0c..c9e8e83c 100644
--- a/quanta/src/dtds.cpp
+++ b/quanta/src/dtds.cpp
@@ -239,7 +239,7 @@ bool DTDs::readTagDir2(DTDStruct *dtd)
if (!TQFile::exists(dtd->fileName)) return false;
- kapp->setOverrideCursor( TQCursor(TQt::WaitCursor) );
+ tdeApp->setOverrideCursor( TQCursor(TQt::WaitCursor) );
TDEConfig *dtdConfig = new TDEConfig(dtd->fileName, true);
@@ -610,7 +610,7 @@ bool DTDs::readTagDir2(DTDStruct *dtd)
delete dtdConfig;
dtd->loaded = true;
resolveInherited(dtd);
- kapp->restoreOverrideCursor();
+ tdeApp->restoreOverrideCursor();
return true;
}
diff --git a/quanta/src/kqapp.cpp b/quanta/src/kqapp.cpp
index 5b0a8e2b..e4aab4b3 100644
--- a/quanta/src/kqapp.cpp
+++ b/quanta/src/kqapp.cpp
@@ -77,7 +77,7 @@ KQApplication::KQApplication()
}
else */
{
- TDEConfig *config = kapp->config();
+ TDEConfig *config = tdeApp->config();
config->setGroup("General Options");
int mdiMode = config->readNumEntry("MDI mode", KMdi::IDEAlMode);
TQString layout = config->readEntry("Window layout", "Default");
@@ -148,7 +148,7 @@ int KQUniqueApplication::newInstance()
else
{
splash = 0L;
- TDEConfig *config = kapp->config();
+ TDEConfig *config = tdeApp->config();
config->setGroup("General Options");
int mdiMode = config->readNumEntry("MDI mode", KMdi::IDEAlMode);
TQString layout = config->readEntry("Window layout", "Default");
diff --git a/quanta/src/quanta.cpp b/quanta/src/quanta.cpp
index 49457eda..de24c83a 100644
--- a/quanta/src/quanta.cpp
+++ b/quanta/src/quanta.cpp
@@ -217,7 +217,7 @@ QuantaApp::QuantaApp(int mdiMode) : DCOPObject("WindowManagerIf"), KMdiMainFrm(
userToolbarsCount = 0;
baseNode = 0L;
currentToolbarDTD = TQString();
- m_config=kapp->config();
+ m_config=tdeApp->config();
idleTimer = new TQTimer(this);
connect(idleTimer, TQ_SIGNAL(timeout()), TQ_SLOT(slotIdleTimerExpired()));
m_idleTimerEnabled = true;
@@ -230,7 +230,7 @@ QuantaApp::QuantaApp(int mdiMode) : DCOPObject("WindowManagerIf"), KMdiMainFrm(
kdWarning() << i18n("Quanta data files were not found.") << endl;
kdWarning() << i18n("You may have forgotten to run \"make install\", or your TDEDIR, TDEDIRS or PATH are not set correctly.") << endl;
kdWarning() << "***************************************************************************" << endl;
- TQTimer::singleShot(20, kapp, TQ_SLOT(quit()));
+ TQTimer::singleShot(20, tdeApp, TQ_SLOT(quit()));
return;
}
qConfig.enableDTDToolbar = true;
@@ -715,7 +715,7 @@ void QuantaApp::slotStatusMsg(const TQString &msg)
statusbarTimer->stop();
statusBar()->changeItem(" " + KStringHandler::cPixelSqueeze(msg, statusBar()->fontMetrics(), progressBar->x() - 20), IDS_STATUS);
statusBar()->repaint();
- kapp->processEvents(TQEventLoop::ExcludeUserInput | TQEventLoop::ExcludeSocketNotifiers);
+ tdeApp->processEvents(TQEventLoop::ExcludeUserInput | TQEventLoop::ExcludeSocketNotifiers);
statusbarTimer->start(10000, true);
}
@@ -2763,7 +2763,7 @@ void QuantaApp::slotSendToolbar()
return;
}
- kapp->invokeMailer(toStr, TQString(), TQString(), subjectStr, message, TQString(), toolbarFile);
+ tdeApp->invokeMailer(toStr, TQString(), TQString(), subjectStr, message, TQString(), toolbarFile);
}
delete mailDlg;
}
@@ -3619,7 +3619,7 @@ void QuantaApp::slotEmailDTEP()
return;
}
- kapp->invokeMailer(toStr, TQString(), TQString(), subjectStr, message, TQString(), dtdFile);
+ tdeApp->invokeMailer(toStr, TQString(), TQString(), subjectStr, message, TQString(), dtdFile);
}
delete mailDlg;
}
diff --git a/quanta/src/quanta_init.cpp b/quanta/src/quanta_init.cpp
index a3de6154..f9026761 100644
--- a/quanta/src/quanta_init.cpp
+++ b/quanta/src/quanta_init.cpp
@@ -1601,7 +1601,7 @@ void QuantaInit::readAbbreviations()
int QuantaInit::runningQuantas()
{
- QCStringList list = kapp->dcopClient()->registeredApplications();
+ QCStringList list = tdeApp->dcopClient()->registeredApplications();
int i = 0;
for (QCStringList::iterator it = list.begin(); it != list.end(); ++it)
{
diff --git a/quanta/treeviews/basetreeview.cpp b/quanta/treeviews/basetreeview.cpp
index e8929f84..cd5cb30b 100644
--- a/quanta/treeviews/basetreeview.cpp
+++ b/quanta/treeviews/basetreeview.cpp
@@ -265,7 +265,7 @@ void BaseTreeBranch::updateOpenFolder()
while (item) {
if (item->isDir() && item->isOpen()) {
updateDirectory( item->url() );
- kapp->processEvents(TQEventLoop::ExcludeUserInput | TQEventLoop::ExcludeSocketNotifiers);
+ tdeApp->processEvents(TQEventLoop::ExcludeUserInput | TQEventLoop::ExcludeSocketNotifiers);
// dive into the tree first
newItem = dynamic_cast<KFileTreeViewItem *>(item->firstChild());
if (newItem) {
diff --git a/quanta/treeviews/projecttreeview.cpp b/quanta/treeviews/projecttreeview.cpp
index 886bd511..1fad326c 100644
--- a/quanta/treeviews/projecttreeview.cpp
+++ b/quanta/treeviews/projecttreeview.cpp
@@ -179,7 +179,7 @@ ProjectTreeView::ProjectTreeView(TQWidget *parent, const char *name )
connect(this, TQ_SIGNAL(open(TQListViewItem *)),
this, TQ_SLOT(slotSelectFile(TQListViewItem *)));
- restoreLayout(kapp->config(), className());
+ restoreLayout(tdeApp->config(), className());
// the restored size of the first column might be too large for the current content
// we set it to 10 and the listview will adjust it to the size of the largest entry
setColumnWidth(0, 10);
diff --git a/quanta/treeviews/scripttreeview.cpp b/quanta/treeviews/scripttreeview.cpp
index bd951b06..7a062ee7 100644
--- a/quanta/treeviews/scripttreeview.cpp
+++ b/quanta/treeviews/scripttreeview.cpp
@@ -102,7 +102,7 @@ ScriptTreeView::ScriptTreeView(TQWidget *parent, const char *name )
connect(this, TQ_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint&)),
this, TQ_SLOT(slotMenu(TDEListView*, TQListViewItem*, const TQPoint&)));
- restoreLayout( kapp->config(), className() );
+ restoreLayout( tdeApp->config(), className() );
// the restored size of the first column might be too large for the current content
// we set it to 10 and the listview will adjust it to the size of the largest entry
setColumnWidth(0, 10);
@@ -293,7 +293,7 @@ void ScriptTreeView::slotSendScriptInMail()
delete mailDlg;
return;
}
- kapp->invokeMailer(toStr, TQString(), TQString(), subjectStr, message, TQString(), attachmentFile);
+ tdeApp->invokeMailer(toStr, TQString(), TQString(), subjectStr, message, TQString(), attachmentFile);
}
delete mailDlg;
diff --git a/quanta/treeviews/structtreeview.cpp b/quanta/treeviews/structtreeview.cpp
index a03f13a3..e11944cc 100644
--- a/quanta/treeviews/structtreeview.cpp
+++ b/quanta/treeviews/structtreeview.cpp
@@ -66,7 +66,7 @@ StructTreeView::StructTreeView(TQWidget *parent, const char *name )
lastTag = 0L;
groupsCount = 0;
followCursorFlag = true;
- config = kapp->config();
+ config = tdeApp->config();
topOpened = true;
useOpenLevelSetting = true;
diff --git a/quanta/treeviews/templatestreeview.cpp b/quanta/treeviews/templatestreeview.cpp
index 463a56e4..7096f87e 100644
--- a/quanta/treeviews/templatestreeview.cpp
+++ b/quanta/treeviews/templatestreeview.cpp
@@ -192,7 +192,7 @@ TemplatesTreeView::TemplatesTreeView(TDEMainWindow *parent, const char *name )
setSelectionMode(TQListView::Single);
setDragEnabled(true);
setSaveOpenFolder(true);
- restoreLayout( kapp->config(), className() );
+ restoreLayout( tdeApp->config(), className() );
// the restored size of the first column might be too large for the current content
// we set it to 10 and the listview will adjust it to the size of the largest entry
setColumnWidth(0, 10);
@@ -1006,7 +1006,7 @@ void TemplatesTreeView::slotSendInMail()
delete mailDlg;
return;
}
- kapp->invokeMailer(toStr, TQString(), TQString(), subjectStr, message, TQString(), attachmentFile);
+ tdeApp->invokeMailer(toStr, TQString(), TQString(), subjectStr, message, TQString(), attachmentFile);
}
delete mailDlg;
}
diff --git a/quanta/utility/qpevents.cpp b/quanta/utility/qpevents.cpp
index 87ec17d9..71eb79b3 100644
--- a/quanta/utility/qpevents.cpp
+++ b/quanta/utility/qpevents.cpp
@@ -260,7 +260,7 @@ bool QPEvents::handleEvent(const EventAction& ev)
TQString body;
for (uint i = 2; i < ev.arguments.count(); i++)
body += ev.arguments[i] + "\n";
- kapp->invokeMailer(member.name + "<" + member.email + ">", "", "", ev.arguments[1], body, "", TQStringList(), "");
+ tdeApp->invokeMailer(member.name + "<" + member.email + ">", "", "", ev.arguments[1], body, "", TQStringList(), "");
return true;
}
diff --git a/quanta/utility/quantabookmarks.cpp b/quanta/utility/quantabookmarks.cpp
index 87e953fb..b2b7d744 100644
--- a/quanta/utility/quantabookmarks.cpp
+++ b/quanta/utility/quantabookmarks.cpp
@@ -241,7 +241,7 @@ int QuantaBookmarks::insertBookmarks(TQPopupMenu& menu, Document *doc, bool inse
void QuantaBookmarks::bookmarkMenuAboutToShow()
{
- TDEConfig *config = kapp->config();
+ TDEConfig *config = tdeApp->config();
if (config->hasGroup("Kate View Defaults"))
{
config->setGroup("Kate View Defaults");
diff --git a/quanta/utility/quantacommon.cpp b/quanta/utility/quantacommon.cpp
index 44a6d5f0..5df1fdaf 100644
--- a/quanta/utility/quantacommon.cpp
+++ b/quanta/utility/quantacommon.cpp
@@ -593,7 +593,7 @@ DCOPReply QuantaCommon::callDCOPMethod(const TQString& interface, const TQString
{
TQStringList argumentList = TQStringList::split(",", arguments, true);
TQString app = "quanta";
- if (!kapp->inherits("TDEUniqueApplication"))
+ if (!tdeApp->inherits("TDEUniqueApplication"))
{
pid_t pid = ::getpid();
app += TQString("-%1").arg(pid);
diff --git a/quanta/utility/tagaction.cpp b/quanta/utility/tagaction.cpp
index 95f1dc3e..1f4bf8eb 100644
--- a/quanta/utility/tagaction.cpp
+++ b/quanta/utility/tagaction.cpp
@@ -336,7 +336,7 @@ bool TagAction::slotActionActivated(TDEAction::ActivationReason reason, TQt::But
}
pid_t pid = ::getpid();
- if (kapp->inherits("TDEUniqueApplication"))
+ if (tdeApp->inherits("TDEUniqueApplication"))
{
command.replace("%pid", TQString("unique %1").arg(pid));
} else
@@ -590,7 +590,7 @@ bool TagAction::slotActionActivated()
}
pid_t pid = ::getpid();
- if (kapp->inherits("TDEUniqueApplication"))
+ if (tdeApp->inherits("TDEUniqueApplication"))
{
command.replace("%pid", TQString("unique %1").arg(pid));
} else
diff --git a/quanta/utility/tagactionset.cpp b/quanta/utility/tagactionset.cpp
index 72c764ea..bfa29f09 100644
--- a/quanta/utility/tagactionset.cpp
+++ b/quanta/utility/tagactionset.cpp
@@ -186,7 +186,7 @@ void TagActionSet::slotApplySourceIndentation()
QuantaView* view = ViewManager::ref()->activeView();
NodeModifsSet *modifs = new NodeModifsSet();
- TDEConfig* config = kapp->config();
+ TDEConfig* config = tdeApp->config();
config->setGroup("Kate Document Defaults");
int indentationWidth = config->readNumEntry("Indentation Width", 4);