Rename TDEApplication::kApplication() to TDEApplication::tdeApplication() and kapp to tdeApp.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/337/head
Michele Calgaro 6 months ago
parent 180ceca8bb
commit 0b81a0c481
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -75,7 +75,7 @@ code where we want to place the breakpoint. An external editor is of great
use at this point. With the list command we can select the source file we use at this point. With the list command we can select the source file we
are interested in and verify that we have found the correct source line: are interested in and verify that we have found the correct source line:
(gdb) list kapp.cpp:220 (gdb) list tdeApp.cpp:220
215 parseCommandLine( argc, argv ); 215 parseCommandLine( argc, argv );
216 } 216 }
217 217
@ -87,7 +87,7 @@ are interested in and verify that we have found the correct source line:
223 { 223 {
224 if (!GUIenabled) 224 if (!GUIenabled)
(gdb) break 224 (gdb) break 224
Breakpoint 2 at 0x4048aa7e: file kapp.cpp, line 224. Breakpoint 2 at 0x4048aa7e: file tdeApp.cpp, line 224.
(gdb) (gdb)
We can now continue the execution of kedit. Execution will stop when it hits We can now continue the execution of kedit. Execution will stop when it hits
@ -100,7 +100,7 @@ Qt: gdb: -nograb added to command-line options.
Use the -dograb option to enforce grabbing. Use the -dograb option to enforce grabbing.
Breakpoint 2, TDEApplication::TDEApplication (this=0xbffff6a8, allowStyles=true, Breakpoint 2, TDEApplication::TDEApplication (this=0xbffff6a8, allowStyles=true,
GUIenabled=true) at kapp.cpp:224 GUIenabled=true) at tdeApp.cpp:224
224 if (!GUIenabled) 224 if (!GUIenabled)
(gdb) (gdb)

@ -12,7 +12,7 @@ that we would like to make for the next binary incompatible release.
- Move all utility functions away from TDEApplication. TBD: Make TDEApplication - Move all utility functions away from TDEApplication. TBD: Make TDEApplication
a very thin wrapper around QApplication. Ideally, TDEApplication should go a very thin wrapper around QApplication. Ideally, TDEApplication should go
away completely. The kapp pointer references everywhere must die. Find a away completely. The tdeApp pointer references everywhere must die. Find a
way to make that possible way to make that possible
- Remove all KDE_NO_COMPAT from the KDE2 -> KDE3 port before adding new ones for KDE4. - Remove all KDE_NO_COMPAT from the KDE2 -> KDE3 port before adding new ones for KDE4.
@ -35,11 +35,11 @@ that we would like to make for the next binary incompatible release.
- Make it possible to create a KSystemTray without a TDEMainWindow and instead lazily - Make it possible to create a KSystemTray without a TDEMainWindow and instead lazily
create the main window on demand. create the main window on demand.
- Make KSystemTray's Quit option in the context menu call kapp->quit() instead of - Make KSystemTray's Quit option in the context menu call tdeApp->quit() instead of
closing all windows, so apps that save their window state on exit don't need closing all windows, so apps that save their window state on exit don't need
workarounds to detect a window close caused by the tray rather than the user. workarounds to detect a window close caused by the tray rather than the user.
- Make KSystemTray add its own reference to KApp, so tray apps that adhere to the - Make KSystemTray add its own reference to TDEApp, so tray apps that adhere to the
style guide can safely close their main window without having to worry about style guide can safely close their main window without having to worry about
the app quitting instead. the app quitting instead.

@ -74,7 +74,7 @@ bool KAudioConverter::setup(int samplingRate)
void KAudioConverter::slotMimeType(const TQString &mimeType) void KAudioConverter::slotMimeType(const TQString &mimeType)
{ {
m_mimeType = mimeType; m_mimeType = mimeType;
kapp->exit_loop(); tdeApp->exit_loop();
} }
void KAudioConverter::requestPlayObject(const KURL &url) void KAudioConverter::requestPlayObject(const KURL &url)
@ -94,7 +94,7 @@ void KAudioConverter::requestPlayObject(const KURL &url)
inputStream.streamStart(); inputStream.streamStart();
// ugly hacks.. :/ // ugly hacks.. :/
kapp->enter_loop(); tdeApp->enter_loop();
queryInterface = "Arts::StreamPlayObject"; queryInterface = "Arts::StreamPlayObject";
} }

@ -298,7 +298,7 @@ void KNotify::loadConfig() {
void KNotify::reconfigure() void KNotify::reconfigure()
{ {
kapp->config()->reparseConfiguration(); tdeApp->config()->reparseConfiguration();
loadConfig(); loadConfig();
// clear loaded config files // clear loaded config files
@ -756,12 +756,12 @@ void KNotify::soundFinished( int eventId, PlayingFinishedStatus reason )
WId KNotify::checkWinId( const TQString &appName, WId senderWinId ) WId KNotify::checkWinId( const TQString &appName, WId senderWinId )
{ {
if ( senderWinId == 0 ) { if ( senderWinId == 0 ) {
TQCString senderId = kapp->dcopClient()->senderId(); TQCString senderId = tdeApp->dcopClient()->senderId();
TQCString compare = (appName + "-mainwindow").latin1(); TQCString compare = (appName + "-mainwindow").latin1();
int len = compare.length(); int len = compare.length();
// kdDebug() << "notifyByPassivePopup: appName=" << appName << " sender=" << senderId << endl; // kdDebug() << "notifyByPassivePopup: appName=" << appName << " sender=" << senderId << endl;
QCStringList objs = kapp->dcopClient()->remoteObjects( senderId ); QCStringList objs = tdeApp->dcopClient()->remoteObjects( senderId );
for (QCStringList::ConstIterator it = objs.begin(); it != objs.end(); ++it ) { for (QCStringList::ConstIterator it = objs.begin(); it != objs.end(); ++it ) {
TQCString obj( *it ); TQCString obj( *it );
if ( obj.left(len) == compare) { if ( obj.left(len) == compare) {
@ -769,7 +769,7 @@ WId KNotify::checkWinId( const TQString &appName, WId senderWinId )
TQCString replyType; TQCString replyType;
TQByteArray data, replyData; TQByteArray data, replyData;
if ( kapp->dcopClient()->call(senderId, obj, "getWinID()", data, replyType, replyData) ) { if ( tdeApp->dcopClient()->call(senderId, obj, "getWinID()", data, replyType, replyData) ) {
TQDataStream answer(replyData, IO_ReadOnly); TQDataStream answer(replyData, IO_ReadOnly);
if (replyType == "int") { if (replyType == "int") {
answer >> senderWinId; answer >> senderWinId;

@ -98,7 +98,7 @@ case:
* returns the appId that is actually registered, which _may_ be * returns the appId that is actually registered, which _may_ be
* different from what you passed * different from what you passed
*/ */
appId = client->registerAs(kApp->name()); appId = client->registerAs(tdeApp->name());
If you never retrieve the DCOPClient pointer from TDEApplication, the If you never retrieve the DCOPClient pointer from TDEApplication, the
object will not be created and thus there will be no memory overhead. object will not be created and thus there will be no memory overhead.
@ -111,8 +111,8 @@ call DCOPClient::registerAs() with the new name.
TDEUniqueApplication automatically registers itself to DCOP. If you TDEUniqueApplication automatically registers itself to DCOP. If you
are using TDEUniqueApplication you should not attach or register are using TDEUniqueApplication you should not attach or register
yourself, this is already done. The appId is by definition yourself, this is already done. The appId is by definition
equal to kapp->name(). You can retrieve the registered DCOP client equal to tdeApp->name(). You can retrieve the registered DCOP client
by calling kapp->dcopClient(). by calling tdeApp->dcopClient().
Sending Data to a Remote Application: Sending Data to a Remote Application:
------------------------------------- -------------------------------------
@ -247,7 +247,7 @@ bool BarObject::process(const QCString &fun, const QByteArray &data,
TQString result = self->doIt(i); TQString result = self->doIt(i);
DCOPClientTransaction *myTransaction; DCOPClientTransaction *myTransaction;
myTransaction = kapp->dcopClient()->beginTransaction(); myTransaction = tdeApp->dcopClient()->beginTransaction();
// start processing... // start processing...
// Calls slotProcessingDone when finished. // Calls slotProcessingDone when finished.
@ -266,7 +266,7 @@ slotProcessingDone(DCOPClientTransaction *myTransaction, const TQString &result)
QByteArray replyData; QByteArray replyData;
QDataStream reply(replyData, IO_WriteOnly); QDataStream reply(replyData, IO_WriteOnly);
reply << result; reply << result;
kapp->dcopClient()->endTransaction( myTransaction, replyType, replyData ); tdeApp->dcopClient()->endTransaction( myTransaction, replyType, replyData );
} }
DCOP Signals DCOP Signals
@ -315,7 +315,7 @@ that an application that was started via TDELauncher terminates.
QByteArray params; QByteArray params;
QDataStream stream(params, IO_WriteOnly); QDataStream stream(params, IO_WriteOnly);
stream << pid; stream << pid;
kapp->dcopClient()->emitDCOPSignal("clientDied(pid_t)", params); tdeApp->dcopClient()->emitDCOPSignal("clientDied(pid_t)", params);
The task manager of the TDE panel connects to this signal. It uses an The task manager of the TDE panel connects to this signal. It uses an
anonymous connection (it doesn't require that the signal is being emitted anonymous connection (it doesn't require that the signal is being emitted

@ -59,7 +59,7 @@ DCOPClient::registerAs(const QCString &name) to do so. In the simple
case: case:
\code \code
appId = client->registerAs(kapp->name()); appId = client->registerAs(tdeApp->name());
\endcode \endcode
If you never retrieve the DCOPClient pointer from TDEApplication, the If you never retrieve the DCOPClient pointer from TDEApplication, the
@ -73,8 +73,8 @@ call DCOPClient::registerAs() with the new name.
TDEUniqueApplication automatically registers itself to DCOP. If you TDEUniqueApplication automatically registers itself to DCOP. If you
are using TDEUniqueApplication you should not attach or register are using TDEUniqueApplication you should not attach or register
yourself, this is already done. The appId is by definition yourself, this is already done. The appId is by definition
equal to \p kapp->name(). You can retrieve the registered DCOP client equal to \p tdeApp->name(). You can retrieve the registered DCOP client
by calling \p kapp->dcopClient(). by calling \p tdeApp->dcopClient().
\section sending_data Sending Data to a Remote Application: \section sending_data Sending Data to a Remote Application:
@ -208,7 +208,7 @@ bool BarObject::process(const QCString &fun, const QByteArray &data,
TQString result = self->doIt(i); TQString result = self->doIt(i);
DCOPClientTransaction *myTransaction; DCOPClientTransaction *myTransaction;
myTransaction = kapp->dcopClient()->beginTransaction(); myTransaction = tdeApp->dcopClient()->beginTransaction();
// start processing... // start processing...
// Calls slotProcessingDone when finished. // Calls slotProcessingDone when finished.
@ -227,7 +227,7 @@ slotProcessingDone(DCOPClientTransaction *myTransaction, const TQString &result)
QByteArray replyData; QByteArray replyData;
QDataStream reply(replyData, IO_WriteOnly); QDataStream reply(replyData, IO_WriteOnly);
reply << result; reply << result;
kapp->dcopClient()->endTransaction( myTransaction, replyType, replyData ); tdeApp->dcopClient()->endTransaction( myTransaction, replyType, replyData );
} }
\endcode \endcode
@ -548,7 +548,7 @@ that an application that was started via TDELauncher terminates:
QByteArray params; QByteArray params;
QDataStream stream(params, IO_WriteOnly); QDataStream stream(params, IO_WriteOnly);
stream << pid; stream << pid;
kapp->dcopClient()->emitDCOPSignal("clientDied(pid_t)", params); tdeApp->dcopClient()->emitDCOPSignal("clientDied(pid_t)", params);
\endcode \endcode
The task manager of the Trinity panel connects to this signal. It uses an The task manager of the Trinity panel connects to this signal. It uses an

@ -86,7 +86,7 @@ DomainBrowser::DomainBrowser(TQObject *parent) : TQObject(parent)
d->m_domains+="local."; d->m_domains+="local.";
d->m_browseLAN=true; d->m_browseLAN=true;
} }
connect(TDEApplication::kApplication(),TQ_SIGNAL(kipcMessage(int,int)),this, connect(tdeApp,TQ_SIGNAL(kipcMessage(int,int)),this,
TQ_SLOT(domainListChanged(int,int))); TQ_SLOT(domainListChanged(int,int)));
} }

@ -306,11 +306,11 @@
* *
@verbatim @verbatim
// Register DCOP client. // Register DCOP client.
DCOPClient *client = kapp->dcopClient(); DCOPClient *client = tdeApp->dcopClient();
if (!client->isRegistered()) if (!client->isRegistered())
{ {
client->attach(); client->attach();
client->registerAs(kapp->name()); client->registerAs(tdeApp->name());
} }
// Connect KTTSD DCOP signals to our slots. // Connect KTTSD DCOP signals to our slots.
connectDCOPSignal("kttsd", "KSpeech", connectDCOPSignal("kttsd", "KSpeech",

@ -492,7 +492,7 @@ void KIMProxy::chatWithContact( const TQString& uid )
{ {
if ( KIMIface_stub* s = stubForUid( uid ) ) if ( KIMIface_stub* s = stubForUid( uid ) )
{ {
kapp->updateRemoteUserTimestamp( s->app() ); tdeApp->updateRemoteUserTimestamp( s->app() );
s->chatWithContact( uid ); s->chatWithContact( uid );
} }
} }
@ -505,7 +505,7 @@ void KIMProxy::messageContact( const TQString& uid, const TQString& message )
{ {
if ( KIMIface_stub* s = stubForUid( uid ) ) if ( KIMIface_stub* s = stubForUid( uid ) )
{ {
kapp->updateRemoteUserTimestamp( s->app() ); tdeApp->updateRemoteUserTimestamp( s->app() );
s->messageContact( uid, message ); s->messageContact( uid, message );
} }
} }
@ -521,7 +521,7 @@ void KIMProxy::sendFile(const TQString &uid, const KURL &sourceURL, const TQStri
{ {
if ( it.current()->canReceiveFiles( uid ) ) if ( it.current()->canReceiveFiles( uid ) )
{ {
kapp->updateRemoteUserTimestamp( it.current()->app() ); tdeApp->updateRemoteUserTimestamp( it.current()->app() );
it.current()->sendFile( uid, sourceURL, altFileName, fileSize ); it.current()->sendFile( uid, sourceURL, altFileName, fileSize );
break; break;
} }

@ -50,7 +50,7 @@ TQString ShellScript::script() const
void ShellScript::setScript( const TQString &scriptFile ) void ShellScript::setScript( const TQString &scriptFile )
{ {
m_scriptName = scriptFile; m_scriptName = scriptFile;
*m_script << "sh" << m_scriptName << kapp->dcopClient()->appId(); *m_script << "sh" << m_scriptName << tdeApp->dcopClient()->appId();
} }
void ShellScript::setScript( const TQString &, const TQString & ) void ShellScript::setScript( const TQString &, const TQString & )

@ -56,7 +56,7 @@ TDESelectAction * ScriptLoader::getScripts()
// Get the available scripts for this application. // Get the available scripts for this application.
TQStringList pluginList = ""; TQStringList pluginList = "";
// Find plugins // Find plugins
TQString searchPath = kapp->name(); TQString searchPath = tdeApp->name();
searchPath += "/scripts/"; searchPath += "/scripts/";
TQDir d(locate( "data", searchPath)); TQDir d(locate( "data", searchPath));
kdDebug() << "loading plugin from " << locate( "data", searchPath) << endl; kdDebug() << "loading plugin from " << locate( "data", searchPath) << endl;

@ -51,7 +51,7 @@ bool KScriptManager::addScript( const TQString &scriptDesktopFile)
KDesktopFile desktop(scriptDesktopFile, true); KDesktopFile desktop(scriptDesktopFile, true);
m_scripts.insert(desktop.readName(), new ScriptInfo()); m_scripts.insert(desktop.readName(), new ScriptInfo());
m_scripts[desktop.readName()]->scriptType = desktop.readType(); m_scripts[desktop.readName()]->scriptType = desktop.readType();
TQString localpath = TQString(kapp->name()) + "/scripts/" + desktop.readEntry("X-TDE-ScriptName", ""); TQString localpath = TQString(tdeApp->name()) + "/scripts/" + desktop.readEntry("X-TDE-ScriptName", "");
m_scripts[desktop.readName()]->scriptFile = locate("data", localpath); m_scripts[desktop.readName()]->scriptFile = locate("data", localpath);
// m_scripts[desktop.readName()]->scriptMethod = tmpScriptMethod; // m_scripts[desktop.readName()]->scriptMethod = tmpScriptMethod;
success = true; success = true;

@ -75,7 +75,7 @@ EditorChooser:: ~EditorChooser(){
} }
void EditorChooser::readAppSetting(const TQString& postfix){ void EditorChooser::readAppSetting(const TQString& postfix){
TDEConfig *cfg=kapp->config(); TDEConfig *cfg=tdeApp->config();
TQString previousGroup=cfg->group(); TQString previousGroup=cfg->group();
cfg->setGroup("KTEXTEDITOR:"+postfix); cfg->setGroup("KTEXTEDITOR:"+postfix);
TQString editor=cfg->readPathEntry("editor"); TQString editor=cfg->readPathEntry("editor");
@ -90,7 +90,7 @@ void EditorChooser::readAppSetting(const TQString& postfix){
} }
void EditorChooser::writeAppSetting(const TQString& postfix){ void EditorChooser::writeAppSetting(const TQString& postfix){
TDEConfig *cfg=kapp->config(); TDEConfig *cfg=tdeApp->config();
TQString previousGroup=cfg->group(); TQString previousGroup=cfg->group();
cfg->setGroup("KTEXTEDITOR:"+postfix); cfg->setGroup("KTEXTEDITOR:"+postfix);
cfg->writeEntry("DEVELOPER_INFO","NEVER TRY TO USE VALUES FROM THAT GROUP, THEY ARE SUBJECT TO CHANGES"); cfg->writeEntry("DEVELOPER_INFO","NEVER TRY TO USE VALUES FROM THAT GROUP, THEY ARE SUBJECT TO CHANGES");
@ -105,7 +105,7 @@ KTextEditor::Document *EditorChooser::createDocument(TQObject *parent,const char
KTextEditor::Document *tmpDoc=0; KTextEditor::Document *tmpDoc=0;
TDEConfig *cfg=kapp->config(); TDEConfig *cfg=tdeApp->config();
TQString previousGroup=cfg->group(); TQString previousGroup=cfg->group();
cfg->setGroup("KTEXTEDITOR:"+postfix); cfg->setGroup("KTEXTEDITOR:"+postfix);
TQString editor=cfg->readPathEntry("editor"); TQString editor=cfg->readPathEntry("editor");
@ -135,7 +135,7 @@ KTextEditor::Editor *EditorChooser::createEditor(TQWidget *parentWidget,TQObject
KTextEditor::Editor *tmpEd=0; KTextEditor::Editor *tmpEd=0;
TDEConfig *cfg=kapp->config(); TDEConfig *cfg=tdeApp->config();
TQString previousGroup=cfg->group(); TQString previousGroup=cfg->group();
cfg->setGroup("KTEXTEDITOR:"+postfix); cfg->setGroup("KTEXTEDITOR:"+postfix);
TQString editor=cfg->readPathEntry("editor"); TQString editor=cfg->readPathEntry("editor");

@ -418,7 +418,7 @@ AddressBook::AddressBook(TQWidget* parent, const char* name, bool loadit)
KMessageBox::error(this, KMessageBox::error(this,
i18n("Cannot initialize local variables."), i18n("Cannot initialize local variables."),
i18n("Out of Memory")); i18n("Out of Memory"));
kapp->quit(); // It is critical, but will possibly never happen. tdeApp->quit(); // It is critical, but will possibly never happen.
} }
connect(data, TQ_SIGNAL(fileChanged()), TQ_SLOT(dataFileChanged())); connect(data, TQ_SIGNAL(fileChanged()), TQ_SLOT(dataFileChanged()));
connect(data, TQ_SIGNAL(changed(QConfigDB*)), connect(data, TQ_SIGNAL(changed(QConfigDB*)),
@ -1066,7 +1066,7 @@ AddressBook::add(const Entry& entry, KabKey& key, bool update)
KMessageBox::error(this, KMessageBox::error(this,
i18n("Cannot initialize local variables."), i18n("Cannot initialize local variables."),
i18n("Out of Memory")); i18n("Out of Memory"));
kapp->quit(); // It is critical, but will possibly never happen. tdeApp->quit(); // It is critical, but will possibly never happen.
return InternError; // shut the compiler up... return InternError; // shut the compiler up...
} }
// ----- lock the file: // ----- lock the file:

@ -56,7 +56,7 @@ class IndenterConfigPage : public TQWidget
public slots: public slots:
/** /**
* Apply the changes. Save options here, use @p kapp->config() and * Apply the changes. Save options here, use @p tdeApp->config() and
* group [Kate Indenter MyIndenter]. * group [Kate Indenter MyIndenter].
*/ */
virtual void apply () = 0; virtual void apply () = 0;

@ -114,7 +114,7 @@ KateDocumentConfig::KateDocumentConfig ()
m_pluginsSet.fill (true); m_pluginsSet.fill (true);
// init with defaults from config or really hardcoded ones // init with defaults from config or really hardcoded ones
TDEConfig *config = kapp->config(); TDEConfig *config = tdeApp->config();
config->setGroup("Kate Document Defaults"); config->setGroup("Kate Document Defaults");
readConfig (config); readConfig (config);
} }
@ -631,7 +631,7 @@ KateViewConfig::KateViewConfig ()
s_global = this; s_global = this;
// init with defaults from config or really hardcoded ones // init with defaults from config or really hardcoded ones
TDEConfig *config = kapp->config(); TDEConfig *config = tdeApp->config();
config->setGroup("Kate View Defaults"); config->setGroup("Kate View Defaults");
readConfig (config); readConfig (config);
} }
@ -1022,7 +1022,7 @@ KateRendererConfig::KateRendererConfig ()
s_global = this; s_global = this;
// init with defaults from config or really hardcoded ones // init with defaults from config or really hardcoded ones
TDEConfig *config = kapp->config(); TDEConfig *config = tdeApp->config();
config->setGroup("Kate Renderer Defaults"); config->setGroup("Kate Renderer Defaults");
readConfig (config); readConfig (config);
} }

@ -1913,13 +1913,13 @@ void KateDocument::writeConfig(TDEConfig *config)
void KateDocument::readConfig() void KateDocument::readConfig()
{ {
TDEConfig *config = kapp->config(); TDEConfig *config = tdeApp->config();
readConfig (config); readConfig (config);
} }
void KateDocument::writeConfig() void KateDocument::writeConfig()
{ {
TDEConfig *config = kapp->config(); TDEConfig *config = tdeApp->config();
writeConfig (config); writeConfig (config);
config->sync(); config->sync();
} }
@ -1984,10 +1984,10 @@ void KateDocument::configDialog()
i18n("Configure"), i18n("Configure"),
KDialogBase::Ok | KDialogBase::Cancel | KDialogBase::Help, KDialogBase::Ok | KDialogBase::Cancel | KDialogBase::Help,
KDialogBase::Ok, KDialogBase::Ok,
kapp->mainWidget() ); tdeApp->mainWidget() );
#ifndef TQ_WS_WIN //TODO: reenable #ifndef TQ_WS_WIN //TODO: reenable
KWin::setIcons( kd->winId(), kapp->icon(), kapp->miniIcon() ); KWin::setIcons( kd->winId(), tdeApp->icon(), tdeApp->miniIcon() );
#endif #endif
TQPtrList<KTextEditor::ConfigPage> editorPages; TQPtrList<KTextEditor::ConfigPage> editorPages;
@ -2521,7 +2521,7 @@ bool KateDocument::save()
// get the right permissions, start with safe default // get the right permissions, start with safe default
mode_t perms = 0600; mode_t perms = 0600;
TDEIO::UDSEntry fentry; TDEIO::UDSEntry fentry;
if (TDEIO::NetAccess::stat (url(), fentry, kapp->mainWidget())) if (TDEIO::NetAccess::stat (url(), fentry, tdeApp->mainWidget()))
{ {
kdDebug () << "stating succesfull: " << url() << endl; kdDebug () << "stating succesfull: " << url() << endl;
KFileItem item (fentry, url()); KFileItem item (fentry, url());
@ -2530,8 +2530,8 @@ bool KateDocument::save()
// first del existing file if any, than copy over the file we have // first del existing file if any, than copy over the file we have
// failure if a: the existing file could not be deleted, b: the file could not be copied // failure if a: the existing file could not be deleted, b: the file could not be copied
if ( (!TDEIO::NetAccess::exists( u, false, kapp->mainWidget() ) || TDEIO::NetAccess::del( u, kapp->mainWidget() )) if ( (!TDEIO::NetAccess::exists( u, false, tdeApp->mainWidget() ) || TDEIO::NetAccess::del( u, tdeApp->mainWidget() ))
&& TDEIO::NetAccess::file_copy( url(), u, perms, true, false, kapp->mainWidget() ) ) && TDEIO::NetAccess::file_copy( url(), u, perms, true, false, tdeApp->mainWidget() ) )
{ {
kdDebug(13020)<<"backing up successfull ("<<url().prettyURL()<<" -> "<<u.prettyURL()<<")"<<endl; kdDebug(13020)<<"backing up successfull ("<<url().prettyURL()<<" -> "<<u.prettyURL()<<")"<<endl;
} }

@ -69,7 +69,7 @@ bool KatePrinter::print (KateDocument *doc)
printer.addDialogPage( new KatePrintHeaderFooter(&printer, NULL) ); printer.addDialogPage( new KatePrintHeaderFooter(&printer, NULL) );
printer.addDialogPage( new KatePrintLayout(&printer, NULL) ); printer.addDialogPage( new KatePrintLayout(&printer, NULL) );
if ( printer.setup( kapp->mainWidget(), i18n("Print %1").arg(printer.docName()) ) ) if ( printer.setup( tdeApp->mainWidget(), i18n("Print %1").arg(printer.docName()) ) )
{ {
KateRenderer renderer(doc); KateRenderer renderer(doc);
//renderer.config()->setSchema (1); //renderer.config()->setSchema (1);

@ -155,12 +155,12 @@ class KateStyleListCaption : public TQListViewItem
//BEGIN KateSchemaManager //BEGIN KateSchemaManager
TQString KateSchemaManager::normalSchema () TQString KateSchemaManager::normalSchema ()
{ {
return TDEApplication::kApplication()->aboutData()->appName () + TQString (" - Normal"); return tdeApp->aboutData()->appName () + TQString (" - Normal");
} }
TQString KateSchemaManager::printingSchema () TQString KateSchemaManager::printingSchema ()
{ {
return TDEApplication::kApplication()->aboutData()->appName () + TQString (" - Printing"); return tdeApp->aboutData()->appName () + TQString (" - Printing");
} }
KateSchemaManager::KateSchemaManager () KateSchemaManager::KateSchemaManager ()
@ -864,7 +864,7 @@ KateSchemaConfigPage::KateSchemaConfigPage( TQWidget *parent, KateDocument *doc
hbHl = new TQHBox( this ); hbHl = new TQHBox( this );
layout->add (hbHl); layout->add (hbHl);
hbHl->setSpacing( KDialog::spacingHint() ); hbHl->setSpacing( KDialog::spacingHint() );
lHl = new TQLabel( i18n("&Default schema for %1:").arg(TDEApplication::kApplication()->aboutData()->programName ()), hbHl ); lHl = new TQLabel( i18n("&Default schema for %1:").arg(tdeApp->aboutData()->programName ()), hbHl );
defaultSchemaCombo = new TQComboBox( false, hbHl ); defaultSchemaCombo = new TQComboBox( false, hbHl );
lHl->setBuddy( defaultSchemaCombo ); lHl->setBuddy( defaultSchemaCombo );

@ -1151,7 +1151,7 @@ void KateIconBorder::showMarkMenu( uint line, const TQPoint& pos )
{ {
KateViewConfig::global()->setDefaultMarkType (vec[result-100]); KateViewConfig::global()->setDefaultMarkType (vec[result-100]);
// flush config, otherwise it isn't nessecarily done // flush config, otherwise it isn't nessecarily done
TDEConfig *config = kapp->config(); TDEConfig *config = tdeApp->config();
config->setGroup("Kate View Defaults"); config->setGroup("Kate View Defaults");
KateViewConfig::global()->writeConfig( config ); KateViewConfig::global()->writeConfig( config );
} }

@ -365,7 +365,7 @@ KJS::Value OutputFunction::call(KJS::ExecState *exec, KJS::Object &thisObj, cons
const char failureSnapshotPrefix[] = "testkateregressionrc-FS."; const char failureSnapshotPrefix[] = "testkateregressionrc-FS.";
static TQString findMostRecentFailureSnapshot() { static TQString findMostRecentFailureSnapshot() {
TQDir dir(kapp->dirs()->saveLocation("config"), TQDir dir(tdeApp->dirs()->saveLocation("config"),
TQString(failureSnapshotPrefix)+"*", TQString(failureSnapshotPrefix)+"*",
TQDir::Time, TQDir::Files); TQDir::Time, TQDir::Files);
return dir[0].mid(sizeof failureSnapshotPrefix - 1); return dir[0].mid(sizeof failureSnapshotPrefix - 1);
@ -906,7 +906,7 @@ static void pause(int msec)
TQTime t; TQTime t;
t.start(); t.start();
do { do {
kapp->processEvents(); tdeApp->processEvents();
} while (t.elapsed() < msec); } while (t.elapsed() < msec);
} }
@ -1068,7 +1068,7 @@ void RegressionTest::testStaticFile(const TQString & filename, const TQStringLis
if (!script_error) goto bail_out; if (!script_error) goto bail_out;
if (m_showGui) kapp->processEvents(); if (m_showGui) tdeApp->processEvents();
if ( m_genOutput ) { if ( m_genOutput ) {
reportResult(checkOutput(filename+"-result"), "result"); reportResult(checkOutput(filename+"-result"), "result");

@ -68,7 +68,7 @@ DocWordCompletionPlugin::DocWordCompletionPlugin( TQObject *parent,
void DocWordCompletionPlugin::readConfig() void DocWordCompletionPlugin::readConfig()
{ {
TDEConfig *config = kapp->config(); TDEConfig *config = tdeApp->config();
config->setGroup( "DocWordCompletion Plugin" ); config->setGroup( "DocWordCompletion Plugin" );
m_treshold = config->readNumEntry( "treshold", 3 ); m_treshold = config->readNumEntry( "treshold", 3 );
m_autopopup = config->readBoolEntry( "autopopup", true ); m_autopopup = config->readBoolEntry( "autopopup", true );
@ -76,7 +76,7 @@ void DocWordCompletionPlugin::readConfig()
void DocWordCompletionPlugin::writeConfig() void DocWordCompletionPlugin::writeConfig()
{ {
TDEConfig *config = kapp->config(); TDEConfig *config = tdeApp->config();
config->setGroup("DocWordCompletion Plugin"); config->setGroup("DocWordCompletion Plugin");
config->writeEntry("autopopup", m_autopopup ); config->writeEntry("autopopup", m_autopopup );
config->writeEntry("treshold", m_treshold ); config->writeEntry("treshold", m_treshold );

@ -75,7 +75,7 @@ static void runBuildSycoca(TQObject *callBackObj=0, const char *callBackSlot=0)
dataStream << TQString("tdebuildsycoca") << args; dataStream << TQString("tdebuildsycoca") << args;
TQCString _launcher = TDEApplication::launcher(); TQCString _launcher = TDEApplication::launcher();
kapp->dcopClient()->callAsync(_launcher, _launcher, "tdeinit_exec_wait(TQString,TQStringList)", data, callBackObj, callBackSlot); tdeApp->dcopClient()->callAsync(_launcher, _launcher, "tdeinit_exec_wait(TQString,TQStringList)", data, callBackObj, callBackSlot);
} }
else else
{ {
@ -148,14 +148,14 @@ bool Kded::process(const TQCString &obj, const TQCString &fun,
if (!module) if (!module)
return false; return false;
module->setCallingDcopClient(kapp->dcopClient()); module->setCallingDcopClient(tdeApp->dcopClient());
return module->process(fun, data, replyType, replyData); return module->process(fun, data, replyType, replyData);
} }
void Kded::initModules() void Kded::initModules()
{ {
m_dontLoad.clear(); m_dontLoad.clear();
TDEConfig *config = kapp->config(); TDEConfig *config = tdeApp->config();
bool tde_running = !( getenv( "TDE_FULL_SESSION" ) == NULL || getenv( "TDE_FULL_SESSION" )[ 0 ] == '\0' ); bool tde_running = !( getenv( "TDE_FULL_SESSION" ) == NULL || getenv( "TDE_FULL_SESSION" )[ 0 ] == '\0' );
// not the same user like the one running the session (most likely we're run via sudo or something) // not the same user like the one running the session (most likely we're run via sudo or something)
if( getenv( "TDE_SESSION_UID" ) != NULL && uid_t( atoi( getenv( "TDE_SESSION_UID" ))) != getuid()) if( getenv( "TDE_SESSION_UID" ) != NULL && uid_t( atoi( getenv( "TDE_SESSION_UID" ))) != getuid())
@ -227,7 +227,7 @@ void Kded::initModules()
void Kded::loadSecondPhase() void Kded::loadSecondPhase()
{ {
kdDebug(7020) << "Loading second phase autoload" << endl; kdDebug(7020) << "Loading second phase autoload" << endl;
TDEConfig *config = kapp->config(); TDEConfig *config = tdeApp->config();
KService::List kdedModules = KServiceType::offers("KDEDModule"); KService::List kdedModules = KServiceType::offers("KDEDModule");
for(KService::List::ConstIterator it = kdedModules.begin(); it != kdedModules.end(); ++it) for(KService::List::ConstIterator it = kdedModules.begin(); it != kdedModules.end(); ++it)
{ {
@ -510,7 +510,7 @@ void Kded::recreateDone()
TQByteArray replyData; TQByteArray replyData;
DCOPClientTransaction *transaction = m_recreateRequests.first(); DCOPClientTransaction *transaction = m_recreateRequests.first();
if (transaction) if (transaction)
kapp->dcopClient()->endTransaction(transaction, replyType, replyData); tdeApp->dcopClient()->endTransaction(transaction, replyType, replyData);
m_recreateRequests.remove(m_recreateRequests.begin()); m_recreateRequests.remove(m_recreateRequests.begin());
} }
m_recreateBusy = false; m_recreateBusy = false;
@ -553,7 +553,7 @@ bool Kded::process(const TQCString &fun, const TQByteArray &data,
} }
m_recreateCount++; m_recreateCount++;
} }
m_recreateRequests.append(kapp->dcopClient()->beginTransaction()); m_recreateRequests.append(tdeApp->dcopClient()->beginTransaction());
replyType = "void"; replyType = "void";
return true; return true;
} else { } else {
@ -659,8 +659,8 @@ void Kded::unregisterWindowId(long windowId)
static void sighandler(int /*sig*/) static void sighandler(int /*sig*/)
{ {
if (kapp) if (tdeApp)
kapp->quit(); tdeApp->quit();
} }
KUpdateD::KUpdateD() KUpdateD::KUpdateD()
@ -751,9 +751,9 @@ public:
virtual bool process(const TQCString &fun, const TQByteArray &data, virtual bool process(const TQCString &fun, const TQByteArray &data,
TQCString& replyType, TQByteArray &replyData) TQCString& replyType, TQByteArray &replyData)
{ {
if ( kapp && (fun == "quit()") ) if ( tdeApp && (fun == "quit()") )
{ {
kapp->quit(); tdeApp->quit();
replyType = "void"; replyType = "void";
return true; return true;
} }
@ -954,7 +954,7 @@ extern "C" TDE_EXPORT int kdemain(int argc, char *argv[])
if (bCheckHostname) if (bCheckHostname)
(void) new KHostnameD(HostnamePollInterval); // Watch for hostname changes (void) new KHostnameD(HostnamePollInterval); // Watch for hostname changes
DCOPClient *client = kapp->dcopClient(); DCOPClient *client = tdeApp->dcopClient();
TQObject::connect(client, TQ_SIGNAL(applicationRemoved(const TQCString&)), TQObject::connect(client, TQ_SIGNAL(applicationRemoved(const TQCString&)),
kded, TQ_SLOT(slotApplicationRemoved(const TQCString&))); kded, TQ_SLOT(slotApplicationRemoved(const TQCString&)));
client->setNotifications(true); client->setNotifications(true);

@ -712,7 +712,7 @@ static const char appVersion[] = "1.1";
class WaitForSignal : public TQObject class WaitForSignal : public TQObject
{ {
public: public:
~WaitForSignal() { kapp->eventLoop()->exitLoop(); } ~WaitForSignal() { tdeApp->eventLoop()->exitLoop(); }
}; };
extern "C" TDE_EXPORT int kdemain(int argc, char **argv) extern "C" TDE_EXPORT int kdemain(int argc, char **argv)
@ -792,7 +792,7 @@ extern "C" TDE_EXPORT int kdemain(int argc, char **argv)
WaitForSignal *obj = new WaitForSignal; WaitForSignal *obj = new WaitForSignal;
obj->connect(dcopClient, TQ_SIGNAL(applicationRemoved(const TQCString &)), obj->connect(dcopClient, TQ_SIGNAL(applicationRemoved(const TQCString &)),
TQ_SLOT(deleteLater())); TQ_SLOT(deleteLater()));
kapp->eventLoop()->enterLoop(); tdeApp->eventLoop()->enterLoop();
} }
dcopClient->setNotifications( false ); dcopClient->setNotifications( false );
} }

@ -76,7 +76,7 @@
<!ENTITY documentation.index "<index id='doc-index'></index>"> <!ENTITY documentation.index "<index id='doc-index'></index>">
]]> ]]>
<!ENTITY documentation.index ""> <!ENTITY documentation.index "">
<!--ENTITY kapp "(Oops - someone forgot to fill in the application name here)" --> <!--ENTITY tdeApp "(Oops - someone forgot to fill in the application name here)" -->
<!-- Entities to fill in slots in docbook version of FDL notice --> <!-- Entities to fill in slots in docbook version of FDL notice -->
<!ENTITY % FDLIS "IGNORE"> <!ENTITY % FDLIS "IGNORE">

@ -81,7 +81,7 @@
<!ENTITY documentation.index "<index></index>"> <!ENTITY documentation.index "<index></index>">
]]> ]]>
<!ENTITY documentation.index ""> <!ENTITY documentation.index "">
<!--ENTITY kapp "(Oops - someone forgot to fill in the application name here)" --> <!--ENTITY tdeApp "(Oops - someone forgot to fill in the application name here)" -->
<!-- Entities to fill in slots in docbook version of FDL notice --> <!-- Entities to fill in slots in docbook version of FDL notice -->
<!ENTITY % FDLIS "IGNORE"> <!ENTITY % FDLIS "IGNORE">

@ -108,7 +108,7 @@ Please at least include TDE, the TDE package it is in, the name
<keywordset> <keywordset>
<keyword>TDE</keyword> <keyword>TDE</keyword>
<keyword>tdeutils</keyword> <keyword>tdeutils</keyword>
<keyword>Kapp</keyword> <keyword>tdeapp</keyword>
<keyword>nothing</keyword> <keyword>nothing</keyword>
<keyword>nothing else</keyword> <keyword>nothing else</keyword>
</keywordset> </keywordset>
@ -138,7 +138,7 @@ any problems or feature requests to the &tde; mailing lists.
</para> </para>
</chapter> </chapter>
<chapter id="using-kapp"> <chapter id="using-tdeApp">
<title>Using &kmyapplication;</title> <title>Using &kmyapplication;</title>
<!-- This chapter should tell the user how to use your app. You should use as <!-- This chapter should tell the user how to use your app. You should use as
@ -167,7 +167,7 @@ patent issues. -->
</para> </para>
<sect1 id="kapp-features"> <sect1 id="tdeApp-features">
<title>More &kmyapplication; features</title> <title>More &kmyapplication; features</title>
<para>It slices! It dices! and it comes with a free toaster!</para> <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 menus or toolbars. This may not be necessary for small apps or apps with no tool
or menu bars. --> or menu bars. -->
<sect1 id="kapp-mainwindow"> <sect1 id="tdeApp-mainwindow">
<title>The main &kmyapplication; window</title> <title>The main &kmyapplication; window</title>
<sect2> <sect2>
@ -486,7 +486,7 @@ Documentation Copyright &copy; 1999 George N. Ugnacious <email>gnu@kde.org</emai
<appendix id="installation"> <appendix id="installation">
<title>Installation</title> <title>Installation</title>
<sect1 id="getting-kapp"> <sect1 id="getting-tdeApp">
<title>How to obtain &kmyapplication;</title> <title>How to obtain &kmyapplication;</title>
<!-- This first entity contains boiler plate for applications that are <!-- This first entity contains boiler plate for applications that are
@ -518,19 +518,6 @@ about 5 megs of memory to run, but this may vary depending on your
platform and configuration. platform and configuration.
</para> </para>
<para>
All required libraries as well as &kmyapplication; itself can be found
on <ulink url="ftp://ftp.kapp.org">The &kmyapplication; home page</ulink>.
</para>
<!-- For a list of updates, you may refer to the application web site
or the ChangeLog file, or ... -->
<para>
You can find a list of changes at <ulink
url="http://apps.kde.org/kapp">http://apps.kde.org/kapp</ulink>.
</para>
</sect1>
<sect1 id="compilation"> <sect1 id="compilation">
<title>Compilation and Installation</title> <title>Compilation and Installation</title>

@ -77,13 +77,13 @@ protected:
{ {
if (e->ascii() == 'q') if (e->ascii() == 'q')
{ {
kapp->quit(); tdeApp->quit();
} }
} }
virtual void closeEvent( TQCloseEvent * ) virtual void closeEvent( TQCloseEvent * )
{ {
kapp->quit(); tdeApp->quit();
} }
}; };

@ -147,7 +147,7 @@ void KBlankEffect::blank( TQWidget *w, Effect effect )
} }
if ( effect == Random ) if ( effect == Random )
effect = (Effect)(kapp->random() % MaximumEffects); effect = (Effect)(tdeApp->random() % MaximumEffects);
d->effectProgress = 0; d->effectProgress = 0;
d->widget = w; d->widget = w;
@ -172,7 +172,7 @@ void KBlankEffect::blankSweepRight()
{ {
TQPainter p( d->widget ); TQPainter p( d->widget );
p.fillRect( d->effectProgress, 0, 50, d->widget->height(), black ); p.fillRect( d->effectProgress, 0, 50, d->widget->height(), black );
kapp->flushX(); tdeApp->flushX();
d->effectProgress += 50; d->effectProgress += 50;
if ( d->effectProgress >= d->widget->width() ) if ( d->effectProgress >= d->widget->width() )
finished(); finished();
@ -183,7 +183,7 @@ void KBlankEffect::blankSweepDown()
{ {
TQPainter p( d->widget ); TQPainter p( d->widget );
p.fillRect( 0, d->effectProgress, d->widget->width(), 50, black ); p.fillRect( 0, d->effectProgress, d->widget->width(), 50, black );
kapp->flushX(); tdeApp->flushX();
d->effectProgress += 50; d->effectProgress += 50;
if ( d->effectProgress >= d->widget->height() ) if ( d->effectProgress >= d->widget->height() )
finished(); finished();
@ -203,7 +203,7 @@ void KBlankEffect::blankBlocks()
for ( int i = 0; i < bx*by; i++ ) for ( int i = 0; i < bx*by; i++ )
block[i] = i; block[i] = i;
for ( int i = 0; i < bx*by; i++ ) { for ( int i = 0; i < bx*by; i++ ) {
int swap = kapp->random()%(bx*by); int swap = tdeApp->random()%(bx*by);
int tmp = block[i]; int tmp = block[i];
block[i] = block[swap]; block[i] = block[swap];
block[swap] = tmp; block[swap] = tmp;
@ -220,7 +220,7 @@ void KBlankEffect::blankBlocks()
d->effectProgress++; d->effectProgress++;
} }
kapp->flushX(); tdeApp->flushX();
if ( d->effectProgress >= bx*by ) { if ( d->effectProgress >= bx*by ) {
delete[] block; delete[] block;

@ -44,7 +44,7 @@ ConnectionManager::ConnectionManager( TQObject * parent, const char * name ) : D
{ {
d = new ConnectionManagerPrivate; d = new ConnectionManagerPrivate;
d->m_stub = new ClientIface_stub( kapp->dcopClient(), "kded", "networkstatus" ); d->m_stub = new ClientIface_stub( tdeApp->dcopClient(), "kded", "networkstatus" );
connectDCOPSignal( "kded", "networkstatus", "statusChange(TQString,int)", "slotStatusChanged(TQString,int)", false ); connectDCOPSignal( "kded", "networkstatus", "statusChange(TQString,int)", "slotStatusChanged(TQString,int)", false );
d->m_userInitiatedOnly = false; d->m_userInitiatedOnly = false;

@ -63,8 +63,8 @@ NetworkStatusModule::NetworkStatusModule( const TQCString & obj ) : KDEDModule(
d = new Private; d = new Private;
/* d->clientIface = new ClientIfaceImpl( this ); /* d->clientIface = new ClientIfaceImpl( this );
d->serviceIface = new ServiceIfaceImpl( this );*/ d->serviceIface = new ServiceIfaceImpl( this );*/
connect( kapp->dcopClient(), TQ_SIGNAL( applicationRemoved( const TQCString& ) ) , this, TQ_SLOT( unregisteredFromDCOP( const TQCString& ) ) ); connect( tdeApp->dcopClient(), TQ_SIGNAL( applicationRemoved( const TQCString& ) ) , this, TQ_SLOT( unregisteredFromDCOP( const TQCString& ) ) );
connect( kapp->dcopClient(), TQ_SIGNAL( applicationRegistered( const TQCString& ) ) , this, TQ_SLOT( registeredToDCOP( const TQCString& ) ) ); connect( tdeApp->dcopClient(), TQ_SIGNAL( applicationRegistered( const TQCString& ) ) , this, TQ_SLOT( registeredToDCOP( const TQCString& ) ) );
} }
NetworkStatusModule::~NetworkStatusModule() NetworkStatusModule::~NetworkStatusModule()
@ -112,7 +112,7 @@ int NetworkStatusModule::request( const TQString & host, bool userInitiated )
return NetworkStatus::Unavailable; return NetworkStatus::Unavailable;
NetworkStatus::EnumStatus status = p->status(); NetworkStatus::EnumStatus status = p->status();
TQCString appId = kapp->dcopClient()->senderId(); TQCString appId = tdeApp->dcopClient()->senderId();
if ( status == NetworkStatus::Online ) if ( status == NetworkStatus::Online )
{ {
p->registerUsage( appId, host ); p->registerUsage( appId, host );
@ -161,7 +161,7 @@ int NetworkStatusModule::request( const TQString & host, bool userInitiated )
void NetworkStatusModule::relinquish( const TQString & host ) void NetworkStatusModule::relinquish( const TQString & host )
{ {
TQCString appId = kapp->dcopClient()->senderId(); TQCString appId = tdeApp->dcopClient()->senderId();
// find network currently used by app for host... // find network currently used by app for host...
NetworkList::iterator end = d->networks.end(); NetworkList::iterator end = d->networks.end();
NetworkList::iterator it = d->networks.begin(); NetworkList::iterator it = d->networks.begin();

@ -29,14 +29,14 @@
TestService::TestService() : TQObject(), DCOPObject("ProviderIface") TestService::TestService() : TQObject(), DCOPObject("ProviderIface")
{ {
kapp->dcopClient()->registerAs("testservice" ); tdeApp->dcopClient()->registerAs("testservice" );
m_service = new ServiceIface_stub( "kded", "networkstatus" ); m_service = new ServiceIface_stub( "kded", "networkstatus" );
m_status = NetworkStatus::Offline; m_status = NetworkStatus::Offline;
NetworkStatus::Properties nsp; NetworkStatus::Properties nsp;
nsp.internet = true; nsp.internet = true;
nsp.name = "test_net"; nsp.name = "test_net";
nsp.onDemandPolicy = NetworkStatus::All; nsp.onDemandPolicy = NetworkStatus::All;
nsp.service = kapp->dcopClient()->appId(); nsp.service = tdeApp->dcopClient()->appId();
nsp.status = m_status; nsp.status = m_status;
m_service->registerNetwork( "test_net", nsp ); m_service->registerNetwork( "test_net", nsp );
} }

@ -110,7 +110,7 @@ bool Lock::lock()
} }
TQString lockUniqueName; TQString lockUniqueName;
lockUniqueName = mIdentifier + kapp->randomString( 8 ); lockUniqueName = mIdentifier + tdeApp->randomString( 8 );
mLockUniqueName = locateLocal( "data", "tdeabc/lock/" + lockUniqueName ); mLockUniqueName = locateLocal( "data", "tdeabc/lock/" + lockUniqueName );
kdDebug(5700) << "-- lock unique name: " << mLockUniqueName << endl; kdDebug(5700) << "-- lock unique name: " << mLockUniqueName << endl;

@ -104,7 +104,7 @@ void TestLDAPClient::testIntevation()
connect( mClient, TQ_SIGNAL( error( const TQString& ) ), connect( mClient, TQ_SIGNAL( error( const TQString& ) ),
this, TQ_SLOT( slotLDAPError( const TQString& ) ) ); this, TQ_SLOT( slotLDAPError( const TQString& ) ) );
mClient->startQuery( filter ); mClient->startQuery( filter );
kapp->eventLoop()->enterLoop(); tdeApp->eventLoop()->enterLoop();
delete mClient; mClient = 0; delete mClient; mClient = 0;
} }
@ -155,7 +155,7 @@ void TestLDAPClient::slotLDAPError( const TQString& err )
void TestLDAPClient::slotLDAPDone() void TestLDAPClient::slotLDAPDone()
{ {
kdDebug() << k_funcinfo << endl; kdDebug() << k_funcinfo << endl;
kapp->eventLoop()->exitLoop(); tdeApp->eventLoop()->exitLoop();
} }
#include "testldapclient.moc" #include "testldapclient.moc"

@ -197,7 +197,7 @@ int main(int argc,char **argv)
LockWidget mainWidget( identifier ); LockWidget mainWidget( identifier );
kapp->setMainWidget( &mainWidget ); tdeApp->setMainWidget( &mainWidget );
mainWidget.show(); mainWidget.show();
return app.exec(); return app.exec();

@ -79,7 +79,7 @@ static void listModules(const TQString &baseGroup)
if (p->isType(KST_KService)) if (p->isType(KST_KService))
{ {
KService *s = static_cast<KService*>(p); KService *s = static_cast<KService*>(p);
if (!kapp->authorizeControlModule(s->menuId())) if (!tdeApp->authorizeControlModule(s->menuId()))
continue; continue;
m_modules.append(s); m_modules.append(s);
} }
@ -128,7 +128,7 @@ bool KCMShell::isRunning()
TQByteArray data; TQByteArray data;
TQDataStream str( data, IO_WriteOnly ); TQDataStream str( data, IO_WriteOnly );
str << kapp->startupId(); str << tdeApp->startupId();
TQCString replyType; TQCString replyType;
TQByteArray replyData; TQByteArray replyData;
if (!dcopClient()->call(m_dcopName, "dialog", "activate(TQCString)", if (!dcopClient()->call(m_dcopName, "dialog", "activate(TQCString)",
@ -313,7 +313,7 @@ extern "C" TDE_EXPORT int kdemain(int _argc, char *_argv[])
} }
KCMShellMultiDialog *dlg = new KCMShellMultiDialog( dtype, KCMShellMultiDialog *dlg = new KCMShellMultiDialog( dtype,
i18n("Configure - %1").arg(kapp->caption()), 0, "", true ); i18n("Configure - %1").arg(tdeApp->caption()), 0, "", true );
for (KService::List::ConstIterator it = modules.begin(); it != modules.end(); ++it) for (KService::List::ConstIterator it = modules.begin(); it != modules.end(); ++it)
dlg->addModule(TDECModuleInfo(*it)); dlg->addModule(TDECModuleInfo(*it));
@ -334,8 +334,8 @@ extern "C" TDE_EXPORT int kdemain(int _argc, char *_argv[])
else else
{ {
if (kapp->iconName() != kapp->name()) if (tdeApp->iconName() != tdeApp->name())
setIcon(dlg, kapp->iconName()); setIcon(dlg, tdeApp->iconName());
else if ( modules.count() == 1 ) else if ( modules.count() == 1 )
setIcon(dlg, TDECModuleInfo( modules.first()).icon()); setIcon(dlg, TDECModuleInfo( modules.first()).icon());

@ -46,12 +46,12 @@ void TDEApplication_init_windows(bool /*GUIenabled*/)
+ "/LC_MESSAGES/qt_" + TDEGlobal::locale()->language() + ".qm" ); + "/LC_MESSAGES/qt_" + TDEGlobal::locale()->language() + ".qm" );
QTranslator *qt_transl = new QTranslator(); QTranslator *qt_transl = new QTranslator();
if (qt_transl->load( qt_transl_file, "")) if (qt_transl->load( qt_transl_file, ""))
kapp->installTranslator( qt_transl ); tdeApp->installTranslator( qt_transl );
else else
delete qt_transl; delete qt_transl;
} }
//unsafe; create kapplication_p.h instead! //unsafe; create tdeapplication_p.h instead!
typedef void* IceIOErrorHandler; typedef void* IceIOErrorHandler;
class TDEApplicationPrivate class TDEApplicationPrivate

@ -97,7 +97,7 @@ bool TDEClipboardSynchronizer::s_blocked = false;
TDEClipboardSynchronizer * TDEClipboardSynchronizer::self() TDEClipboardSynchronizer * TDEClipboardSynchronizer::self()
{ {
if ( !s_self ) if ( !s_self )
s_self = new TDEClipboardSynchronizer( kapp, "KDE Clipboard" ); s_self = new TDEClipboardSynchronizer( tdeApp, "KDE Clipboard" );
return s_self; return s_self;
} }

@ -289,7 +289,7 @@ static void kDebugBackend( unsigned short nLevel, unsigned int nArea, const char
// If the application doesn't have a TQApplication object it can't use // If the application doesn't have a TQApplication object it can't use
// a messagebox, as well as in case of GUI is disabled. // a messagebox, as well as in case of GUI is disabled.
if ( nOutput == 1 && ( !kapp || !kapp->guiEnabled()) ) { if ( nOutput == 1 && ( !tdeApp || !tdeApp->guiEnabled()) ) {
nOutput = 2; nOutput = 2;
} else if ( nOutput == 4 && nLevel != KDEBUG_FATAL ) { } else if ( nOutput == 4 && nLevel != KDEBUG_FATAL ) {
return; return;

@ -124,7 +124,7 @@ bool KDesktopFile::isDesktopFile(const TQString& path)
bool KDesktopFile::isAuthorizedDesktopFile(const TQString& path) bool KDesktopFile::isAuthorizedDesktopFile(const TQString& path)
{ {
if (!kapp || kapp->authorize("run_desktop_files")) if (!tdeApp || tdeApp->authorize("run_desktop_files"))
return true; return true;
if (path.isEmpty()) if (path.isEmpty())
@ -300,13 +300,13 @@ bool KDesktopFile::tryExec() const
} }
} }
TQStringList list = readListEntry("X-TDE-AuthorizeAction"); TQStringList list = readListEntry("X-TDE-AuthorizeAction");
if (kapp && !list.isEmpty()) if (tdeApp && !list.isEmpty())
{ {
for(TQStringList::ConstIterator it = list.begin(); for(TQStringList::ConstIterator it = list.begin();
it != list.end(); it != list.end();
++it) ++it)
{ {
if (!kapp->authorize((*it).stripWhiteSpace())) if (!tdeApp->authorize((*it).stripWhiteSpace()))
return false; return false;
} }
} }
@ -320,7 +320,7 @@ bool KDesktopFile::tryExec() const
user = ::getenv("ADMIN_ACCOUNT"); user = ::getenv("ADMIN_ACCOUNT");
if (user.isEmpty()) if (user.isEmpty())
user = "root"; user = "root";
if (!kapp->authorize("user/"+user)) if (!tdeApp->authorize("user/"+user))
return false; return false;
} }
else { else {
@ -333,7 +333,7 @@ bool KDesktopFile::tryExec() const
user = ::getenv("ADMIN_ACCOUNT"); user = ::getenv("ADMIN_ACCOUNT");
if (user.isEmpty()) if (user.isEmpty())
user = "root"; user = "root";
if (!kapp->authorize("user/"+user)) if (!tdeApp->authorize("user/"+user))
return false; return false;
} }
} }

@ -48,7 +48,7 @@ TDEGlobalAccelPrivate::TDEGlobalAccelPrivate()
all_accels = new TQValueList< TDEGlobalAccelPrivate* >; all_accels = new TQValueList< TDEGlobalAccelPrivate* >;
all_accels->append( this ); all_accels->append( this );
m_sConfigGroup = "Global Shortcuts"; m_sConfigGroup = "Global Shortcuts";
// kapp->installX11EventFilter( this ); // tdeApp->installX11EventFilter( this );
} }
TDEGlobalAccelPrivate::~TDEGlobalAccelPrivate() TDEGlobalAccelPrivate::~TDEGlobalAccelPrivate()

@ -89,8 +89,8 @@ TDEGlobalAccelPrivate::TDEGlobalAccelPrivate()
all_accels = new TQValueList< TDEGlobalAccelPrivate* >; all_accels = new TQValueList< TDEGlobalAccelPrivate* >;
all_accels->append( this ); all_accels->append( this );
m_sConfigGroup = "Global Shortcuts"; m_sConfigGroup = "Global Shortcuts";
kapp->installX11EventFilter( this ); tdeApp->installX11EventFilter( this );
connect(kapp, TQ_SIGNAL(coreFakeKeyPress(unsigned int)), this, TQ_SLOT(fakeKeyPressed(unsigned int))); connect(tdeApp, TQ_SIGNAL(coreFakeKeyPress(unsigned int)), this, TQ_SLOT(fakeKeyPressed(unsigned int)));
} }
TDEGlobalAccelPrivate::~TDEGlobalAccelPrivate() TDEGlobalAccelPrivate::~TDEGlobalAccelPrivate()

@ -155,9 +155,9 @@ TDEIconLoader::TDEIconLoader(const TQString& _appname, TDEStandardDirs *_dirs)
d->imgDict.setAutoDelete(true); d->imgDict.setAutoDelete(true);
d->links.setAutoDelete(true); d->links.setAutoDelete(true);
if (kapp) { if (tdeApp) {
kapp->addKipcEventMask(KIPC::IconChanged); tdeApp->addKipcEventMask(KIPC::IconChanged);
TQObject::connect(kapp, TQ_SIGNAL(updateIconLoaders()), d, TQ_SLOT(reconfigure())); TQObject::connect(tdeApp, TQ_SIGNAL(updateIconLoaders()), d, TQ_SLOT(reconfigure()));
} }
init( _appname, _dirs ); init( _appname, _dirs );

@ -551,17 +551,17 @@ void KLibLoader::close_pending(KLibWrapPrivate *wrap)
We need to make sure to clear the clipboard before unloading a DSO We need to make sure to clear the clipboard before unloading a DSO
because the DSO could have defined an object derived from QMimeSource because the DSO could have defined an object derived from QMimeSource
and placed that on the clipboard. */ and placed that on the clipboard. */
/*kapp->clipboard()->clear();*/ /*tdeApp->clipboard()->clear();*/
/* Well.. let's do something more subtle... convert the clipboard context /* Well.. let's do something more subtle... convert the clipboard context
to text. That should be safe as it only uses objects defined by Qt. */ to text. That should be safe as it only uses objects defined by Qt. */
if( kapp->clipboard()->ownsSelection()) { if( tdeApp->clipboard()->ownsSelection()) {
kapp->clipboard()->setText( tdeApp->clipboard()->setText(
kapp->clipboard()->text( TQClipboard::Selection ), TQClipboard::Selection ); tdeApp->clipboard()->text( TQClipboard::Selection ), TQClipboard::Selection );
} }
if( kapp->clipboard()->ownsClipboard()) { if( tdeApp->clipboard()->ownsClipboard()) {
kapp->clipboard()->setText( tdeApp->clipboard()->setText(
kapp->clipboard()->text( TQClipboard::Clipboard ), TQClipboard::Clipboard ); tdeApp->clipboard()->text( TQClipboard::Clipboard ), TQClipboard::Clipboard );
} }
} }

@ -65,7 +65,7 @@ class TDESelectionOwnerPrivate
TDESelectionOwnerPrivate::TDESelectionOwnerPrivate( TDESelectionOwner* owner_P ) TDESelectionOwnerPrivate::TDESelectionOwnerPrivate( TDESelectionOwner* owner_P )
: owner( owner_P ) : owner( owner_P )
{ {
kapp->installX11EventFilter( this ); tdeApp->installX11EventFilter( this );
} }
bool TDESelectionOwnerPrivate::x11Event( XEvent* ev_P ) bool TDESelectionOwnerPrivate::x11Event( XEvent* ev_P )
@ -380,7 +380,7 @@ class TDESelectionWatcherPrivate
TDESelectionWatcherPrivate::TDESelectionWatcherPrivate( TDESelectionWatcher* watcher_P ) TDESelectionWatcherPrivate::TDESelectionWatcherPrivate( TDESelectionWatcher* watcher_P )
: watcher( watcher_P ) : watcher( watcher_P )
{ {
kapp->installX11EventFilter( this ); tdeApp->installX11EventFilter( this );
} }
bool TDESelectionWatcherPrivate::x11Event( XEvent* ev_P ) bool TDESelectionWatcherPrivate::x11Event( XEvent* ev_P )

@ -74,14 +74,14 @@ static int sendNotifyEvent(const TQString &message, const TQString &text,
int present, int level, const TQString &sound, int present, int level, const TQString &sound,
const TQString &file, int winId ) const TQString &file, int winId )
{ {
if (!kapp) return 0; if (!tdeApp) return 0;
// ensure tray icon is shown and positioned before sending event to notification daemon // ensure tray icon is shown and positioned before sending event to notification daemon
#ifdef TQ_WS_X11 #ifdef TQ_WS_X11
XFlush(tqt_xdisplay()); XFlush(tqt_xdisplay());
#endif #endif
DCOPClient *client=kapp->dcopClient(); DCOPClient *client=tdeApp->dcopClient();
if (!client->isAttached()) if (!client->isAttached())
{ {
client->attach(); client->attach();
@ -94,7 +94,7 @@ static int sendNotifyEvent(const TQString &message, const TQString &text,
if( canAvoidStartupEvent( message, appname, present )) if( canAvoidStartupEvent( message, appname, present ))
return -1; // done "successfully" - there will be no event presentation return -1; // done "successfully" - there will be no event presentation
int uniqueId = kMax( 1, kapp->random() ); // must not be 0 -- means failure! int uniqueId = kMax( 1, tdeApp->random() ); // must not be 0 -- means failure!
// knotify daemon needs toplevel window // knotify daemon needs toplevel window
TQWidget* widget = TQWidget::find( (WId)winId ); TQWidget* widget = TQWidget::find( (WId)winId );
@ -238,7 +238,7 @@ TQString KNotifyClient::getDefaultFile(const TQString &eventname, int present)
bool KNotifyClient::startDaemon() bool KNotifyClient::startDaemon()
{ {
static bool firstTry = true; static bool firstTry = true;
if (!kapp->dcopClient()->isApplicationRegistered(daemonName)) { if (!tdeApp->dcopClient()->isApplicationRegistered(daemonName)) {
if( firstTry ) { if( firstTry ) {
firstTry = false; firstTry = false;
return TDEApplication::startServiceByDesktopName(daemonName) == 0; return TDEApplication::startServiceByDesktopName(daemonName) == 0;
@ -251,12 +251,12 @@ bool KNotifyClient::startDaemon()
void KNotifyClient::beep(const TQString& reason) void KNotifyClient::beep(const TQString& reason)
{ {
if ( !kapp || KNotifyClient::Instance::currentInstance()->useSystemBell() ) { if ( !tdeApp || KNotifyClient::Instance::currentInstance()->useSystemBell() ) {
TQApplication::beep(); TQApplication::beep();
return; return;
} }
DCOPClient *client=kapp->dcopClient(); DCOPClient *client=tdeApp->dcopClient();
if (!client->isAttached()) if (!client->isAttached())
{ {
client->attach(); client->attach();
@ -307,7 +307,7 @@ public:
{ {
if (m_instances.isEmpty()) if (m_instances.isEmpty())
{ {
m_defaultInstance = new Instance(kapp); m_defaultInstance = new Instance(tdeApp);
} }
return m_instances.top(); return m_instances.top();
} }
@ -360,7 +360,7 @@ bool KNotifyClient::Instance::useSystemBell() const
// static methods // static methods
// We always return a valid KNotifyClient::Instance here. If no special one // We always return a valid KNotifyClient::Instance here. If no special one
// is available, we have a default-instance with kapp as TDEInstance. // is available, we have a default-instance with tdeApp as TDEInstance.
// We make sure to always have that default-instance in the stack, because // We make sure to always have that default-instance in the stack, because
// the stack might have gotten cleared in the destructor. // the stack might have gotten cleared in the destructor.
// We can't use QPtrStack::setAutoDelete( true ), because no instance besides // We can't use QPtrStack::setAutoDelete( true ), because no instance besides

@ -217,7 +217,7 @@ namespace KNotifyClient
* placed appropriately. * placed appropriately.
* *
* Call it by KNotifyClient::event(widget->winId(), "EventName"); * Call it by KNotifyClient::event(widget->winId(), "EventName");
* It will use TDEApplication::kApplication->dcopClient() to communicate to * It will use TDEApplication::tdeApplication->dcopClient() to communicate to
* the server * the server
* @param winId The winId() of the widget where the event originates * @param winId The winId() of the widget where the event originates
* @param message The name of the event * @param message The name of the event

@ -46,7 +46,7 @@ public:
* reproduced by starting the sequence with the same seed. * reproduced by starting the sequence with the same seed.
* *
* If you need a single value which needs to be unpredictable, * If you need a single value which needs to be unpredictable,
* you need to use kapp->random() instead. * you need to use tdeApp->random() instead.
* *
* @param lngSeed Seed to initialize the sequence with. * @param lngSeed Seed to initialize the sequence with.
* If lngSeed is 0, the sequence is initialized with a value from * If lngSeed is 0, the sequence is initialized with a value from

@ -212,8 +212,8 @@ void KSocks::disable()
KSocks *KSocks::self() { KSocks *KSocks::self() {
// Note that we don't use a static deleter here. It makes no sense and tends to cause crashes. // Note that we don't use a static deleter here. It makes no sense and tends to cause crashes.
if (!_me) { if (!_me) {
if (kapp) { if (tdeApp) {
TDEConfigGroup cfg(kapp->config(), "Socks"); TDEConfigGroup cfg(tdeApp->config(), "Socks");
_me = new KSocks(&cfg); _me = new KSocks(&cfg);
} else { } else {
_disabled = true; _disabled = true;

@ -42,8 +42,8 @@ KXMessages::KXMessages( const char* accept_broadcast_P, TQWidget* parent_P )
{ {
if( accept_broadcast_P != NULL ) if( accept_broadcast_P != NULL )
{ {
( void ) kapp->desktop(); //trigger desktop widget creation to select root window events ( void ) tdeApp->desktop(); //trigger desktop widget creation to select root window events
kapp->installX11EventFilter( this ); // i.e. PropertyChangeMask tdeApp->installX11EventFilter( this ); // i.e. PropertyChangeMask
accept_atom1 = XInternAtom( tqt_xdisplay(), accept_broadcast_P, false ); accept_atom1 = XInternAtom( tqt_xdisplay(), accept_broadcast_P, false );
accept_atom2 = accept_atom1; accept_atom2 = accept_atom1;
} }
@ -59,8 +59,8 @@ KXMessages::KXMessages( const char* accept_broadcast_P, TQWidget* parent_P, bool
{ {
if( accept_broadcast_P != NULL ) if( accept_broadcast_P != NULL )
{ {
( void ) kapp->desktop(); //trigger desktop widget creation to select root window events ( void ) tdeApp->desktop(); //trigger desktop widget creation to select root window events
kapp->installX11EventFilter( this ); // i.e. PropertyChangeMask tdeApp->installX11EventFilter( this ); // i.e. PropertyChangeMask
accept_atom2 = XInternAtom( tqt_xdisplay(), accept_broadcast_P, false ); accept_atom2 = XInternAtom( tqt_xdisplay(), accept_broadcast_P, false );
accept_atom1 = obsolete_P ? accept_atom2 accept_atom1 = obsolete_P ? accept_atom2
: XInternAtom( tqt_xdisplay(), TQCString( accept_broadcast_P ) + "_BEGIN", false ); : XInternAtom( tqt_xdisplay(), TQCString( accept_broadcast_P ) + "_BEGIN", false );

@ -467,7 +467,7 @@ void KSocksSocketDevice::initSocks()
if (init) if (init)
return; return;
if (kapp == 0L) if (tdeApp == 0L)
return; // no TDEApplication, so don't initialise return; // no TDEApplication, so don't initialise
// this should, however, test for TDEInstance // this should, however, test for TDEInstance

@ -110,8 +110,8 @@ TDEAccelEventHandler::TDEAccelEventHandler()
: TQWidget( 0, "TDEAccelEventHandler" ) : TQWidget( 0, "TDEAccelEventHandler" )
{ {
# ifdef TQ_WS_X11 # ifdef TQ_WS_X11
if ( kapp ) if ( tdeApp )
kapp->installX11EventFilter( this ); tdeApp->installX11EventFilter( this );
# endif # endif
} }
@ -120,10 +120,10 @@ bool tqt_try_modal( TQWidget *, XEvent * );
bool TDEAccelEventHandler::x11Event( XEvent* pEvent ) bool TDEAccelEventHandler::x11Event( XEvent* pEvent )
{ {
if( TQWidget::keyboardGrabber() || !kapp->focusWidget() ) if( TQWidget::keyboardGrabber() || !tdeApp->focusWidget() )
return false; return false;
if ( !tqt_try_modal(kapp->focusWidget(), pEvent) ) if ( !tqt_try_modal(tdeApp->focusWidget(), pEvent) )
return false; return false;
if( pEvent->type == XKeyPress ) { if( pEvent->type == XKeyPress ) {
@ -144,7 +144,7 @@ bool TDEAccelEventHandler::x11Event( XEvent* pEvent )
ke.ignore(); ke.ignore();
g_bAccelActivated = false; g_bAccelActivated = false;
kapp->sendEvent( kapp->focusWidget(), &ke ); tdeApp->sendEvent( tdeApp->focusWidget(), &ke );
// If the Override event was accepted from a non-TDEAccel widget, // If the Override event was accepted from a non-TDEAccel widget,
// then kill the next AccelOverride in TDEApplication::notify. // then kill the next AccelOverride in TDEApplication::notify.

@ -1,4 +1,4 @@
/* This file is part of the KDE libraries /* This file is part of the TDE libraries
Copyright (C) 1997 Matthias Kalle Dalheimer (kalle@kde.org) Copyright (C) 1997 Matthias Kalle Dalheimer (kalle@kde.org)
Copyright (C) 1998, 1999, 2000 KDE Team Copyright (C) 1998, 1999, 2000 KDE Team
@ -192,9 +192,9 @@ TDE_EXPORT bool kde_have_kipc = true; // magic hook to disable kipc in tdm
bool kde_kiosk_exception = false; // flag to disable kiosk restrictions bool kde_kiosk_exception = false; // flag to disable kiosk restrictions
bool kde_kiosk_admin = false; bool kde_kiosk_admin = false;
TDEApplication* TDEApplication::KApp = 0L; TDEApplication* TDEApplication::TDEApp = nullptr;
bool TDEApplication::loadedByKdeinit = false; bool TDEApplication::loadedByKdeinit = false;
DCOPClient *TDEApplication::s_DCOPClient = 0L; DCOPClient *TDEApplication::s_DCOPClient = nullptr;
bool TDEApplication::s_dcopClientNeedsPostInit = false; bool TDEApplication::s_dcopClientNeedsPostInit = false;
#ifdef TQ_WS_X11 #ifdef TQ_WS_X11
@ -225,12 +225,12 @@ template class TQPtrList<KSessionManaged>;
extern "C" { extern "C" {
static int kde_xio_errhandler( Display * dpy ) static int kde_xio_errhandler( Display * dpy )
{ {
return kapp->xioErrhandler( dpy ); return tdeApp->xioErrhandler( dpy );
} }
static int kde_x_errhandler( Display *dpy, XErrorEvent *err ) static int kde_x_errhandler( Display *dpy, XErrorEvent *err )
{ {
return kapp->xErrhandler( dpy, err ); return tdeApp->xErrhandler( dpy, err );
} }
} }
@ -238,8 +238,8 @@ static int kde_x_errhandler( Display *dpy, XErrorEvent *err )
extern "C" { extern "C" {
static void kde_ice_ioerrorhandler( IceConn conn ) static void kde_ice_ioerrorhandler( IceConn conn )
{ {
if(kapp) if(tdeApp)
kapp->iceIOErrorHandler( conn ); tdeApp->iceIOErrorHandler( conn );
// else ignore the error for now // else ignore the error for now
} }
} }
@ -925,7 +925,7 @@ TDEApplication::TDEApplication(Display *display, int& argc, char** argv, const T
int TDEApplication::xioErrhandler( Display* dpy ) int TDEApplication::xioErrhandler( Display* dpy )
{ {
if(kapp) if(tdeApp)
{ {
emit shutDown(); emit shutDown();
#ifdef TQ_WS_X11 #ifdef TQ_WS_X11
@ -942,7 +942,7 @@ int TDEApplication::xErrhandler( Display* dpy, void* err_ )
{ // no idea how to make forward decl. for XErrorEvent { // no idea how to make forward decl. for XErrorEvent
#ifdef TQ_WS_X11 #ifdef TQ_WS_X11
XErrorEvent* err = static_cast< XErrorEvent* >( err_ ); XErrorEvent* err = static_cast< XErrorEvent* >( err_ );
if(kapp) if(tdeApp)
{ {
// add KDE specific stuff here // add KDE specific stuff here
d->oldXErrorHandler( dpy, err ); d->oldXErrorHandler( dpy, err );
@ -997,7 +997,7 @@ void TDEApplication::init(bool GUIenabled)
TQApplication::setDesktopSettingsAware( false ); TQApplication::setDesktopSettingsAware( false );
KApp = this; TDEApp = this;
#ifdef TQ_WS_X11 //FIXME(E) #ifdef TQ_WS_X11 //FIXME(E)
@ -1195,11 +1195,11 @@ DCOPClient *TDEApplication::dcopClient()
{ {
s_DCOPClient->setServerAddress( args->getOption("dcopserver")); s_DCOPClient->setServerAddress( args->getOption("dcopserver"));
} }
if( kapp ) { if( tdeApp ) {
connect(s_DCOPClient, TQ_SIGNAL(attachFailed(const TQString &)), connect(s_DCOPClient, TQ_SIGNAL(attachFailed(const TQString &)),
kapp, TQ_SLOT(dcopFailure(const TQString &))); tdeApp, TQ_SLOT(dcopFailure(const TQString &)));
connect(s_DCOPClient, TQ_SIGNAL(blockUserInput(bool) ), connect(s_DCOPClient, TQ_SIGNAL(blockUserInput(bool) ),
kapp, TQ_SLOT(dcopBlockUserInput(bool)) ); tdeApp, TQ_SLOT(dcopBlockUserInput(bool)) );
} }
else else
s_dcopClientNeedsPostInit = true; s_dcopClientNeedsPostInit = true;
@ -1583,10 +1583,10 @@ void TDEApplication::startKdeinit()
srv = TDEStandardDirs::findExe(TQString::fromLatin1("tdeinit"), TDEGlobal::dirs()->kfsstnd_defaultbindir()); srv = TDEStandardDirs::findExe(TQString::fromLatin1("tdeinit"), TDEGlobal::dirs()->kfsstnd_defaultbindir());
if (srv.isEmpty()) if (srv.isEmpty())
return; return;
if (kapp && (Tty != kapp->type())) if (tdeApp && (Tty != tdeApp->type()))
setOverrideCursor( TQt::waitCursor ); setOverrideCursor( TQt::waitCursor );
my_system(TQFile::encodeName(srv)+" --suicide"+" --new-startup"); my_system(TQFile::encodeName(srv)+" --suicide"+" --new-startup");
if (kapp && (Tty != kapp->type())) if (tdeApp && (Tty != tdeApp->type()))
restoreOverrideCursor(); restoreOverrideCursor();
#endif #endif
} }
@ -1613,12 +1613,12 @@ void TDEApplication::dcopFailure(const TQString &msg)
msgStr += msg; msgStr += msg;
msgStr += i18n("\n\nPlease check that the \"dcopserver\" program is running!"); msgStr += i18n("\n\nPlease check that the \"dcopserver\" program is running!");
if (Tty != kapp->type()) if (Tty != tdeApp->type())
{ {
TQMessageBox::critical TQMessageBox::critical
( (
kapp->mainWidget(), tdeApp->mainWidget(),
i18n("DCOP communications error (%1)").arg(kapp->caption()), i18n("DCOP communications error (%1)").arg(tdeApp->caption()),
msgStr, msgStr,
i18n("&OK") i18n("&OK")
); );
@ -1870,7 +1870,7 @@ TDEApplication::~TDEApplication()
// close down IPC // close down IPC
delete s_DCOPClient; delete s_DCOPClient;
s_DCOPClient = 0L; s_DCOPClient = nullptr;
TDEProcessController::deref(); TDEProcessController::deref();
@ -1884,7 +1884,7 @@ TDEApplication::~TDEApplication()
#endif #endif
delete d; delete d;
KApp = 0; TDEApp = nullptr;
#ifdef TQ_WS_X11 #ifdef TQ_WS_X11
mySmcConnection = 0; mySmcConnection = 0;
@ -2678,8 +2678,8 @@ void TDEApplication::invokeHelp( const TQString& anchor,
{ {
if (startServiceByDesktopName("khelpcenter", url, &error, 0, 0, startup_id, false)) if (startServiceByDesktopName("khelpcenter", url, &error, 0, 0, startup_id, false))
{ {
if (Tty != kapp->type()) if (Tty != tdeApp->type())
TQMessageBox::critical(kapp->mainWidget(), i18n("Could not Launch Help Center"), TQMessageBox::critical(tdeApp->mainWidget(), i18n("Could not Launch Help Center"),
i18n("Could not launch the TDE Help Center:\n\n%1").arg(error), i18n("&OK")); i18n("Could not launch the TDE Help Center:\n\n%1").arg(error), i18n("&OK"));
else else
kdWarning() << "Could not launch help:\n" << error << endl; kdWarning() << "Could not launch help:\n" << error << endl;
@ -2713,8 +2713,8 @@ void TDEApplication::invokeHTMLHelp( const TQString& _filename, const TQString&
{ {
if (startServiceByDesktopName("khelpcenter", url, &error, 0, 0, "", false)) if (startServiceByDesktopName("khelpcenter", url, &error, 0, 0, "", false))
{ {
if (Tty != kapp->type()) if (Tty != tdeApp->type())
TQMessageBox::critical(kapp->mainWidget(), i18n("Could not Launch Help Center"), TQMessageBox::critical(tdeApp->mainWidget(), i18n("Could not Launch Help Center"),
i18n("Could not launch the TDE Help Center:\n\n%1").arg(error), i18n("&OK")); i18n("Could not launch the TDE Help Center:\n\n%1").arg(error), i18n("&OK"));
else else
kdWarning() << "Could not launch help:\n" << error << endl; kdWarning() << "Could not launch help:\n" << error << endl;
@ -2984,8 +2984,8 @@ void TDEApplication::invokeMailer(const TQString &_to, const TQString &_cc, cons
// TODO this should check if cmd has a .desktop file, and use data from it, together // TODO this should check if cmd has a .desktop file, and use data from it, together
// with sending more ASN data // with sending more ASN data
if (tdeinitExec(cmd, cmdTokens, &error, NULL, startup_id )) { if (tdeinitExec(cmd, cmdTokens, &error, NULL, startup_id )) {
if (Tty != kapp->type()) { if (Tty != tdeApp->type()) {
TQMessageBox::critical(kapp->mainWidget(), i18n("Could not Launch Mail Client"), TQMessageBox::critical(tdeApp->mainWidget(), i18n("Could not Launch Mail Client"),
i18n("Could not launch the mail client:\n\n%1").arg(error), i18n("&OK")); i18n("Could not launch the mail client:\n\n%1").arg(error), i18n("&OK"));
} }
else { else {
@ -3009,8 +3009,8 @@ void TDEApplication::invokeBrowser( const TQString &url, const TQCString& startu
if (startServiceByDesktopName("kfmclient", url, &error, 0, 0, startup_id, false)) if (startServiceByDesktopName("kfmclient", url, &error, 0, 0, startup_id, false))
{ {
if (Tty != kapp->type()) if (Tty != tdeApp->type())
TQMessageBox::critical(kapp->mainWidget(), i18n("Could not Launch Browser"), TQMessageBox::critical(tdeApp->mainWidget(), i18n("Could not Launch Browser"),
i18n("Could not launch the browser:\n\n%1").arg(error), i18n("&OK")); i18n("Could not launch the browser:\n\n%1").arg(error), i18n("&OK"));
else else
kdWarning() << "Could not launch browser:\n" << error << endl; kdWarning() << "Could not launch browser:\n" << error << endl;
@ -3070,8 +3070,8 @@ startServiceInternal( const TQCString &function,
// Register app as able to send DCOP messages // Register app as able to send DCOP messages
DCOPClient *dcopClient; DCOPClient *dcopClient;
if (kapp) if (tdeApp)
dcopClient = kapp->dcopClient(); dcopClient = tdeApp->dcopClient();
else else
dcopClient = new DCOPClient; dcopClient = new DCOPClient;
@ -3081,7 +3081,7 @@ startServiceInternal( const TQCString &function,
{ {
if (error) if (error)
*error = i18n("Could not register with DCOP.\n"); *error = i18n("Could not register with DCOP.\n");
if (!kapp) if (!tdeApp)
delete dcopClient; delete dcopClient;
return -1; return -1;
@ -3116,11 +3116,11 @@ startServiceInternal( const TQCString &function,
{ {
if (error) if (error)
*error = i18n("TDELauncher could not be reached via DCOP.\n"); *error = i18n("TDELauncher could not be reached via DCOP.\n");
if (!kapp) if (!tdeApp)
delete dcopClient; delete dcopClient;
return -1; return -1;
} }
if (!kapp) if (!tdeApp)
delete dcopClient; delete dcopClient;
if (noWait) if (noWait)
@ -3720,7 +3720,7 @@ void TDEApplication::sigpipeHandler(int)
bool TDEApplication::guiEnabled() bool TDEApplication::guiEnabled()
{ {
return kapp && kapp->d->guiEnabled; return tdeApp && tdeApp->d->guiEnabled;
} }
void TDEApplication::virtual_hook( int id, void* data ) void TDEApplication::virtual_hook( int id, void* data )

@ -1,4 +1,4 @@
/* This file is part of the KDE libraries /* This file is part of the TDE libraries
Copyright (C) 1997 Matthias Kalle Dalheimer (kalle@kde.org) Copyright (C) 1997 Matthias Kalle Dalheimer (kalle@kde.org)
Copyright (c) 1998, 1999 KDE Team Copyright (c) 1998, 1999 KDE Team
@ -46,7 +46,7 @@ class KSessionManaged;
class TDEStyle; class TDEStyle;
class KURL; class KURL;
#define kapp TDEApplication::kApplication() #define tdeApp TDEApplication::tdeApplication()
class TDEApplicationPrivate; class TDEApplicationPrivate;
@ -54,7 +54,7 @@ class TDEApplicationPrivate;
* Controls and provides information to all KDE applications. * Controls and provides information to all KDE applications.
* *
* Only one object of this class can be instantiated in a single app. * Only one object of this class can be instantiated in a single app.
* This instance is always accessible via the 'kapp' global variable. * This instance is always accessible via the 'tdeApp' global variable.
* See cut() for an example. * See cut() for an example.
* *
* This class provides the following services to all KDE applications. * This class provides the following services to all KDE applications.
@ -296,7 +296,7 @@ public:
* to every function that may require it. * to every function that may require it.
* @return the current application object * @return the current application object
*/ */
static TDEApplication* kApplication() { return KApp; } static TDEApplication* tdeApplication() { return TDEApp; }
/** /**
* Returns the application session config object. * Returns the application session config object.
@ -619,7 +619,7 @@ public slots:
* If the widget with focus provides a cut() slot, call that slot. Thus for a * If the widget with focus provides a cut() slot, call that slot. Thus for a
* simple application cut can be implemented as: * simple application cut can be implemented as:
* \code * \code
* KStdAction::cut( kapp, TQ_SLOT( cut() ), actionCollection() ); * KStdAction::cut( tdeApp, TQ_SLOT( cut() ), actionCollection() );
* \endcode * \endcode
*/ */
void cut(); void cut();
@ -628,7 +628,7 @@ public slots:
* If the widget with focus provides a copy() slot, call that slot. Thus for a * If the widget with focus provides a copy() slot, call that slot. Thus for a
* simple application copy can be implemented as: * simple application copy can be implemented as:
* \code * \code
* KStdAction::copy( kapp, TQ_SLOT( copy() ), actionCollection() ); * KStdAction::copy( tdeApp, TQ_SLOT( copy() ), actionCollection() );
* \endcode * \endcode
*/ */
void copy(); void copy();
@ -637,7 +637,7 @@ public slots:
* If the widget with focus provides a paste() slot, call that slot. Thus for a * If the widget with focus provides a paste() slot, call that slot. Thus for a
* simple application copy can be implemented as: * simple application copy can be implemented as:
* \code * \code
* KStdAction::paste( kapp, TQ_SLOT( paste() ), actionCollection() ); * KStdAction::paste( tdeApp, TQ_SLOT( paste() ), actionCollection() );
* \endcode * \endcode
*/ */
void paste(); void paste();
@ -646,7 +646,7 @@ public slots:
* If the widget with focus provides a clear() slot, call that slot. Thus for a * If the widget with focus provides a clear() slot, call that slot. Thus for a
* simple application clear() can be implemented as: * simple application clear() can be implemented as:
* \code * \code
* new TDEAction( i18n( "Clear" ), "edit-clear", 0, kapp, TQ_SLOT( clear() ), actionCollection(), "clear" ); * new TDEAction( i18n( "Clear" ), "edit-clear", 0, tdeApp, TQ_SLOT( clear() ), actionCollection(), "clear" );
* \endcode * \endcode
* *
* Note that for some widgets, this may not provide the intended bahavior. For * Note that for some widgets, this may not provide the intended bahavior. For
@ -673,7 +673,7 @@ public slots:
* If the widget with focus provides a selectAll() slot, call that slot. Thus for a * If the widget with focus provides a selectAll() slot, call that slot. Thus for a
* simple application select all can be implemented as: * simple application select all can be implemented as:
* \code * \code
* KStdAction::selectAll( kapp, TQ_SLOT( selectAll() ), actionCollection() ); * KStdAction::selectAll( tdeApp, TQ_SLOT( selectAll() ), actionCollection() );
* \endcode * \endcode
*/ */
void selectAll(); void selectAll();
@ -898,7 +898,7 @@ public:
* userCaption using a standard layout. * userCaption using a standard layout.
* *
* To make a compliant caption * To make a compliant caption
* for your window, simply do: @p setCaption(kapp->makeStdCaption(yourCaption)); * for your window, simply do: @p setCaption(tdeApp->makeStdCaption(yourCaption));
* *
* @param userCaption The caption string you want to display in the * @param userCaption The caption string you want to display in the
* window caption area. Do not include the application name! * window caption area. Do not include the application name!
@ -1278,7 +1278,7 @@ protected:
int kipcEventMask; int kipcEventMask;
/// Current application object. /// Current application object.
static TDEApplication *KApp; static TDEApplication *TDEApp;
int pArgc; int pArgc;
/** /**
@ -1301,7 +1301,7 @@ protected:
* focused widget if it provides this slot. You can combine this with TDEAction with: * focused widget if it provides this slot. You can combine this with TDEAction with:
* *
* \code * \code
* KStdAction::deselect( static_cast<MyApplication *>( kapp ), TQ_SLOT( cut() ), actionCollection() ); * KStdAction::deselect( static_cast<MyApplication *>( tdeApp ), TQ_SLOT( cut() ), actionCollection() );
* \endcode * \endcode
* *
* @see cut() * @see cut()

@ -125,20 +125,20 @@ bool TDECmdLineArgs::ignoreUnknown = false;
void void
TDECmdLineArgs::init(int _argc, char **_argv, const char *_appname, const char* programName, TDECmdLineArgs::init(int _argc, char **_argv, const char *_appname, const char* programName,
const char *_description, const char *_version, bool noKApp) const char *_description, const char *_version, bool noTDEApp)
{ {
init(_argc, _argv, init(_argc, _argv,
new TDEAboutData(_appname, programName, _version, _description), new TDEAboutData(_appname, programName, _version, _description),
noKApp); noTDEApp);
} }
void void
TDECmdLineArgs::init(int _argc, char **_argv, const char *_appname, TDECmdLineArgs::init(int _argc, char **_argv, const char *_appname,
const char *_description, const char *_version, bool noKApp) const char *_description, const char *_version, bool noTDEApp)
{ {
init(_argc, _argv, init(_argc, _argv,
new TDEAboutData(_appname, _appname, _version, _description), new TDEAboutData(_appname, _appname, _version, _description),
noKApp); noTDEApp);
} }
void void
@ -159,7 +159,7 @@ TDECmdLineArgs::init(const TDEAboutData* ab)
void void
TDECmdLineArgs::init(int _argc, char **_argv, const TDEAboutData *_about, bool noKApp) TDECmdLineArgs::init(int _argc, char **_argv, const TDEAboutData *_about, bool noTDEApp)
{ {
argc = _argc; argc = _argc;
argv = _argv; argv = _argv;
@ -187,7 +187,7 @@ TDECmdLineArgs::init(int _argc, char **_argv, const TDEAboutData *_about, bool n
#ifdef TQ_WS_WIN #ifdef TQ_WS_WIN
win32_slashify(mCwd, PATH_MAX); win32_slashify(mCwd, PATH_MAX);
#endif #endif
if (!noKApp) if (!noTDEApp)
TDEApplication::addCmdLineOptions(); TDEApplication::addCmdLineOptions();
} }

@ -241,14 +241,14 @@ public:
* translation. Example: I18N_NOOP("KEdit") * translation. Example: I18N_NOOP("KEdit")
* @param _description A short description of what your application is about. * @param _description A short description of what your application is about.
* @param _version A version. * @param _version A version.
* @param noKApp Set this true to not add commandline options for * @param noTDEApp Set this true to not add commandline options for
* TQApplication / TDEApplication * TQApplication / TDEApplication
* *
* @since 3.2 * @since 3.2
*/ */
static void init(int _argc, char **_argv, const char *_appname, static void init(int _argc, char **_argv, const char *_appname,
const char* programName, const char *_description, const char* programName, const char *_description,
const char *_version, bool noKApp = false); const char *_version, bool noTDEApp = false);
/** /**
* @deprecated * @deprecated
* You should convert any calls to this method to use the one * You should convert any calls to this method to use the one
@ -257,7 +257,7 @@ public:
*/ */
static void init(int _argc, char **_argv, static void init(int _argc, char **_argv,
const char *_appname, const char *_description, const char *_appname, const char *_description,
const char *_version, bool noKApp = false) TDE_DEPRECATED; const char *_version, bool noTDEApp = false) TDE_DEPRECATED;
/** /**
* Initialize class. * Initialize class.
@ -269,11 +269,11 @@ public:
* @param _argc As passed to @p main(...). * @param _argc As passed to @p main(...).
* @param _argv As passed to @p main(...). * @param _argv As passed to @p main(...).
* @param about A TDEAboutData object describing your program. * @param about A TDEAboutData object describing your program.
* @param noKApp Set this true to not add commandline options for * @param noTDEApp Set this true to not add commandline options for
* TQApplication / TDEApplication * TQApplication / TDEApplication
*/ */
static void init(int _argc, char **_argv, static void init(int _argc, char **_argv,
const TDEAboutData *about, bool noKApp = false); const TDEAboutData *about, bool noTDEApp = false);
/** /**
* Initialize Class * Initialize Class

@ -1178,7 +1178,7 @@ bool TDEConfigBackEnd::checkConfigFilesWritable(bool warnUser)
// Note: We don't ask the user if we should not ask this question again because we can't save the answer. // Note: We don't ask the user if we should not ask this question again because we can't save the answer.
errorMsg += i18n("Please contact your system administrator."); errorMsg += i18n("Please contact your system administrator.");
TQString cmdToExec = TDEStandardDirs::findExe(TQString("kdialog")); TQString cmdToExec = TDEStandardDirs::findExe(TQString("kdialog"));
TDEApplication *app = kapp; TDEApplication *app = tdeApp;
if (!cmdToExec.isEmpty() && app) if (!cmdToExec.isEmpty() && app)
{ {
TDEProcess lprocess; TDEProcess lprocess;

@ -1885,7 +1885,7 @@ public:
* If an application computes a default value at runtime for * If an application computes a default value at runtime for
* a certain entry, e.g. like: * a certain entry, e.g. like:
* \code * \code
* TQColor computedDefault = kapp->palette().color(TQPalette::Active, TQColorGroup::Text) * TQColor computedDefault = tdeApp->palette().color(TQPalette::Active, TQColorGroup::Text)
* TQColor color = config->readEntry(key, computedDefault); * TQColor color = config->readEntry(key, computedDefault);
* \encode * \encode
* *

@ -53,7 +53,7 @@ TDEConfigDialogManager::TDEConfigDialogManager(TQWidget *parent, TDEConfigSkelet
{ {
d = new Private(); d = new Private();
kapp->installKDEPropertyMap(); tdeApp->installKDEPropertyMap();
propertyMap = TQSqlPropertyMap::defaultMap(); propertyMap = TQSqlPropertyMap::defaultMap();
init(true); init(true);

@ -63,7 +63,7 @@ class TQSqlPropertyMap;
* To add KColorButton the following code would be inserted in the main. * To add KColorButton the following code would be inserted in the main.
* *
* \code * \code
* kapp->installKDEPropertyMap(); * tdeApp->installKDEPropertyMap();
* TQSqlPropertyMap *map = TQSqlPropertyMap::defaultMap(); * TQSqlPropertyMap *map = TQSqlPropertyMap::defaultMap();
* map->insert("KColorButton", "color"); * map->insert("KColorButton", "color");
* \endcode * \endcode

@ -791,7 +791,7 @@ public:
* Constructor. * Constructor.
* *
* @param configname name of config file. If no name is given, the default * @param configname name of config file. If no name is given, the default
* config file as returned by kapp()->config() is used. * config file as returned by tdeApp()->config() is used.
*/ */
TDEConfigSkeleton(const TQString & configname = TQString::null); TDEConfigSkeleton(const TQString & configname = TQString::null);

@ -215,9 +215,9 @@ TDECrash::defaultCrashHandler (int sig)
} }
} }
if ( kapp && !kapp->startupId().isNull()) { if ( tdeApp && !tdeApp->startupId().isNull()) {
argv[i++] = "--startupid"; argv[i++] = "--startupid";
argv[i++] = kapp->startupId().data(); argv[i++] = tdeApp->startupId().data();
} }
if ( safer ) if ( safer )

@ -724,8 +724,8 @@ void TDEGlobalSettings::initPaths()
} }
// Make sure this app gets the notifications about those paths // Make sure this app gets the notifications about those paths
if (kapp) if (tdeApp)
kapp->addKipcEventMask(KIPC::SettingsChanged); tdeApp->addKipcEventMask(KIPC::SettingsChanged);
} }
void TDEGlobalSettings::initColors() void TDEGlobalSettings::initColors()
@ -803,7 +803,7 @@ TDEGlobalSettings::KMouseSettings & TDEGlobalSettings::mouseSettings()
// Keep in sync ! // Keep in sync !
s.handed = KMouseSettings::RightHanded; s.handed = KMouseSettings::RightHanded;
unsigned char map[20]; unsigned char map[20];
int num_buttons = XGetPointerMapping(kapp->getDisplay(), map, 20); int num_buttons = XGetPointerMapping(tdeApp->getDisplay(), map, 20);
if( num_buttons == 2 ) if( num_buttons == 2 )
{ {
if ( (int)map[0] == 1 && (int)map[1] == 2 ) if ( (int)map[0] == 1 && (int)map[1] == 2 )

@ -851,7 +851,7 @@ bool TDERootSystemDevice::setPowerState(TDESystemPowerState::TDESystemPowerState
TQByteArray data; TQByteArray data;
TQDataStream arg(data, IO_WriteOnly); TQDataStream arg(data, IO_WriteOnly);
arg << (int)0 << (int)2 << (int)2; arg << (int)0 << (int)2 << (int)2;
if ( kapp->dcopClient()->send("ksmserver", "default", "logout(int,int,int)", data) ) { if ( tdeApp->dcopClient()->send("ksmserver", "default", "logout(int,int,int)", data) ) {
return true; return true;
} }
return false; return false;
@ -902,7 +902,7 @@ bool TDERootSystemDevice::setPowerState(TDESystemPowerState::TDESystemPowerState
TQByteArray data; TQByteArray data;
TQDataStream arg(data, IO_WriteOnly); TQDataStream arg(data, IO_WriteOnly);
arg << (int)0 << (int)1 << (int)2; arg << (int)0 << (int)1 << (int)2;
if ( kapp->dcopClient()->send("ksmserver", "default", "logout(int,int,int)", data) ) { if ( tdeApp->dcopClient()->send("ksmserver", "default", "logout(int,int,int)", data) ) {
return true; return true;
} }
return false; return false;

@ -124,9 +124,9 @@ TDEStartupInfo::TDEStartupInfo( bool clean_on_cantdetect_P, TQObject* parent_P,
void TDEStartupInfo::init( int flags_P ) void TDEStartupInfo::init( int flags_P )
{ {
// d == NULL means "disabled" // d == NULL means "disabled"
if( !TDEApplication::kApplication()) if( !tdeApp)
return; return;
if( !TDEApplication::kApplication()->getDisplay()) if( !tdeApp->getDisplay())
return; return;
d = new TDEStartupInfoPrivate( flags_P ); d = new TDEStartupInfoPrivate( flags_P );
@ -183,7 +183,7 @@ class DelayedWindowEvent
void TDEStartupInfo::slot_window_added( WId w_P ) void TDEStartupInfo::slot_window_added( WId w_P )
{ {
kapp->postEvent( this, new DelayedWindowEvent( w_P )); tdeApp->postEvent( this, new DelayedWindowEvent( w_P ));
} }
void TDEStartupInfo::customEvent( TQCustomEvent* e_P ) void TDEStartupInfo::customEvent( TQCustomEvent* e_P )
@ -489,8 +489,8 @@ bool TDEStartupInfo::sendFinishX( Display* disp_P, const TDEStartupInfoId& id_P,
void TDEStartupInfo::appStarted() void TDEStartupInfo::appStarted()
{ {
if( kapp != NULL ) // TDEApplication constructor unsets the env. variable if( tdeApp != NULL ) // TDEApplication constructor unsets the env. variable
appStarted( kapp->startupId()); appStarted( tdeApp->startupId());
else else
appStarted( TDEStartupInfo::currentStartupIdEnv().id()); appStarted( TDEStartupInfo::currentStartupIdEnv().id());
} }
@ -501,7 +501,7 @@ void TDEStartupInfo::appStarted( const TQCString& startup_id )
id.initId( startup_id ); id.initId( startup_id );
if( id.none()) if( id.none())
return; return;
if( kapp != NULL ) if( tdeApp != NULL )
TDEStartupInfo::sendFinish( id ); TDEStartupInfo::sendFinish( id );
else if( getenv( "DISPLAY" ) != NULL ) // don't rely on tqt_xdisplay() else if( getenv( "DISPLAY" ) != NULL ) // don't rely on tqt_xdisplay()
{ {
@ -524,7 +524,7 @@ void TDEStartupInfo::disableAutoAppStartedSending( bool disable )
void TDEStartupInfo::silenceStartup( bool silence ) void TDEStartupInfo::silenceStartup( bool silence )
{ {
TDEStartupInfoId id; TDEStartupInfoId id;
id.initId( kapp->startupId()); id.initId( tdeApp->startupId());
if( id.none()) if( id.none())
return; return;
TDEStartupInfoData data; TDEStartupInfoData data;
@ -541,7 +541,7 @@ void TDEStartupInfo::handleAutoAppStartedSending()
void TDEStartupInfo::setNewStartupId( TQWidget* window, const TQCString& startup_id ) void TDEStartupInfo::setNewStartupId( TQWidget* window, const TQCString& startup_id )
{ {
bool activate = true; bool activate = true;
kapp->setStartupId( startup_id ); tdeApp->setStartupId( startup_id );
if( window != NULL ) if( window != NULL )
{ {
if( !startup_id.isEmpty() && startup_id != "0" ) if( !startup_id.isEmpty() && startup_id != "0" )

@ -92,9 +92,9 @@ KSycoca::KSycoca()
{ {
d = new KSycocaPrivate; d = new KSycocaPrivate;
// Register app as able to receive DCOP messages // Register app as able to receive DCOP messages
if (kapp && !kapp->dcopClient()->isAttached()) if (tdeApp && !tdeApp->dcopClient()->isAttached())
{ {
kapp->dcopClient()->attach(); tdeApp->dcopClient()->attach();
} }
// We register with DCOP _before_ we try to open the database. // We register with DCOP _before_ we try to open the database.
// This way we can be relative sure that the KDE framework is // This way we can be relative sure that the KDE framework is

@ -187,8 +187,8 @@ TDEUniqueApplication::start()
#ifdef TQ_WS_X11 #ifdef TQ_WS_X11
// say we're up and running ( probably no new window will appear ) // say we're up and running ( probably no new window will appear )
TDEStartupInfoId id; TDEStartupInfoId id;
if( kapp != NULL ) // TDEApplication constructor unsets the env. variable if( tdeApp != NULL ) // TDEApplication constructor unsets the env. variable
id.initId( kapp->startupId()); id.initId( tdeApp->startupId());
else else
id = TDEStartupInfo::currentStartupIdEnv(); id = TDEStartupInfo::currentStartupIdEnv();
if( !id.none()) if( !id.none())
@ -211,8 +211,8 @@ TDEUniqueApplication::start()
{ {
#ifdef TQ_WS_X11 #ifdef TQ_WS_X11
TDEStartupInfoId id; TDEStartupInfoId id;
if( kapp != NULL ) // TDEApplication constructor unsets the env. variable if( tdeApp != NULL ) // TDEApplication constructor unsets the env. variable
id.initId( kapp->startupId()); id.initId( tdeApp->startupId());
else else
id = TDEStartupInfo::currentStartupIdEnv(); id = TDEStartupInfo::currentStartupIdEnv();
if( !id.none()) if( !id.none())
@ -274,8 +274,8 @@ TDEUniqueApplication::start()
TQCString new_asn_id; TQCString new_asn_id;
#if defined TQ_WS_X11 #if defined TQ_WS_X11
TDEStartupInfoId id; TDEStartupInfoId id;
if( kapp != NULL ) // TDEApplication constructor unsets the env. variable if( tdeApp != NULL ) // TDEApplication constructor unsets the env. variable
id.initId( kapp->startupId()); id.initId( tdeApp->startupId());
else else
id = TDEStartupInfo::currentStartupIdEnv(); id = TDEStartupInfo::currentStartupIdEnv();
if( !id.none()) if( !id.none())
@ -486,7 +486,7 @@ int TDEUniqueApplication::newInstance()
// and what's important, it does it properly. If you reimplement newInstance(), // and what's important, it does it properly. If you reimplement newInstance(),
// and don't call the inherited one, use this (but NOT when newInstance() // and don't call the inherited one, use this (but NOT when newInstance()
// is called for the first time, like here). // is called for the first time, like here).
TDEStartupInfo::setNewStartupId( mainWidget(), kapp->startupId()); TDEStartupInfo::setNewStartupId( mainWidget(), tdeApp->startupId());
#endif #endif
} }
} }

@ -7,8 +7,8 @@ int main( int argc, char** argv )
{ {
TDEApplication app( argc, argv, "KIDLTestClient", false /* No GUI */ ); TDEApplication app( argc, argv, "KIDLTestClient", false /* No GUI */ );
kapp->dcopClient()->attach(); tdeApp->dcopClient()->attach();
// kapp->dcopClient()->registerAs( "kidlclienttest" ); // tdeApp->dcopClient()->registerAs( "kidlclienttest" );
KIDLTest_stub* t = new KIDLTest_stub( "kidlservertest", "Hello" ); KIDLTest_stub* t = new KIDLTest_stub( "kidlservertest", "Hello" );

@ -6,8 +6,8 @@ int main( int argc, char** argv )
{ {
TDEApplication app( argc, argv, "KIDLTestClient", false ); TDEApplication app( argc, argv, "KIDLTestClient", false );
kapp->dcopClient()->attach(); tdeApp->dcopClient()->attach();
// kapp->dcopClient()->registerAs( "kidlclienttest" ); // tdeApp->dcopClient()->registerAs( "kidlclienttest" );
TQByteArray data; TQByteArray data;
@ -15,20 +15,20 @@ int main( int argc, char** argv )
TQByteArray snd; TQByteArray snd;
TQByteArray rcv; TQByteArray rcv;
TQCString _type_; TQCString _type_;
kapp->dcopClient()->call( "konqueror", "KonquerorIface", "reparseConfiguration()", snd, _type_, rcv ); tdeApp->dcopClient()->call( "konqueror", "KonquerorIface", "reparseConfiguration()", snd, _type_, rcv );
kdDebug() << _type_ << endl; kdDebug() << _type_ << endl;
if( _type_ != "void" ) kdDebug() << "void expected, " << _type_.data() << " returned" << endl; if( _type_ != "void" ) kdDebug() << "void expected, " << _type_.data() << " returned" << endl;
/* /*
debug("sending configure to object KonquerorIface in konqueror"); debug("sending configure to object KonquerorIface in konqueror");
if (kapp->dcopClient()->send( "konqueror", "KonquerorIface", "configure()", data )) if (tdeApp->dcopClient()->send( "konqueror", "KonquerorIface", "configure()", data ))
debug("ok"); debug("ok");
else else
debug("ko"); debug("ko");
/// BROADCAST /// BROADCAST
debug("sending databaseChanged to object tdesycoca in all apps"); debug("sending databaseChanged to object tdesycoca in all apps");
if (kapp->dcopClient()->send( "*", "tdesycoca", "databaseChanged()", data )) if (tdeApp->dcopClient()->send( "*", "tdesycoca", "databaseChanged()", data ))
debug("ok"); debug("ok");
else else
debug("ko"); debug("ko");

@ -8,12 +8,12 @@
MyObject::MyObject() MyObject::MyObject()
: TQObject(0L, "testobj") : TQObject(0L, "testobj")
{ {
connect(kapp, TQ_SIGNAL(tdedisplayPaletteChanged()), TQ_SLOT(slotPaletteChanged())); connect(tdeApp, TQ_SIGNAL(tdedisplayPaletteChanged()), TQ_SLOT(slotPaletteChanged()));
connect(kapp, TQ_SIGNAL(tdedisplayFontChanged()), TQ_SLOT(slotFontChanged())); connect(tdeApp, TQ_SIGNAL(tdedisplayFontChanged()), TQ_SLOT(slotFontChanged()));
connect(kapp, TQ_SIGNAL(tdedisplayStyleChanged()), TQ_SLOT(slotStyleChanged())); connect(tdeApp, TQ_SIGNAL(tdedisplayStyleChanged()), TQ_SLOT(slotStyleChanged()));
connect(kapp, TQ_SIGNAL(backgroundChanged(int)), TQ_SLOT(slotBackgroundChanged(int))); connect(tdeApp, TQ_SIGNAL(backgroundChanged(int)), TQ_SLOT(slotBackgroundChanged(int)));
connect(kapp, TQ_SIGNAL(appearanceChanged()), TQ_SLOT(slotAppearanceChanged())); connect(tdeApp, TQ_SIGNAL(appearanceChanged()), TQ_SLOT(slotAppearanceChanged()));
connect(kapp, TQ_SIGNAL(kipcMessage(int,int)), TQ_SLOT(slotMessage(int,int))); connect(tdeApp, TQ_SIGNAL(kipcMessage(int,int)), TQ_SLOT(slotMessage(int,int)));
} }
int main(int argc, char **argv) int main(int argc, char **argv)

@ -54,7 +54,7 @@ main(int argc, char *argv[])
for(int i = 0; i < 20; i++) for(int i = 0; i < 20; i++)
printf("%3ld ", seq.getLong(100)); printf("%3ld ", seq.getLong(100));
seq.setSeed(kapp->random()); seq.setSeed(tdeApp->random());
TQPtrList<TQString> list; TQPtrList<TQString> list;
list.append(new TQString("A")); list.append(new TQString("A"));

@ -54,6 +54,6 @@ main(int argc, char *argv[])
TestApp a; TestApp a;
printf("Running.\n"); printf("Running.\n");
kapp->exec(); tdeApp->exec();
printf("Terminating.\n"); printf("Terminating.\n");
} }

@ -29,7 +29,7 @@
-background, you get the same thing. -background, you get the same thing.
in tdecore/tdeapplication.cpp, TDECmdLineOption qt_options is defined and used in tdecore/tdeapplication.cpp, TDECmdLineOption qt_options is defined and used
by the static method Kapplication::addCmdLineOptions to add the Qt options by the static method TDEApplication::addCmdLineOptions to add the Qt options
but its' entries look like this: but its' entries look like this:
{ "background <color>", I18N_NOOP("sets the default background color and an\n { "background <color>", I18N_NOOP("sets the default background color and an\n

@ -167,7 +167,7 @@ ContextWidget::ContextWidget()
: TQWidget(0,0) : TQWidget(0,0)
{ {
twin_net_create_atoms(); twin_net_create_atoms();
kapp->installX11EventFilter( this ); tdeApp->installX11EventFilter( this );
TQWhatsThis::enterWhatsThisMode(); TQWhatsThis::enterWhatsThisMode();
TQCursor c = *TQApplication::overrideCursor(); TQCursor c = *TQApplication::overrideCursor();
TQWhatsThis::leaveWhatsThisMode(); TQWhatsThis::leaveWhatsThisMode();
@ -241,7 +241,7 @@ void KWin::activateWindow( WId win, long time )
if( time == 0 ) if( time == 0 )
time = get_tqt_x_user_time(); time = get_tqt_x_user_time();
info.setActiveWindow( win, NET::FromApplication, time, info.setActiveWindow( win, NET::FromApplication, time,
kapp->activeWindow() ? kapp->activeWindow()->winId() : 0 ); tdeApp->activeWindow() ? tdeApp->activeWindow()->winId() : 0 );
#endif // TQ_WS_X11 ... #endif // TQ_WS_X11 ...
TDEUniqueApplication::setHandleAutoStarted(); TDEUniqueApplication::setHandleAutoStarted();
} }
@ -312,9 +312,9 @@ void KWin::setMainWindow( TQWidget* subwindow, WId mainwindow )
*/ */
if( tqt_cast< TQDialog* >( subwindow ) != NULL if( tqt_cast< TQDialog* >( subwindow ) != NULL
&& subwindow->parentWidget() == NULL && subwindow->parentWidget() == NULL
&& kapp->mainWidget() != NULL ) && tdeApp->mainWidget() != NULL )
{ {
kdWarning() << "KWin::setMainWindow(): There either mustn't be kapp->mainWidget()," kdWarning() << "KWin::setMainWindow(): There either mustn't be tdeApp->mainWidget(),"
" or the dialog must have a non-NULL parent, otherwise Qt will reset the change. Bummer." << endl; " or the dialog must have a non-NULL parent, otherwise Qt will reset the change. Bummer." << endl;
} }
XSetTransientForHint( tqt_xdisplay(), subwindow->winId(), mainwindow ); XSetTransientForHint( tqt_xdisplay(), subwindow->winId(), mainwindow );

@ -71,8 +71,8 @@ public:
strutSignalConnected( false ), strutSignalConnected( false ),
what( _what ) what( _what )
{ {
kapp->installX11EventFilter( this ); tdeApp->installX11EventFilter( this );
(void ) kapp->desktop(); //trigger desktop widget creation to select root window events (void ) tdeApp->desktop(); //trigger desktop widget creation to select root window events
activate(); activate();
updateStackingOrder(); updateStackingOrder();
} }
@ -468,13 +468,13 @@ void KWinModule::setDesktopName( int desktop, const TQString& name )
void KWinModule::doNotManage( const TQString& title ) void KWinModule::doNotManage( const TQString& title )
{ {
if ( !kapp->dcopClient()->isAttached() ) if ( !tdeApp->dcopClient()->isAttached() )
kapp->dcopClient()->attach(); tdeApp->dcopClient()->attach();
TQByteArray data, replyData; TQByteArray data, replyData;
TQCString replyType; TQCString replyType;
TQDataStream arg(data, IO_WriteOnly); TQDataStream arg(data, IO_WriteOnly);
arg << title; arg << title;
kapp->dcopClient()->call("twin", "", "doNotManage(TQString)", tdeApp->dcopClient()->call("twin", "", "doNotManage(TQString)",
data, replyType, replyData); data, replyType, replyData);
} }

@ -860,12 +860,12 @@ bool KJSDebugWin::exception(ExecState *exec, const Value &value, bool inTryCatch
} }
if (dontShowAgain) { if (dontShowAgain) {
TDEConfig *config = kapp->config(); TDEConfig *config = tdeApp->config();
TDEConfigGroupSaver saver(config,TQString::fromLatin1("Java/JavaScript Settings")); TDEConfigGroupSaver saver(config,TQString::fromLatin1("Java/JavaScript Settings"));
config->writeEntry("ReportJavaScriptErrors",TQVariant(false)); config->writeEntry("ReportJavaScriptErrors",TQVariant(false));
config->sync(); config->sync();
TQByteArray data; TQByteArray data;
kapp->dcopClient()->send( "konqueror*", "KonquerorIface", "reparseConfiguration()", data ); tdeApp->dcopClient()->send( "konqueror*", "KonquerorIface", "reparseConfiguration()", data );
} }
return (m_mode != Stop); return (m_mode != Stop);

@ -117,7 +117,7 @@ DOMString HTMLDocumentImpl::cookie() const
TQByteArray params, reply; TQByteArray params, reply;
TQDataStream stream(params, IO_WriteOnly); TQDataStream stream(params, IO_WriteOnly);
stream << URL().url() << windowId; stream << URL().url() << windowId;
if (!kapp->dcopClient()->call("kcookiejar", "kcookiejar", if (!tdeApp->dcopClient()->call("kcookiejar", "kcookiejar",
"findDOMCookies(TQString,long int)", params, "findDOMCookies(TQString,long int)", params,
replyType, reply)) replyType, reply))
{ {
@ -151,12 +151,12 @@ void HTMLDocumentImpl::setCookie( const DOMString & value )
fake_header.append(value.string().latin1()); fake_header.append(value.string().latin1());
fake_header.append("\n"); fake_header.append("\n");
stream << URL().url() << fake_header << windowId; stream << URL().url() << fake_header << windowId;
if (!kapp->dcopClient()->send("kcookiejar", "kcookiejar", if (!tdeApp->dcopClient()->send("kcookiejar", "kcookiejar",
"addCookies(TQString,TQCString,long int)", params)) "addCookies(TQString,TQCString,long int)", params))
{ {
// Maybe it wasn't running (e.g. we're opening local html files) // Maybe it wasn't running (e.g. we're opening local html files)
TDEApplication::startServiceByDesktopName( "kcookiejar"); TDEApplication::startServiceByDesktopName( "kcookiejar");
if (!kapp->dcopClient()->send("kcookiejar", "kcookiejar", if (!tdeApp->dcopClient()->send("kcookiejar", "kcookiejar",
"addCookies(TQString,TQCString,long int)", params)) "addCookies(TQString,TQCString,long int)", params))
kdWarning(6010) << "Can't communicate with cookiejar!" << endl; kdWarning(6010) << "Can't communicate with cookiejar!" << endl;
} }

@ -726,7 +726,7 @@ void KJavaAppletServer::waitForReturnData(JSStackFrame * frame) {
killTimers(); killTimers();
startTimer(15000); startTimer(15000);
while (!frame->exit) while (!frame->exit)
kapp->eventLoop()->processEvents (TQEventLoop::AllEvents | TQEventLoop::WaitForMore); tdeApp->eventLoop()->processEvents (TQEventLoop::AllEvents | TQEventLoop::WaitForMore);
if (d->jsstack.size() <= 1) if (d->jsstack.size() <= 1)
killTimers(); killTimers();
kdDebug(6100) << "<KJavaAppletServer::waitForReturnData stacksize:" << d->jsstack.size() << endl; kdDebug(6100) << "<KJavaAppletServer::waitForReturnData stacksize:" << d->jsstack.size() << endl;

@ -303,7 +303,7 @@ KJavaAppletViewer::KJavaAppletViewer (TQWidget * wparent, const char *,
// check codebase first // check codebase first
const KURL kbaseURL( baseurl ); const KURL kbaseURL( baseurl );
const KURL newURL(kbaseURL, codebase); const KURL newURL(kbaseURL, codebase);
if (kapp->authorizeURLAction("redirect", KURL(baseurl), newURL)) if (tdeApp->authorizeURLAction("redirect", KURL(baseurl), newURL))
applet->setCodeBase (newURL.url()); applet->setCodeBase (newURL.url());
applet->setAppletClass (classname); applet->setAppletClass (classname);
KJavaAppletContext* const cxt = serverMaintainer->getContext (parent, baseurl); KJavaAppletContext* const cxt = serverMaintainer->getContext (parent, baseurl);
@ -329,7 +329,7 @@ KJavaAppletViewer::KJavaAppletViewer (TQWidget * wparent, const char *,
TQDataStream stream(params, IO_WriteOnly); TQDataStream stream(params, IO_WriteOnly);
stream << info << m_view->topLevelWidget()->winId(); stream << info << m_view->topLevelWidget()->winId();
if (!kapp->dcopClient ()->call( "kded", "kpasswdserver", "checkAuthInfo(TDEIO::AuthInfo, long int)", params, replyType, reply ) ) { if (!tdeApp->dcopClient ()->call( "kded", "kpasswdserver", "checkAuthInfo(TDEIO::AuthInfo, long int)", params, replyType, reply ) ) {
kdWarning() << "Can't communicate with kded_kpasswdserver!" << endl; kdWarning() << "Can't communicate with kded_kpasswdserver!" << endl;
} else if ( replyType == "TDEIO::AuthInfo" ) { } else if ( replyType == "TDEIO::AuthInfo" ) {
TQDataStream stream2( reply, IO_ReadOnly ); TQDataStream stream2( reply, IO_ReadOnly );

@ -1022,7 +1022,7 @@ bool DocLoader::needReload(CachedObject *existing, const TQString& fullURL)
KURL fullURL (m_doc->completeURL( url.string() )); \ KURL fullURL (m_doc->completeURL( url.string() )); \
if ( !fullURL.isValid() || \ if ( !fullURL.isValid() || \
( m_part && m_part->onlyLocalReferences() && fullURL.protocol() != "file" && fullURL.protocol() != "data") || \ ( m_part && m_part->onlyLocalReferences() && fullURL.protocol() != "file" && fullURL.protocol() != "data") || \
doRedirectCheck && ( kapp && m_doc && !kapp->authorizeURLAction("redirect", m_doc->URL(), fullURL))) \ doRedirectCheck && ( tdeApp && m_doc && !tdeApp->authorizeURLAction("redirect", m_doc->URL(), fullURL))) \
return 0L; return 0L;
CachedImage *DocLoader::requestImage( const DOM::DOMString &url) CachedImage *DocLoader::requestImage( const DOM::DOMString &url)

@ -657,7 +657,7 @@ void TDEHTMLPopupGUIClient::slotSendImage()
TQStringList urls; TQStringList urls;
urls.append( d->m_imageURL.url()); urls.append( d->m_imageURL.url());
TQString subject = d->m_imageURL.url(); TQString subject = d->m_imageURL.url();
kapp->invokeMailer(TQString::null, TQString::null, TQString::null, subject, tdeApp->invokeMailer(TQString::null, TQString::null, TQString::null, subject,
TQString::null, //body TQString::null, //body
TQString::null, TQString::null,
urls); // attachments urls); // attachments

@ -1483,7 +1483,7 @@ void TDEHTMLPart::clear()
d->m_startOffset = 0; d->m_startOffset = 0;
d->m_endOffset = 0; d->m_endOffset = 0;
#ifndef TQT_NO_CLIPBOARD #ifndef TQT_NO_CLIPBOARD
connect( kapp->clipboard(), TQ_SIGNAL( selectionChanged()), TQ_SLOT( slotClearSelection())); connect( tdeApp->clipboard(), TQ_SIGNAL( selectionChanged()), TQ_SLOT( slotClearSelection()));
#endif #endif
d->m_jobPercent = 0; d->m_jobPercent = 0;
@ -2426,7 +2426,7 @@ void TDEHTMLPart::slotRedirect()
if ( openedByJS() && d->m_opener ) if ( openedByJS() && d->m_opener )
cUrl = d->m_opener->url(); cUrl = d->m_opener->url();
if (!kapp || !kapp->authorizeURLAction("redirect", cUrl, url)) if (!tdeApp || !tdeApp->authorizeURLAction("redirect", cUrl, url))
{ {
kdWarning(6050) << "TDEHTMLPart::scheduleRedirection: Redirection from " << cUrl << " to " << url << " REJECTED!" << endl; kdWarning(6050) << "TDEHTMLPart::scheduleRedirection: Redirection from " << cUrl << " to " << url << " REJECTED!" << endl;
emit completed(); emit completed();
@ -3008,7 +3008,7 @@ void TDEHTMLPart::findText()
// The lineedit of the dialog would make tdehtml lose its selection, otherwise // The lineedit of the dialog would make tdehtml lose its selection, otherwise
#ifndef TQT_NO_CLIPBOARD #ifndef TQT_NO_CLIPBOARD
disconnect( kapp->clipboard(), TQ_SIGNAL(selectionChanged()), this, TQ_SLOT(slotClearSelection()) ); disconnect( tdeApp->clipboard(), TQ_SIGNAL(selectionChanged()), this, TQ_SLOT(slotClearSelection()) );
#endif #endif
// Now show the dialog in which the user can choose options. // Now show the dialog in which the user can choose options.
@ -3039,7 +3039,7 @@ void TDEHTMLPart::findText( const TQString &str, long options, TQWidget *parent,
return; return;
#ifndef TQT_NO_CLIPBOARD #ifndef TQT_NO_CLIPBOARD
connect( kapp->clipboard(), TQ_SIGNAL(selectionChanged()), TQ_SLOT(slotClearSelection()) ); connect( tdeApp->clipboard(), TQ_SIGNAL(selectionChanged()), TQ_SLOT(slotClearSelection()) );
#endif #endif
// Create the KFind object // Create the KFind object
@ -4779,7 +4779,7 @@ void TDEHTMLPart::submitForm( const char *action, const TQString &url, const TQB
KGuiItem(i18n("&Send Unencrypted")), KGuiItem(i18n("&Send Unencrypted")),
"WarnOnUnencryptedForm"); "WarnOnUnencryptedForm");
// Move this setting into KSSL instead // Move this setting into KSSL instead
TDEConfig *config = kapp->config(); TDEConfig *config = tdeApp->config();
TQString grpNotifMsgs = TQString::fromLatin1("Notification Messages"); TQString grpNotifMsgs = TQString::fromLatin1("Notification Messages");
TDEConfigGroupSaver saver( config, grpNotifMsgs ); TDEConfigGroupSaver saver( config, grpNotifMsgs );
@ -6615,9 +6615,9 @@ void TDEHTMLPart::tdehtmlMouseReleaseEvent( tdehtml::MouseReleaseEvent *event )
#ifndef TQT_NO_CLIPBOARD #ifndef TQT_NO_CLIPBOARD
TQString text = selectedText(); TQString text = selectedText();
text.replace(TQChar(0xa0), ' '); text.replace(TQChar(0xa0), ' ');
disconnect( kapp->clipboard(), TQ_SIGNAL( selectionChanged()), this, TQ_SLOT( slotClearSelection())); disconnect( tdeApp->clipboard(), TQ_SIGNAL( selectionChanged()), this, TQ_SLOT( slotClearSelection()));
kapp->clipboard()->setText(text,TQClipboard::Selection); tdeApp->clipboard()->setText(text,TQClipboard::Selection);
connect( kapp->clipboard(), TQ_SIGNAL( selectionChanged()), TQ_SLOT( slotClearSelection())); connect( tdeApp->clipboard(), TQ_SIGNAL( selectionChanged()), TQ_SLOT( slotClearSelection()));
#endif #endif
//kdDebug( 6000 ) << "selectedText = " << text << endl; //kdDebug( 6000 ) << "selectedText = " << text << endl;
emitSelectionChanged(); emitSelectionChanged();
@ -6819,7 +6819,7 @@ bool TDEHTMLPart::checkLinkSecurity(const KURL &linkURL,const TQString &message,
bool linkAllowed = true; bool linkAllowed = true;
if ( d->m_doc ) if ( d->m_doc )
linkAllowed = kapp && kapp->authorizeURLAction("redirect", url(), linkURL); linkAllowed = tdeApp && tdeApp->authorizeURLAction("redirect", url(), linkURL);
if ( !linkAllowed ) { if ( !linkAllowed ) {
tdehtml::Tokenizer *tokenizer = d->m_doc->tokenizer(); tdehtml::Tokenizer *tokenizer = d->m_doc->tokenizer();

@ -493,7 +493,7 @@ TDEHTMLView::TDEHTMLView( TDEHTMLPart *part, TQWidget *parent, const char *name)
d = new TDEHTMLViewPrivate; d = new TDEHTMLViewPrivate;
TQScrollView::setVScrollBarMode(d->vmode); TQScrollView::setVScrollBarMode(d->vmode);
TQScrollView::setHScrollBarMode(d->hmode); TQScrollView::setHScrollBarMode(d->hmode);
connect(kapp, TQ_SIGNAL(tdedisplayPaletteChanged()), this, TQ_SLOT(slotPaletteChanged())); connect(tdeApp, TQ_SIGNAL(tdedisplayPaletteChanged()), this, TQ_SLOT(slotPaletteChanged()));
connect(this, TQ_SIGNAL(contentsMoving(int, int)), this, TQ_SLOT(slotScrollBarMoved())); connect(this, TQ_SIGNAL(contentsMoving(int, int)), this, TQ_SLOT(slotScrollBarMoved()));
// initialize QScrollView // initialize QScrollView
@ -4574,12 +4574,12 @@ void TDEHTMLView::scrollTick() {
d->dy -= ddy; d->dy -= ddy;
// TQScrollView::setContentsPos( contentsX() + ddx, contentsY() + ddy); // TQScrollView::setContentsPos( contentsX() + ddx, contentsY() + ddy);
kapp->syncX(); tdeApp->syncX();
TQScrollView::scrollBy(ddx, ddy); TQScrollView::scrollBy(ddx, ddy);
// Unaccelerated X can get seriously overloaded by scrolling and for some reason // Unaccelerated X can get seriously overloaded by scrolling and for some reason
// will send KeyPress events only infrequently. This should help to reduce // will send KeyPress events only infrequently. This should help to reduce
// the load. // the load.
kapp->syncX(); tdeApp->syncX();
} }
void TDEHTMLView::startScrolling() void TDEHTMLView::startScrolling()

@ -139,7 +139,7 @@ void PartMonitor::waitForCompletion()
sm_highestMonitor = this; sm_highestMonitor = this;
kapp->enter_loop(); tdeApp->enter_loop();
//connect(m_timeout_timer, TQ_SIGNAL(timeout()), this, TQ_SLOT( timeout() ) ); //connect(m_timeout_timer, TQ_SIGNAL(timeout()), this, TQ_SLOT( timeout() ) );
//m_timeout_timer->stop(); //m_timeout_timer->stop();
@ -147,12 +147,12 @@ void PartMonitor::waitForCompletion()
} }
TQTimer::singleShot( 0, this, TQ_SLOT( finishTimers() ) ); TQTimer::singleShot( 0, this, TQ_SLOT( finishTimers() ) );
kapp->enter_loop(); tdeApp->enter_loop();
} }
void PartMonitor::timeout() void PartMonitor::timeout()
{ {
kapp->exit_loop(); tdeApp->exit_loop();
} }
void PartMonitor::finishTimers() void PartMonitor::finishTimers()
@ -164,7 +164,7 @@ void PartMonitor::finishTimers()
TQTimer::singleShot( 10, this, TQ_SLOT(finishTimers() ) ); TQTimer::singleShot( 10, this, TQ_SLOT(finishTimers() ) );
return; return;
} }
kapp->exit_loop(); tdeApp->exit_loop();
} }
void PartMonitor::partCompleted() void PartMonitor::partCompleted()
@ -324,7 +324,7 @@ Value TDEHTMLPartFunction::call(ExecState *exec, Object &/*thisObj*/, const List
PartMonitor pm(m_part); PartMonitor pm(m_part);
m_part->openURL(url); m_part->openURL(url);
pm.waitForCompletion(); pm.waitForCompletion();
kapp->processEvents(60000); tdeApp->processEvents(60000);
break; break;
} }
case OpenPageAsUrl: { case OpenPageAsUrl: {
@ -361,7 +361,7 @@ Value TDEHTMLPartFunction::call(ExecState *exec, Object &/*thisObj*/, const List
m_part->end(); m_part->end();
pm.waitForCompletion(); pm.waitForCompletion();
} }
kapp->processEvents(60000); tdeApp->processEvents(60000);
break; break;
} }
case Begin: { case Begin: {
@ -376,7 +376,7 @@ Value TDEHTMLPartFunction::call(ExecState *exec, Object &/*thisObj*/, const List
} }
case End: { case End: {
m_part->end(); m_part->end();
kapp->processEvents(60000); tdeApp->processEvents(60000);
break; break;
} }
case ExecuteScript: { case ExecuteScript: {
@ -386,11 +386,11 @@ Value TDEHTMLPartFunction::call(ExecState *exec, Object &/*thisObj*/, const List
proxy->evaluate("",0,code,0,&comp); proxy->evaluate("",0,code,0,&comp);
if (comp.complType() == Throw) if (comp.complType() == Throw)
exec->setException(comp.value()); exec->setException(comp.value());
kapp->processEvents(60000); tdeApp->processEvents(60000);
break; break;
} }
case ProcessEvents: { case ProcessEvents: {
kapp->processEvents(60000); tdeApp->processEvents(60000);
break; break;
} }
} }

@ -2349,7 +2349,7 @@ bool DocumentImpl::isURLAllowed(const TQString& url) const
return false; return false;
// do we allow this suburl ? // do we allow this suburl ?
if ( !kapp || (newURL.protocol() != "javascript" && !kapp->authorizeURLAction("redirect", thisPart->url(), newURL)) ) if ( !tdeApp || (newURL.protocol() != "javascript" && !tdeApp->authorizeURLAction("redirect", thisPart->url(), newURL)) )
return false; return false;
// We allow one level of self-reference because some sites depend on that. // We allow one level of self-reference because some sites depend on that.
@ -2409,7 +2409,7 @@ void DocumentImpl::abort()
{ {
if (m_inSyncLoad) { if (m_inSyncLoad) {
m_inSyncLoad = false; m_inSyncLoad = false;
kapp->exit_loop(); tdeApp->exit_loop();
} }
if (m_loadingXMLDoc) if (m_loadingXMLDoc)
@ -2421,7 +2421,7 @@ void DocumentImpl::load(const DOMString &uri)
{ {
if (m_inSyncLoad) { if (m_inSyncLoad) {
m_inSyncLoad = false; m_inSyncLoad = false;
kapp->exit_loop(); tdeApp->exit_loop();
} }
m_hadLoadError = false; m_hadLoadError = false;
@ -2447,7 +2447,7 @@ void DocumentImpl::load(const DOMString &uri)
if (!m_async && m_docLoading) { if (!m_async && m_docLoading) {
m_inSyncLoad = true; m_inSyncLoad = true;
kapp->enter_loop(); tdeApp->enter_loop();
} }
} }
@ -2470,7 +2470,7 @@ void DocumentImpl::setStyleSheet(const DOM::DOMString &url, const DOM::DOMString
m_docLoading = false; m_docLoading = false;
if (m_inSyncLoad) { if (m_inSyncLoad) {
m_inSyncLoad = false; m_inSyncLoad = false;
kapp->exit_loop(); tdeApp->exit_loop();
} }
assert(m_loadingXMLDoc != 0); assert(m_loadingXMLDoc != 0);
@ -2483,7 +2483,7 @@ void DocumentImpl::error(int err, const TQString &text)
m_docLoading = false; m_docLoading = false;
if (m_inSyncLoad) { if (m_inSyncLoad) {
m_inSyncLoad = false; m_inSyncLoad = false;
kapp->exit_loop(); tdeApp->exit_loop();
} }
m_hadLoadError = true; m_hadLoadError = true;

@ -246,8 +246,8 @@ void TDELauncher::close()
void void
TDELauncher::destruct(int exit_code) TDELauncher::destruct(int exit_code)
{ {
if (kapp) ((TDELauncher*)kapp)->close(); if (tdeApp) ((TDELauncher*)tdeApp)->close();
// We don't delete kapp here, that's intentional. // We don't delete tdeApp here, that's intentional.
::exit(exit_code); ::exit(exit_code);
} }

@ -32,7 +32,7 @@ int main(int argc, char *argv[])
TDEApplication k(argc, argv, "tdelaunchertest"); TDEApplication k(argc, argv, "tdelaunchertest");
kapp->dcopClient()->registerAs( kapp->name()) ; tdeApp->dcopClient()->registerAs( tdeApp->name()) ;
#if 0 #if 0
TQString error; TQString error;

@ -95,7 +95,7 @@ TQStringList TDECrashBookmarkImporterImpl::getCrashLogs()
{ {
TQMap<TQString, bool> activeLogs; TQMap<TQString, bool> activeLogs;
DCOPClient* dcop = kapp->dcopClient(); DCOPClient* dcop = tdeApp->dcopClient();
QCStringList apps = dcop->registeredApplications(); QCStringList apps = dcop->registeredApplications();
for ( QCStringList::Iterator it = apps.begin(); it != apps.end(); ++it ) for ( QCStringList::Iterator it = apps.begin(); it != apps.end(); ++it )

@ -401,9 +401,9 @@ void RMB::slotRMBActionCopyLocation( int val )
if ( !bookmark.isGroup() ) if ( !bookmark.isGroup() )
{ {
kapp->clipboard()->setData( KBookmarkDrag::newDrag(bookmark, 0), tdeApp->clipboard()->setData( KBookmarkDrag::newDrag(bookmark, 0),
TQClipboard::Selection ); TQClipboard::Selection );
kapp->clipboard()->setData( KBookmarkDrag::newDrag(bookmark, 0), tdeApp->clipboard()->setData( KBookmarkDrag::newDrag(bookmark, 0),
TQClipboard::Clipboard ); TQClipboard::Clipboard );
} }
} }
@ -478,7 +478,7 @@ void KBookmarkMenu::refill()
void KBookmarkMenu::addAddBookmarksList() void KBookmarkMenu::addAddBookmarksList()
{ {
if (!kapp->authorizeTDEAction("bookmarks")) if (!tdeApp->authorizeTDEAction("bookmarks"))
return; return;
TQString title = i18n( "Bookmark Tabs as Folder..." ); TQString title = i18n( "Bookmark Tabs as Folder..." );
@ -498,7 +498,7 @@ void KBookmarkMenu::addAddBookmarksList()
void KBookmarkMenu::addAddBookmark() void KBookmarkMenu::addAddBookmark()
{ {
if (!kapp->authorizeTDEAction("bookmarks")) if (!tdeApp->authorizeTDEAction("bookmarks"))
return; return;
TQString title = i18n( "Add Bookmark" ); TQString title = i18n( "Add Bookmark" );
@ -518,7 +518,7 @@ void KBookmarkMenu::addAddBookmark()
void KBookmarkMenu::addEditBookmarks() void KBookmarkMenu::addEditBookmarks()
{ {
if (!kapp->authorizeTDEAction("bookmarks")) if (!tdeApp->authorizeTDEAction("bookmarks"))
return; return;
TDEAction * m_paEditBookmarks = KStdAction::editBookmarks( m_pManager, TQ_SLOT( slotEditBookmarks() ), TDEAction * m_paEditBookmarks = KStdAction::editBookmarks( m_pManager, TQ_SLOT( slotEditBookmarks() ),
@ -530,7 +530,7 @@ void KBookmarkMenu::addEditBookmarks()
void KBookmarkMenu::addNewFolder() void KBookmarkMenu::addNewFolder()
{ {
if (!kapp->authorizeTDEAction("bookmarks")) if (!tdeApp->authorizeTDEAction("bookmarks"))
return; return;
TQString title = i18n( "&New Bookmark Folder..." ); TQString title = i18n( "&New Bookmark Folder..." );
@ -553,7 +553,7 @@ void KBookmarkMenu::addNewFolder()
void KBookmarkMenu::fillBookmarkMenu() void KBookmarkMenu::fillBookmarkMenu()
{ {
if (!kapp->authorizeTDEAction("bookmarks")) if (!tdeApp->authorizeTDEAction("bookmarks"))
return; return;
if ( m_bIsRoot ) if ( m_bIsRoot )

@ -187,7 +187,7 @@ KPasswdServer::checkAuthInfo(TDEIO::AuthInfo info, long windowId, unsigned long
kdDebug(130) << "KPasswdServer::checkAuthInfo: User= " << info.username kdDebug(130) << "KPasswdServer::checkAuthInfo: User= " << info.username
<< ", WindowId = " << windowId << endl; << ", WindowId = " << windowId << endl;
if( usertime != 0 ) if( usertime != 0 )
kapp->updateUserTimestamp( usertime ); tdeApp->updateUserTimestamp( usertime );
TQString key = createCacheKey(info); TQString key = createCacheKey(info);
@ -256,7 +256,7 @@ KPasswdServer::queryAuthInfo(TDEIO::AuthInfo info, TQString errorMsg, long windo
if ( !info.password.isEmpty() ) // should we really allow the caller to pre-fill the password? if ( !info.password.isEmpty() ) // should we really allow the caller to pre-fill the password?
kdDebug(130) << "password was set by caller" << endl; kdDebug(130) << "password was set by caller" << endl;
if( usertime != 0 ) if( usertime != 0 )
kapp->updateUserTimestamp( usertime ); tdeApp->updateUserTimestamp( usertime );
TQString key = createCacheKey(info); TQString key = createCacheKey(info);
Request *request = new Request; Request *request = new Request;

@ -465,11 +465,11 @@ TQScrollView *KSSLInfoDlg::buildCertInfo(const TQString &certName) {
} }
void KSSLInfoDlg::urlClicked(const TQString &url) { void KSSLInfoDlg::urlClicked(const TQString &url) {
kapp->invokeBrowser(url); tdeApp->invokeBrowser(url);
} }
void KSSLInfoDlg::mailClicked(const TQString &url) { void KSSLInfoDlg::mailClicked(const TQString &url) {
kapp->invokeMailer(url, TQString::null); tdeApp->invokeMailer(url, TQString::null);
} }
#include "ksslinfodlg.moc" #include "ksslinfodlg.moc"

@ -34,7 +34,7 @@
namespace KPAC namespace KPAC
{ {
ProxyScout::QueuedRequest::QueuedRequest( const KURL& u ) ProxyScout::QueuedRequest::QueuedRequest( const KURL& u )
: transaction( kapp->dcopClient()->beginTransaction() ), : transaction( tdeApp->dcopClient()->beginTransaction() ),
url( u ) url( u )
{ {
} }
@ -135,7 +135,7 @@ namespace KPAC
TQDataStream ds( data, IO_WriteOnly ); TQDataStream ds( data, IO_WriteOnly );
if ( success ) ds << handleRequest( ( *it ).url ); if ( success ) ds << handleRequest( ( *it ).url );
else ds << TQString( "DIRECT" ); else ds << TQString( "DIRECT" );
kapp->dcopClient()->endTransaction( ( *it ).transaction, type, data ); tdeApp->dcopClient()->endTransaction( ( *it ).transaction, type, data );
} }
m_requestQueue.clear(); m_requestQueue.clear();
m_downloader->deleteLater(); m_downloader->deleteLater();

@ -283,7 +283,7 @@ void TDEWalletD::setupDialog( TQWidget* dialog, WId wId, const TQCString& appid,
kdWarning() << "Application '" << appid << "' using tdewallet without parent window!" << endl; kdWarning() << "Application '" << appid << "' using tdewallet without parent window!" << endl;
// allow dialog activation even if it interrupts, better than trying hacks // allow dialog activation even if it interrupts, better than trying hacks
// with keeping the dialog on top or on all desktops // with keeping the dialog on top or on all desktops
kapp->updateUserTimestamp(); tdeApp->updateUserTimestamp();
} }
if( modal ) if( modal )
KWin::setState( dialog->winId(), NET::Modal ); KWin::setState( dialog->winId(), NET::Modal );
@ -301,7 +301,7 @@ void TDEWalletD::setupDialog( TQWidget* dialog, WId wId, const TQCString& appid,
void TDEWalletD::checkActiveDialog() { void TDEWalletD::checkActiveDialog() {
if( !activeDialog || !activeDialog->isShown()) if( !activeDialog || !activeDialog->isShown())
return; return;
kapp->updateUserTimestamp(); tdeApp->updateUserTimestamp();
KWin::setState( activeDialog->winId(), NET::KeepAbove ); KWin::setState( activeDialog->winId(), NET::KeepAbove );
KWin::setOnAllDesktops( activeDialog->winId(), true ); KWin::setOnAllDesktops( activeDialog->winId(), true );
KWin::forceActiveWindow( activeDialog->winId()); KWin::forceActiveWindow( activeDialog->winId());

@ -1037,7 +1037,7 @@ void UIServer::slotJobCanceled( ProgressItem *item ) {
void UIServer::slotQuit() void UIServer::slotQuit()
{ {
m_shuttingDown = true; m_shuttingDown = true;
kapp->quit(); tdeApp->quit();
} }
void UIServer::slotUpdate() { void UIServer::slotUpdate() {
@ -1360,7 +1360,7 @@ void UIServer::resizeEvent(TQResizeEvent* e)
bool UIServer::queryClose() bool UIServer::queryClose()
{ {
if (( !m_shuttingDown ) && !kapp->sessionSaving()) { if (( !m_shuttingDown ) && !tdeApp->sessionSaving()) {
hide(); hide();
return false; return false;
} }

@ -73,10 +73,10 @@ static KURL rootUrl(const KURL &url)
KURL root = url; KURL root = url;
root.setPath( "/" ); root.setPath( "/" );
if (!kapp->authorizeURLAction("list", KURL(), root)) if (!tdeApp->authorizeURLAction("list", KURL(), root))
{ {
root = KURL::fromPathOrURL( TQDir::homeDirPath() ); root = KURL::fromPathOrURL( TQDir::homeDirPath() );
if (!kapp->authorizeURLAction("list", KURL(), root)) if (!tdeApp->authorizeURLAction("list", KURL(), root))
{ {
root = url; root = url;
} }

@ -135,7 +135,7 @@ void TDEIconCanvas::slotLoadFiles()
TQStringList::ConstIterator end(mFiles.end()); TQStringList::ConstIterator end(mFiles.end());
for (it=mFiles.begin(), i=0; it!=end; ++it, i++) for (it=mFiles.begin(), i=0; it!=end; ++it, i++)
{ {
// Calling kapp->processEvents() makes the iconview flicker like hell // Calling tdeApp->processEvents() makes the iconview flicker like hell
// (it's being repainted once for every new item), so we don't do this. // (it's being repainted once for every new item), so we don't do this.
// Instead, we directly repaint the progress bar without going through // Instead, we directly repaint the progress bar without going through
// the event-loop. We do that just once for every 10th item so that // the event-loop. We do that just once for every 10th item so that
@ -146,7 +146,7 @@ void TDEIconCanvas::slotLoadFiles()
} }
emitProgress++; emitProgress++;
// kapp->processEvents(); // tdeApp->processEvents();
if ( !d->m_bLoading ) // user clicked on a button that will load another set of icons if ( !d->m_bLoading ) // user clicked on a button that will load another set of icons
break; break;
TQImage img; TQImage img;

@ -816,11 +816,11 @@ void KNotifyWidget::save()
++it; ++it;
} }
if ( kapp ) if ( tdeApp )
{ {
if ( !kapp->dcopClient()->isAttached() ) if ( !tdeApp->dcopClient()->isAttached() )
kapp->dcopClient()->attach(); tdeApp->dcopClient()->attach();
kapp->dcopClient()->send("knotify", "", "reconfigure()", TQString("")); tdeApp->dcopClient()->send("knotify", "", "reconfigure()", TQString(""));
} }
emit changed( false ); emit changed( false );

@ -388,7 +388,7 @@ void KOpenWithDlg::setServiceType( const KURL::List& _urls )
void KOpenWithDlg::init( const TQString& _text, const TQString& _value ) void KOpenWithDlg::init( const TQString& _text, const TQString& _value )
{ {
d = new KOpenWithDlgPrivate; d = new KOpenWithDlgPrivate;
bool bReadOnly = kapp && !kapp->authorize("shell_access"); bool bReadOnly = tdeApp && !tdeApp->authorize("shell_access");
m_terminaldirty = false; m_terminaldirty = false;
m_pTree = 0L; m_pTree = 0L;
m_pService = 0L; m_pService = 0L;

@ -498,7 +498,7 @@ void KPropertiesDialog::insertPages()
insertPlugin (p); insertPlugin (p);
} }
if ( kapp->authorizeTDEAction("sharefile") && if ( tdeApp->authorizeTDEAction("sharefile") &&
KFileSharePropsPlugin::supports( m_items ) ) KFileSharePropsPlugin::supports( m_items ) )
{ {
KPropsDlgPlugin *p = new KFileSharePropsPlugin( this ); KPropsDlgPlugin *p = new KFileSharePropsPlugin( this );
@ -971,7 +971,7 @@ KFilePropsPlugin::KFilePropsPlugin( KPropertiesDialog *_props )
connect( button, TQ_SIGNAL( clicked() ), TQ_SLOT( slotEditFileType() )); connect( button, TQ_SIGNAL( clicked() ), TQ_SLOT( slotEditFileType() ));
if (!kapp->authorizeTDEAction("editfiletype")) if (!tdeApp->authorizeTDEAction("editfiletype"))
button->hide(); button->hide();
#endif #endif
@ -3628,7 +3628,7 @@ bool KDesktopPropsPlugin::supports( KFileItemList _items )
return false; return false;
// open file and check type // open file and check type
KDesktopFile config( item->url().path(), true /* readonly */ ); KDesktopFile config( item->url().path(), true /* readonly */ );
return config.hasApplicationType() && kapp->authorize("run_desktop_files") && kapp->authorize("shell_access"); return config.hasApplicationType() && tdeApp->authorize("run_desktop_files") && tdeApp->authorize("shell_access");
} }
void KPropertiesDialog::virtual_hook( int id, void* data ) void KPropertiesDialog::virtual_hook( int id, void* data )
@ -3906,7 +3906,7 @@ bool KExecPropsPlugin::supports( KFileItemList _items )
return false; return false;
// open file and check type // open file and check type
KDesktopFile config( item->url().path(), true /* readonly */ ); KDesktopFile config( item->url().path(), true /* readonly */ );
return config.hasApplicationType() && kapp->authorize("run_desktop_files") && kapp->authorize("shell_access"); return config.hasApplicationType() && tdeApp->authorize("run_desktop_files") && tdeApp->authorize("shell_access");
} }
void KExecPropsPlugin::applyChanges() void KExecPropsPlugin::applyChanges()

@ -529,7 +529,7 @@ void KFileDialog::slotOk()
return; return;
} }
if (!kapp->authorizeURLAction("open", KURL(), d->url)) if (!tdeApp->authorizeURLAction("open", KURL(), d->url))
{ {
TQString msg = TDEIO::buildErrorString(TDEIO::ERR_ACCESS_DENIED, d->url.prettyURL()); TQString msg = TDEIO::buildErrorString(TDEIO::ERR_ACCESS_DENIED, d->url.prettyURL());
KMessageBox::error( d->mainWidget, msg); KMessageBox::error( d->mainWidget, msg);
@ -547,7 +547,7 @@ void KFileDialog::slotOk()
for ( KURL::List::ConstIterator it = list.begin(); for ( KURL::List::ConstIterator it = list.begin();
it != list.end(); ++it ) it != list.end(); ++it )
{ {
if (!kapp->authorizeURLAction("open", KURL(), *it)) if (!tdeApp->authorizeURLAction("open", KURL(), *it))
{ {
TQString msg = TDEIO::buildErrorString(TDEIO::ERR_ACCESS_DENIED, (*it).prettyURL()); TQString msg = TDEIO::buildErrorString(TDEIO::ERR_ACCESS_DENIED, (*it).prettyURL());
KMessageBox::error( d->mainWidget, msg); KMessageBox::error( d->mainWidget, msg);

@ -149,19 +149,19 @@ Job::Job(bool showProgressInfo) : TQObject(__getJobRoot(), "job"), m_error(0), m
Observer::self(), TQ_SLOT( slotSpeed( TDEIO::Job*, unsigned long ) ) ); Observer::self(), TQ_SLOT( slotSpeed( TDEIO::Job*, unsigned long ) ) );
} }
// Don't exit while this job is running // Don't exit while this job is running
if (kapp) if (tdeApp)
kapp->ref(); tdeApp->ref();
if (kapp) if (tdeApp)
updateUserTimestamp( kapp->userTimestamp()); updateUserTimestamp( tdeApp->userTimestamp());
} }
Job::~Job() Job::~Job()
{ {
delete m_speedTimer; delete m_speedTimer;
delete d; delete d;
if (kapp) if (tdeApp)
{ {
kapp->deref(); tdeApp->deref();
} }
} }
@ -315,7 +315,7 @@ void Job::slotSpeedTimeout()
void Job::showErrorDialog( TQWidget * parent ) void Job::showErrorDialog( TQWidget * parent )
{ {
//kdDebug(7007) << "Job::showErrorDialog parent=" << parent << endl; //kdDebug(7007) << "Job::showErrorDialog parent=" << parent << endl;
kapp->enableStyles(); tdeApp->enableStyles();
// Show a message box, except for "user canceled" or "no content" // Show a message box, except for "user canceled" or "no content"
if ( (m_error != ERR_USER_CANCELED) && (m_error != ERR_NO_CONTENT) ) { if ( (m_error != ERR_USER_CANCELED) && (m_error != ERR_NO_CONTENT) ) {
//old plain error message //old plain error message
@ -736,7 +736,7 @@ void MkdirJob::start(Slave *slave)
void MkdirJob::slotRedirection( const KURL &url) void MkdirJob::slotRedirection( const KURL &url)
{ {
kdDebug(7007) << "MkdirJob::slotRedirection(" << url << ")" << endl; kdDebug(7007) << "MkdirJob::slotRedirection(" << url << ")" << endl;
if (!kapp->authorizeURLAction("redirect", m_url, url)) if (!tdeApp->authorizeURLAction("redirect", m_url, url))
{ {
kdWarning(7007) << "MkdirJob: Redirection from " << m_url << " to " << url << " REJECTED!" << endl; kdWarning(7007) << "MkdirJob: Redirection from " << m_url << " to " << url << " REJECTED!" << endl;
m_error = ERR_ACCESS_DENIED; m_error = ERR_ACCESS_DENIED;
@ -906,7 +906,7 @@ void StatJob::slotStatEntry( const TDEIO::UDSEntry & entry )
void StatJob::slotRedirection( const KURL &url) void StatJob::slotRedirection( const KURL &url)
{ {
kdDebug(7007) << "StatJob::slotRedirection(" << url << ")" << endl; kdDebug(7007) << "StatJob::slotRedirection(" << url << ")" << endl;
if (!kapp->authorizeURLAction("redirect", m_url, url)) if (!tdeApp->authorizeURLAction("redirect", m_url, url))
{ {
kdWarning(7007) << "StatJob: Redirection from " << m_url << " to " << url << " REJECTED!" << endl; kdWarning(7007) << "StatJob: Redirection from " << m_url << " to " << url << " REJECTED!" << endl;
m_error = ERR_ACCESS_DENIED; m_error = ERR_ACCESS_DENIED;
@ -1001,7 +1001,7 @@ void TransferJob::slotData( const TQByteArray &_data)
void TransferJob::slotRedirection( const KURL &url) void TransferJob::slotRedirection( const KURL &url)
{ {
kdDebug(7007) << "TransferJob::slotRedirection(" << url << ")" << endl; kdDebug(7007) << "TransferJob::slotRedirection(" << url << ")" << endl;
if (!kapp->authorizeURLAction("redirect", m_url, url)) if (!tdeApp->authorizeURLAction("redirect", m_url, url))
{ {
kdWarning(7007) << "TransferJob: Redirection from " << m_url << " to " << url << " REJECTED!" << endl; kdWarning(7007) << "TransferJob: Redirection from " << m_url << " to " << url << " REJECTED!" << endl;
return; return;
@ -1408,7 +1408,7 @@ TransferJob *TDEIO::http_post( const KURL& url, const TQByteArray &postData, boo
_url.setPath("/"); _url.setPath("/");
} }
if (!_error && !kapp->authorizeURLAction("open", KURL(), _url)) if (!_error && !tdeApp->authorizeURLAction("open", KURL(), _url))
_error = TDEIO::ERR_ACCESS_DENIED; _error = TDEIO::ERR_ACCESS_DENIED;
// if request is not valid, return an invalid transfer job // if request is not valid, return an invalid transfer job
@ -2162,7 +2162,7 @@ void ListJob::slotResult( TDEIO::Job * job )
void ListJob::slotRedirection( const KURL & url ) void ListJob::slotRedirection( const KURL & url )
{ {
if (!kapp->authorizeURLAction("redirect", m_url, url)) if (!tdeApp->authorizeURLAction("redirect", m_url, url))
{ {
kdWarning(7007) << "ListJob: Redirection from " << m_url << " to " << url << " REJECTED!" << endl; kdWarning(7007) << "ListJob: Redirection from " << m_url << " to " << url << " REJECTED!" << endl;
return; return;
@ -2235,7 +2235,7 @@ void ListJob::setUnrestricted(bool unrestricted)
void ListJob::start(Slave *slave) void ListJob::start(Slave *slave)
{ {
if (kapp && !kapp->authorizeURLAction("list", m_url, m_url) && !(extraFlags() & EF_ListJobUnrestricted)) if (tdeApp && !tdeApp->authorizeURLAction("list", m_url, m_url) && !(extraFlags() & EF_ListJobUnrestricted))
{ {
m_error = ERR_ACCESS_DENIED; m_error = ERR_ACCESS_DENIED;
m_errorText = m_url.url(); m_errorText = m_url.url();
@ -3431,7 +3431,7 @@ void CopyJob::copyNextFile()
TQDataStream streamout(param,IO_WriteOnly); TQDataStream streamout(param,IO_WriteOnly);
streamout<<(*it).uSource; streamout<<(*it).uSource;
streamout<<(*it).uDest; streamout<<(*it).uDest;
if ( kapp && kapp->dcopClient()->call( "kded", if ( tdeApp && tdeApp->dcopClient()->call( "kded",
"mountwatcher", "createLink(KURL, KURL)", param,retType,data,false ) ) "mountwatcher", "createLink(KURL, KURL)", param,retType,data,false ) )
{ {
TQDataStream streamin(data,IO_ReadOnly); TQDataStream streamin(data,IO_ReadOnly);
@ -4561,7 +4561,7 @@ bool MultiGetJob::findCurrentEntry()
void MultiGetJob::slotRedirection( const KURL &url) void MultiGetJob::slotRedirection( const KURL &url)
{ {
if (!findCurrentEntry()) return; // Error if (!findCurrentEntry()) return; // Error
if (kapp && !kapp->authorizeURLAction("redirect", m_url, url)) if (tdeApp && !tdeApp->authorizeURLAction("redirect", m_url, url))
{ {
kdWarning(7007) << "MultiGetJob: Redirection from " << m_currentEntry->url << " to " << url << " REJECTED!" << endl; kdWarning(7007) << "MultiGetJob: Redirection from " << m_currentEntry->url << " to " << url << " REJECTED!" << endl;
return; return;

@ -68,7 +68,7 @@ int KDCOPServiceStarter::findServiceFor( const TQString& serviceType,
KService::Ptr ptr = offers.first(); KService::Ptr ptr = offers.first();
TQCString dcopService = ptr->property("X-DCOP-ServiceName").toString().latin1(); TQCString dcopService = ptr->property("X-DCOP-ServiceName").toString().latin1();
if ( !kapp->dcopClient()->isApplicationRegistered( dcopService ) ) if ( !tdeApp->dcopClient()->isApplicationRegistered( dcopService ) )
{ {
TQString error; TQString error;
if ( startServiceFor( serviceType, constraint, preferences, &error, &dcopService, flags ) != 0 ) if ( startServiceFor( serviceType, constraint, preferences, &error, &dcopService, flags ) != 0 )
@ -93,5 +93,5 @@ int KDCOPServiceStarter::startServiceFor( const TQString& serviceType,
return -1; return -1;
KService::Ptr ptr = offers.first(); KService::Ptr ptr = offers.first();
kdDebug() << "KDCOPServiceStarter: starting " << ptr->desktopEntryPath() << endl; kdDebug() << "KDCOPServiceStarter: starting " << ptr->desktopEntryPath() << endl;
return kapp->startServiceByDesktopPath( ptr->desktopEntryPath(), TQStringList(), error, dcopService ); return tdeApp->startServiceByDesktopPath( ptr->desktopEntryPath(), TQStringList(), error, dcopService );
} }

@ -68,7 +68,7 @@ public:
* Find an implementation of the given @p serviceType, * Find an implementation of the given @p serviceType,
* and start it, to use its DCOP interface. * and start it, to use its DCOP interface.
* The default implementation uses TDETrader to find the preferred Application, * The default implementation uses TDETrader to find the preferred Application,
* and then starts it using kapp->startService... * and then starts it using tdeApp->startService...
* *
* However applications (like kontact) can reimplement this method, to provide * However applications (like kontact) can reimplement this method, to provide
* an in-process way of loading the implementation for this service type. * an in-process way of loading the implementation for this service type.

@ -35,7 +35,7 @@ public:
const TQString &caption = TQString::null) const TQString &caption = TQString::null)
{ {
if (TDEApplication::guiEnabled()) { if (TDEApplication::guiEnabled()) {
kapp->enableStyles(); tdeApp->enableStyles();
KMessageBox::error( parent, text, caption ); KMessageBox::error( parent, text, caption );
} else } else
kdWarning() << text << endl; kdWarning() << text << endl;
@ -46,7 +46,7 @@ public:
const TQString &caption = TQString::null) const TQString &caption = TQString::null)
{ {
if (TDEApplication::guiEnabled()) { if (TDEApplication::guiEnabled()) {
kapp->enableStyles(); tdeApp->enableStyles();
KMessageBox::sorry( parent, text, caption ); KMessageBox::sorry( parent, text, caption );
} else } else
kdWarning() << text << endl; kdWarning() << text << endl;

@ -1015,7 +1015,7 @@ TQValueList<KDEDesktopMimeType::Service> KDEDesktopMimeType::userDefinedServices
if(!function.endsWith("(KURL::List)")) { if(!function.endsWith("(KURL::List)")) {
kdWarning() << "Desktop file " << path << " contains an invalid X-TDE-ShowIfDcopCall - the function must take the exact parameter (KURL::List) and must be specified." << endl; kdWarning() << "Desktop file " << path << " contains an invalid X-TDE-ShowIfDcopCall - the function must take the exact parameter (KURL::List) and must be specified." << endl;
} else { } else {
if(kapp->dcopClient()->call( app, object, if(tdeApp->dcopClient()->call( app, object,
function.utf8(), function.utf8(),
dataToSend, replyType, replyData, true, -1) dataToSend, replyType, replyData, true, -1)
&& replyType == "TQStringList" ) { && replyType == "TQStringList" ) {

@ -143,7 +143,7 @@ pid_t KRun::runURL( const KURL& u, const TQString& _mimetype, TQWidget* window,
{ {
if ( u.isLocalFile() && runExecutables) if ( u.isLocalFile() && runExecutables)
{ {
if (kapp->authorize("shell_access")) if (tdeApp->authorize("shell_access"))
{ {
TQString path = u.path(); TQString path = u.path();
shellQuote( path ); shellQuote( path );
@ -165,7 +165,7 @@ pid_t KRun::runURL( const KURL& u, const TQString& _mimetype, TQWidget* window,
if (!runExecutables) if (!runExecutables)
noRun = true; noRun = true;
if (!kapp->authorize("shell_access")) if (!tdeApp->authorize("shell_access"))
noAuth = true; noAuth = true;
} }
@ -213,7 +213,7 @@ bool KRun::displayOpenWithDialog( const KURL::List& lst, bool tempFiles )
bool KRun::displayOpenWithDialog( const KURL::List& lst, bool tempFiles, const TQString& suggestedFileName ) bool KRun::displayOpenWithDialog( const KURL::List& lst, bool tempFiles, const TQString& suggestedFileName )
{ {
if (kapp && !kapp->authorizeTDEAction("openwith")) if (tdeApp && !tdeApp->authorizeTDEAction("openwith"))
{ {
// TODO: Better message, i18n freeze :-( // TODO: Better message, i18n freeze :-(
KMessageBox::sorry(0L, i18n("You are not authorized to open this file.")); KMessageBox::sorry(0L, i18n("You are not authorized to open this file."));
@ -922,7 +922,7 @@ void KRun::init ( const KURL& url, TQWidget* window, const TQCString& asn, mode_
m_timer.start( 0, true ); m_timer.start( 0, true );
kdDebug(7010) << " new KRun " << this << " " << url.prettyURL() << " timer=" << &m_timer << endl; kdDebug(7010) << " new KRun " << this << " " << url.prettyURL() << " timer=" << &m_timer << endl;
kapp->ref(); tdeApp->ref();
} }
void KRun::init() void KRun::init()
@ -989,7 +989,7 @@ void KRun::init()
m_timer.start( 0, true ); m_timer.start( 0, true );
return; return;
} }
if ( !kapp->authorizeURLAction( "open", KURL(), m_strURL)) if ( !tdeApp->authorizeURLAction( "open", KURL(), m_strURL))
{ {
TQString msg = TDEIO::buildErrorString(TDEIO::ERR_ACCESS_DENIED, m_strURL.prettyURL()); TQString msg = TDEIO::buildErrorString(TDEIO::ERR_ACCESS_DENIED, m_strURL.prettyURL());
d->m_showingError = true; d->m_showingError = true;
@ -1120,7 +1120,7 @@ KRun::~KRun()
kdDebug(7010) << "KRun::~KRun() " << this << endl; kdDebug(7010) << "KRun::~KRun() " << this << endl;
m_timer.stop(); m_timer.stop();
killJob(); killJob();
kapp->deref(); tdeApp->deref();
kdDebug(7010) << "KRun::~KRun() done " << this << endl; kdDebug(7010) << "KRun::~KRun() done " << this << endl;
delete d; delete d;
} }
@ -1540,9 +1540,9 @@ TDEProcessRunner::slotProcessExited(TDEProcess * p)
// relatively to current directory, and then in the PATH. // relatively to current directory, and then in the PATH.
if ( !TQFile( binName ).exists() && TDEStandardDirs::findExe( binName ).isEmpty() ) if ( !TQFile( binName ).exists() && TDEStandardDirs::findExe( binName ).isEmpty() )
{ {
kapp->ref(); tdeApp->ref();
KMessageBox::sorry( 0L, i18n("Could not find the program '%1'").arg( binName ) ); KMessageBox::sorry( 0L, i18n("Could not find the program '%1'").arg( binName ) );
kapp->deref(); tdeApp->deref();
} }
} }
#ifdef TQ_WS_X11 #ifdef TQ_WS_X11

@ -786,7 +786,7 @@ bool KService::noDisplay() const {
#endif #endif
} }
if (!kapp->authorizeControlModule(d->menuId)) if (!tdeApp->authorizeControlModule(d->menuId))
return true; return true;
return false; return false;
@ -924,7 +924,7 @@ void KService::rebuildKSycoca(TQWidget *parent)
i18n("Updating system configuration.")); i18n("Updating system configuration."));
TQByteArray data; TQByteArray data;
DCOPClient *client = kapp->dcopClient(); DCOPClient *client = tdeApp->dcopClient();
int result = client->callAsync("kded", "tdebuildsycoca", "recreate()", int result = client->callAsync("kded", "tdebuildsycoca", "recreate()",
data, &dlg, TQ_SLOT(slotFinished())); data, &dlg, TQ_SLOT(slotFinished()));

@ -133,7 +133,7 @@ KShred::fillrandom()
// assumes that 4096 is a multipe of sizeof(long int) // assumes that 4096 is a multipe of sizeof(long int)
int limit = (n + sizeof(long int) - 1) / sizeof(long int); int limit = (n + sizeof(long int) - 1) / sizeof(long int);
for (int i = 0; i < limit; i++) for (int i = 0; i < limit; i++)
buff[i] = kapp->random(); buff[i] = tdeApp->random();
if (!writeData((unsigned char *) buff, n)) if (!writeData((unsigned char *) buff, n))
return false; return false;

@ -113,7 +113,7 @@ protected:
void done() void done()
{ {
if ( !m_terminationRequested ) if ( !m_terminationRequested )
kapp->postEvent( m_receiver, new CompletionMatchEvent( this ) ); tdeApp->postEvent( m_receiver, new CompletionMatchEvent( this ) );
else else
delete this; delete this;
} }
@ -1162,7 +1162,7 @@ TQString KURLCompletion::listDirectories(
{ {
KURL url; KURL url;
url.setPath(*it); url.setPath(*it);
if ( kapp->authorizeURLAction( "list", KURL(), url ) ) if ( tdeApp->authorizeURLAction( "list", KURL(), url ) )
dirs.append( *it ); dirs.append( *it );
} }

@ -52,12 +52,12 @@ const int KDEBUG_OBSERVER = 7007; // Should be 7028
Observer::Observer() : DCOPObject("TDEIO::Observer") Observer::Observer() : DCOPObject("TDEIO::Observer")
{ {
// Register app as able to receive DCOP messages // Register app as able to receive DCOP messages
if (kapp && !kapp->dcopClient()->isAttached()) if (tdeApp && !tdeApp->dcopClient()->isAttached())
{ {
kapp->dcopClient()->attach(); tdeApp->dcopClient()->attach();
} }
if ( !kapp->dcopClient()->isApplicationRegistered( "tdeio_uiserver" ) ) if ( !tdeApp->dcopClient()->isApplicationRegistered( "tdeio_uiserver" ) )
{ {
kdDebug(KDEBUG_OBSERVER) << "Starting tdeio_uiserver" << endl; kdDebug(KDEBUG_OBSERVER) << "Starting tdeio_uiserver" << endl;
TQString error; TQString error;
@ -70,7 +70,7 @@ Observer::Observer() : DCOPObject("TDEIO::Observer")
kdDebug(KDEBUG_OBSERVER) << "startServiceByDesktopPath returned " << ret << endl; kdDebug(KDEBUG_OBSERVER) << "startServiceByDesktopPath returned " << ret << endl;
} }
if ( !kapp->dcopClient()->isApplicationRegistered( "tdeio_uiserver" ) ) if ( !tdeApp->dcopClient()->isApplicationRegistered( "tdeio_uiserver" ) )
kdDebug(KDEBUG_OBSERVER) << "The application tdeio_uiserver is STILL NOT REGISTERED" << endl; kdDebug(KDEBUG_OBSERVER) << "The application tdeio_uiserver is STILL NOT REGISTERED" << endl;
else else
kdDebug(KDEBUG_OBSERVER) << "tdeio_uiserver registered" << endl; kdDebug(KDEBUG_OBSERVER) << "tdeio_uiserver registered" << endl;
@ -82,7 +82,7 @@ int Observer::newJob( TDEIO::Job * job, bool showProgress )
{ {
// Tell the UI Server about this new job, and give it the application id // Tell the UI Server about this new job, and give it the application id
// at the same time // at the same time
int progressId = m_uiserver->newJob( kapp->dcopClient()->appId(), showProgress ); int progressId = m_uiserver->newJob( tdeApp->dcopClient()->appId(), showProgress );
// Keep the result in a dict // Keep the result in a dict
m_dctJobs.insert( progressId, job ); m_dctJobs.insert( progressId, job );
@ -353,7 +353,7 @@ int Observer::messageBox( int progressId, int type, const TQString &text,
arg << caption; arg << caption;
arg << buttonYes; arg << buttonYes;
arg << buttonNo; arg << buttonNo;
if ( kapp->dcopClient()->call( "tdeio_uiserver", "UIServer", "messageBox(int,int,TQString,TQString,TQString,TQString)", data, replyType, replyData, true ) if ( tdeApp->dcopClient()->call( "tdeio_uiserver", "UIServer", "messageBox(int,int,TQString,TQString,TQString,TQString)", data, replyType, replyData, true )
&& replyType == "int" ) && replyType == "int" )
{ {
int result; int result;

@ -557,7 +557,7 @@ RenameDlg_Result TDEIO::open_RenameDlg( const TQString & _caption,
time_t mtimeSrc, time_t mtimeSrc,
time_t mtimeDest) time_t mtimeDest)
{ {
Q_ASSERT(kapp); Q_ASSERT(tdeApp);
RenameDlg dlg( 0L, _caption, _src, _dest, _mode, RenameDlg dlg( 0L, _caption, _src, _dest, _mode,
sizeSrc, sizeDest, ctimeSrc, ctimeDest, mtimeSrc, mtimeDest, sizeSrc, sizeDest, ctimeSrc, ctimeDest, mtimeSrc, mtimeDest,

@ -125,7 +125,7 @@ TDEIO::Scheduler::ProtocolInfoDict::get(const TQString &protocol)
Scheduler::Scheduler() Scheduler::Scheduler()
: DCOPObject( "TDEIO::Scheduler" ), : DCOPObject( "TDEIO::Scheduler" ),
TQObject(kapp, "scheduler"), TQObject(tdeApp, "scheduler"),
slaveTimer(0, "Scheduler::slaveTimer"), slaveTimer(0, "Scheduler::slaveTimer"),
coSlaveTimer(0, "Scheduler::coSlaveTimer"), coSlaveTimer(0, "Scheduler::coSlaveTimer"),
cleanupTimer(0, "Scheduler::cleanupTimer") cleanupTimer(0, "Scheduler::cleanupTimer")
@ -890,7 +890,7 @@ Scheduler::_registerWindow(TQWidget *wid)
TQByteArray params; TQByteArray params;
TQDataStream stream(params, IO_WriteOnly); TQDataStream stream(params, IO_WriteOnly);
stream << windowId; stream << windowId;
if( !kapp->dcopClient()->send( "kded", "kded", if( !tdeApp->dcopClient()->send( "kded", "kded",
"registerWindowId(long int)", params ) ) "registerWindowId(long int)", params ) )
kdDebug(7006) << "Could not register window with kded!" << endl; kdDebug(7006) << "Could not register window with kded!" << endl;
} }
@ -909,12 +909,12 @@ Scheduler::slotUnregisterWindow(TQObject *obj)
disconnect( it.key(), TQ_SIGNAL(destroyed(TQObject *)), disconnect( it.key(), TQ_SIGNAL(destroyed(TQObject *)),
this, TQ_SLOT(slotUnregisterWindow(TQObject*))); this, TQ_SLOT(slotUnregisterWindow(TQObject*)));
m_windowList.remove( it ); m_windowList.remove( it );
if (kapp) if (tdeApp)
{ {
TQByteArray params; TQByteArray params;
TQDataStream stream(params, IO_WriteOnly); TQDataStream stream(params, IO_WriteOnly);
stream << windowId; stream << windowId;
kapp->dcopClient()->send( "kded", "kded", tdeApp->dcopClient()->send( "kded", "kded",
"unregisterWindowId(long int)", params ); "unregisterWindowId(long int)", params );
} }
} }

@ -134,7 +134,7 @@ void SkipDlg::b2Pressed()
SkipDlg_Result TDEIO::open_SkipDlg( bool _multi, const TQString& _error_text ) SkipDlg_Result TDEIO::open_SkipDlg( bool _multi, const TQString& _error_text )
{ {
Q_ASSERT(kapp); Q_ASSERT(tdeApp);
SkipDlg dlg( 0L, _multi, _error_text, true ); SkipDlg dlg( 0L, _multi, _error_text, true );
return (SkipDlg_Result) dlg.exec(); return (SkipDlg_Result) dlg.exec();

@ -235,7 +235,7 @@ void Slave::hold(const KURL &url)
deref(); deref();
// Call TDELauncher::waitForSlave(pid); // Call TDELauncher::waitForSlave(pid);
{ {
DCOPClient *client = kapp->dcopClient(); DCOPClient *client = tdeApp->dcopClient();
if (!client->isAttached()) if (!client->isAttached())
client->attach(); client->attach();
@ -359,7 +359,7 @@ Slave* Slave::createSlave( const TQString &protocol, const KURL& url, int& error
if (protocol == "data") if (protocol == "data")
return new DataProtocol(); return new DataProtocol();
DCOPClient *client = kapp->dcopClient(); DCOPClient *client = tdeApp->dcopClient();
if (!client->isAttached()) if (!client->isAttached())
client->attach(); client->attach();
@ -464,7 +464,7 @@ Slave* Slave::holdSlave( const TQString &protocol, const KURL& url )
if (protocol == "data") if (protocol == "data")
return 0; return 0;
DCOPClient *client = kapp->dcopClient(); DCOPClient *client = tdeApp->dcopClient();
if (!client->isAttached()) if (!client->isAttached())
client->attach(); client->attach();

@ -511,7 +511,7 @@ void SlaveInterface::messageBox( int type, const TQString &text, const TQString
TQString caption( _caption ); TQString caption( _caption );
if ( type == TDEIO::SlaveBase::SSLMessageBox ) if ( type == TDEIO::SlaveBase::SSLMessageBox )
caption = TQString::fromUtf8(kapp->dcopClient()->appId()); // hack, see observer.cpp caption = TQString::fromUtf8(tdeApp->dcopClient()->appId()); // hack, see observer.cpp
emit needProgressId(); emit needProgressId();
kdDebug(7007) << "SlaveInterface::messageBox m_progressId=" << m_progressId << endl; kdDebug(7007) << "SlaveInterface::messageBox m_progressId=" << m_progressId << endl;

@ -207,7 +207,7 @@ void KIOExec::slotRunApp()
#ifdef TQ_WS_X11 #ifdef TQ_WS_X11
// propagate the startup indentification to the started process // propagate the startup indentification to the started process
TDEStartupInfoId id; TDEStartupInfoId id;
id.initId( kapp->startupId()); id.initId( tdeApp->startupId());
id.setupStartupEnv(); id.setupStartupEnv();
#endif #endif
@ -265,7 +265,7 @@ void KIOExec::slotRunApp()
} }
} }
//kapp->quit(); not efficient enough //tdeApp->quit(); not efficient enough
exit(0); exit(0);
} }

@ -7,7 +7,7 @@
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
TDEApplication k(argc,argv,"getalltest",false/*nostyle*/,false/*noGUI*/); // KMessageBox needs KApp for makeStdCaption TDEApplication k(argc,argv,"getalltest",false/*nostyle*/,false/*noGUI*/); // KMessageBox needs TDEApp for makeStdCaption
//for (int i = 0 ; i < 2 ; ++i ) { // test twice to see if they got deleted //for (int i = 0 ; i < 2 ; ++i ) { // test twice to see if they got deleted
kdDebug() << "All services" << endl; kdDebug() << "All services" << endl;

@ -197,7 +197,7 @@ void JobTest::get()
TDEIO::StoredTransferJob* job = TDEIO::storedGet( u ); TDEIO::StoredTransferJob* job = TDEIO::storedGet( u );
connect( job, TQ_SIGNAL( result( TDEIO::Job* ) ), connect( job, TQ_SIGNAL( result( TDEIO::Job* ) ),
this, TQ_SLOT( slotGetResult( TDEIO::Job* ) ) ); this, TQ_SLOT( slotGetResult( TDEIO::Job* ) ) );
kapp->eventLoop()->enterLoop(); tdeApp->eventLoop()->enterLoop();
assert( m_result == 0 ); // no error assert( m_result == 0 ); // no error
assert( m_data.size() == 11 ); assert( m_data.size() == 11 );
assert( memcmp (m_data, "Hello world", m_data.size()) == 0 ); // m_data is not null-terminated assert( memcmp (m_data, "Hello world", m_data.size()) == 0 ); // m_data is not null-terminated
@ -207,7 +207,7 @@ void JobTest::slotGetResult( TDEIO::Job* job )
{ {
m_result = job->error(); m_result = job->error();
m_data = static_cast<TDEIO::StoredTransferJob *>(job)->data(); m_data = static_cast<TDEIO::StoredTransferJob *>(job)->data();
kapp->eventLoop()->exitLoop(); tdeApp->eventLoop()->exitLoop();
} }
//// ////

@ -40,9 +40,9 @@ TestService::TestService(const TQString &exec)
proc.start(); proc.start();
connect(kapp->dcopClient(), TQ_SIGNAL( applicationRegistered(const TQCString&)), connect(tdeApp->dcopClient(), TQ_SIGNAL( applicationRegistered(const TQCString&)),
this, TQ_SLOT(newApp(const TQCString&))); this, TQ_SLOT(newApp(const TQCString&)));
connect(kapp->dcopClient(), TQ_SIGNAL( applicationRemoved(const TQCString&)), connect(tdeApp->dcopClient(), TQ_SIGNAL( applicationRemoved(const TQCString&)),
this, TQ_SLOT(endApp(const TQCString&))); this, TQ_SLOT(endApp(const TQCString&)));
connect(&proc, TQ_SIGNAL(processExited(TDEProcess *)), connect(&proc, TQ_SIGNAL(processExited(TDEProcess *)),
this, TQ_SLOT(appExit())); this, TQ_SLOT(appExit()));
@ -79,19 +79,19 @@ void TestService::appExit()
void TestService::stop() void TestService::stop()
{ {
kapp->exit_loop(); tdeApp->exit_loop();
} }
int TestService::exec() int TestService::exec()
{ {
kapp->enter_loop(); tdeApp->enter_loop();
return result; return result;
} }
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
setenv("IGNORE_SYCOCA_VERSION", "true", true); setenv("IGNORE_SYCOCA_VERSION", "true", true);
TDEApplication k(argc,argv,"whatever",false/*nostyle*/,false/*noGUI*/); // KMessageBox needs KApp for makeStdCaption TDEApplication k(argc,argv,"whatever",false/*nostyle*/,false/*noGUI*/); // KMessageBox needs TDEApp for makeStdCaption
k.dcopClient()->setNotifications(true); k.dcopClient()->setNotifications(true);

@ -29,7 +29,7 @@ int main(int argc, char **argv)
{ {
dlg->slotProcessedFiles( 0L, ++files ); dlg->slotProcessedFiles( 0L, ++files );
} }
kapp->processEvents(); tdeApp->processEvents();
} }
dlg->slotInfoMessage( 0L, TQString::fromLatin1( "Done." ) ); dlg->slotInfoMessage( 0L, TQString::fromLatin1( "Done." ) );

@ -56,7 +56,7 @@ Receiver::Receiver()
start = new TQPushButton( "Launch KRuns", this ); start = new TQPushButton( "Launch KRuns", this );
stop = new TQPushButton( "Stop those KRuns", this ); stop = new TQPushButton( "Stop those KRuns", this );
stop->setEnabled(false); stop->setEnabled(false);
TQObject::connect( h, TQ_SIGNAL(clicked()), kapp, TQ_SLOT(quit()) ); TQObject::connect( h, TQ_SIGNAL(clicked()), tdeApp, TQ_SLOT(quit()) );
TQObject::connect( start, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotStart()) ); TQObject::connect( start, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotStart()) );
TQObject::connect( stop, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotStop()) ); TQObject::connect( stop, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotStop()) );

@ -54,7 +54,7 @@ void SpeedTest::entries(TDEIO::Job*, const UDSEntryList& list) {
void SpeedTest::finished(Job*) { void SpeedTest::finished(Job*) {
kdDebug() << "job finished" << endl; kdDebug() << "job finished" << endl;
kapp->quit(); tdeApp->quit();
} }
static TDECmdLineOptions options[] = static TDECmdLineOptions options[] =

@ -184,7 +184,7 @@ void KioslaveTest::slotQuit(){
} }
if (slave) if (slave)
TDEIO::Scheduler::disconnectSlave(slave); TDEIO::Scheduler::disconnectSlave(slave);
kapp->quit(); tdeApp->quit();
} }

@ -67,7 +67,7 @@ void debug(const char *format, const char *txt)
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
TDEApplication k(argc,argv,"whatever",true); // KMessageBox needs KApp for makeStdCaption TDEApplication k(argc,argv,"whatever",true); // KMessageBox needs TDEApp for makeStdCaption
TQCString instname = "kword"; TQCString instname = "kword";
TQString desktopPath = TQString::fromLatin1( "Office/%1.desktop" ).arg( instname ); TQString desktopPath = TQString::fromLatin1( "Office/%1.desktop" ).arg( instname );

@ -4,7 +4,7 @@
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
TDEApplication k(argc,argv,"whatever",true,true); // KMessageBox needs KApp for makeStdCaption TDEApplication k(argc,argv,"whatever",true,true); // KMessageBox needs TDEApp for makeStdCaption
KService::rebuildKSycoca(0); KService::rebuildKSycoca(0);
return 0; return 0;

@ -89,7 +89,7 @@ KCookieWin::KCookieWin( TQWidget *parent, KHttpCookieList cookieList,
{ {
// No window associated... make sure the user notices our dialog. // No window associated... make sure the user notices our dialog.
KWin::setState( winId(), NET::KeepAbove ); KWin::setState( winId(), NET::KeepAbove );
kapp->updateUserTimestamp(); tdeApp->updateUserTimestamp();
} }
# endif # endif
#endif #endif

@ -50,14 +50,14 @@ extern "C" TDE_EXPORT int kdemain(int argc, char *argv[])
TDEInstance a("kcookiejar"); TDEInstance a("kcookiejar");
kapp->dcopClient()->attach(); tdeApp->dcopClient()->attach();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
TQCString replyType; TQCString replyType;
TQByteArray replyData; TQByteArray replyData;
if (args->isSet("remove-all")) if (args->isSet("remove-all"))
{ {
kapp->dcopClient()->call( "kded", "kcookiejar", "deleteAllCookies()", TQByteArray(), replyType, replyData); tdeApp->dcopClient()->call( "kded", "kcookiejar", "deleteAllCookies()", TQByteArray(), replyType, replyData);
} }
if (args->isSet("remove")) if (args->isSet("remove"))
{ {
@ -65,7 +65,7 @@ extern "C" TDE_EXPORT int kdemain(int argc, char *argv[])
TQByteArray params; TQByteArray params;
TQDataStream stream(params, IO_WriteOnly); TQDataStream stream(params, IO_WriteOnly);
stream << domain; stream << domain;
kapp->dcopClient()->call( "kded", "kcookiejar", "deleteCookiesFromDomain(TQString)", params, replyType, replyData); tdeApp->dcopClient()->call( "kded", "kcookiejar", "deleteCookiesFromDomain(TQString)", params, replyType, replyData);
} }
if (args->isSet("shutdown")) if (args->isSet("shutdown"))
{ {
@ -73,11 +73,11 @@ extern "C" TDE_EXPORT int kdemain(int argc, char *argv[])
TQByteArray params; TQByteArray params;
TQDataStream stream(params, IO_WriteOnly); TQDataStream stream(params, IO_WriteOnly);
stream << module; stream << module;
kapp->dcopClient()->call( "kded", "kded", "unloadModule(TQCString)", params, replyType, replyData); tdeApp->dcopClient()->call( "kded", "kded", "unloadModule(TQCString)", params, replyType, replyData);
} }
else if(args->isSet("reload-config")) else if(args->isSet("reload-config"))
{ {
kapp->dcopClient()->call( "kded", "kcookiejar", "reloadPolicy()", TQByteArray(), replyType, replyData); tdeApp->dcopClient()->call( "kded", "kcookiejar", "reloadPolicy()", TQByteArray(), replyType, replyData);
} }
else else
{ {
@ -85,7 +85,7 @@ extern "C" TDE_EXPORT int kdemain(int argc, char *argv[])
TQByteArray params; TQByteArray params;
TQDataStream stream(params, IO_WriteOnly); TQDataStream stream(params, IO_WriteOnly);
stream << module; stream << module;
kapp->dcopClient()->call( "kded", "kded", "loadModule(TQCString)", params, replyType, replyData); tdeApp->dcopClient()->call( "kded", "kded", "loadModule(TQCString)", params, replyType, replyData);
} }
return 0; return 0;

@ -552,7 +552,7 @@ void DockContainer::load(TDEConfig* cfg,const TQString& group_or_prefix)
{ {
m_tb->setTab(it1.current()->id(),false); m_tb->setTab(it1.current()->id(),false);
} }
kapp->syncX(); tdeApp->syncX();
m_delayedRaise=-1; m_delayedRaise=-1;
for (TQMap<KDockWidget*,KDockButton_Private*>::iterator it=m_overlapButtons.begin(); for (TQMap<KDockWidget*,KDockButton_Private*>::iterator it=m_overlapButtons.begin();
@ -569,8 +569,8 @@ void DockContainer::load(TDEConfig* cfg,const TQString& group_or_prefix)
m_tb->setTab(it.data(),true); m_tb->setTab(it.data(),true);
tabClicked(it.data()); tabClicked(it.data());
m_ws->raiseWidget(it.key()); m_ws->raiseWidget(it.key());
kapp->sendPostedEvents(); tdeApp->sendPostedEvents();
kapp->syncX();*/ tdeApp->syncX();*/
m_delayedRaise=it.data(); m_delayedRaise=it.data();
TQTimer::singleShot(0,this,TQ_SLOT(delayedRaise())); TQTimer::singleShot(0,this,TQ_SLOT(delayedRaise()));

@ -93,12 +93,12 @@ GUIClient::GUIClient (KMDI::MainWindow* mdiMainFrm,const char* name)
m_gotoToolDockMenu->insert(new TDEAction(i18n("Next Tool View"),ALT+CTRL+Key_Right,m_mdiMainFrm,TQ_SLOT(nextToolViewInDock()), m_gotoToolDockMenu->insert(new TDEAction(i18n("Next Tool View"),ALT+CTRL+Key_Right,m_mdiMainFrm,TQ_SLOT(nextToolViewInDock()),
actionCollection(),"tdemdi_next_toolview")); actionCollection(),"tdemdi_next_toolview"));
actionCollection()->readShortcutSettings( "Shortcuts", kapp->config() ); actionCollection()->readShortcutSettings( "Shortcuts", tdeApp->config() );
} }
GUIClient::~GUIClient() GUIClient::~GUIClient()
{ {
// actionCollection()->writeShortcutSettings( "KMDI Shortcuts", kapp->config() ); // actionCollection()->writeShortcutSettings( "KMDI Shortcuts", tdeApp->config() );
for (uint i=0;i<m_toolViewActions.count();i++) for (uint i=0;i<m_toolViewActions.count();i++)
disconnect(m_toolViewActions.at(i),0,this,0); disconnect(m_toolViewActions.at(i),0,this,0);
@ -139,7 +139,7 @@ void GUIClient::addToolView(KMDI::ToolViewAccessor* mtva)
// try to read the action shortcut // try to read the action shortcut
TDEShortcut sc; TDEShortcut sc;
TDEConfig *cfg = kapp->config(); TDEConfig *cfg = tdeApp->config();
TQString _grp = cfg->group(); TQString _grp = cfg->group();
cfg->setGroup("Shortcuts"); cfg->setGroup("Shortcuts");
sc = TDEShortcut( cfg->readEntry( aname, "" ) ); sc = TDEShortcut( cfg->readEntry( aname, "" ) );

@ -599,7 +599,7 @@ void KMdiDockContainer::load( TQDomElement& dockEl )
for ( ;it1.current() != 0;++it1 ) for ( ;it1.current() != 0;++it1 )
m_tb->setTab( it1.current() ->id(), false ); m_tb->setTab( it1.current() ->id(), false );
kapp->syncX(); tdeApp->syncX();
m_delayedRaise = -1; m_delayedRaise = -1;
for ( TQMap<KDockWidget*, KDockButton_Private*>::iterator it = m_overlapButtons.begin(); for ( TQMap<KDockWidget*, KDockButton_Private*>::iterator it = m_overlapButtons.begin();
@ -723,7 +723,7 @@ void KMdiDockContainer::load( TDEConfig* cfg, const TQString& group_or_prefix )
{ {
m_tb->setTab( it1.current() ->id(), false ); m_tb->setTab( it1.current() ->id(), false );
} }
kapp->syncX(); tdeApp->syncX();
m_delayedRaise = -1; m_delayedRaise = -1;
for ( TQMap<KDockWidget*, KDockButton_Private*>::iterator it = m_overlapButtons.begin(); for ( TQMap<KDockWidget*, KDockButton_Private*>::iterator it = m_overlapButtons.begin();
@ -740,8 +740,8 @@ void KMdiDockContainer::load( TDEConfig* cfg, const TQString& group_or_prefix )
m_tb->setTab(it.data(),true); m_tb->setTab(it.data(),true);
tabClicked(it.data()); tabClicked(it.data());
m_ws->raiseWidget(it.key()); m_ws->raiseWidget(it.key());
kapp->sendPostedEvents(); tdeApp->sendPostedEvents();
kapp->syncX();*/ tdeApp->syncX();*/
m_delayedRaise = it.data(); m_delayedRaise = it.data();
TQTimer::singleShot( 0, this, TQ_SLOT( delayedRaise() ) ); TQTimer::singleShot( 0, this, TQ_SLOT( delayedRaise() ) );

@ -166,13 +166,13 @@ KMDIGUIClient::KMDIGUIClient( KMdiMainFrm* mdiMainFrm, bool showMDIModeAction, c
m_gotoToolDockMenu->insert( new TDEAction( i18n( "Next Tool View" ), ALT + CTRL + Key_Right, m_mdiMainFrm, TQ_SLOT( nextToolViewInDock() ), m_gotoToolDockMenu->insert( new TDEAction( i18n( "Next Tool View" ), ALT + CTRL + Key_Right, m_mdiMainFrm, TQ_SLOT( nextToolViewInDock() ),
actionCollection(), "tdemdi_next_toolview" ) ); actionCollection(), "tdemdi_next_toolview" ) );
actionCollection() ->readShortcutSettings( "Shortcuts", kapp->config() ); actionCollection() ->readShortcutSettings( "Shortcuts", tdeApp->config() );
} }
KMDIGUIClient::~KMDIGUIClient() KMDIGUIClient::~KMDIGUIClient()
{ {
// actionCollection()->writeShortcutSettings( "KMDI Shortcuts", kapp->config() ); // actionCollection()->writeShortcutSettings( "KMDI Shortcuts", tdeApp->config() );
for ( uint i = 0;i < m_toolViewActions.count();i++ ) for ( uint i = 0;i < m_toolViewActions.count();i++ )
disconnect( m_toolViewActions.at( i ), 0, this, 0 ); disconnect( m_toolViewActions.at( i ), 0, this, 0 );
@ -251,7 +251,7 @@ void KMDIGUIClient::addToolView( KMdiToolViewAccessor* mtva )
// try to read the action shortcut // try to read the action shortcut
TDEShortcut sc; TDEShortcut sc;
TDEConfig *cfg = kapp->config(); TDEConfig *cfg = tdeApp->config();
TQString _grp = cfg->group(); TQString _grp = cfg->group();
cfg->setGroup( "Shortcuts" ); cfg->setGroup( "Shortcuts" );
// if ( cfg->hasKey( aname ) ) // if ( cfg->hasKey( aname ) )

@ -351,7 +351,7 @@ void DownloadDialog::slotResult(TDEIO::Job *job)
kdDebug() << "got data: " << m_data[job] << endl; kdDebug() << "got data: " << m_data[job] << endl;
kapp->config()->setGroup("TDENewStuffStatus"); tdeApp->config()->setGroup("TDENewStuffStatus");
dom.setContent(m_data[job]); dom.setContent(m_data[job]);
knewstuff = dom.documentElement(); knewstuff = dom.documentElement();
@ -434,8 +434,8 @@ int DownloadDialog::installStatus(Entry *entry)
TQString lang = TDEGlobal::locale()->language(); TQString lang = TDEGlobal::locale()->language();
kapp->config()->setGroup("TDENewStuffStatus"); tdeApp->config()->setGroup("TDENewStuffStatus");
datestring = kapp->config()->readEntry(entry->name(lang)); datestring = tdeApp->config()->readEntry(entry->name(lang));
if(datestring.isNull()) installed = 0; if(datestring.isNull()) installed = 0;
else else
{ {
@ -667,9 +667,9 @@ void DownloadDialog::slotJobResult( TDEIO::Job *job )
void DownloadDialog::install(Entry *e) void DownloadDialog::install(Entry *e)
{ {
kapp->config()->setGroup("TDENewStuffStatus"); tdeApp->config()->setGroup("TDENewStuffStatus");
kapp->config()->writeEntry(m_entryname, TQString(e->releaseDate().toString(TQt::ISODate))); tdeApp->config()->writeEntry(m_entryname, TQString(e->releaseDate().toString(TQt::ISODate)));
kapp->config()->sync(); tdeApp->config()->sync();
TQPixmap pix = TDEGlobal::iconLoader()->loadIcon("ok", TDEIcon::Small); TQPixmap pix = TDEGlobal::iconLoader()->loadIcon("ok", TDEIcon::Small);
@ -843,7 +843,7 @@ void DownloadDialog::slotSelected()
void DownloadDialog::slotEmail(const TQString& link) void DownloadDialog::slotEmail(const TQString& link)
{ {
kdDebug() << "EMAIL: " << link << endl; kdDebug() << "EMAIL: " << link << endl;
kapp->invokeMailer(link); tdeApp->invokeMailer(link);
slotSelected(); // TQTextBrowser oddity workaround as it cannot handle mailto: URLs slotSelected(); // TQTextBrowser oddity workaround as it cannot handle mailto: URLs
} }

@ -290,7 +290,7 @@ void Engine::upload( Entry *entry )
{ {
if ( mUploadFile.isNull()) { if ( mUploadFile.isNull()) {
mUploadFile = entry->fullName(); mUploadFile = entry->fullName();
mUploadFile = locateLocal( "data", TQString(kapp->instanceName()) + "/upload/" + mUploadFile ); mUploadFile = locateLocal( "data", TQString(tdeApp->instanceName()) + "/upload/" + mUploadFile );
if ( !d->mNewStuff->createUploadFile( mUploadFile ) ) { if ( !d->mNewStuff->createUploadFile( mUploadFile ) ) {
KMessageBox::error( mParentWidget, i18n("Unable to create file to upload.") ); KMessageBox::error( mParentWidget, i18n("Unable to create file to upload.") );
@ -329,7 +329,7 @@ void Engine::upload( Entry *entry )
i18n("Upload Info"), i18n("Upload Info"),
KStdGuiItem::close() ); KStdGuiItem::close() );
if ( result == KMessageBox::Yes ) { if ( result == KMessageBox::Yes ) {
kapp->invokeBrowser( noUploadUrl.url() ); tdeApp->invokeBrowser( noUploadUrl.url() );
} }
} }
} else { } else {
@ -364,7 +364,7 @@ bool Engine::createMetaFile( Entry *entry )
if ( mUploadMetaFile.isNull() ) { if ( mUploadMetaFile.isNull() ) {
mUploadMetaFile = entry->fullName() + ".meta"; mUploadMetaFile = entry->fullName() + ".meta";
mUploadMetaFile = locateLocal( "data", TQString(kapp->instanceName()) + "/upload/" + mUploadMetaFile ); mUploadMetaFile = locateLocal( "data", TQString(tdeApp->instanceName()) + "/upload/" + mUploadMetaFile );
} }
TQFile f( mUploadMetaFile ); TQFile f( mUploadMetaFile );

@ -61,7 +61,7 @@ GhnsWidget::GhnsWidget()
TQPushButton *closeButton = new TQPushButton( "Close", this ); TQPushButton *closeButton = new TQPushButton( "Close", this );
buttonLayout->addWidget( closeButton ); buttonLayout->addWidget( closeButton );
connect( closeButton, TQ_SIGNAL( clicked() ), kapp, TQ_SLOT( quit() ) ); connect( closeButton, TQ_SIGNAL( clicked() ), tdeApp, TQ_SLOT( quit() ) );
} }
GhnsWidget::~GhnsWidget() GhnsWidget::~GhnsWidget()

@ -82,7 +82,7 @@ MyWidget::MyWidget()
TQPushButton *closeButton = new TQPushButton( "Close", this ); TQPushButton *closeButton = new TQPushButton( "Close", this );
topLayout->addWidget( closeButton ); topLayout->addWidget( closeButton );
connect( closeButton, TQ_SIGNAL( clicked() ), kapp, TQ_SLOT( quit() ) ); connect( closeButton, TQ_SIGNAL( clicked() ), tdeApp, TQ_SLOT( quit() ) );
} }
MyWidget::~MyWidget() MyWidget::~MyWidget()

@ -136,7 +136,7 @@ void UploadDialog::slotOk()
entry->setSummary( mSummaryEdit->text(), mLanguageCombo->currentText() ); entry->setSummary( mSummaryEdit->text(), mLanguageCombo->currentText() );
if ( mPayloadUrl.isValid() ) { if ( mPayloadUrl.isValid() ) {
TDEConfig *conf = kapp->config(); TDEConfig *conf = tdeApp->config();
conf->setGroup( TQString("TDENewStuffUpload:%1").arg(mPayloadUrl.fileName()) ); conf->setGroup( TQString("TDENewStuffUpload:%1").arg(mPayloadUrl.fileName()) );
conf->writeEntry("name", mNameEdit->text()); conf->writeEntry("name", mNameEdit->text());
conf->writeEntry("author", mAuthorEdit->text()); conf->writeEntry("author", mAuthorEdit->text());
@ -164,7 +164,7 @@ void UploadDialog::setPayloadFile( const TQString &payloadFile )
{ {
mPayloadUrl = payloadFile; mPayloadUrl = payloadFile;
TDEConfig *conf = kapp->config(); TDEConfig *conf = tdeApp->config();
conf->setGroup( TQString("TDENewStuffUpload:%1").arg(mPayloadUrl.fileName()) ); conf->setGroup( TQString("TDENewStuffUpload:%1").arg(mPayloadUrl.fileName()) );
TQString name = conf->readEntry("name"); TQString name = conf->readEntry("name");
TQString author = conf->readEntry("author"); TQString author = conf->readEntry("author");

@ -40,7 +40,7 @@ public:
HistoryProvider * HistoryProvider::self() HistoryProvider * HistoryProvider::self()
{ {
if ( !s_self ) if ( !s_self )
s_self = new HistoryProvider( kapp, "history provider" ); s_self = new HistoryProvider( tdeApp, "history provider" );
return s_self; return s_self;
} }

@ -639,7 +639,7 @@ DrMain* KMCupsManager::loadFileDriver(const TQString& filename)
DrMain* KMCupsManager::loadMaticDriver(const TQString& drname) DrMain* KMCupsManager::loadMaticDriver(const TQString& drname)
{ {
TQStringList comps = TQStringList::split('/', drname, false); TQStringList comps = TQStringList::split('/', drname, false);
TQString tmpFile = locateLocal("tmp", "foomatic_" + kapp->randomString(8)); TQString tmpFile = locateLocal("tmp", "foomatic_" + tdeApp->randomString(8));
#if defined(__OpenBSD__) || defined(__FreeBSD__) #if defined(__OpenBSD__) || defined(__FreeBSD__)
TQString PATH = getenv("PATH") + TQString::fromLatin1(":/usr/local/bin:/usr/sbin:/usr/local/sbin:/opt/sbin:/opt/local/sbin"); TQString PATH = getenv("PATH") + TQString::fromLatin1(":/usr/local/bin:/usr/sbin:/usr/local/sbin:/opt/sbin:/opt/local/sbin");
#else #else
@ -807,7 +807,7 @@ void KMCupsManager::saveDriverFile(DrMain *driver, const TQString& filename)
bool KMCupsManager::savePrinterDriver(KMPrinter *p, DrMain *d) bool KMCupsManager::savePrinterDriver(KMPrinter *p, DrMain *d)
{ {
TQString tmpfilename = locateLocal("tmp","print_") + kapp->randomString(8); TQString tmpfilename = locateLocal("tmp","print_") + tdeApp->randomString(8);
// first save the driver in a temporary file // first save the driver in a temporary file
saveDriverFile(d,tmpfilename); saveDriverFile(d,tmpfilename);

@ -253,7 +253,7 @@ KPCopiesPage::KPCopiesPage(KPrinter *prt, TQWidget *parent, const char *name)
connect(m_collate,TQ_SIGNAL(clicked()),TQ_SLOT(slotCollateClicked())); connect(m_collate,TQ_SIGNAL(clicked()),TQ_SLOT(slotCollateClicked()));
connect(m_order,TQ_SIGNAL(clicked()),TQ_SLOT(slotCollateClicked())); connect(m_order,TQ_SIGNAL(clicked()),TQ_SLOT(slotCollateClicked()));
if (!kapp->authorize("print/copies")) if (!tdeApp->authorize("print/copies"))
{ {
setTitle(i18n("Pages")); setTitle(i18n("Pages"));
m_copybox->hide(); m_copybox->hide();

@ -410,9 +410,9 @@ KPrintDialog::KPrintDialog(TQWidget *parent, const char *name)
connect( d->m_file, TQ_SIGNAL( openFileDialog( KURLRequester* ) ), TQ_SLOT( slotOpenFileDialog() ) ); connect( d->m_file, TQ_SIGNAL( openFileDialog( KURLRequester* ) ), TQ_SLOT( slotOpenFileDialog() ) );
connect( KMFactory::self()->manager(), TQ_SIGNAL( updatePossible( bool ) ), TQ_SLOT( slotUpdatePossible( bool ) ) ); connect( KMFactory::self()->manager(), TQ_SIGNAL( updatePossible( bool ) ), TQ_SLOT( slotUpdatePossible( bool ) ) );
d->b_optionsEnabled = kapp->authorize("print/options") && kapp->authorize("print/selection"); d->b_optionsEnabled = tdeApp->authorize("print/options") && tdeApp->authorize("print/selection");
d->b_propertiesEnabled = kapp->authorize("print/properties") && kapp->authorize("print/selection"); d->b_propertiesEnabled = tdeApp->authorize("print/properties") && tdeApp->authorize("print/selection");
d->b_systemEnabled = kapp->authorize("print/system") && kapp->authorize("print/selection"); d->b_systemEnabled = tdeApp->authorize("print/system") && tdeApp->authorize("print/selection");
if (!d->b_systemEnabled) if (!d->b_systemEnabled)
{ {
@ -430,7 +430,7 @@ KPrintDialog::KPrintDialog(TQWidget *parent, const char *name)
d->m_wizard->hide(); d->m_wizard->hide();
} }
if (!kapp->authorize("print/selection")) if (!tdeApp->authorize("print/selection"))
{ {
d->m_extbtn->hide(); d->m_extbtn->hide();
m_pbox->hide(); m_pbox->hide();
@ -914,7 +914,7 @@ void KPrintDialog::slotToggleFilter(bool on)
void KPrintDialog::slotHelp() void KPrintDialog::slotHelp()
{ {
kapp->invokeHelp(TQString::null, "tdeprint"); tdeApp->invokeHelp(TQString::null, "tdeprint");
} }
void KPrintDialog::slotOutputFileSelected(const TQString& txt) void KPrintDialog::slotOutputFileSelected(const TQString& txt)

@ -218,7 +218,7 @@ void KPrinter::saveSettings()
bool KPrinter::setup(TQWidget *parent, const TQString& caption, bool forceExpand) bool KPrinter::setup(TQWidget *parent, const TQString& caption, bool forceExpand)
{ {
if (!kapp->authorize("print/dialog")) if (!tdeApp->authorize("print/dialog"))
{ {
autoConfigure(TQString::null, parent); autoConfigure(TQString::null, parent);
return true; // Just print it return true; // Just print it
@ -409,7 +409,7 @@ bool KPrinter::printFiles(const TQStringList& l, bool flag, bool startviewer)
args << "-d"; args << "-d";
args << printerName(); args << printerName();
args << "--noshow"; args << "--noshow";
kapp->tdeinitExec("kjobviewer", args); tdeApp->tdeinitExec("kjobviewer", args);
} }
} }
} }

@ -197,7 +197,7 @@ int KPrinterImpl::dcopPrint(const TQString& cmd, const TQStringList& files, bool
kdDebug(500) << "tdeprint: print command: " << cmd << endl; kdDebug(500) << "tdeprint: print command: " << cmd << endl;
int result = 0; int result = 0;
DCOPClient *dclient = kapp->dcopClient(); DCOPClient *dclient = tdeApp->dcopClient();
if (!dclient || (!dclient->isAttached() && !dclient->attach())) if (!dclient || (!dclient->isAttached() && !dclient->attach()))
{ {
return result; return result;
@ -232,7 +232,7 @@ void KPrinterImpl::statusMessage(const TQString& msg, KPrinter *printer)
if (printer && !msg.isEmpty()) if (printer && !msg.isEmpty())
message.prepend(i18n("Printing document: %1").arg(printer->docName())+"\n"); message.prepend(i18n("Printing document: %1").arg(printer->docName())+"\n");
DCOPClient *dclient = kapp->dcopClient(); DCOPClient *dclient = tdeApp->dcopClient();
if (!dclient || (!dclient->isAttached() && !dclient->attach())) if (!dclient || (!dclient->isAttached() && !dclient->attach()))
{ {
return; return;
@ -242,7 +242,7 @@ void KPrinterImpl::statusMessage(const TQString& msg, KPrinter *printer)
TQDataStream arg( data, IO_WriteOnly ); TQDataStream arg( data, IO_WriteOnly );
arg << message; arg << message;
arg << (int)getpid(); arg << (int)getpid();
arg << kapp->caption(); arg << tdeApp->caption();
dclient->send( "kded", "tdeprintd", "statusMessage(TQString,int,TQString)", data ); dclient->send( "kded", "tdeprintd", "statusMessage(TQString,int,TQString)", data );
} }

@ -56,7 +56,7 @@ bool KPreviewProc::startPreview()
{ {
if (start()) if (start())
{ {
kapp->enter_loop(); tdeApp->enter_loop();
return m_bOk; return m_bOk;
} }
else else
@ -65,7 +65,7 @@ bool KPreviewProc::startPreview()
void KPreviewProc::slotProcessExited(TDEProcess* proc) void KPreviewProc::slotProcessExited(TDEProcess* proc)
{ {
kapp->exit_loop(); tdeApp->exit_loop();
if ( proc->normalExit() && proc->exitStatus() == 0 ) if ( proc->normalExit() && proc->exitStatus() == 0 )
m_bOk = true; m_bOk = true;
else else

@ -224,7 +224,7 @@ DrMain* MaticHandler::loadDriver(KMPrinter*, PrintcapEntry *entry, bool)
// is not self-contained. If the printer is removed (when // is not self-contained. If the printer is removed (when
// changing printer name), the template would be also removed // changing printer name), the template would be also removed
TQString origfilename = maticFile(entry); TQString origfilename = maticFile(entry);
TQString filename = locateLocal("tmp", "foomatic_" + kapp->randomString(8)); TQString filename = locateLocal("tmp", "foomatic_" + tdeApp->randomString(8));
::system(TQFile::encodeName("cp " + TDEProcess::quote(origfilename) + " " + TDEProcess::quote(filename))); ::system(TQFile::encodeName("cp " + TDEProcess::quote(origfilename) + " " + TDEProcess::quote(filename)));
DrMain *driver = Foomatic2Loader::loadDriver(filename); DrMain *driver = Foomatic2Loader::loadDriver(filename);
if (driver) if (driver)
@ -246,7 +246,7 @@ DrMain* MaticHandler::loadDbDriver(const TQString& path)
return NULL; return NULL;
} }
TQString tmpFile = locateLocal("tmp", "foomatic_" + kapp->randomString(8)); TQString tmpFile = locateLocal("tmp", "foomatic_" + tdeApp->randomString(8));
TQString PATH = getenv("PATH") + TQString::fromLatin1(":/usr/sbin:/usr/local/sbin:/opt/sbin:/opt/local/sbin"); TQString PATH = getenv("PATH") + TQString::fromLatin1(":/usr/sbin:/usr/local/sbin:/opt/sbin:/opt/local/sbin");
TQString exe = TDEStandardDirs::findExe("foomatic-datafile", PATH); TQString exe = TDEStandardDirs::findExe("foomatic-datafile", PATH);
if (exe.isEmpty()) if (exe.isEmpty())
@ -291,7 +291,7 @@ DrMain* MaticHandler::loadDbDriver(const TQString& path)
bool MaticHandler::savePrinterDriver(KMPrinter *prt, PrintcapEntry *entry, DrMain *driver, bool*) bool MaticHandler::savePrinterDriver(KMPrinter *prt, PrintcapEntry *entry, DrMain *driver, bool*)
{ {
TQFile tmpFile(locateLocal("tmp", "foomatic_" + kapp->randomString(8))); TQFile tmpFile(locateLocal("tmp", "foomatic_" + tdeApp->randomString(8)));
TQFile inFile(driver->get("template")); TQFile inFile(driver->get("template"));
TQString outFile = maticFile(entry); TQString outFile = maticFile(entry);
bool result(false); bool result(false);

@ -51,7 +51,7 @@ KMDBCreator::~KMDBCreator()
bool KMDBCreator::checkDriverDB(const TQString& dirname, const TQDateTime& d) bool KMDBCreator::checkDriverDB(const TQString& dirname, const TQDateTime& d)
{ {
// don't block GUI // don't block GUI
kapp->processEvents(); tdeApp->processEvents();
// first check current directory // first check current directory
TQFileInfo dfi(dirname); TQFileInfo dfi(dirname);

@ -177,7 +177,7 @@ void KMDriverDB::insertEntry(KMDBEntry *entry)
} }
// don't block GUI // don't block GUI
kapp->processEvents(); tdeApp->processEvents();
} }
/* /*

@ -324,7 +324,7 @@ void KMJobViewer::initActions()
} }
else else
{// stand-alone application {// stand-alone application
KStdAction::quit(kapp,TQ_SLOT(quit()),actionCollection()); KStdAction::quit(tdeApp,TQ_SLOT(quit()),actionCollection());
KStdAction::close(this,TQ_SLOT(slotClose()),actionCollection()); KStdAction::close(this,TQ_SLOT(slotClose()),actionCollection());
KStdAction::preferences(this, TQ_SLOT(slotConfigure()), actionCollection()); KStdAction::preferences(this, TQ_SLOT(slotConfigure()), actionCollection());
@ -674,7 +674,7 @@ void KMJobViewer::reload()
void KMJobViewer::closeEvent(TQCloseEvent *e) void KMJobViewer::closeEvent(TQCloseEvent *e)
{ {
if (m_standalone && !kapp->sessionSaving()) if (m_standalone && !tdeApp->sessionSaving())
{ {
hide(); hide();
e->ignore(); e->ignore();

@ -244,7 +244,7 @@ void KMWizard::slotNext()
void KMWizard::slotHelp() void KMWizard::slotHelp()
{ {
kapp->invokeHelp(TQString::null, "tdeprint"); tdeApp->invokeHelp(TQString::null, "tdeprint");
} }
void KMWizard::enableWizard() void KMWizard::enableWizard()

@ -178,7 +178,7 @@ bool KMWSocketUtil::scanNetwork(TQProgressBar *bar)
if (bar) if (bar)
{ {
bar->setProgress(i); bar->setProgress(i);
kapp->flushX(); tdeApp->flushX();
} }
} }
return true; return true;

@ -403,7 +403,7 @@ void KXmlCommandAdvancedDlg::parseGroupItem(DrGroup *grp, TQListViewItem *parent
TQString namestr = git.current()->name(); TQString namestr = git.current()->name();
if (namestr.isEmpty()) if (namestr.isEmpty())
{ {
namestr = "group_"+kapp->randomString(4); namestr = "group_"+tdeApp->randomString(4);
} }
git.current()->setName(namestr); git.current()->setName(namestr);
item = new TQListViewItem(parent, item, git.current()->get("text"), git.current()->name()); item = new TQListViewItem(parent, item, git.current()->get("text"), git.current()->name());
@ -420,7 +420,7 @@ void KXmlCommandAdvancedDlg::parseGroupItem(DrGroup *grp, TQListViewItem *parent
TQString namestr = oit.current()->name().mid(m_xmlcmd->name().length()+6); TQString namestr = oit.current()->name().mid(m_xmlcmd->name().length()+6);
if (namestr.isEmpty()) if (namestr.isEmpty())
{ {
namestr = "option_"+kapp->randomString(4); namestr = "option_"+tdeApp->randomString(4);
} }
oit.current()->setName(namestr); oit.current()->setName(namestr);
item = new TQListViewItem(parent, item, oit.current()->get("text"), namestr); item = new TQListViewItem(parent, item, oit.current()->get("text"), namestr);

@ -65,7 +65,7 @@ void MessageWindow::slotTimer()
if ( !isVisible() ) if ( !isVisible() )
{ {
show(); show();
kapp->processEvents(); tdeApp->processEvents();
} }
} }

@ -123,7 +123,7 @@ int KDEPrintd::print(const TQString& cmd, const TQStringList& files, bool remfla
KURL url( re.cap( 1 ) ); KURL url( re.cap( 1 ) );
if ( !url.isLocalFile() ) if ( !url.isLocalFile() )
{ {
TQString tmpFilename = locateLocal( "tmp", "tdeprint_" + kapp->randomString( 8 ) ); TQString tmpFilename = locateLocal( "tmp", "tdeprint_" + tdeApp->randomString( 8 ) );
command.replace( re, TDEProcess::quote( tmpFilename ) ); command.replace( re, TDEProcess::quote( tmpFilename ) );
proc->setOutput( re.cap( 1 ) ); proc->setOutput( re.cap( 1 ) );
proc->setTempOutput( tmpFilename ); proc->setTempOutput( tmpFilename );

@ -254,7 +254,7 @@ TDE_EXPORT bool RandRScreen::confirm()
// FIXME remember to put the dialog on the right screen // FIXME remember to put the dialog on the right screen
KTimerDialog acceptDialog ( 15000, KTimerDialog::CountDown, KTimerDialog acceptDialog ( 15000, KTimerDialog::CountDown,
TDEApplication::kApplication()->mainWidget(), tdeApp->mainWidget(),
"mainKTimerDialog", "mainKTimerDialog",
true, true,
i18n("Confirm Display Setting Change"), i18n("Confirm Display Setting Change"),
@ -275,7 +275,7 @@ TDE_EXPORT bool RandRScreen::confirm()
m_shownDialog = &acceptDialog; m_shownDialog = &acceptDialog;
connect( m_shownDialog, TQ_SIGNAL( destroyed()), this, TQ_SLOT( shownDialogDestroyed())); connect( m_shownDialog, TQ_SIGNAL( destroyed()), this, TQ_SLOT( shownDialogDestroyed()));
connect( kapp->desktop(), TQ_SIGNAL( resized(int)), this, TQ_SLOT( desktopResized())); connect( tdeApp->desktop(), TQ_SIGNAL( resized(int)), this, TQ_SLOT( desktopResized()));
return acceptDialog.exec(); return acceptDialog.exec();
} }
@ -283,7 +283,7 @@ TDE_EXPORT bool RandRScreen::confirm()
TDE_EXPORT void RandRScreen::shownDialogDestroyed() TDE_EXPORT void RandRScreen::shownDialogDestroyed()
{ {
m_shownDialog = NULL; m_shownDialog = NULL;
disconnect( kapp->desktop(), TQ_SIGNAL( resized(int)), this, TQ_SLOT( desktopResized())); disconnect( tdeApp->desktop(), TQ_SIGNAL( resized(int)), this, TQ_SLOT( desktopResized()));
} }
TDE_EXPORT void RandRScreen::desktopResized() TDE_EXPORT void RandRScreen::desktopResized()
@ -846,7 +846,7 @@ TDE_EXPORT bool RandRScreen::showTestConfigurationDialog()
// FIXME remember to put the dialog on the right screen // FIXME remember to put the dialog on the right screen
KTimerDialog acceptDialog ( 15000, KTimerDialog::CountDown, KTimerDialog acceptDialog ( 15000, KTimerDialog::CountDown,
TDEApplication::kApplication()->mainWidget(), tdeApp->mainWidget(),
"mainKTimerDialog", "mainKTimerDialog",
true, true,
i18n("Confirm Display Settings"), i18n("Confirm Display Settings"),
@ -867,7 +867,7 @@ TDE_EXPORT bool RandRScreen::showTestConfigurationDialog()
m_shownDialog = &acceptDialog; m_shownDialog = &acceptDialog;
connect( m_shownDialog, TQ_SIGNAL( destroyed()), this, TQ_SLOT( shownDialogDestroyed())); connect( m_shownDialog, TQ_SIGNAL( destroyed()), this, TQ_SLOT( shownDialogDestroyed()));
connect( kapp->desktop(), TQ_SIGNAL( resized(int)), this, TQ_SLOT( desktopResized())); connect( tdeApp->desktop(), TQ_SIGNAL( resized(int)), this, TQ_SLOT( desktopResized()));
return acceptDialog.exec(); return acceptDialog.exec();
} }

@ -48,9 +48,9 @@ ManagerImpl::ManagerImpl( ManagerNotifier *notifier, const TQString &family )
mId = TDEApplication::randomString( 8 ); mId = TDEApplication::randomString( 8 );
// Register with DCOP // Register with DCOP
if ( !kapp->dcopClient()->isRegistered() ) { if ( !tdeApp->dcopClient()->isRegistered() ) {
kapp->dcopClient()->registerAs( "TDEResourcesManager" ); tdeApp->dcopClient()->registerAs( "TDEResourcesManager" );
kapp->dcopClient()->setDefaultObject( objId() ); tdeApp->dcopClient()->setDefaultObject( objId() );
} }
kdDebug(5650) << "Connecting DCOP signals..." << endl; kdDebug(5650) << "Connecting DCOP signals..." << endl;
@ -69,7 +69,7 @@ ManagerImpl::ManagerImpl( ManagerNotifier *notifier, const TQString &family )
"dcopKResourceDeleted( TQString, TQString )", false ) ) "dcopKResourceDeleted( TQString, TQString )", false ) )
kdWarning(5650) << "Could not connect ResourceDeleted signal!" << endl; kdWarning(5650) << "Could not connect ResourceDeleted signal!" << endl;
kapp->dcopClient()->setNotifications( true ); tdeApp->dcopClient()->setNotifications( true );
} }
ManagerImpl::~ManagerImpl() ManagerImpl::~ManagerImpl()

@ -113,7 +113,7 @@ RsyncConfigDialog::RsyncConfigDialog(TQWidget* parent, const char* name,
mSyncAutoLogout(false) mSyncAutoLogout(false)
{ {
#ifdef TQ_WS_X11 #ifdef TQ_WS_X11
KWin::setIcons(winId(), kapp->icon(), kapp->miniIcon()); KWin::setIcons(winId(), tdeApp->icon(), tdeApp->miniIcon());
#endif #endif
mShowTimer = new TQTimer(this); mShowTimer = new TQTimer(this);

@ -480,7 +480,7 @@ protected:
TQString *brdnames ); TQString *brdnames );
/** /**
* Makes a full color group based on the given foreground and background * Makes a full color group based on the given foreground and background
* colors. This is the same code used by KDE (kapp.cpp) in previous * colors. This is the same code used by KDE (tdeApp.cpp) in previous
* versions. * versions.
*/ */
TQColorGroup* makeColorGroup( const TQColor &fg, const TQColor &bg, TQColorGroup* makeColorGroup( const TQColor &fg, const TQColor &bg,

@ -447,7 +447,7 @@ int TDEsuClient::startServer()
// connections. // connections.
// We start it via tdeinit to make sure that it doesn't inherit // We start it via tdeinit to make sure that it doesn't inherit
// any fd's from the parent process. // any fd's from the parent process.
int ret = kapp->tdeinitExecWait(d->daemon); int ret = tdeApp->tdeinitExecWait(d->daemon);
connect(); connect();
return ret; return ret;
} }

@ -49,16 +49,16 @@ void KActiveLabel::init()
connect(this, TQ_SIGNAL(linkClicked(const TQString &)), connect(this, TQ_SIGNAL(linkClicked(const TQString &)),
this, TQ_SLOT(openLink(const TQString &))); this, TQ_SLOT(openLink(const TQString &)));
if (kapp) if (tdeApp)
{ {
connect(kapp, TQ_SIGNAL(tdedisplayPaletteChanged()), connect(tdeApp, TQ_SIGNAL(tdedisplayPaletteChanged()),
this, TQ_SLOT(paletteChanged())); this, TQ_SLOT(paletteChanged()));
} }
} }
void KActiveLabel::paletteChanged() void KActiveLabel::paletteChanged()
{ {
TQPalette p = kapp ? kapp->palette() : palette(); TQPalette p = tdeApp ? tdeApp->palette() : palette();
p.setBrush(TQColorGroup::Base, p.brush(TQPalette::Active, TQColorGroup::Background)); p.setBrush(TQColorGroup::Base, p.brush(TQPalette::Active, TQColorGroup::Background));
p.setColor(TQColorGroup::Text, p.color(TQPalette::Active, TQColorGroup::Foreground)); p.setColor(TQColorGroup::Text, p.color(TQPalette::Active, TQColorGroup::Foreground));
setPalette(p); setPalette(p);
@ -74,7 +74,7 @@ void KActiveLabel::openLink(const TQString & link)
TQStringList args; TQStringList args;
args << "exec" << link; args << "exec" << link;
kapp->tdeinitExec("kfmclient", args); tdeApp->tdeinitExec("kfmclient", args);
} }
void KActiveLabel::virtual_hook( int, void* ) void KActiveLabel::virtual_hook( int, void* )

@ -363,8 +363,8 @@ void KBugReport::slotSetFrom()
void KBugReport::slotUrlClicked(const TQString &urlText) void KBugReport::slotUrlClicked(const TQString &urlText)
{ {
if ( kapp ) if ( tdeApp )
kapp->invokeBrowser( urlText ); tdeApp->invokeBrowser( urlText );
// When using the web form, a click can also close the window, as there's // When using the web form, a click can also close the window, as there's
// not much to do. It also gives the user a direct response to his click: // not much to do. It also gives the user a direct response to his click:
@ -376,8 +376,8 @@ void KBugReport::slotUrlClicked(const TQString &urlText)
void KBugReport::slotOk( void ) void KBugReport::slotOk( void )
{ {
if ( d->submitBugButton ) { if ( d->submitBugButton ) {
if ( kapp ) if ( tdeApp )
kapp->invokeBrowser( d->url.url() ); tdeApp->invokeBrowser( d->url.url() );
return; return;
} }

@ -599,7 +599,7 @@ public:
* You won't have the benefit of weighted completion though, so normally * You won't have the benefit of weighted completion though, so normally
* you should do something like * you should do something like
* \code * \code
* TDEConfig *config = kapp->config(); * TDEConfig *config = tdeApp->config();
* TQStringList list; * TQStringList list;
* *
* // load the history and completion list after creating the history combo * // load the history and completion list after creating the history combo

@ -94,7 +94,7 @@ TQMap<TQCString,DCOPRef> KDCOPActionProxy::actionMap( const TQCString &appId ) c
TQCString id = appId; TQCString id = appId;
if ( id.isEmpty() ) if ( id.isEmpty() )
id = kapp->dcopClient()->appId(); id = tdeApp->dcopClient()->appId();
TQValueList<TDEAction *> lst = actions(); TQValueList<TDEAction *> lst = actions();
TQValueList<TDEAction *>::ConstIterator it = lst.begin(); TQValueList<TDEAction *>::ConstIterator it = lst.begin();

@ -73,7 +73,7 @@ public:
* object id. * object id.
* *
* You can construct a global DCOP object referenence using DCOPRef. For example like * You can construct a global DCOP object referenence using DCOPRef. For example like
* DCOPRef( kapp->dcopClient()->appId, actionProxy->actionObjectId( actionName ) ); * DCOPRef( tdeApp->dcopClient()->appId, actionProxy->actionObjectId( actionName ) );
* *
* The action with the given name has to be available through the #action method. * The action with the given name has to be available through the #action method.
*/ */
@ -83,7 +83,7 @@ public:
* Returns a map of all exported actions, with the action name as keys and a global DCOP reference * Returns a map of all exported actions, with the action name as keys and a global DCOP reference
* as data entries. * as data entries.
* The appId argument is used to specify the appid component of the DCOP reference. By default the * The appId argument is used to specify the appid component of the DCOP reference. By default the
* global application id is used ( kapp->dcopClient()->appId() ) . * global application id is used ( tdeApp->dcopClient()->appId() ) .
*/ */
virtual TQMap<TQCString,DCOPRef> actionMap( const TQCString &appId = TQCString() ) const; virtual TQMap<TQCString,DCOPRef> actionMap( const TQCString &appId = TQCString() ) const;

@ -39,7 +39,7 @@ KDETrayProxy::KDETrayProxy()
it != module.windows().end(); it != module.windows().end();
++it ) ++it )
windowAdded( *it ); windowAdded( *it );
kapp->installX11EventFilter( this ); // XSelectInput( StructureNotifyMask ) on windows is done by KWinModule tdeApp->installX11EventFilter( this ); // XSelectInput( StructureNotifyMask ) on windows is done by KWinModule
// kdDebug() << "Init done" << endl; // kdDebug() << "Init done" << endl;
} }

@ -121,7 +121,7 @@ void KDialog::polish()
void KDialog::setCaption( const TQString &_caption ) void KDialog::setCaption( const TQString &_caption )
{ {
TQString caption = kapp ? kapp->makeStdCaption( _caption ) : _caption; TQString caption = tdeApp ? tdeApp->makeStdCaption( _caption ) : _caption;
setPlainCaption( caption ); setPlainCaption( caption );
} }

@ -1094,8 +1094,8 @@ void KDialogBase::setIconListAllVisible( bool state )
void KDialogBase::slotHelp() void KDialogBase::slotHelp()
{ {
emit helpClicked(); emit helpClicked();
if ( kapp ) // may be null when used inside designer if ( tdeApp ) // may be null when used inside designer
kapp->invokeHelp( mAnchor, mHelpApp ); tdeApp->invokeHelp( mAnchor, mHelpApp );
} }

@ -125,7 +125,7 @@ TDEPopupMenu* KHelpMenu::menu()
connect( mMenu, TQ_SIGNAL(destroyed()), this, TQ_SLOT(menuDestroyed())); connect( mMenu, TQ_SIGNAL(destroyed()), this, TQ_SLOT(menuDestroyed()));
bool need_separator = false; bool need_separator = false;
if (kapp->authorizeTDEAction("help_contents")) if (tdeApp->authorizeTDEAction("help_contents"))
{ {
mMenu->insertItem( BarIcon( "contents", TDEIcon::SizeSmall), mMenu->insertItem( BarIcon( "contents", TDEIcon::SizeSmall),
TQString(i18n( "%1 &Handbook" ).arg( appName)) ,menuHelpContents ); TQString(i18n( "%1 &Handbook" ).arg( appName)) ,menuHelpContents );
@ -134,7 +134,7 @@ TDEPopupMenu* KHelpMenu::menu()
need_separator = true; need_separator = true;
} }
if( mShowWhatsThis && kapp->authorizeTDEAction("help_whats_this") ) if( mShowWhatsThis && tdeApp->authorizeTDEAction("help_whats_this") )
{ {
TQToolButton* wtb = TQWhatsThis::whatsThisButton(0); TQToolButton* wtb = TQWhatsThis::whatsThisButton(0);
mMenu->insertItem( wtb->iconSet(),i18n( "What's &This" ), menuWhatsThis); mMenu->insertItem( wtb->iconSet(),i18n( "What's &This" ), menuWhatsThis);
@ -144,7 +144,7 @@ TDEPopupMenu* KHelpMenu::menu()
need_separator = true; need_separator = true;
} }
if (kapp->authorizeTDEAction("help_report_bug") && aboutData && !aboutData->bugAddress().isEmpty() ) if (tdeApp->authorizeTDEAction("help_report_bug") && aboutData && !aboutData->bugAddress().isEmpty() )
{ {
if (need_separator) if (need_separator)
mMenu->insertSeparator(); mMenu->insertSeparator();
@ -153,7 +153,7 @@ TDEPopupMenu* KHelpMenu::menu()
need_separator = true; need_separator = true;
} }
if (kapp->authorizeTDEAction("switch_application_language")) if (tdeApp->authorizeTDEAction("switch_application_language"))
{ {
if (need_separator) if (need_separator)
mMenu->insertSeparator(); mMenu->insertSeparator();
@ -165,14 +165,14 @@ TDEPopupMenu* KHelpMenu::menu()
if (need_separator) if (need_separator)
mMenu->insertSeparator(); mMenu->insertSeparator();
if (kapp->authorizeTDEAction("help_about_app")) if (tdeApp->authorizeTDEAction("help_about_app"))
{ {
mMenu->insertItem( kapp->miniIcon(), mMenu->insertItem( tdeApp->miniIcon(),
TQString(i18n( "&About %1" ).arg(appName)), menuAboutApp ); TQString(i18n( "&About %1" ).arg(appName)), menuAboutApp );
mMenu->connectItem( menuAboutApp, this, TQ_SLOT( aboutApplication() ) ); mMenu->connectItem( menuAboutApp, this, TQ_SLOT( aboutApplication() ) );
} }
if (kapp->authorizeTDEAction("help_about_kde")) if (tdeApp->authorizeTDEAction("help_about_kde"))
{ {
mMenu->insertItem( SmallIcon("about_kde"), i18n( "About &TDE" ), menuAboutKDE ); mMenu->insertItem( SmallIcon("about_kde"), i18n( "About &TDE" ), menuAboutKDE );
mMenu->connectItem( menuAboutKDE, this, TQ_SLOT( aboutKDE() ) ); mMenu->connectItem( menuAboutKDE, this, TQ_SLOT( aboutKDE() ) );
@ -186,7 +186,7 @@ TDEPopupMenu* KHelpMenu::menu()
void KHelpMenu::appHelpActivated() void KHelpMenu::appHelpActivated()
{ {
kapp->invokeHelp(); tdeApp->invokeHelp();
} }
@ -221,11 +221,11 @@ void KHelpMenu::aboutApplication()
hbox->setMargin(KDialog::marginHint()*1); hbox->setMargin(KDialog::marginHint()*1);
TQLabel *label1 = new TQLabel(hbox); TQLabel *label1 = new TQLabel(hbox);
label1->setPixmap( kapp->icon() ); label1->setPixmap( tdeApp->icon() );
TQLabel *label2 = new TQLabel(hbox); TQLabel *label2 = new TQLabel(hbox);
label2->setText( mAboutAppText ); label2->setText( mAboutAppText );
mAboutApp->setPlainCaption( i18n("About %1").arg(kapp->caption()) ); mAboutApp->setPlainCaption( i18n("About %1").arg(tdeApp->caption()) );
mAboutApp->disableResize(); mAboutApp->disableResize();
} }

@ -66,9 +66,9 @@ TDEIconView::TDEIconView( TQWidget *parent, const char *name, WFlags f )
connect( this, TQ_SIGNAL( onItem( TQIconViewItem * ) ), connect( this, TQ_SIGNAL( onItem( TQIconViewItem * ) ),
this, TQ_SLOT( slotOnItem( TQIconViewItem * ) ) ); this, TQ_SLOT( slotOnItem( TQIconViewItem * ) ) );
slotSettingsChanged( TDEApplication::SETTINGS_MOUSE ); slotSettingsChanged( TDEApplication::SETTINGS_MOUSE );
if ( kapp ) { // maybe null when used inside designer if ( tdeApp ) { // maybe null when used inside designer
connect( kapp, TQ_SIGNAL( settingsChanged(int) ), TQ_SLOT( slotSettingsChanged(int) ) ); connect( tdeApp, TQ_SIGNAL( settingsChanged(int) ), TQ_SLOT( slotSettingsChanged(int) ) );
kapp->addKipcEventMask( KIPC::SettingsChanged ); tdeApp->addKipcEventMask( KIPC::SettingsChanged );
} }
m_pCurrentItem = 0L; m_pCurrentItem = 0L;

@ -196,8 +196,8 @@ KJanusWidget::KJanusWidget( TQWidget *parent, const char *name, int face )
topLayout->addWidget( mPlainPage, 10 ); topLayout->addWidget( mPlainPage, 10 );
} }
if ( kapp ) if ( tdeApp )
connect(kapp,TQ_SIGNAL(tdedisplayFontChanged()),TQ_SLOT(slotFontChanged())); connect(tdeApp,TQ_SIGNAL(tdedisplayFontChanged()),TQ_SLOT(slotFontChanged()));
mValid = true; mValid = true;
setSwallowedWidget(0); // Set default size if 'mFace' is Swallow. setSwallowedWidget(0); // Set default size if 'mFace' is Swallow.

@ -451,7 +451,7 @@ void KKeyChooser::initGUI( ActionType type, bool bAllowLetterShortcuts )
//d->stdDict->setAutoDelete( true ); //d->stdDict->setAutoDelete( true );
//if (type == Application || type == ApplicationGlobal) //if (type == Application || type == ApplicationGlobal)
// readStdKeys(); // readStdKeys();
connect( kapp, TQ_SIGNAL( settingsChanged( int )), TQ_SLOT( slotSettingsChanged( int ))); connect( tdeApp, TQ_SIGNAL( settingsChanged( int )), TQ_SLOT( slotSettingsChanged( int )));
if( allChoosers == NULL ) if( allChoosers == NULL )
allChoosers = allChoosersDeleter.setObject( allChoosers, new TQValueList< KKeyChooser* > ); allChoosers = allChoosersDeleter.setObject( allChoosers, new TQValueList< KKeyChooser* > );
allChoosers->append( this ); allChoosers->append( this );

@ -161,7 +161,7 @@ void KLineEdit::setCompletionMode( TDEGlobalSettings::Completion mode )
if ( echoMode() != TQLineEdit::Normal ) if ( echoMode() != TQLineEdit::Normal )
mode = TDEGlobalSettings::CompletionNone; // Override the request. mode = TDEGlobalSettings::CompletionNone; // Override the request.
if ( kapp && !kapp->authorize("lineedit_text_completion") ) if ( tdeApp && !tdeApp->authorize("lineedit_text_completion") )
mode = TDEGlobalSettings::CompletionNone; mode = TDEGlobalSettings::CompletionNone;
if ( mode == TDEGlobalSettings::CompletionPopupAuto || if ( mode == TDEGlobalSettings::CompletionPopupAuto ||
@ -876,7 +876,7 @@ TQPopupMenu *KLineEdit::createPopupMenu()
// If a completion object is present and the input // If a completion object is present and the input
// widget is not read-only, show the Text Completion // widget is not read-only, show the Text Completion
// menu item. // menu item.
if ( compObj() && !isReadOnly() && kapp->authorize("lineedit_text_completion") ) if ( compObj() && !isReadOnly() && tdeApp->authorize("lineedit_text_completion") )
{ {
TQPopupMenu *subMenu = new TQPopupMenu( popup ); TQPopupMenu *subMenu = new TQPopupMenu( popup );
connect( subMenu, TQ_SIGNAL( activated( int ) ), connect( subMenu, TQ_SIGNAL( activated( int ) ),

@ -60,7 +60,7 @@ KPanelApplet::KPanelApplet(const TQString& configFile, Type type,
} }
setBackgroundOrigin( AncestorOrigin ); setBackgroundOrigin( AncestorOrigin );
d->sharedConfig = TDESharedConfig::openConfig(configFile, kapp && kapp->config()->isImmutable()); d->sharedConfig = TDESharedConfig::openConfig(configFile, tdeApp && tdeApp->config()->isImmutable());
_config = d->sharedConfig; _config = d->sharedConfig;
} }

@ -60,7 +60,7 @@ KPanelAppMenu::KPanelAppMenu(TQObject *parent, const char *name)
void KPanelAppMenu::init(const TQPixmap &icon, const TQString &title) void KPanelAppMenu::init(const TQPixmap &icon, const TQString &title)
{ {
DCOPClient *client = kapp->dcopClient(); DCOPClient *client = tdeApp->dcopClient();
if(!client->isAttached()) if(!client->isAttached())
client->attach(); client->attach();
TQByteArray sendData, replyData; TQByteArray sendData, replyData;
@ -86,7 +86,7 @@ void KPanelAppMenu::init(const TQPixmap &icon, const TQString &title)
KPanelAppMenu::~KPanelAppMenu() KPanelAppMenu::~KPanelAppMenu()
{ {
DCOPClient *client = kapp->dcopClient(); DCOPClient *client = tdeApp->dcopClient();
TQByteArray sendData; TQByteArray sendData;
TQDataStream stream(sendData, IO_WriteOnly); TQDataStream stream(sendData, IO_WriteOnly);
stream << realObjId; stream << realObjId;
@ -97,7 +97,7 @@ int KPanelAppMenu::insertItem(const TQPixmap &icon, const TQString &text, int id
{ {
if ( id < 0 ) if ( id < 0 )
id = panelmenu_get_seq_id(); id = panelmenu_get_seq_id();
DCOPClient *client = kapp->dcopClient(); DCOPClient *client = tdeApp->dcopClient();
TQByteArray sendData; TQByteArray sendData;
TQDataStream stream(sendData, IO_WriteOnly); TQDataStream stream(sendData, IO_WriteOnly);
stream << icon << text << id; stream << icon << text << id;
@ -110,7 +110,7 @@ KPanelAppMenu *KPanelAppMenu::insertMenu(const TQPixmap &icon, const TQString &t
{ {
if ( id < 0 ) if ( id < 0 )
id = panelmenu_get_seq_id(); id = panelmenu_get_seq_id();
DCOPClient *client = kapp->dcopClient(); DCOPClient *client = tdeApp->dcopClient();
TQByteArray sendData, replyData; TQByteArray sendData, replyData;
TQCString replyType; TQCString replyType;
TQDataStream stream(sendData, IO_WriteOnly); TQDataStream stream(sendData, IO_WriteOnly);
@ -135,7 +135,7 @@ int KPanelAppMenu::insertItem(const TQString &text, int id )
{ {
if ( id < 0 ) if ( id < 0 )
id = panelmenu_get_seq_id(); id = panelmenu_get_seq_id();
DCOPClient *client = kapp->dcopClient(); DCOPClient *client = tdeApp->dcopClient();
TQByteArray sendData; TQByteArray sendData;
TQDataStream stream(sendData, IO_WriteOnly); TQDataStream stream(sendData, IO_WriteOnly);
stream << text << id; stream << text << id;
@ -146,7 +146,7 @@ int KPanelAppMenu::insertItem(const TQString &text, int id )
void KPanelAppMenu::clear() void KPanelAppMenu::clear()
{ {
DCOPClient *client = kapp->dcopClient(); DCOPClient *client = tdeApp->dcopClient();
TQByteArray sendData; TQByteArray sendData;
client->send("kicker", realObjId, "clear()", sendData); client->send("kicker", realObjId, "clear()", sendData);
} }

@ -180,7 +180,7 @@ KProgressDialog::KProgressDialog(TQWidget* parent, const char* name,
d(new KProgressDialogPrivate) d(new KProgressDialogPrivate)
{ {
#ifdef TQ_WS_X11 #ifdef TQ_WS_X11
KWin::setIcons(winId(), kapp->icon(), kapp->miniIcon()); KWin::setIcons(winId(), tdeApp->icon(), tdeApp->miniIcon());
#endif #endif
mShowTimer = new TQTimer(this); mShowTimer = new TQTimer(this);
@ -215,7 +215,7 @@ void KProgressDialog::slotAutoShow()
} }
show(); show();
kapp->processEvents(); tdeApp->processEvents();
} }
void KProgressDialog::slotCancel() void KProgressDialog::slotCancel()

@ -68,7 +68,7 @@ KProgressBoxDialog::KProgressBoxDialog(TQWidget* parent, const char* name,
d(new KProgressBoxDialogPrivate) d(new KProgressBoxDialogPrivate)
{ {
#ifdef TQ_WS_X11 #ifdef TQ_WS_X11
KWin::setIcons(winId(), kapp->icon(), kapp->miniIcon()); KWin::setIcons(winId(), tdeApp->icon(), tdeApp->miniIcon());
#endif #endif
mShowTimer = new TQTimer(this); mShowTimer = new TQTimer(this);
@ -105,7 +105,7 @@ void KProgressBoxDialog::slotAutoShow()
} }
show(); show();
kapp->processEvents(); tdeApp->processEvents();
} }
void KProgressBoxDialog::slotCancel() void KProgressBoxDialog::slotCancel()

@ -104,11 +104,11 @@ void KPushButton::init( const KGuiItem &item )
TQWhatsThis::add( this, item.whatsThis() ); TQWhatsThis::add( this, item.whatsThis() );
if (kapp) if (tdeApp)
{ {
connect( kapp, TQ_SIGNAL( settingsChanged(int) ), connect( tdeApp, TQ_SIGNAL( settingsChanged(int) ),
TQ_SLOT( slotSettingsChanged(int) ) ); TQ_SLOT( slotSettingsChanged(int) ) );
kapp->addKipcEventMask( KIPC::SettingsChanged ); tdeApp->addKipcEventMask( KIPC::SettingsChanged );
} }
} }

@ -67,7 +67,7 @@ void KRootPixmap::init()
m_bActive = false; m_bActive = false;
m_bCustomPaint = false; m_bCustomPaint = false;
connect(kapp, TQ_SIGNAL(backgroundChanged(int)), TQ_SLOT(slotBackgroundChanged(int))); connect(tdeApp, TQ_SIGNAL(backgroundChanged(int)), TQ_SLOT(slotBackgroundChanged(int)));
connect(m_pTimer, TQ_SIGNAL(timeout()), TQ_SLOT(repaint())); connect(m_pTimer, TQ_SIGNAL(timeout()), TQ_SLOT(repaint()));
#ifdef TQ_WS_X11 #ifdef TQ_WS_X11
connect(m_pPixmap, TQ_SIGNAL(done(bool)), TQ_SLOT(slotDone(bool))); connect(m_pPixmap, TQ_SIGNAL(done(bool)), TQ_SLOT(slotDone(bool)));
@ -277,7 +277,7 @@ void KRootPixmap::enableExports()
{ {
#ifdef TQ_WS_X11 #ifdef TQ_WS_X11
kdDebug(270) << k_lineinfo << "activating background exports.\n"; kdDebug(270) << k_lineinfo << "activating background exports.\n";
DCOPClient *client = kapp->dcopClient(); DCOPClient *client = tdeApp->dcopClient();
if (!client->isAttached()) if (!client->isAttached())
client->attach(); client->attach();
TQByteArray data; TQByteArray data;

@ -974,7 +974,7 @@ void KSpellConfig::activateHelp( void )
void KSpellConfig::sHelp( void ) void KSpellConfig::sHelp( void )
{ {
kapp->invokeHelp("configuration", "tdespell"); tdeApp->invokeHelp("configuration", "tdespell");
} }
/* /*

@ -60,7 +60,7 @@ TDEAction* create( StdAction id, const char *name, const TQObject *recvr, const
case Home: sLabel = i18n("beginning (of line)", "&Home"); break; case Home: sLabel = i18n("beginning (of line)", "&Home"); break;
case Help: sLabel = i18n("show help", "&Help"); break; case Help: sLabel = i18n("show help", "&Help"); break;
case AboutApp: iconName = kapp->miniIconName(); case AboutApp: iconName = tdeApp->miniIconName();
case Preferences: case Preferences:
case HelpContents: case HelpContents:
{ {

@ -75,7 +75,7 @@ KSystemTray::KSystemTray( TQWidget* parent, const char* name )
setBackgroundOrigin(WindowOrigin); setBackgroundOrigin(WindowOrigin);
hasQuit = 0; hasQuit = 0;
menu = new TDEPopupMenu( this ); menu = new TDEPopupMenu( this );
menu->insertTitle( kapp->miniIcon(), kapp->caption() ); menu->insertTitle( tdeApp->miniIcon(), tdeApp->caption() );
move( -1000, -1000 ); move( -1000, -1000 );
KStdAction::quit(this, TQ_SLOT(maybeQuit()), d->actionCollection); KStdAction::quit(this, TQ_SLOT(maybeQuit()), d->actionCollection);
@ -193,12 +193,12 @@ void KSystemTray::minimizeRestoreAction()
void KSystemTray::maybeQuit() void KSystemTray::maybeQuit()
{ {
TQString query = i18n("<qt>Are you sure you want to quit <b>%1</b>?</qt>") TQString query = i18n("<qt>Are you sure you want to quit <b>%1</b>?</qt>")
.arg(kapp->caption()); .arg(tdeApp->caption());
if (KMessageBox::warningContinueCancel(this, query, if (KMessageBox::warningContinueCancel(this, query,
i18n("Confirm Quit From System Tray"), i18n("Confirm Quit From System Tray"),
KStdGuiItem::quit(), KStdGuiItem::quit(),
TQString("systemtrayquit%1") TQString("systemtrayquit%1")
.arg(kapp->caption())) != .arg(tdeApp->caption())) !=
KMessageBox::Continue) KMessageBox::Continue)
{ {
return; return;
@ -314,7 +314,7 @@ TDEActionCollection* KSystemTray::actionCollection()
TQPixmap KSystemTray::loadIcon( const TQString &icon, TDEInstance *instance ) TQPixmap KSystemTray::loadIcon( const TQString &icon, TDEInstance *instance )
{ {
TDEConfig *appCfg = kapp->config(); TDEConfig *appCfg = tdeApp->config();
TDEConfigGroupSaver configSaver(appCfg, "System Tray"); TDEConfigGroupSaver configSaver(appCfg, "System Tray");
int iconWidth = appCfg->readNumEntry("systrayIconWidth", 22); int iconWidth = appCfg->readNumEntry("systrayIconWidth", 22);
return instance->iconLoader()->loadIcon( icon, TDEIcon::Panel, iconWidth ); return instance->iconLoader()->loadIcon( icon, TDEIcon::Panel, iconWidth );

@ -64,7 +64,7 @@ void KTextBrowser::setSource( const TQString& name )
{ {
if( !mNotifyClick ) if( !mNotifyClick )
{ {
kapp->invokeMailer( KURL( name ) ); tdeApp->invokeMailer( KURL( name ) );
} }
else else
{ {
@ -75,7 +75,7 @@ void KTextBrowser::setSource( const TQString& name )
{ {
if( !mNotifyClick ) if( !mNotifyClick )
{ {
kapp->invokeBrowser( name ); tdeApp->invokeBrowser( name );
} }
else else
{ {

@ -64,7 +64,7 @@ KTipDatabase::KTipDatabase(const TQString &_tipFile)
loadTips(tipFile); loadTips(tipFile);
if (!mTips.isEmpty()) if (!mTips.isEmpty())
mCurrent = kapp->random() % mTips.count(); mCurrent = tdeApp->random() % mTips.count();
} }
@ -80,7 +80,7 @@ KTipDatabase::KTipDatabase( const TQStringList& tipsFiles )
addTips( *it ); addTips( *it );
} }
if (!mTips.isEmpty()) if (!mTips.isEmpty())
mCurrent = kapp->random() % mTips.count(); mCurrent = tdeApp->random() % mTips.count();
} }
@ -301,7 +301,7 @@ KTipDialog::KTipDialog(KTipDatabase *db, TQWidget *parent, const char *name)
ok->setDefault(true); ok->setDefault(true);
hbox2->addWidget(ok); hbox2->addWidget(ok);
TDEConfigGroup config(kapp->config(), "TipOfDay"); TDEConfigGroup config(tdeApp->config(), "TipOfDay");
mTipOnStart->setChecked(config.readBoolEntry("RunOnStart", true)); mTipOnStart->setChecked(config.readBoolEntry("RunOnStart", true));
connect(next, TQ_SIGNAL(clicked()), this, TQ_SLOT(nextTip())); connect(next, TQ_SIGNAL(clicked()), this, TQ_SLOT(nextTip()));
@ -322,7 +322,7 @@ KTipDialog::~KTipDialog()
void KTipDialog::showTip(const TQString &tipFile, bool force) void KTipDialog::showTip(const TQString &tipFile, bool force)
{ {
showTip(kapp->mainWidget(), tipFile, force); showTip(tdeApp->mainWidget(), tipFile, force);
} }
void KTipDialog::showTip(TQWidget *parent, const TQString &tipFile, bool force) void KTipDialog::showTip(TQWidget *parent, const TQString &tipFile, bool force)
@ -332,7 +332,7 @@ void KTipDialog::showTip(TQWidget *parent, const TQString &tipFile, bool force)
void KTipDialog::showMultiTip(TQWidget *parent, const TQStringList &tipFiles, bool force) void KTipDialog::showMultiTip(TQWidget *parent, const TQStringList &tipFiles, bool force)
{ {
TDEConfigGroup configGroup(kapp->config(), "TipOfDay"); TDEConfigGroup configGroup(tdeApp->config(), "TipOfDay");
const bool runOnStart = configGroup.readBoolEntry("RunOnStart", true); const bool runOnStart = configGroup.readBoolEntry("RunOnStart", true);
@ -347,11 +347,11 @@ void KTipDialog::showMultiTip(TQWidget *parent, const TQStringList &tipFiles, bo
const int oneDay = 24*60*60; const int oneDay = 24*60*60;
TQDateTime lastShown = configGroup.readDateTimeEntry("TipLastShown"); TQDateTime lastShown = configGroup.readDateTimeEntry("TipLastShown");
// Show tip roughly once a week // Show tip roughly once a week
if (lastShown.secsTo(TQDateTime::currentDateTime()) < (oneDay + (kapp->random() % (10*oneDay)))) if (lastShown.secsTo(TQDateTime::currentDateTime()) < (oneDay + (tdeApp->random() % (10*oneDay))))
return; return;
} }
configGroup.writeEntry("TipLastShown", TQDateTime::currentDateTime()); configGroup.writeEntry("TipLastShown", TQDateTime::currentDateTime());
kapp->config()->sync(); tdeApp->config()->sync();
if (!hasLastShown) if (!hasLastShown)
return; // Don't show tip on first start return; // Don't show tip on first start
} }
@ -418,7 +418,7 @@ static TQString fixTip(TQString tip)
void KTipDialog::setShowOnStart(bool on) void KTipDialog::setShowOnStart(bool on)
{ {
TDEConfigGroup config(kapp->config(), "TipOfDay"); TDEConfigGroup config(tdeApp->config(), "TipOfDay");
config.writeEntry("RunOnStart", on); config.writeEntry("RunOnStart", on);
config.sync(); config.sync();
} }

@ -84,7 +84,7 @@ bool KWhatsThisUndefined::clicked (const TQString& href)
body . append ("\nPlease type in your what's this help between these lines: " body . append ("\nPlease type in your what's this help between these lines: "
"\n--%-----------------------------------------------------------------------\n" "\n--%-----------------------------------------------------------------------\n"
"\n--%-----------------------------------------------------------------------"); "\n--%-----------------------------------------------------------------------");
kapp -> invokeMailer ("quality-whatsthis@kde.org", "", "", subj, body); tdeApp -> invokeMailer ("quality-whatsthis@kde.org", "", "", subj, body);
} }
return TRUE; return TRUE;
} }

@ -150,7 +150,7 @@ TQWidget *KXMLGUIBuilder::createContainer( TQWidget *parent, int index, const TQ
TQCString name = element.attribute( d->attrName ).utf8(); TQCString name = element.attribute( d->attrName ).utf8();
if (!kapp->authorizeTDEAction(name)) if (!tdeApp->authorizeTDEAction(name))
return 0; return 0;
TDEPopupMenu *popup = new TDEPopupMenu( p, name); TDEPopupMenu *popup = new TDEPopupMenu( p, name);

@ -292,7 +292,7 @@ bool KXMLGUIClient::mergeXML( TQDomElement &base, const TQDomElement &additive,
{ {
TQCString name = e.attribute( attrName ).utf8(); // WABA TQCString name = e.attribute( attrName ).utf8(); // WABA
if ( !actionCollection->action( name.data() ) || if ( !actionCollection->action( name.data() ) ||
(kapp && !kapp->authorizeTDEAction(name))) (tdeApp && !tdeApp->authorizeTDEAction(name)))
{ {
// remove this child as we aren't using it // remove this child as we aren't using it
base.removeChild( e ); base.removeChild( e );

@ -36,7 +36,7 @@
TDEAboutApplication::TDEAboutApplication( TQWidget *parent, const char *name, TDEAboutApplication::TDEAboutApplication( TQWidget *parent, const char *name,
bool modal ) bool modal )
:TDEAboutDialog( AbtTabbed|AbtProduct, :TDEAboutDialog( AbtTabbed|AbtProduct,
kapp ? kapp->caption() : TQString::null, tdeApp ? tdeApp->caption() : TQString::null,
Close, Close, Close, Close,
parent, name, modal ) parent, name, modal )
{ {
@ -60,7 +60,7 @@ void TDEAboutApplication::buildDialog( const TDEAboutData *aboutData )
// //
//i18n "??" is displayed as (pseudo-)version when no data is known about the application //i18n "??" is displayed as (pseudo-)version when no data is known about the application
setProduct( kapp ? kapp->caption() : TQString::null, i18n("??"), TQString::null, TQString::null ); setProduct( tdeApp ? tdeApp->caption() : TQString::null, i18n("??"), TQString::null, TQString::null );
TDEAboutContainer *appPage = addContainerPage( i18n("&About")); TDEAboutContainer *appPage = addContainerPage( i18n("&About"));
TQString appPageText = TQString appPageText =

@ -693,13 +693,13 @@ void TDEAboutContainerBase::setProduct( const TQString &appName,
return; return;
} }
if ( kapp ) if ( tdeApp )
{ {
mIconLabel->setPixmap( kapp->icon() ); mIconLabel->setPixmap( tdeApp->icon() );
kdDebug(291) << "setPixmap (iconName): " << kapp->iconName() << endl; kdDebug(291) << "setPixmap (iconName): " << tdeApp->iconName() << endl;
} }
else else
kdDebug(291) << "no kapp" << endl; kdDebug(291) << "no tdeApp" << endl;
const TQString msg1 = i18n("%1 %2 (Using Trinity %3)").arg(appName).arg(version). const TQString msg1 = i18n("%1 %2 (Using Trinity %3)").arg(appName).arg(version).
arg(TQString::fromLatin1(TDE_VERSION_STRING)); arg(TQString::fromLatin1(TDE_VERSION_STRING));
@ -1615,8 +1615,8 @@ void TDEAboutDialog::setVersion(const TQString &_name)
void TDEAboutDialog::sendEmailSlot(const TQString& /*name*/, const TQString& email) void TDEAboutDialog::sendEmailSlot(const TQString& /*name*/, const TQString& email)
{ {
if ( kapp ) if ( tdeApp )
kapp->invokeMailer( email, TQString::null ); tdeApp->invokeMailer( email, TQString::null );
/* /*
kdDebug() << "TDEAboutDialog::sendEmailSlot: request to send an email to " kdDebug() << "TDEAboutDialog::sendEmailSlot: request to send an email to "
<< name << ", " << email << endl; << name << ", " << email << endl;
@ -1626,8 +1626,8 @@ void TDEAboutDialog::sendEmailSlot(const TQString& /*name*/, const TQString& ema
void TDEAboutDialog::openURLSlot(const TQString& url) void TDEAboutDialog::openURLSlot(const TQString& url)
{ {
if ( kapp ) if ( tdeApp )
kapp->invokeBrowser( url ); tdeApp->invokeBrowser( url );
//kdDebug() << "TDEAboutDialog::openURLSlot: request to open URL " << url << endl; //kdDebug() << "TDEAboutDialog::openURLSlot: request to open URL " << url << endl;
//emit(openURL(url)); //emit(openURL(url));
} }

@ -452,7 +452,7 @@ bool TDEAction::setShortcut( const TDEShortcut& cut )
bool TDEAction::updateTDEAccelShortcut( TDEAccel* tdeaccel ) bool TDEAction::updateTDEAccelShortcut( TDEAccel* tdeaccel )
{ {
// Check if action is permitted // Check if action is permitted
if (kapp && !kapp->authorizeTDEAction(name())) if (tdeApp && !tdeApp->authorizeTDEAction(name()))
return false; return false;
bool b = true; bool b = true;
@ -644,7 +644,7 @@ int TDEAction::plug( TQWidget *w, int index )
#endif #endif
// Check if action is permitted // Check if action is permitted
if (kapp && !kapp->authorizeTDEAction(name())) if (tdeApp && !tdeApp->authorizeTDEAction(name()))
return -1; return -1;
plugShortcut(); plugShortcut();

@ -142,7 +142,7 @@ int TDEToggleAction::plug( TQWidget* widget, int index )
kdWarning() << "Can not plug TDEToggleAction in " << widget->className() << endl; kdWarning() << "Can not plug TDEToggleAction in " << widget->className() << endl;
return -1; return -1;
} }
if (kapp && !kapp->authorizeTDEAction(name())) if (tdeApp && !tdeApp->authorizeTDEAction(name()))
return -1; return -1;
int _index = TDEAction::plug( widget, index ); int _index = TDEAction::plug( widget, index );
@ -638,7 +638,7 @@ void TDESelectAction::updateItems( int id )
int TDESelectAction::plug( TQWidget *widget, int index ) int TDESelectAction::plug( TQWidget *widget, int index )
{ {
if (kapp && !kapp->authorizeTDEAction(name())) if (tdeApp && !tdeApp->authorizeTDEAction(name()))
return -1; return -1;
kdDebug(129) << "TDESelectAction::plug( " << widget << ", " << index << " )" << endl; // remove -- ellis kdDebug(129) << "TDESelectAction::plug( " << widget << ", " << index << " )" << endl; // remove -- ellis
if ( ::tqt_cast<TQPopupMenu *>( widget) ) if ( ::tqt_cast<TQPopupMenu *>( widget) )
@ -1268,7 +1268,7 @@ void TDERecentFilesAction::menuAboutToShow()
int TDERecentFilesAction::plug( TQWidget *widget, int index ) int TDERecentFilesAction::plug( TQWidget *widget, int index )
{ {
if (kapp && !kapp->authorizeTDEAction(name())) if (tdeApp && !tdeApp->authorizeTDEAction(name()))
return -1; return -1;
// This is very related to TDEActionMenu::plug. // This is very related to TDEActionMenu::plug.
// In fact this class could be an interesting base class for TDEActionMenu // In fact this class could be an interesting base class for TDEActionMenu
@ -1524,7 +1524,7 @@ void TDEFontAction::setFont( const TQString &family )
int TDEFontAction::plug( TQWidget *w, int index ) int TDEFontAction::plug( TQWidget *w, int index )
{ {
if (kapp && !kapp->authorizeTDEAction(name())) if (tdeApp && !tdeApp->authorizeTDEAction(name()))
return -1; return -1;
if ( ::tqt_cast<TDEToolBar *>( w ) ) if ( ::tqt_cast<TDEToolBar *>( w ) )
{ {
@ -1793,7 +1793,7 @@ void TDEActionMenu::setStickyMenu(bool sticky) {
int TDEActionMenu::plug( TQWidget* widget, int index ) int TDEActionMenu::plug( TQWidget* widget, int index )
{ {
if (kapp && !kapp->authorizeTDEAction(name())) if (tdeApp && !tdeApp->authorizeTDEAction(name()))
return -1; return -1;
kdDebug(129) << "TDEActionMenu::plug( " << widget << ", " << index << " )" << endl; // remove -- ellis kdDebug(129) << "TDEActionMenu::plug( " << widget << ", " << index << " )" << endl; // remove -- ellis
if ( ::tqt_cast<TQPopupMenu *>( widget ) ) if ( ::tqt_cast<TQPopupMenu *>( widget ) )
@ -1939,7 +1939,7 @@ void TDEToolBarPopupAction::setStickyMenu(bool sticky) {
int TDEToolBarPopupAction::plug( TQWidget *widget, int index ) int TDEToolBarPopupAction::plug( TQWidget *widget, int index )
{ {
if (kapp && !kapp->authorizeTDEAction(name())) if (tdeApp && !tdeApp->authorizeTDEAction(name()))
return -1; return -1;
// This is very related to TDEActionMenu::plug. // This is very related to TDEActionMenu::plug.
// In fact this class could be an interesting base class for TDEActionMenu // In fact this class could be an interesting base class for TDEActionMenu
@ -2018,7 +2018,7 @@ TDEToggleToolBarAction::~TDEToggleToolBarAction()
int TDEToggleToolBarAction::plug( TQWidget* w, int index ) int TDEToggleToolBarAction::plug( TQWidget* w, int index )
{ {
if (kapp && !kapp->authorizeTDEAction(name())) if (tdeApp && !tdeApp->authorizeTDEAction(name()))
return -1; return -1;
if ( !m_toolBar ) { if ( !m_toolBar ) {
@ -2150,7 +2150,7 @@ void KWidgetAction::setAutoSized( bool autoSized )
int KWidgetAction::plug( TQWidget* w, int index ) int KWidgetAction::plug( TQWidget* w, int index )
{ {
if (kapp && !kapp->authorizeTDEAction(name())) if (tdeApp && !tdeApp->authorizeTDEAction(name()))
return -1; return -1;
if ( !::tqt_cast<TDEToolBar *>( w ) ) { if ( !::tqt_cast<TDEToolBar *>( w ) ) {
@ -2283,7 +2283,7 @@ void TDEPasteTextAction::setMixedMode(bool mode)
int TDEPasteTextAction::plug( TQWidget *widget, int index ) int TDEPasteTextAction::plug( TQWidget *widget, int index )
{ {
if (kapp && !kapp->authorizeTDEAction(name())) if (tdeApp && !tdeApp->authorizeTDEAction(name()))
return -1; return -1;
if ( ::tqt_cast<TDEToolBar *>( widget ) ) if ( ::tqt_cast<TDEToolBar *>( widget ) )
{ {
@ -2320,7 +2320,7 @@ void TDEPasteTextAction::menuAboutToShow()
{ {
m_popup->clear(); m_popup->clear();
TQStringList list; TQStringList list;
DCOPClient *client = kapp->dcopClient(); DCOPClient *client = tdeApp->dcopClient();
if (client->isAttached() && client->isApplicationRegistered("klipper")) { if (client->isAttached() && client->isApplicationRegistered("klipper")) {
DCOPRef klipper("klipper","klipper"); DCOPRef klipper("klipper","klipper");
DCOPReply reply = klipper.call("getClipboardHistoryMenu"); DCOPReply reply = klipper.call("getClipboardHistoryMenu");
@ -2346,7 +2346,7 @@ void TDEPasteTextAction::menuAboutToShow()
void TDEPasteTextAction::menuItemActivated( int id) void TDEPasteTextAction::menuItemActivated( int id)
{ {
DCOPClient *client = kapp->dcopClient(); DCOPClient *client = tdeApp->dcopClient();
if (client->isAttached() && client->isApplicationRegistered("klipper")) { if (client->isAttached() && client->isApplicationRegistered("klipper")) {
DCOPRef klipper("klipper","klipper"); DCOPRef klipper("klipper","klipper");
DCOPReply reply = klipper.call("getClipboardHistoryItem(int)", m_popup->indexOf(id)); DCOPReply reply = klipper.call("getClipboardHistoryItem(int)", m_popup->indexOf(id));

@ -35,10 +35,10 @@ TDEListBox::TDEListBox( TQWidget *parent, const char *name, WFlags f )
connect( this, TQ_SIGNAL( onItem( TQListBoxItem * ) ), connect( this, TQ_SIGNAL( onItem( TQListBoxItem * ) ),
this, TQ_SLOT( slotOnItem( TQListBoxItem * ) ) ); this, TQ_SLOT( slotOnItem( TQListBoxItem * ) ) );
slotSettingsChanged(TDEApplication::SETTINGS_MOUSE); slotSettingsChanged(TDEApplication::SETTINGS_MOUSE);
if (kapp) if (tdeApp)
{ {
connect( kapp, TQ_SIGNAL( settingsChanged(int) ), TQ_SLOT( slotSettingsChanged(int) ) ); connect( tdeApp, TQ_SIGNAL( settingsChanged(int) ), TQ_SLOT( slotSettingsChanged(int) ) );
kapp->addKipcEventMask( KIPC::SettingsChanged ); tdeApp->addKipcEventMask( KIPC::SettingsChanged );
} }
m_pCurrentItem = 0L; m_pCurrentItem = 0L;

@ -470,10 +470,10 @@ TDEListView::TDEListView( TQWidget *parent, const char *name )
this, TQ_SLOT(cleanItemHighlighter())); this, TQ_SLOT(cleanItemHighlighter()));
slotSettingsChanged(TDEApplication::SETTINGS_MOUSE); slotSettingsChanged(TDEApplication::SETTINGS_MOUSE);
if (kapp) if (tdeApp)
{ {
connect( kapp, TQ_SIGNAL( settingsChanged(int) ), TQ_SLOT( slotSettingsChanged(int) ) ); connect( tdeApp, TQ_SIGNAL( settingsChanged(int) ), TQ_SLOT( slotSettingsChanged(int) ) );
kapp->addKipcEventMask( KIPC::SettingsChanged ); tdeApp->addKipcEventMask( KIPC::SettingsChanged );
} }
connect(&d->autoSelect, TQ_SIGNAL( timeout() ), connect(&d->autoSelect, TQ_SIGNAL( timeout() ),

@ -93,7 +93,7 @@ public:
} }
bool saveState( TQSessionManager& ) bool saveState( TQSessionManager& )
{ {
TDEConfig* config = TDEApplication::kApplication()->sessionConfig(); TDEConfig* config = tdeApp->sessionConfig();
if ( TDEMainWindow::memberList->first() ){ if ( TDEMainWindow::memberList->first() ){
// According to Jochen Wilhelmy <digisnap@cs.tu-berlin.de>, this // According to Jochen Wilhelmy <digisnap@cs.tu-berlin.de>, this
// hook is useful for better document orientation // hook is useful for better document orientation
@ -182,9 +182,9 @@ void TDEMainWindow::initTDEMainWindow(const char *name, int cflags)
KWhatsThisManager::init (); KWhatsThisManager::init ();
setDockMenuEnabled( false ); setDockMenuEnabled( false );
mHelpMenu = 0; mHelpMenu = 0;
kapp->setTopWidget( this ); tdeApp->setTopWidget( this );
actionCollection()->setWidget( this ); actionCollection()->setWidget( this );
connect(kapp, TQ_SIGNAL(shutDown()), this, TQ_SLOT(shuttingDown())); connect(tdeApp, TQ_SIGNAL(shutDown()), this, TQ_SLOT(shuttingDown()));
if( !memberList ) if( !memberList )
memberList = new TQPtrList<TDEMainWindow>; memberList = new TQPtrList<TDEMainWindow>;
@ -196,7 +196,7 @@ void TDEMainWindow::initTDEMainWindow(const char *name, int cflags)
int unusedNumber; int unusedNumber;
if ( !name ) if ( !name )
{ // no name given { // no name given
objname = kapp->instanceName() + "-mainwindow#"; objname = tdeApp->instanceName() + "-mainwindow#";
s = objname + '1'; // start adding number immediately s = objname + '1'; // start adding number immediately
unusedNumber = 1; unusedNumber = 1;
} }
@ -213,7 +213,7 @@ void TDEMainWindow::initTDEMainWindow(const char *name, int cflags)
unusedNumber = 0; // add numbers only when needed unusedNumber = 0; // add numbers only when needed
} }
for(;;) { for(;;) {
TQWidgetList* list = kapp->topLevelWidgets(); TQWidgetList* list = tdeApp->topLevelWidgets();
TQWidgetListIt it( *list ); TQWidgetListIt it( *list );
bool found = false; bool found = false;
for( TQWidget* w = it.current(); for( TQWidget* w = it.current();
@ -246,13 +246,13 @@ void TDEMainWindow::initTDEMainWindow(const char *name, int cflags)
d->shuttingDown = false; d->shuttingDown = false;
if ((d->care_about_geometry = being_first)) { if ((d->care_about_geometry = being_first)) {
being_first = false; being_first = false;
if ( kapp->geometryArgument().isNull() ) // if there is no geometry, it doesn't matter if ( tdeApp->geometryArgument().isNull() ) // if there is no geometry, it doesn't matter
d->care_about_geometry = false; d->care_about_geometry = false;
else else
parseGeometry(false); parseGeometry(false);
} }
setCaption( kapp->caption() ); setCaption( tdeApp->caption() );
if ( cflags & NoDCOPObject) if ( cflags & NoDCOPObject)
d->m_interface = 0; d->m_interface = 0;
else else
@ -260,13 +260,13 @@ void TDEMainWindow::initTDEMainWindow(const char *name, int cflags)
if ( cflags & NewRefCountMode ) { if ( cflags & NewRefCountMode ) {
d->newStyleRefCounting = true; d->newStyleRefCounting = true;
kapp->ref(); tdeApp->ref();
} }
else { else {
d->newStyleRefCounting = false; d->newStyleRefCounting = false;
} }
if (!kapp->authorize("movable_toolbars")) if (!tdeApp->authorize("movable_toolbars"))
setDockWindowsMovable(false); setDockWindowsMovable(false);
} }
@ -287,13 +287,13 @@ void TDEMainWindow::setupToolbarMenuActions()
void TDEMainWindow::parseGeometry(bool parsewidth) void TDEMainWindow::parseGeometry(bool parsewidth)
{ {
assert ( !kapp->geometryArgument().isNull() ); assert ( !tdeApp->geometryArgument().isNull() );
assert ( d->care_about_geometry ); assert ( d->care_about_geometry );
#if defined TQ_WS_X11 #if defined TQ_WS_X11
int x, y; int x, y;
int w, h; int w, h;
int m = XParseGeometry( kapp->geometryArgument().latin1(), &x, &y, (unsigned int*)&w, (unsigned int*)&h); int m = XParseGeometry( tdeApp->geometryArgument().latin1(), &x, &y, (unsigned int*)&w, (unsigned int*)&h);
if (parsewidth) { if (parsewidth) {
TQSize minSize = minimumSize(); TQSize minSize = minimumSize();
TQSize maxSize = maximumSize(); TQSize maxSize = maximumSize();
@ -360,9 +360,9 @@ TDEPopupMenu* TDEMainWindow::customHelpMenu( bool showWhatsThis )
bool TDEMainWindow::canBeRestored( int number ) bool TDEMainWindow::canBeRestored( int number )
{ {
if ( !kapp->isRestored() ) if ( !tdeApp->isRestored() )
return false; return false;
TDEConfig *config = kapp->sessionConfig(); TDEConfig *config = tdeApp->sessionConfig();
if ( !config ) if ( !config )
return false; return false;
config->setGroup( TQString::fromLatin1("Number") ); config->setGroup( TQString::fromLatin1("Number") );
@ -372,9 +372,9 @@ bool TDEMainWindow::canBeRestored( int number )
const TQString TDEMainWindow::classNameOfToplevel( int number ) const TQString TDEMainWindow::classNameOfToplevel( int number )
{ {
if ( !kapp->isRestored() ) if ( !tdeApp->isRestored() )
return TQString::null; return TQString::null;
TDEConfig *config = kapp->sessionConfig(); TDEConfig *config = tdeApp->sessionConfig();
if ( !config ) if ( !config )
return TQString::null; return TQString::null;
TQString s; TQString s;
@ -421,7 +421,7 @@ bool TDEMainWindow::restore( int number, bool show )
{ {
if ( !canBeRestored( number ) ) if ( !canBeRestored( number ) )
return false; return false;
TDEConfig *config = kapp->sessionConfig(); TDEConfig *config = tdeApp->sessionConfig();
if ( readPropertiesInternal( config, number ) ){ if ( readPropertiesInternal( config, number ) ){
if ( show ) if ( show )
TDEMainWindow::show(); TDEMainWindow::show();
@ -589,12 +589,12 @@ bool TDEMainWindow::isHelpMenuEnabled()
void TDEMainWindow::setCaption( const TQString &caption ) void TDEMainWindow::setCaption( const TQString &caption )
{ {
setPlainCaption( kapp->makeStdCaption(caption) ); setPlainCaption( tdeApp->makeStdCaption(caption) );
} }
void TDEMainWindow::setCaption( const TQString &caption, bool modified ) void TDEMainWindow::setCaption( const TQString &caption, bool modified )
{ {
setPlainCaption( kapp->makeStdCaption(caption, true, modified) ); setPlainCaption( tdeApp->makeStdCaption(caption, true, modified) );
} }
void TDEMainWindow::setPlainCaption( const TQString &caption ) void TDEMainWindow::setPlainCaption( const TQString &caption )
@ -657,11 +657,11 @@ void TDEMainWindow::closeEvent ( TQCloseEvent *e )
} }
if ( !no_query_exit && not_withdrawn <= 0 ) { // last window close accepted? if ( !no_query_exit && not_withdrawn <= 0 ) { // last window close accepted?
if ( queryExit() && !kapp->sessionSaving() && !d->shuttingDown ) { // Yes, Quit app? if ( queryExit() && !tdeApp->sessionSaving() && !d->shuttingDown ) { // Yes, Quit app?
// don't call queryExit() twice // don't call queryExit() twice
disconnect(kapp, TQ_SIGNAL(shutDown()), this, TQ_SLOT(shuttingDown())); disconnect(tdeApp, TQ_SIGNAL(shutDown()), this, TQ_SLOT(shuttingDown()));
d->shuttingDown = true; d->shuttingDown = true;
kapp->deref(); // ...and quit application. tdeApp->deref(); // ...and quit application.
} else { } else {
// cancel closing, it's stupid to end up with no windows at all.... // cancel closing, it's stupid to end up with no windows at all....
e->ignore(); e->ignore();
@ -1216,7 +1216,7 @@ TQSize TDEMainWindow::sizeForCentralWidgetSize(TQSize size)
break; break;
case TDEToolBar::Flat: case TDEToolBar::Flat:
size += TQSize(0, 3+kapp->style().pixelMetric( TQStyle::PM_DockWindowHandleExtent )); size += TQSize(0, 3+tdeApp->style().pixelMetric( TQStyle::PM_DockWindowHandleExtent ));
break; break;
default: default:

@ -235,7 +235,7 @@ public:
* *
* That means clients could simply do the following: * That means clients could simply do the following:
* \code * \code
* if (kapp->isRestored()){ * if (tdeApp->isRestored()){
* int n = 1; * int n = 1;
* while (TDEMainWindow::canBeRestored(n)){ * while (TDEMainWindow::canBeRestored(n)){
* (new childMW)->restore(n); * (new childMW)->restore(n);
@ -260,7 +260,7 @@ public:
* for backwards compatibility with 3.1 and 3.0 branches: * for backwards compatibility with 3.1 and 3.0 branches:
* *
* \code * \code
* if (kapp->isRestored()) * if (tdeApp->isRestored())
* RESTORE(childMW) * RESTORE(childMW)
* else { * else {
* // create default application as usual * // create default application as usual
@ -275,7 +275,7 @@ public:
* use the templated kRestoreMainWindows global functions: * use the templated kRestoreMainWindows global functions:
* *
* \code * \code
* if (kapp->isRestored()) * if (tdeApp->isRestored())
* kRestoreMainWindows< childMW1, childMW2, childMW3 >(); * kRestoreMainWindows< childMW1, childMW2, childMW3 >();
* else { * else {
* // create default application as usual * // create default application as usual

@ -122,7 +122,7 @@ TQCString TDEMainWindowInterface::actionToolTip( TQCString action)
DCOPRef TDEMainWindowInterface::action( const TQCString &name ) DCOPRef TDEMainWindowInterface::action( const TQCString &name )
{ {
return DCOPRef( kapp->dcopClient()->appId(), m_dcopActionProxy->actionObjectId( name ) ); return DCOPRef( tdeApp->dcopClient()->appId(), m_dcopActionProxy->actionObjectId( name ) );
} }
TQMap<TQCString,DCOPRef> TDEMainWindowInterface::actionMap() TQMap<TQCString,DCOPRef> TDEMainWindowInterface::actionMap()

@ -142,9 +142,9 @@ KMenuBar::KMenuBar(TQWidget *parent, const char *name)
connect( tqApp->desktop(), TQ_SIGNAL( resized( int )), TQ_SLOT( updateFallbackSize())); connect( tqApp->desktop(), TQ_SIGNAL( resized( int )), TQ_SLOT( updateFallbackSize()));
if ( kapp ) if ( tdeApp )
// toolbarAppearanceChanged(int) is sent when changing macstyle // toolbarAppearanceChanged(int) is sent when changing macstyle
connect( kapp, TQ_SIGNAL(toolbarAppearanceChanged(int)), connect( tdeApp, TQ_SIGNAL(toolbarAppearanceChanged(int)),
this, TQ_SLOT(slotReadConfig())); this, TQ_SLOT(slotReadConfig()));
slotReadConfig(); slotReadConfig();
@ -333,10 +333,10 @@ void KMenuBar::selectionTimeout()
int screen = xineramaConfig.readNumEntry("MenubarScreen", int screen = xineramaConfig.readNumEntry("MenubarScreen",
TQApplication::desktop()->screenNumber(TQPoint(0,0)) ); TQApplication::desktop()->screenNumber(TQPoint(0,0)) );
TQRect area; TQRect area;
if (kapp->desktop()->numScreens() < 2) if (tdeApp->desktop()->numScreens() < 2)
area = kapp->desktop()->geometry(); area = tdeApp->desktop()->geometry();
else else
area = kapp->desktop()->screenGeometry(screen); area = tdeApp->desktop()->screenGeometry(screen);
int margin = 0; int margin = 0;
move(area.left() - margin, area.top() - margin); move(area.left() - margin, area.top() - margin);
setFixedSize(area.width() + 2* margin , heightForWidth( area.width() + 2 * margin ) ); setFixedSize(area.width() + 2* margin , heightForWidth( area.width() + 2 * margin ) );

@ -972,7 +972,7 @@ KMessageBox::about(TQWidget *parent, const TQString &text,
{ {
TQString _caption = caption; TQString _caption = caption;
if (_caption.isEmpty()) if (_caption.isEmpty())
_caption = i18n("About %1").arg(kapp->caption()); _caption = i18n("About %1").arg(tdeApp->caption());
KDialogBase *dialog = new KDialogBase( KDialogBase *dialog = new KDialogBase(
caption, caption,
@ -981,7 +981,7 @@ KMessageBox::about(TQWidget *parent, const TQString &text,
parent, "about", true, true, parent, "about", true, true,
KStdGuiItem::ok() ); KStdGuiItem::ok() );
TQPixmap ret = TDEApplication::kApplication()->icon(); TQPixmap ret = tdeApp->icon();
if (ret.isNull()) if (ret.isNull())
ret = TQMessageBox::standardIcon(TQMessageBox::Information); ret = TQMessageBox::standardIcon(TQMessageBox::Information);
dialog->setIcon(ret); dialog->setIcon(ret);

@ -86,7 +86,7 @@ void TDEPopupTitle::paintEvent(TQPaintEvent *)
{ {
TQRect r(rect()); TQRect r(rect());
TQPainter p(this); TQPainter p(this);
kapp->style().drawPrimitive(TQStyle::PE_HeaderSectionMenu, &p, r, palette().active()); tdeApp->style().drawPrimitive(TQStyle::PE_HeaderSectionMenu, &p, r, palette().active());
if (!miniicon.isNull()) if (!miniicon.isNull())
p.drawPixmap(4, (r.height()-miniicon.height())/2, miniicon); p.drawPixmap(4, (r.height()-miniicon.height())/2, miniicon);

@ -122,7 +122,7 @@ TDEShortcutDialog::TDEShortcutDialog( const TDEShortcut& shortcut, bool bQtShort
updateDetails(); updateDetails();
#ifdef TQ_WS_X11 #ifdef TQ_WS_X11
kapp->installX11EventFilter( this ); // Allow button to capture X Key Events. tdeApp->installX11EventFilter( this ); // Allow button to capture X Key Events.
#endif #endif
} }
@ -219,7 +219,7 @@ void TDEShortcutDialog::updateDetails()
m_simple->m_txtShortcut->setFocus(); m_simple->m_txtShortcut->setFocus();
m_adv->m_btnMultiKey->setChecked( false ); m_adv->m_btnMultiKey->setChecked( false );
} }
kapp->processEvents(); tdeApp->processEvents();
adjustSize(); adjustSize();
} }

@ -381,7 +381,7 @@ KSpell::setUpDialog( bool reallyuseprogressbar )
ksdlg, TQ_SLOT(slotProgress(unsigned int)) ); ksdlg, TQ_SLOT(slotProgress(unsigned int)) );
#ifdef TQ_WS_X11 // FIXME(E): Implement for Qt/Embedded #ifdef TQ_WS_X11 // FIXME(E): Implement for Qt/Embedded
KWin::setIcons( ksdlg->winId(), kapp->icon(), kapp->miniIcon() ); KWin::setIcons( ksdlg->winId(), tdeApp->icon(), tdeApp->miniIcon() );
#endif #endif
if ( modaldlg ) if ( modaldlg )
ksdlg->setFocus(); ksdlg->setFocus();
@ -1403,7 +1403,7 @@ KSpell::modalCheck( TQString& text, KSpellConfig* _kcs )
0, _kcs, true, true ); 0, _kcs, true, true );
while (spell->status()!=Finished) while (spell->status()!=Finished)
kapp->processEvents(); tdeApp->processEvents();
text = modaltext; text = modaltext;

@ -237,11 +237,11 @@ void TDEToolBar::init( bool readConfig, bool honorStyle )
connect( &(d->repaintTimer), TQ_SIGNAL( timeout() ), connect( &(d->repaintTimer), TQ_SIGNAL( timeout() ),
this, TQ_SLOT( slotRepaint() ) ); this, TQ_SLOT( slotRepaint() ) );
if ( kapp ) { // may be null when started inside designer if ( tdeApp ) { // may be null when started inside designer
connect(kapp, TQ_SIGNAL(toolbarAppearanceChanged(int)), this, TQ_SLOT(slotAppearanceChanged())); connect(tdeApp, TQ_SIGNAL(toolbarAppearanceChanged(int)), this, TQ_SLOT(slotAppearanceChanged()));
// request notification of changes in icon style // request notification of changes in icon style
kapp->addKipcEventMask(KIPC::IconChanged); tdeApp->addKipcEventMask(KIPC::IconChanged);
connect(kapp, TQ_SIGNAL(iconChanged(int)), this, TQ_SLOT(slotIconChanged(int))); connect(tdeApp, TQ_SIGNAL(iconChanged(int)), this, TQ_SLOT(slotIconChanged(int)));
} }
// finally, read in our configurable settings // finally, read in our configurable settings
@ -1133,7 +1133,7 @@ void TDEToolBar::setXMLGUIClient( KXMLGUIClient *client )
void TDEToolBar::setText( const TQString & txt ) void TDEToolBar::setText( const TQString & txt )
{ {
setLabel( txt + " (" + kapp->caption() + ") " ); setLabel( txt + " (" + tdeApp->caption() + ") " );
} }

@ -181,7 +181,7 @@ void ToolBarHandler::setupActions()
this, TQ_SLOT( setupActions() ) ); this, TQ_SLOT( setupActions() ) );
*/ */
if (kapp && kapp->authorizeTDEAction("options_show_toolbar")) if (tdeApp && tdeApp->authorizeTDEAction("options_show_toolbar"))
plugActionList( actionListName, m_actions ); plugActionList( actionListName, m_actions );
connectToActionContainers(); connectToActionContainers();

@ -212,7 +212,7 @@ void KComboBoxTest::slotReturnPressed(const TQString& item)
void KComboBoxTest::quitApp() void KComboBoxTest::quitApp()
{ {
kapp->closeAllWindows(); tdeApp->closeAllWindows();
} }
int main ( int argc, char **argv) int main ( int argc, char **argv)

@ -81,7 +81,7 @@ static const char *preview_xpm[] = {
SFileDialog::SFileDialog( TQString initially, const TQStringList& filter, const char* name ) SFileDialog::SFileDialog( TQString initially, const TQStringList& filter, const char* name )
:TQDialog(0L,name,true) :TQDialog(0L,name,true)
{ {
TDEConfig* config = kapp->config(); TDEConfig* config = tdeApp->config();
config->setGroup( TQString::fromLatin1("SFileDialogData:") + name ); config->setGroup( TQString::fromLatin1("SFileDialogData:") + name );
if ( initially.isNull() ){ if ( initially.isNull() ){
initially = config->readPathEntry( "InitiallyDir", TQDir::currentDirPath() ); initially = config->readPathEntry( "InitiallyDir", TQDir::currentDirPath() );
@ -166,7 +166,7 @@ void SFileDialog::dockChange()
SFileDialog::~SFileDialog() SFileDialog::~SFileDialog()
{ {
TDEConfig* config = kapp->config(); TDEConfig* config = tdeApp->config();
config->setGroup( TQString("SFileDialogData:") + name() ); config->setGroup( TQString("SFileDialogData:") + name() );
config->writeEntry( "Bookmarks", fd->getBookmark() ); config->writeEntry( "Bookmarks", fd->getBookmark() );
@ -188,7 +188,7 @@ void SFileDialog::setDockDefaultPos( KDockWidget* d )
void SFileDialog::changeDir( const TQString& f ) void SFileDialog::changeDir( const TQString& f )
{ {
if ( !f.isEmpty() ){ if ( !f.isEmpty() ){
TDEConfig* config = kapp->config(); TDEConfig* config = tdeApp->config();
config->setGroup( TQString("SFileDialogData:") + name() ); config->setGroup( TQString("SFileDialogData:") + name() );
config->writePathEntry( "InitiallyDir", f ); config->writePathEntry( "InitiallyDir", f );
} }

@ -65,7 +65,7 @@ KLineEditTest::~KLineEditTest()
void KLineEditTest::quitApp() void KLineEditTest::quitApp()
{ {
kapp->closeAllWindows(); tdeApp->closeAllWindows();
} }
void KLineEditTest::show() void KLineEditTest::show()

@ -22,7 +22,7 @@ testWindow::testWindow (TQWidget *, const char *name)
menuBar = new KMenuBar (this); menuBar = new KMenuBar (this);
fileMenu = new TQPopupMenu; fileMenu = new TQPopupMenu;
menuBar->insertItem ("&File", fileMenu); menuBar->insertItem ("&File", fileMenu);
fileMenu->insertItem ("&Exit", TDEApplication::kApplication(), fileMenu->insertItem ("&Exit", tdeApp,
TQ_SLOT( quit() ), ALT + Key_Q ); TQ_SLOT( quit() ), ALT + Key_Q );
statusbar = new KStatusBar (this); statusbar = new KStatusBar (this);
statusbar->insertItem("Zoom: XXXX", 0); statusbar->insertItem("Zoom: XXXX", 0);
@ -41,7 +41,7 @@ testWindow::testWindow (TQWidget *, const char *name)
setCentralWidget(widget); setCentralWidget(widget);
setCaption( TDEApplication::kApplication()->caption() ); setCaption( tdeApp->caption() );
smenu = new TQPopupMenu; smenu = new TQPopupMenu;

@ -16,7 +16,7 @@ int main( int argc, char * argv[] ) {
TDEApplication app( argc, argv, "tdemainwindowrestoretest" ); TDEApplication app( argc, argv, "tdemainwindowrestoretest" );
if ( kapp->isRestored() ) { if ( tdeApp->isRestored() ) {
kRestoreMainWindows< MainWin1, MainWin2, MainWin3 >(); kRestoreMainWindows< MainWin1, MainWin2, MainWin3 >();
kRestoreMainWindows< MainWin4, MainWin5 >(); kRestoreMainWindows< MainWin4, MainWin5 >();
RESTORE(MainWin6); RESTORE(MainWin6);

@ -55,7 +55,7 @@ setAutoSaveSettings();
menuBar->insertItem ("&File", fileMenu); menuBar->insertItem ("&File", fileMenu);
// We insert item "Exit" with accelerator ALT-Q, and connect // We insert item "Exit" with accelerator ALT-Q, and connect
// it to application's exit-slot. // it to application's exit-slot.
fileMenu->insertItem ("&Exit", TDEApplication::kApplication(), fileMenu->insertItem ("&Exit", tdeApp,
TQ_SLOT( quit() ), ALT + Key_Q ); TQ_SLOT( quit() ), ALT + Key_Q );
// Another popup... // Another popup...
@ -148,7 +148,7 @@ setAutoSaveSettings();
// Now add another button and align it right // Now add another button and align it right
pix = BarIcon("system-log-out"); pix = BarIcon("system-log-out");
tb->insertButton(pix, 6, TQ_SIGNAL(clicked()), TDEApplication::kApplication(), tb->insertButton(pix, 6, TQ_SIGNAL(clicked()), tdeApp,
TQ_SLOT( quit() ), true, "Exit"); TQ_SLOT( quit() ), true, "Exit");
tb->alignItemRight (6); tb->alignItemRight (6);
@ -291,7 +291,7 @@ void testWindow::slotGoGoGoo()
void testWindow::slotSave() void testWindow::slotSave()
{ {
kapp->beep(); tdeApp->beep();
statusBar->changeItem("Saving properties...", 0); statusBar->changeItem("Saving properties...", 0);
} }
@ -408,7 +408,7 @@ void testWindow::slotExit ()
{ {
TQPixmap pix; TQPixmap pix;
pix = BarIcon("system-log-out"); pix = BarIcon("system-log-out");
tb->insertButton(pix, 6, TQ_SIGNAL(clicked()), TDEApplication::kApplication(), tb->insertButton(pix, 6, TQ_SIGNAL(clicked()), tdeApp,
TQ_SLOT( quit() ), true, "Exit"); TQ_SLOT( quit() ), true, "Exit");
tb->alignItemRight (6); tb->alignItemRight (6);
exitB = true; exitB = true;

@ -121,7 +121,7 @@ void KWindowListMenu::init()
// Make sure the popup is not too wide, otherwise clicking in the middle of kdesktop // Make sure the popup is not too wide, otherwise clicking in the middle of kdesktop
// wouldn't leave any place for the popup, and release would activate some menu entry. // wouldn't leave any place for the popup, and release would activate some menu entry.
int maxwidth = kapp->desktop()->screenGeometry( this ).width() / 2 - 100; int maxwidth = tdeApp->desktop()->screenGeometry( this ).width() / 2 - 100;
clear(); clear();
map.clear(); map.clear();
@ -242,12 +242,12 @@ void KWindowListMenu::selectActiveWindow()
void KWindowListMenu::slotUnclutterWindows() void KWindowListMenu::slotUnclutterWindows()
{ {
kapp->dcopClient()->send(twinName(), "KWinInterface", "unclutterDesktop()", TQString("")); tdeApp->dcopClient()->send(twinName(), "KWinInterface", "unclutterDesktop()", TQString(""));
} }
void KWindowListMenu::slotCascadeWindows() void KWindowListMenu::slotCascadeWindows()
{ {
kapp->dcopClient()->send(twinName(), "KWinInterface", "cascadeDesktop()", TQString("")); tdeApp->dcopClient()->send(twinName(), "KWinInterface", "cascadeDesktop()", TQString(""));
} }
void KWindowListMenu::virtual_hook( int id, void* data ) void KWindowListMenu::virtual_hook( int id, void* data )

@ -250,7 +250,7 @@ void KCMultiDialog::addModule(const TDECModuleInfo& moduleinfo,
if( !moduleinfo.service() ) if( !moduleinfo.service() )
return; return;
if ( !kapp->authorizeControlModule( moduleinfo.service()->menuId() )) if ( !tdeApp->authorizeControlModule( moduleinfo.service()->menuId() ))
return; return;
if( !TDECModuleLoader::testModule( moduleinfo )) if( !TDECModuleLoader::testModule( moduleinfo ))

@ -377,7 +377,7 @@ void TDECModuleProxy::runAsRoot()
else else
{ {
d->rootMode = true; d->rootMode = true;
kapp->dcopClient(); tdeApp->dcopClient();
d->rootCommunicator = new TDECModuleProxyRootCommunicatorImpl( d->dcopName + "-RootCommunicator", this ); d->rootCommunicator = new TDECModuleProxyRootCommunicatorImpl( d->dcopName + "-RootCommunicator", this );
} }
@ -452,7 +452,7 @@ void TDECModuleProxy::deleteClient()
delete d->dcopClient; delete d->dcopClient;
d->dcopClient = 0; d->dcopClient = 0;
kapp->syncX(); tdeApp->syncX();
} }
@ -543,7 +543,7 @@ void TDECModuleProxy::callRootModule( const TQCString& function )
/* Note, we don't use d->dcopClient here, because it's used for /* Note, we don't use d->dcopClient here, because it's used for
* the loaded module(and it's not "us" when this function is called) */ * the loaded module(and it's not "us" when this function is called) */
if( !kapp->dcopClient()->call( d->dcopName, d->dcopName, function, sendData, if( !tdeApp->dcopClient()->call( d->dcopName, d->dcopName, function, sendData,
replyType, replyData, true, -1 )) replyType, replyData, true, -1 ))
kdDebug(711) << "Calling function '" << function << "' failed." << endl; kdDebug(711) << "Calling function '" << function << "' failed." << endl;
@ -567,7 +567,7 @@ TQString TDECModuleProxy::quickHelp() const
TQByteArray data, replyData; TQByteArray data, replyData;
TQCString replyType; TQCString replyType;
if (kapp->dcopClient()->call(d->dcopName, d->dcopName, "quickHelp()", if (tdeApp->dcopClient()->call(d->dcopName, d->dcopName, "quickHelp()",
data, replyType, replyData)) data, replyType, replyData))
kdDebug(711) << "Calling DCOP function bool changed() failed." << endl; kdDebug(711) << "Calling DCOP function bool changed() failed." << endl;
else else

@ -61,7 +61,7 @@ void TDECModuleProxyIfaceImpl::defaults()
TQString TDECModuleProxyIfaceImpl::applicationName() TQString TDECModuleProxyIfaceImpl::applicationName()
{ {
return kapp->caption(); return tdeApp->caption();
} }
TQString TDECModuleProxyIfaceImpl::quickHelp() TQString TDECModuleProxyIfaceImpl::quickHelp()
@ -106,10 +106,10 @@ TDECModuleProxyRootCommunicatorImpl::TDECModuleProxyRootCommunicatorImpl
*/ */
/* Note, we don't use TDECModuleProxy::d->dcopClient */ /* Note, we don't use TDECModuleProxy::d->dcopClient */
kapp->dcopClient()->connectDCOPSignal( 0, p->dcopName(), tdeApp->dcopClient()->connectDCOPSignal( 0, p->dcopName(),
"changed(bool)", objId(), "changed(bool)", false ); "changed(bool)", objId(), "changed(bool)", false );
kapp->dcopClient()->connectDCOPSignal( 0, p->dcopName(), tdeApp->dcopClient()->connectDCOPSignal( 0, p->dcopName(),
"quickHelpChanged()", objId(), "quickHelpChanged()", false ); "quickHelpChanged()", objId(), "quickHelpChanged()", false );
} }

@ -18,7 +18,7 @@ Don't expect it to work with any other versions of Qt.
Known Bugs: Known Bugs:
=========== ===========
Designer crashes when using widgets that use the kapp pointer. Designer crashes when using widgets that use the tdeApp pointer.
HOWTO Add Widgets: HOWTO Add Widgets:
================== ==================

Loading…
Cancel
Save