Rename KApplication to TDEApplication to avoid conflicts with KDE4

pull/16/head
Timothy Pearson pirms 11 gadiem
vecāks 5bca2e3e42
revīzija 8e7816b2f9

10
DEBUG

@ -68,7 +68,7 @@ Current language: auto; currently c++
(gdb)
You can now set breakpoints everywhere. For example lets set a breakpoint
in the KApplication constructor. Unfortunately gdb is not very good in
in the TDEApplication constructor. Unfortunately gdb is not very good in
handling C++ names, so it is not really possible to specify the constructor
directly after the break command. Instead we look up a line of source
code where we want to place the breakpoint. An external editor is of great
@ -79,11 +79,11 @@ are interested in and verify that we have found the correct source line:
215 parseCommandLine( argc, argv );
216 }
217
218 KApplication::KApplication( bool allowStyles, bool GUIenabled ) :
218 TDEApplication::TDEApplication( bool allowStyles, bool GUIenabled ) :
219 QApplication( *KCmdLineArgs::tqt_argc(), *KCmdLineArgs::tqt_argv(),
220 GUIenabled ),
221 KInstance( KCmdLineArgs::about),
222 d (new KApplicationPrivate)
222 d (new TDEApplicationPrivate)
223 {
224 if (!GUIenabled)
(gdb) break 224
@ -92,14 +92,14 @@ Breakpoint 2 at 0x4048aa7e: file kapp.cpp, line 224.
We can now continue the execution of kedit. Execution will stop when it hits
a breakpoint of when the program exits. In this case execution will stop
in the first line of the KApplication constructor:
in the first line of the TDEApplication constructor:
(gdb) continue
Continuing.
Qt: gdb: -nograb added to command-line options.
Use the -dograb option to enforce grabbing.
Breakpoint 2, KApplication::KApplication (this=0xbffff6a8, allowStyles=true,
Breakpoint 2, TDEApplication::TDEApplication (this=0xbffff6a8, allowStyles=true,
GUIenabled=true) at kapp.cpp:224
224 if (!GUIenabled)
(gdb)

@ -19,7 +19,7 @@ or <a href="http://doc.trolltech.com/porting.html">this page online</a>.<P>
<LI><A HREF="#gettingstarted">Getting Started</A></LI>
<LI><A HREF="#general">Global changes</A></LI>
<LI><A HREF="#automoc">automoc/am_edit, Makefile.am tags</A></LI>
<LI><A HREF="#KApplication">KApplication</A></LI>
<LI><A HREF="#TDEApplication">TDEApplication</A></LI>
<LI><A HREF="#TDECmdLineArgs">TDECmdLineArgs</A></LI>
<LI><A HREF="#KLocale">KLocale</A></LI>
<LI><A HREF="#KGlobal">KGlobal: access to KDE global objects.</A></LI>
@ -107,7 +107,7 @@ or <a href="http://doc.trolltech.com/porting.html">this page online</a>.<P>
<H4><P ALIGN="RIGHT"><A HREF="#TOC">Return to the Table of Contents</A></P></H4>
<H3><A NAME="KApplication">KApplication</A></H3>
<H3><A NAME="TDEApplication">TDEApplication</A></H3>
doesn't hold any longer a KLocale instance. With this getLocale()
and isLocaleInstantiated are now replaced by KGlobal::locale()<P>
@ -128,7 +128,7 @@ or <a href="http://doc.trolltech.com/porting.html">this page online</a>.<P>
KGlobal::dirs()-&gt;findResource.<P>
Use locateLocal to get the path of a writable file. For instance,
KApplication::localconfigdir()+filename is now locateLocal( "config", filename ),
TDEApplication::localconfigdir()+filename is now locateLocal( "config", filename ),
but for most cases, simply using KGlobal::config() is enough, if you're happy
with saving the application's configuration into appnamerc, or
KSimpleConfig cfg("anothercfgfile") to create a config file with another name.<P>
@ -146,8 +146,8 @@ or <a href="http://doc.trolltech.com/porting.html">this page online</a>.<P>
appHelpActivated() have all been removed See section for KMainWindow
for more info.<P>
The KApplication constructor has changed. Command line arguments and
program name should no longer be passed to KApplication but to
The TDEApplication constructor has changed. Command line arguments and
program name should no longer be passed to TDEApplication but to
TDECmdLineArgs. TDECmdLineArgs performs command line parsing and a command
line help. See below for more info.<P>
@ -166,7 +166,7 @@ or <a href="http://doc.trolltech.com/porting.html">this page online</a>.<P>
</UL>
TDECmdLineArgs itself will add the command line options supported by Qt
and KApplication.<P>
and TDEApplication.<P>
You can also use the KAboutData class to specify name, description and
version.<P>
@ -183,7 +183,7 @@ or <a href="http://doc.trolltech.com/porting.html">this page online</a>.<P>
i18n is no longer a macro<P>
KApplication::getApplication()-&gt;getLocale()-&gt;translate<P>
TDEApplication::getApplication()-&gt;getLocale()-&gt;translate<P>
but a function on its own. klocale is obsolete and replace every call
to klocale-&gt;translate with i18n.<P>
@ -199,7 +199,7 @@ KGlobal allows centralized access to KDE global objects without including
extraneous headers. object creation is deferred if possible.<P>
All methods are static and headers for returned types are not included. You
must have created a KApplication object before the methods can be used.<P>
must have created a TDEApplication object before the methods can be used.<P>
<TABLE BORDER="0">
<TR>
<TD COLSPAN="2">
@ -271,7 +271,7 @@ mainViewGeometry() instead.<P>
<H3><A NAME="KHelpMenu">KHelpMenu</A></H3>
helpMenu() has been moved to KMainWindow from KApplication (kapp).<P>
helpMenu() has been moved to KMainWindow from TDEApplication (kapp).<P>
Both the "About KDE" and the "About &lt;Application&gt;" dialog boxes
are now modeless. "About KDE" is a completely new widget.<P>
@ -281,7 +281,7 @@ If you used in the toplevel window (that is derived from KMainWindow)
you must now change this to "helpMenu( TQString )". The TQString defaults
to TQString::null so it is sufficient to write helpMenu().<P>
The old aboutKDE(), aboutApp() and appHelpActivated() of KApplication
The old aboutKDE(), aboutApp() and appHelpActivated() of TDEApplication
have all been removed. If you need direct access to these or need
access to a help menu in a class that is not derived from
KMainWindow then allocate an instance of the new class KHelpMenu.
@ -792,7 +792,7 @@ Matthias Hoelzer-Kluepfel &lt;<A HREF="mailto:hoelzer@kde.org">hoelzer@kde.org</
The KWMModuleApplication has been removed. Instead, use the class
KWinModule in libtdecore. The API is a bit cleaner but very similar,
so you will feel comfortable immediately. One of the advantages of
KWinModule is that it doesn't require a special KApplication
KWinModule is that it doesn't require a special TDEApplication
subclass. This lead to many problems and misunderstandings in the
past. KWinModule is now just an object that emits fancy signals (and
provides some useful lists, like the list of all managed windows).

@ -95,7 +95,7 @@ DCOPClient you do not need to change anything.
<p>
It is no longer possible to make calls to an application registered as
"<appid>-<pid>" with "<appid>" only. The full name can be obtained by using
either KApplication::startServiceBy...() or DCOPClient::findObject() or
either TDEApplication::startServiceBy...() or DCOPClient::findObject() or
their command line equivalents "dcopstart" and "dcopfind".
<H4>KLibFactory</H4>

@ -11,8 +11,8 @@ that we would like to make for the next binary incompatible release.
help prevent mistakes where developers forget to delete the pointer. Maybe make use of
Qt4 helper macros?
- Move all utility functions away from KApplication. TBD: Make KApplication
a very thin wrapper around QApplication. Ideally, KApplication should go
- Move all utility functions away from TDEApplication. TBD: Make TDEApplication
a very thin wrapper around QApplication. Ideally, TDEApplication should go
away completely. The kapp pointer references everywhere must die. Find a
way to make that possible
@ -95,7 +95,7 @@ that we would like to make for the next binary incompatible release.
Keep source compatibility.
- Sort out reference counting of applications and KMainWindows: Add a setRefCountEnabled()
function to KApplication; deref()ing the last reference should only quit the application
function to TDEApplication; deref()ing the last reference should only quit the application
if reference counts are enabled, and the reference count should be disabled by default
so apps that don't use a KMainWindow mostly continue to work. Make the KMainWindow
constructor call setRefCountEnabled(true), and make each KMainWindow hold its own

@ -59,7 +59,7 @@ int main(int argc, char **argv)
TDECmdLineArgs::init(argc, argv, &aboutData);
TDECmdLineArgs::addCmdLineOptions(options);
KApplication app;
TDEApplication app;
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();

@ -24,7 +24,7 @@ int main(int argc, char **argv)
TDECmdLineArgs::init(argc,argv,&aboutData);
TDECmdLineArgs::addCmdLineOptions(options);
KApplication app;
TDEApplication app;
QIOManager qiomanager;
Dispatcher dispatcher(&qiomanager);
KIOInputStream stream;

@ -92,7 +92,7 @@ int main(int argc, char **argv)
TDECmdLineArgs::init(argc,argv,&aboutData);
TDECmdLineArgs::addCmdLineOptions(options);
KApplication app;
TDEApplication app;
QIOManager qiomanager;
Dispatcher dispatcher(&qiomanager);
#ifndef USE_FILEINPUTSTREAM

@ -5,7 +5,7 @@
int main(int argc, char **argv)
{
KApplication app(argc, argv, "knotifytest");
TDEApplication app(argc, argv, "knotifytest");
//
while (1) {

@ -60,7 +60,7 @@ int main(int argc, char **argv) {
KGlobal::locale()->setMainCatalogue("tdelibs");
TDECmdLineArgs::init(argc, argv, &aboutData);
TDECmdLineArgs::addCmdLineOptions(options);
KApplication app;
TDEApplication app;
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
TQString msg;

@ -74,18 +74,18 @@ compiler later.
Establishing the Connection:
----------------------------
KApplication has gained a method called "KApplication::dcopClient()"
TDEApplication has gained a method called "TDEApplication::dcopClient()"
which returns a pointer to a DCOPClient instance. The first time this
method is called, the client class will be created. DCOPClients have
unique identifiers attached to them which are based on what
KApplication::name() returns. In fact, if there is only a single
TDEApplication::name() returns. In fact, if there is only a single
instance of the program running, the appId will be equal to
KApplication::name().
TDEApplication::name().
To actually enable DCOP communication to begin, you must use
DCOPClient::attach(). This will attempt to attach to the DCOP server.
If no server is found or there is any other type of error, attach()
will return false. KApplication will catch a dcop signal and display an
will return false. TDEApplication will catch a dcop signal and display an
appropriate error message box in that case.
After connecting with the server via DCOPClient::attach(), you need to
@ -100,7 +100,7 @@ case:
*/
appId = client->registerAs(kApp->name());
If you never retrieve the DCOPClient pointer from KApplication, the
If you never retrieve the DCOPClient pointer from TDEApplication, the
object will not be created and thus there will be no memory overhead.
You may also detach from the server by calling DCOPClient::detach().
@ -495,9 +495,9 @@ Code:
int main(int argc, char **argv)
{
KApplication *app;
TDEApplication *app;
app = new KApplication(argc, argv, "testit");
app = new TDEApplication(argc, argv, "testit");
return app->exec();
}
@ -515,7 +515,7 @@ VmStk: 20 kB
VmExe: 4 kB
VmLib: 6588 kB
If I create the KApplication's DCOPClient, and call attach() and
If I create the TDEApplication's DCOPClient, and call attach() and
registerAs(), it changes to this:
VmSize: 8080 kB
@ -531,8 +531,8 @@ resident, but no more data or stack. So this will be shared between all
processes, right? 100k to enable DCOP in all apps doesn't seem bad at
all. :)
OK now for some timings. Just creating a KApplication and then exiting
(i.e. removing the call to KApplication::exec) takes this much time:
OK now for some timings. Just creating a TDEApplication and then exiting
(i.e. removing the call to TDEApplication::exec) takes this much time:
0.28user 0.02system 0:00.32elapsed 92%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (1084major+62minor)pagefaults 0swaps

@ -38,18 +38,18 @@ The manual method is covered first, followed by the automatic IDL method.
\section establish Establishing the Connection:
KApplication has gained a method called \p KApplication::dcopClient()
TDEApplication has gained a method called \p TDEApplication::dcopClient()
which returns a pointer to a DCOPClient instance. The first time this
method is called, the client class will be created. DCOPClients have
unique identifiers attached to them which are based on what
KApplication::name() returns. In fact, if there is only a single
TDEApplication::name() returns. In fact, if there is only a single
instance of the program running, the appId will be equal to
KApplication::name().
TDEApplication::name().
To actually enable DCOP communication to begin, you must use
\p DCOPClient::attach(). This will attempt to attach to the DCOP server.
If no server is found or there is any other type of error,
DCOPClient::attach() will return false. KApplication will catch a dcop
DCOPClient::attach() will return false. TDEApplication will catch a dcop
signal and display an appropriate error message box in that case.
After connecting with the server via DCOPClient::attach(), you need to
@ -62,7 +62,7 @@ case:
appId = client->registerAs(kapp->name());
\endcode
If you never retrieve the DCOPClient pointer from KApplication, the
If you never retrieve the DCOPClient pointer from TDEApplication, the
object will not be created and thus there will be no memory overhead.
You may also detach from the server by calling DCOPClient::detach().

@ -71,8 +71,8 @@ tqWarning("%s: Got result '%s' %d:%06d", name(), result.latin1(), tv.tv_sec % 10
int main(int argc, char **argv)
{
TQCString myName = KApplication::dcopClient()->registerAs("testdcop", false);
KApplication app(argc, argv, "testdcop");
TQCString myName = TDEApplication::dcopClient()->registerAs("testdcop", false);
TDEApplication app(argc, argv, "testdcop");
tqWarning("%d:I am '%s'", getpid(), app.dcopClient()->appId().data());

@ -41,7 +41,7 @@ typedef TQValueList<TQCString> QCStringList;
* for KDE applications.
*
* This class provides IPC and RPC for KDE applications. Usually you
* will not have to instantiate one yourself because KApplication
* will not have to instantiate one yourself because TDEApplication
* contains a method to return a pointer to a DCOPClient object which
* can be used for your whole application.
*
@ -62,7 +62,7 @@ typedef TQValueList<TQCString> QCStringList;
* client->send("someApp", "someObject", "someFunction(TQString)", data);
* \endcode
*
* @see KApplication::dcopClient()
* @see TDEApplication::dcopClient()
* @author Preston Brown <pbrown@kde.org>, Matthias Ettrich <ettrich@kde.org>
*/
class DCOP_EXPORT DCOPClient : public TQObject
@ -675,7 +675,7 @@ class DCOP_EXPORT DCOPClient : public TQObject
* Returns the application's main dcop client. The main client can
* be used by objects that do not have any specific access to a dcop
* client. In KDE applications, the main client usually is the same
* as KApplication::dcopClient().
* as TDEApplication::dcopClient().
* @return the application's main dcop client
*/
static DCOPClient* mainClient();
@ -684,7 +684,7 @@ class DCOP_EXPORT DCOPClient : public TQObject
* Sets the application's main dcop client. The main client can
* be used by objects that do not have any specific access to a dcop
* client. In KDE applications, the main client usually is the same
* as KApplication::dcopClient().
* as TDEApplication::dcopClient().
* @param mainClient the new main dcop client
*/
static void setMainClient( DCOPClient* mainClient);
@ -772,7 +772,7 @@ signals:
* synchronous call. In that case, it will enter a local event
* loop to keep the GUI updated until finally an answer arrives.
*
* In KDE, the KApplication object connects to this signal to be
* In KDE, the TDEApplication object connects to this signal to be
* able to block any user input (i.e. mouse and key events) while
* we are waiting for an answer. If we did not do this, the
* application might end up in an illegal state, as a keyboard

@ -54,7 +54,7 @@ int main(int argc, char** argv)
const char* appname = strdup( argv[ 1 ] );
argv[ 1 ] = 0; // sue me
TDECmdLineArgs::init( argc, argv, "TestAppDriver", "Tests the dcop familly of tools + libraries", "1.0" ); // FIXME
KApplication app;
TDEApplication app;
app.dcopClient()->attach( );
app.dcopClient()->registerAs( "TestAppDriver" );
Driver * object = new Driver( appname );

@ -32,7 +32,7 @@ int main(int argc, char** argv)
return 0;
}
TDECmdLineArgs::init( argc, argv, "TestApp", "Tests the dcop familly of tools + libraries", "1.0" ); // FIXME
KApplication app;
TDEApplication app;
if(!app.dcopClient()->attach( ))
return 1;

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

@ -219,7 +219,7 @@
client->attach();
if (!client->isApplicationRegistered("kttsd")) {
TQString error;
if (KApplication::startServiceByDesktopName("kttsd", TQStringList(), &error))
if (TDEApplication::startServiceByDesktopName("kttsd", TQStringList(), &error))
cout << "Starting KTTSD failed with message " << error << endl;
}
@endverbatim

@ -35,7 +35,7 @@ int main( int argc, char** argv )
{
KAboutData* about = new KAboutData( "tetest", "TETest", "0.1" );
TDECmdLineArgs::init( argc, argv, about );
KApplication a;
TDEApplication a;
Win* win = new Win();
win->show();
return a.exec();

@ -37,13 +37,13 @@ static KStaticDeleter< TQMap<TQString, TQString> > isoMapDeleter;
Address::Address() :
mEmpty( true ), mType( 0 )
{
mId = KApplication::randomString( 10 );
mId = TDEApplication::randomString( 10 );
}
Address::Address( int type ) :
mEmpty( true ), mType( type )
{
mId = KApplication::randomString( 10 );
mId = TDEApplication::randomString( 10 );
}
bool Address::operator==( const Address &a ) const

@ -438,7 +438,7 @@ int main( int argc, char **argv )
TDECmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::addCmdLineOptions( options );
KApplication app;
TDEApplication app;
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();

@ -28,7 +28,7 @@ using namespace KABC;
Key::Key( const TQString &text, int type )
: mTextData( text ), mIsBinary( false ), mType( type )
{
mId = KApplication::randomString(8);
mId = TDEApplication::randomString(8);
}
Key::~Key()

@ -45,7 +45,7 @@ PhoneNumber::~PhoneNumber()
void PhoneNumber::init()
{
mId = KApplication::randomString( 8 );
mId = TDEApplication::randomString( 8 );
}
void PhoneNumber::validateNumber( const TQString &number )

@ -105,7 +105,7 @@ void Addressee::detach()
mData->empty = true;
mData->changed = false;
mData->resource = 0;
mData->uid = KApplication::randomString( 10 );
mData->uid = TDEApplication::randomString( 10 );
return;
} else if ( mData.count() == 1 ) return;

@ -20,7 +20,7 @@ int main(int argc,char **argv)
KAboutData aboutData("bigread","BigReadKabc","0.1");
TDECmdLineArgs::init(argc,argv,&aboutData);
KApplication app( false, false );
TDEApplication app( false, false );
AddressBook ab;

@ -17,7 +17,7 @@ int main(int argc,char **argv)
KAboutData aboutData("bigwrite","BigWriteKabc","0.1");
TDECmdLineArgs::init(argc,argv,&aboutData);
KApplication app( false, false );
TDEApplication app( false, false );
AddressBook ab;
ResourceFile r( "my.kabc", "vcard" );

@ -40,7 +40,7 @@ int main(int argc,char **argv)
TDECmdLineArgs::init(argc,argv,&aboutData);
KApplication app;
TDEApplication app;
TQString filename = StdAddressBook::fileName();

@ -26,7 +26,7 @@ int main(int argc,char **argv)
TDECmdLineArgs::init(argc, argv, &aboutData);
TDECmdLineArgs::addCmdLineOptions(options);
KApplication app;
TDEApplication app;
TDECmdLineArgs* args = TDECmdLineArgs::parsedArgs();
kdDebug() << "Creating a" << endl;

@ -23,7 +23,7 @@ int main(int /*argc*/,char /* **argv*/)
TDECmdLineArgs::init(argc, argv, &aboutData);
TDECmdLineArgs::addCmdLineOptions(options);
KApplication app;
TDEApplication app;
TDECmdLineArgs* args = TDECmdLineArgs::parsedArgs(); */
kdDebug() << "Creating addressees" << endl;

@ -23,7 +23,7 @@ int main(int argc,char **argv)
TDECmdLineArgs::init(argc, argv, &aboutData);
TDECmdLineArgs::addCmdLineOptions(options);
KApplication app;
TDEApplication app;
Address a;
a.setStreet("Lummerlandstr. 1");

@ -14,7 +14,7 @@ int main( int argc,char **argv )
I18N_NOOP( "Test Address LineEdit" ), "0.1" );
TDECmdLineArgs::init( argc, argv, &aboutData );
KApplication app;
TDEApplication app;
AddressLineEdit *lineEdit = new AddressLineEdit( 0 );

@ -15,8 +15,8 @@ int main(int argc,char **argv)
KAboutData aboutData("testdb","TestKabcDB","0.1");
TDECmdLineArgs::init(argc,argv,&aboutData);
// KApplication app( false, false );
KApplication app;
// TDEApplication app( false, false );
TDEApplication app;
AddressBook ab;

@ -26,7 +26,7 @@ int main(int argc,char **argv)
TDECmdLineArgs::init(argc,argv,&aboutData);
TDECmdLineArgs::addCmdLineOptions( options );
KApplication app;
TDEApplication app;
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
if (args->isSet("list")) {

@ -23,7 +23,7 @@ int main(int argc,char **argv)
KAboutData aboutData("testkabc",I18N_NOOP("TestKabc"),"0.1");
TDECmdLineArgs::init(argc, argv, &aboutData);
KApplication app( false, false );
TDEApplication app( false, false );
AddressBook *ab = StdAddressBook::self();
#define READ

@ -22,7 +22,7 @@ int main(int argc,char **argv)
TDECmdLineArgs::init(argc,argv,&aboutData);
TDECmdLineArgs::addCmdLineOptions( options );
KApplication app;
TDEApplication app;
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
if (args->isSet("multiple")) {

@ -29,9 +29,9 @@
int main(int argc, char *argv[])
{
KApplication::disableAutoDcopRegistration();
TDEApplication::disableAutoDcopRegistration();
TDECmdLineArgs::init(argc,argv,"testldapclient", 0, 0, 0, 0);
KApplication app;
TDEApplication app;
TestLDAPClient test;
test.setup();

@ -169,7 +169,7 @@ int main(int argc,char **argv)
TDECmdLineArgs::init(argc,argv,&aboutData);
TDECmdLineArgs::addCmdLineOptions( options );
KApplication app;
TDEApplication app;
TQString identifier;

@ -11,7 +11,7 @@ int main(int argc,char **argv)
KAboutData aboutData("testwrite",I18N_NOOP("TestWritevCard"),"0.1");
TDECmdLineArgs::init(argc,argv,&aboutData);
KApplication app;
TDEApplication app;
kdDebug() << "Test Write VCard" << endl;

@ -42,7 +42,7 @@ static const KCmdLineOptions options[] =
int main( int argc, char **argv )
{
KApplication::disableAutoDcopRegistration();
TDEApplication::disableAutoDcopRegistration();
KAboutData aboutData( "testread", "vCard test reader", "0.1" );
aboutData.addAuthor( "Cornelius Schumacher", 0, "schumacher@kde.org" );
@ -50,7 +50,7 @@ int main( int argc, char **argv )
TDECmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::addCmdLineOptions( options );
KApplication app( false, false );
TDEApplication app( false, false );
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();

@ -39,7 +39,7 @@ int main( int argc, char **argv )
TDECmdLineArgs::init( argc, argv, &aboutData );
KApplication app( false, false );
TDEApplication app( false, false );
KABC::Addressee addressee;

@ -265,7 +265,7 @@
* QPopupMenu for filelist
2001-03-20 Christoph Cullmann <cullmann@kde.org>
* kate is now a normal KApplication
* kate is now a normal TDEApplication
2001-03-18 Christoph Cullmann <cullmann@kde.org>
* big location changes of source files

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

@ -2213,8 +2213,8 @@ void KateViewInternal::updateCursor( const KateTextCursor& newCursor, bool force
if (m_cursorTimer.isActive ())
{
if ( KApplication::cursorFlashTime() > 0 )
m_cursorTimer.start( KApplication::cursorFlashTime() / 2 );
if ( TDEApplication::cursorFlashTime() > 0 )
m_cursorTimer.start( TDEApplication::cursorFlashTime() / 2 );
m_view->renderer()->setDrawCaret(true);
}
@ -3154,8 +3154,8 @@ void KateViewInternal::textHintTimeout ()
void KateViewInternal::focusInEvent (TQFocusEvent *)
{
if (KApplication::cursorFlashTime() > 0)
m_cursorTimer.start ( KApplication::cursorFlashTime() / 2 );
if (TDEApplication::cursorFlashTime() > 0)
m_cursorTimer.start ( TDEApplication::cursorFlashTime() / 2 );
if (m_textHintEnabled)
m_textHintTimer.start( m_textHintTimeout );
@ -3480,8 +3480,8 @@ void KateViewInternal::imEndEvent( TQIMEvent *e )
if ( e->text().length() > 0 ) {
m_doc->insertText( cursor.line(), cursor.col(), e->text() );
if ( !m_cursorTimer.isActive() && KApplication::cursorFlashTime() > 0 )
m_cursorTimer.start ( KApplication::cursorFlashTime() / 2 );
if ( !m_cursorTimer.isActive() && TDEApplication::cursorFlashTime() > 0 )
m_cursorTimer.start ( TDEApplication::cursorFlashTime() / 2 );
updateView( true );
updateCursor( cursor, true );

@ -461,7 +461,7 @@ int main(int argc, char *argv[])
}
}
KApplication a;
TDEApplication a;
a.disableAutoDcopRegistration();
a.setStyle("windows");
KSimpleConfig cfg( "testkateregressionrc" );

@ -28,9 +28,9 @@
#include <kcmultidialog.h>
/**
* The KApplication instance for kcmshell.
* The TDEApplication instance for kcmshell.
*/
class KCMShell : public KApplication
class KCMShell : public TDEApplication
{
Q_OBJECT

@ -736,11 +736,11 @@ extern "C" KDE_EXPORT int kdemain(int argc, char **argv)
setenv("TDEROOTHOME", "-", 1);
}
KApplication::disableAutoDcopRegistration();
TDEApplication::disableAutoDcopRegistration();
#ifdef KBUILDSYCOCA_GUI
KApplication k;
TDEApplication k;
#else
KApplication k(false, false);
TDEApplication k(false, false);
#endif
k.disableSessionManagement();

@ -121,8 +121,8 @@ int main(int argc, char **argv)
TDECmdLineArgs::init(argc, argv, &d);
TDECmdLineArgs::addCmdLineOptions(options);
// KApplication k(false, false);
KApplication k(false);
// TDEApplication k(false, false);
TDEApplication k(false);
k.disableSessionManagement();
// this program is in tdelibs so it uses tdelibs as catalog
@ -147,7 +147,7 @@ int main(int argc, char **argv)
args.append("--incremental");
args.append("--checkstamps");
TQString command = "kbuildsycoca";
TQCString _launcher = KApplication::launcher();
TQCString _launcher = TDEApplication::launcher();
if (!DCOPRef(_launcher, _launcher).call("tdeinit_exec_wait", command, args).isValid())
{
tqWarning("Can't talk to klauncher!");

@ -73,19 +73,19 @@ static void runBuildSycoca(TQObject *callBackObj=0, const char *callBackSlot=0)
TQByteArray data;
TQDataStream dataStream( data, IO_WriteOnly );
dataStream << TQString("kbuildsycoca") << args;
TQCString _launcher = KApplication::launcher();
TQCString _launcher = TDEApplication::launcher();
kapp->dcopClient()->callAsync(_launcher, _launcher, "tdeinit_exec_wait(TQString,TQStringList)", data, callBackObj, callBackSlot);
}
else
{
KApplication::tdeinitExecWait( "kbuildsycoca", args );
TDEApplication::tdeinitExecWait( "kbuildsycoca", args );
}
}
static void runKonfUpdate()
{
KApplication::tdeinitExecWait( "kconf_update", TQStringList(), 0, 0, "0" /*no startup notification*/ );
TDEApplication::tdeinitExecWait( "kconf_update", TQStringList(), 0, 0, "0" /*no startup notification*/ );
}
static void runDontChangeHostname(const TQCString &oldName, const TQCString &newName)
@ -93,7 +93,7 @@ static void runDontChangeHostname(const TQCString &oldName, const TQCString &new
TQStringList args;
args.append(TQFile::decodeName(oldName));
args.append(TQFile::decodeName(newName));
KApplication::tdeinitExecWait( "kdontchangethehostname", args );
TDEApplication::tdeinitExecWait( "kdontchangethehostname", args );
}
Kded::Kded(bool checkUpdates, bool new_startup)
@ -876,7 +876,7 @@ extern "C" KDE_EXPORT int kdemain(int argc, char *argv[])
"$Id$",
I18N_NOOP("TDE Daemon - triggers Sycoca database updates when needed"));
KApplication::installSigpipeHandler();
TDEApplication::installSigpipeHandler();
TDECmdLineArgs::init(argc, argv, &aboutData);

@ -358,7 +358,7 @@ void KHostName::changeSessionManager()
delete client;
return;
}
TQCString launcher = KApplication::launcher();
TQCString launcher = TDEApplication::launcher();
client->send(launcher, launcher, "setLaunchEnv(TQCString,TQCString)", params);
delete client;
}

@ -14,7 +14,7 @@
int main(int argc, char *argv[])
{
KApplication k(argc,argv,"blurb",false);
TDEApplication k(argc,argv,"blurb",false);
KMimeType::List mtl = KMimeType::allMimeTypes( );
assert( mtl.count() );

@ -155,7 +155,7 @@ void HTMLDocumentImpl::setCookie( const DOMString & value )
"addCookies(TQString,TQCString,long int)", params))
{
// Maybe it wasn't running (e.g. we're opening local html files)
KApplication::startServiceByDesktopName( "kcookiejar");
TDEApplication::startServiceByDesktopName( "kcookiejar");
if (!kapp->dcopClient()->send("kcookiejar", "kcookiejar",
"addCookies(TQString,TQCString,long int)", params))
kdWarning(6010) << "Can't communicate with cookiejar!" << endl;

@ -83,7 +83,7 @@ HTMLFormElementImpl::HTMLFormElementImpl(DocumentImpl *doc, bool implicit)
m_doingsubmit = false;
m_inreset = false;
m_enctype = "application/x-www-form-urlencoded";
m_boundary = "----------" + KApplication::randomString( 42 + 13 );
m_boundary = "----------" + TDEApplication::randomString( 42 + 13 );
m_acceptcharset = "UNKNOWN";
m_malformed = false;
}

@ -21,7 +21,7 @@ int main(int argc, char **argv)
TDECmdLineArgs::addCmdLineOptions( options );
KApplication app;
TDEApplication app;
TQString path_to_tdelibs = "/build/wynnw/kde-src";

@ -1136,7 +1136,7 @@ void KHTMLPart::launchJSErrorDialog() {
void KHTMLPart::launchJSConfigDialog() {
TQStringList args;
args << "khtml_java_js";
KApplication::tdeinitExec( "kcmshell", args );
TDEApplication::tdeinitExec( "kcmshell", args );
}
TQVariant KHTMLPart::executeScript(const TQString& filename, int baseLine, const DOM::Node& n, const TQString& script)
@ -7299,7 +7299,7 @@ void KHTMLPart::launchWalletManager()
{
#ifndef KHTML_NO_WALLET
if (!DCOPClient::mainClient()->isApplicationRegistered("kwalletmanager")) {
KApplication::startServiceByDesktopName("kwalletmanager_show");
TDEApplication::startServiceByDesktopName("kwalletmanager_show");
} else {
DCOPRef r("kwalletmanager", "kwalletmanager-mainwindow#1");
r.send("show");

@ -450,7 +450,7 @@ public:
* Java and Plugins support. This might change in the future if the security model
* is becoming more sophisticated, so don't rely on this behaviour.
*
* ( default false - everything is loaded unless forbidden by KApplication::authorizeURLAction).
* ( default false - everything is loaded unless forbidden by TDEApplication::authorizeURLAction).
*/
void setOnlyLocalReferences( bool enable );

@ -637,7 +637,7 @@ void KHTMLView::viewportResizeEvent (TQResizeEvent* e)
}/*end if*/
#endif
KApplication::sendPostedEvents(viewport(), TQEvent::Paint);
TDEApplication::sendPostedEvents(viewport(), TQEvent::Paint);
}
// this is to get rid of a compiler virtual overload mismatch warning. do not remove
@ -1730,7 +1730,7 @@ void KHTMLView::keyReleaseEvent(TQKeyEvent *_ke)
if( d->scrollSuspendPreActivate && _ke->key() != Key_Shift )
d->scrollSuspendPreActivate = false;
if( _ke->key() == Key_Shift && d->scrollSuspendPreActivate && _ke->state() == TQt::ShiftButton
&& !(KApplication::keyboardMouseState() & TQt::ShiftButton))
&& !(TDEApplication::keyboardMouseState() & TQt::ShiftButton))
{
if (d->scrollTimerId)
{
@ -1746,7 +1746,7 @@ void KHTMLView::keyReleaseEvent(TQKeyEvent *_ke)
{
if (d->accessKeysPreActivate && _ke->key() != Key_Control)
d->accessKeysPreActivate=false;
if (d->accessKeysPreActivate && _ke->state() == TQt::ControlButton && !(KApplication::keyboardMouseState() & TQt::ControlButton))
if (d->accessKeysPreActivate && _ke->state() == TQt::ControlButton && !(TDEApplication::keyboardMouseState() & TQt::ControlButton))
{
displayAccessKeys();
m_part->setStatusBarText(i18n("Access Keys activated"),KHTMLPart::BarOverrideText);

@ -509,7 +509,7 @@ bool RenderFrameSet::userResize( MouseEventImpl *evt )
if(!m_resizing && evt->id() == EventImpl::MOUSEDOWN_EVENT)
{
setResizing(true);
KApplication::setOverrideCursor(TQCursor(m_cursor));
TDEApplication::setOverrideCursor(TQCursor(m_cursor));
m_vSplitPos = _x;
m_hSplitPos = _y;
m_oldpos = -1;
@ -519,7 +519,7 @@ bool RenderFrameSet::userResize( MouseEventImpl *evt )
if(m_resizing && evt->id() == EventImpl::MOUSEUP_EVENT)
{
setResizing(false);
KApplication::restoreOverrideCursor();
TDEApplication::restoreOverrideCursor();
if(m_vSplit != -1 )
{

@ -266,7 +266,7 @@ void RenderImage::paint(PaintInfo& paintInfo, int _tx, int _ty)
if ( !berrorPic ) {
//tqDebug("qDrawShadePanel %d/%d/%d/%d", _tx + leftBorder, _ty + topBorder, cWidth, cHeight);
qDrawShadePanel( paintInfo.p, _tx + leftBorder + leftPad, _ty + topBorder + topPad, cWidth, cHeight,
KApplication::palette().inactive(), true, 1 );
TDEApplication::palette().inactive(), true, 1 );
}
TQPixmap const* pix = i ? &i->pixmap() : 0;
if(berrorPic && pix && (cWidth >= pix->width()+4) && (cHeight >= pix->height()+4) )

@ -511,7 +511,7 @@ int main(int argc, char *argv[])
setenv( "DISPLAY", ":47", 1 );
}
KApplication a;
TDEApplication a;
a.disableAutoDcopRegistration();
a.setStyle( "windows" );
KSimpleConfig sc1( "cryptodefaults" );

@ -354,9 +354,9 @@ KDE_EXPORT void TQApplication::setPalette( const TQPalette &, bool ,
}
#include <kapplication.h>
void KApplication::dcopFailure( const TQString & )
void TDEApplication::dcopFailure( const TQString & )
{
tqDebug( "KApplication::dcopFailure" );
tqDebug( "TDEApplication::dcopFailure" );
}
#include <kparts/historyprovider.h>

@ -41,7 +41,7 @@ int main(int argc, char *argv[])
"a basic web browser using the KHTML library", "1.0");
TDECmdLineArgs::addCmdLineOptions(options);
KApplication a;
TDEApplication a;
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs( );
if ( args->count() == 0 ) {
TDECmdLineArgs::usage();

@ -33,7 +33,7 @@ Starting an application linked against libqt, libtdecore and libtdeui
in the conventional way takes approx. 150ms on a Pentium III - 500Mhz.
Starting the same application via tdeinit takes less than 10ms.
(application without KApplication constructor, the KApplication
(application without TDEApplication constructor, the TDEApplication
constructor requires an extra 100ms in both cases)
Memory Usage
@ -43,16 +43,16 @@ An application linked against libqt, libtdecore and libtdeui started
in the conventional way requires about 498Kb memory.
(average of 10 instances) If the same application is started via
tdeinit it requires about 142Kb. A difference of 356Kb (application
without KApplication constructor)
without TDEApplication constructor)
If we take the KApplication constructor into account, an application
If we take the TDEApplication constructor into account, an application
started in the conventional way takes about 679Kb memory while the same
application started via tdeinit requires about 380Kb. Here the difference
is somewhat less, 299Kb. This seems to be caused by the fact that the
dynamic linker does "lazy linking". We can force the linker to link
everything at startup by specifying "LD_BIND_NOW=true". When tdeinit is
started with this option on, tdeinit is back to its full efficiency, an
application with a KApplication constructor now uses 338Kb of memory.
application with a TDEApplication constructor now uses 338Kb of memory.
A difference of 341Kb with the normal case.
Adapting programs to use tdeinit.

@ -1764,7 +1764,7 @@ int main(int argc, char **argv, char **envp)
// don't change envvars before tdeinit_initsetproctitle()
unsetenv("LD_BIND_NOW");
unsetenv("DYLD_BIND_AT_LAUNCH");
KApplication::loadedByKdeinit = true;
TDEApplication::loadedByKdeinit = true;
d.maxname = strlen(argv[0]);
d.launcher_pid = 0;

@ -163,8 +163,8 @@ IdleSlave::age(time_t now)
}
KLauncher::KLauncher(int _tdeinitSocket, bool new_startup)
// : KApplication( false, false ), // No Styles, No GUI
: KApplication( false, true ), // TQClipboard tries to construct a QWidget so a GUI is technically needed, even though it is not used
// : TDEApplication( false, false ), // No Styles, No GUI
: TDEApplication( false, true ), // TQClipboard tries to construct a QWidget so a GUI is technically needed, even though it is not used
DCOPObject("klauncher"),
tdeinitSocket(_tdeinitSocket), mAutoStart( new_startup ),
dontBlockReading(false), newStartup( new_startup )

@ -105,7 +105,7 @@ struct serviceResult
pid_t pid;
};
class KLauncher : public KApplication, public DCOPObject
class KLauncher : public TDEApplication, public DCOPObject
{
Q_OBJECT

@ -60,7 +60,7 @@ extern "C" KDE_EXPORT int kdemain( int argc, char**argv )
return 1;
}
TQCString cname = KApplication::launcher();
TQCString cname = TDEApplication::launcher();
char *name = cname.data();
TDECmdLineArgs::init(argc, argv, name, "KLauncher", "A service launcher.",
"v1.0");
@ -79,7 +79,7 @@ extern "C" KDE_EXPORT int kdemain( int argc, char**argv )
int maxTry = 3;
while(true)
{
TQCString dcopName = KApplication::dcopClient()->registerAs(name, false);
TQCString dcopName = TDEApplication::dcopClient()->registerAs(name, false);
if (dcopName.isEmpty())
{
kdWarning() << "[klauncher] DCOP communication problem!" << endl;

@ -28,9 +28,9 @@
int main(int argc, char *argv[])
{
KApplication::tdeinitExec("konsole");
TDEApplication::tdeinitExec("konsole");
KApplication k(argc, argv, "klaunchertest");
TDEApplication k(argc, argv, "klaunchertest");
kapp->dcopClient()->registerAs( kapp->name()) ;
@ -38,13 +38,13 @@ int main(int argc, char *argv[])
TQString error;
TQCString dcopService;
int pid;
int result = KApplication::startServiceByDesktopName(
int result = TDEApplication::startServiceByDesktopName(
TQString::fromLatin1("konsole"), TQString::null, &error, &dcopService, &pid );
printf("Result = %d, error = \"%s\", dcopService = \"%s\", pid = %d\n",
result, error.ascii(), dcopService.data(), pid);
result = KApplication::startServiceByDesktopName(
result = TDEApplication::startServiceByDesktopName(
TQString::fromLatin1("konqueror"), TQString::null, &error, &dcopService, &pid );
printf("Result = %d, error = \"%s\", dcopService = \"%s\", pid = %d\n",

@ -1383,11 +1383,11 @@ void KDirOperator::setupMenu(int whichActions)
if (whichActions & FileActions)
{
actionMenu->insert( mkdirAction );
if (currUrl.isLocalFile() && !(KApplication::keyboardMouseState() & TQt::ShiftButton))
if (currUrl.isLocalFile() && !(TDEApplication::keyboardMouseState() & TQt::ShiftButton))
actionMenu->insert( myActionCollection->action( "trash" ) );
KConfig *globalconfig = KGlobal::config();
KConfigGroupSaver cs( globalconfig, TQString::fromLatin1("KDE") );
if (!currUrl.isLocalFile() || (KApplication::keyboardMouseState() & TQt::ShiftButton) ||
if (!currUrl.isLocalFile() || (TDEApplication::keyboardMouseState() & TQt::ShiftButton) ||
globalconfig->readBoolEntry("ShowDeleteCommand", false))
actionMenu->insert( myActionCollection->action( "delete" ) );
actionMenu->insert( actionSeparator );

@ -362,7 +362,7 @@ void KFileIconView::slotActivate( TQIconViewItem *item )
void KFileIconView::selected( TQIconViewItem *item )
{
if ( !item || (KApplication::keyboardMouseState() & (ShiftButton | ControlButton)) != 0 )
if ( !item || (TDEApplication::keyboardMouseState() & (ShiftButton | ControlButton)) != 0 )
return;
if ( KGlobalSettings::singleClick() ) {

@ -96,7 +96,7 @@ public:
* KNotifyDialog can handle events for multiple applications (i.e. eventsrc files).
* Successive calls with a different @p appName will add them.
* @param appName The application's name, i.e. the name passed to the
* KApplication constructor or KAboutData.
* TDEApplication constructor or KAboutData.
* @see clearApplicationEvents()
*/
virtual void addApplicationEvents( const char *appName );

@ -131,7 +131,7 @@ void KAppTreeListItem::activate()
void KAppTreeListItem::setOpen( bool o )
{
if( o && !parsed ) { // fill the children before opening
((KApplicationTree *) parent())->addDesktopGroup( path, this );
((TDEApplicationTree *) parent())->addDesktopGroup( path, this );
parsed = true;
}
TQListViewItem::setOpen( o );
@ -144,7 +144,7 @@ bool KAppTreeListItem::isDirectory()
// ----------------------------------------------------------------------
KApplicationTree::KApplicationTree( TQWidget *parent )
TDEApplicationTree::TDEApplicationTree( TQWidget *parent )
: KListView( parent ), currentitem(0)
{
addColumn( i18n("Known Applications") );
@ -161,7 +161,7 @@ KApplicationTree::KApplicationTree( TQWidget *parent )
// ----------------------------------------------------------------------
bool KApplicationTree::isDirSel()
bool TDEApplicationTree::isDirSel()
{
if (!currentitem) return false; // if currentitem isn't set
return currentitem->isDirectory();
@ -182,7 +182,7 @@ static TQPixmap appIcon(const TQString &iconName)
return normal;
}
void KApplicationTree::addDesktopGroup( const TQString &relPath, KAppTreeListItem *item)
void TDEApplicationTree::addDesktopGroup( const TQString &relPath, KAppTreeListItem *item)
{
KServiceGroup::Ptr root = KServiceGroup::group(relPath);
if (!root || !root->isValid()) return;
@ -244,7 +244,7 @@ void KApplicationTree::addDesktopGroup( const TQString &relPath, KAppTreeListIte
// ----------------------------------------------------------------------
void KApplicationTree::slotItemHighlighted(TQListViewItem* i)
void TDEApplicationTree::slotItemHighlighted(TQListViewItem* i)
{
// i may be 0 (see documentation)
if(!i)
@ -261,7 +261,7 @@ void KApplicationTree::slotItemHighlighted(TQListViewItem* i)
// ----------------------------------------------------------------------
void KApplicationTree::slotSelectionChanged(TQListViewItem* i)
void TDEApplicationTree::slotSelectionChanged(TQListViewItem* i)
{
// i may be 0 (see documentation)
if(!i)
@ -277,7 +277,7 @@ void KApplicationTree::slotSelectionChanged(TQListViewItem* i)
// ----------------------------------------------------------------------
void KApplicationTree::resizeEvent( TQResizeEvent * e)
void TDEApplicationTree::resizeEvent( TQResizeEvent * e)
{
setColumnWidth(0, width()-TQApplication::style().pixelMetric(TQStyle::PM_ScrollBarExtent)
-2*TQApplication::style().pixelMetric(TQStyle::PM_DefaultFrameWidth));
@ -285,7 +285,7 @@ void KApplicationTree::resizeEvent( TQResizeEvent * e)
}
// Prune empty directories from the tree
void KApplicationTree::cleanupTree()
void TDEApplicationTree::cleanupTree()
{
TQListViewItem *item=firstChild();
while(item!=0)
@ -456,7 +456,7 @@ void KOpenWithDlg::init( const TQString& _text, const TQString& _value )
connect ( edit, TQT_SIGNAL(returnPressed()), TQT_SLOT(slotOK()) );
connect ( edit, TQT_SIGNAL(textChanged(const TQString&)), TQT_SLOT(slotTextChanged()) );
m_pTree = new KApplicationTree( this );
m_pTree = new TDEApplicationTree( this );
topLayout->addWidget(m_pTree);
connect( m_pTree, TQT_SIGNAL( selected( const TQString&, const TQString& ) ),

@ -26,7 +26,7 @@
#include <krun.h>
#include <kservice.h>
class KApplicationTree;
class TDEApplicationTree;
class KURLRequester;
class TQWidget;
@ -161,7 +161,7 @@ protected:
KURLRequester * edit;
TQString m_command;
KApplicationTree* m_pTree;
TDEApplicationTree* m_pTree;
TQLabel *label;
TQString qName, qServiceType;

@ -61,7 +61,7 @@ protected:
virtual void activate();
virtual void setOpen( bool o );
friend class KApplicationTree;
friend class TDEApplicationTree;
};
/* ------------------------------------------------------------------------- */
@ -69,11 +69,11 @@ protected:
/**
* @internal
*/
class KApplicationTree : public KListView
class TDEApplicationTree : public KListView
{
Q_OBJECT
public:
KApplicationTree( TQWidget *parent );
TDEApplicationTree( TQWidget *parent );
/**
* Add a group of .desktop/.kdelnk entries

@ -3887,14 +3887,14 @@ void KExecPropsPlugin::slotBrowseExec()
execEdit->setText( path );
}
class KApplicationPropsPlugin::KApplicationPropsPluginPrivate
class TDEApplicationPropsPlugin::TDEApplicationPropsPluginPrivate
{
public:
KApplicationPropsPluginPrivate()
TDEApplicationPropsPluginPrivate()
{
m_kdesktopMode = TQCString(tqApp->name()) == "kdesktop"; // nasty heh?
}
~KApplicationPropsPluginPrivate()
~TDEApplicationPropsPluginPrivate()
{
}
@ -3902,10 +3902,10 @@ public:
bool m_kdesktopMode;
};
KApplicationPropsPlugin::KApplicationPropsPlugin( KPropertiesDialog *_props )
TDEApplicationPropsPlugin::TDEApplicationPropsPlugin( KPropertiesDialog *_props )
: KPropsDlgPlugin( _props )
{
d = new KApplicationPropsPluginPrivate;
d = new TDEApplicationPropsPluginPrivate;
d->m_frame = properties->addPage(i18n("&Application"));
TQVBoxLayout *toplayout = new TQVBoxLayout( d->m_frame, 0, KDialog::spacingHint());
@ -4043,23 +4043,23 @@ KApplicationPropsPlugin::KApplicationPropsPlugin( KPropertiesDialog *_props )
this, TQT_SIGNAL( changed() ) );
}
KApplicationPropsPlugin::~KApplicationPropsPlugin()
TDEApplicationPropsPlugin::~TDEApplicationPropsPlugin()
{
delete d;
}
// TQString KApplicationPropsPlugin::tabName () const
// TQString TDEApplicationPropsPlugin::tabName () const
// {
// return i18n ("&Application");
// }
void KApplicationPropsPlugin::updateButton()
void TDEApplicationPropsPlugin::updateButton()
{
addExtensionButton->setEnabled(availableExtensionsList->currentItem()>-1);
delExtensionButton->setEnabled(extensionsList->currentItem()>-1);
}
void KApplicationPropsPlugin::addMimeType( const TQString & name )
void TDEApplicationPropsPlugin::addMimeType( const TQString & name )
{
// Add a mimetype to the list of available mime types if not in the extensionsList
@ -4076,13 +4076,13 @@ void KApplicationPropsPlugin::addMimeType( const TQString & name )
}
}
bool KApplicationPropsPlugin::supports( KFileItemList _items )
bool TDEApplicationPropsPlugin::supports( KFileItemList _items )
{
// same constraints as KExecPropsPlugin : desktop file with Type = Application
return KExecPropsPlugin::supports( _items );
}
void KApplicationPropsPlugin::applyChanges()
void TDEApplicationPropsPlugin::applyChanges()
{
TQString path = properties->kurl().path();
@ -4121,7 +4121,7 @@ void KApplicationPropsPlugin::applyChanges()
config.sync();
}
void KApplicationPropsPlugin::slotAddExtension()
void TDEApplicationPropsPlugin::slotAddExtension()
{
TQListBoxItem *item = availableExtensionsList->firstItem();
TQListBoxItem *nextItem;
@ -4143,7 +4143,7 @@ void KApplicationPropsPlugin::slotAddExtension()
updateButton();
}
void KApplicationPropsPlugin::slotDelExtension()
void TDEApplicationPropsPlugin::slotDelExtension()
{
TQListBoxItem *item = extensionsList->firstItem();
TQListBoxItem *nextItem;

@ -878,15 +878,15 @@ private:
* @deprecated replaced with KDesktopPropsPlugin
*/
/// Remove in KDE4
class KIO_EXPORT_DEPRECATED KApplicationPropsPlugin : public KPropsDlgPlugin
class KIO_EXPORT_DEPRECATED TDEApplicationPropsPlugin : public KPropsDlgPlugin
{
Q_OBJECT
public:
/**
* Constructor
*/
KApplicationPropsPlugin( KPropertiesDialog *_props );
virtual ~KApplicationPropsPlugin();
TDEApplicationPropsPlugin( KPropertiesDialog *_props );
virtual ~TDEApplicationPropsPlugin();
virtual void applyChanges();
@ -910,8 +910,8 @@ private:
TQPushButton *addExtensionButton;
TQPushButton *delExtensionButton;
class KApplicationPropsPluginPrivate;
KApplicationPropsPluginPrivate *d;
class TDEApplicationPropsPluginPrivate;
TDEApplicationPropsPluginPrivate *d;
};
#endif

@ -6,7 +6,7 @@
int main(int argc, char** argv)
{
KLocale::setMainCatalogue("tdelibs");
KApplication app(argc, argv, "KCustomMenuEditorTest");
TDEApplication app(argc, argv, "KCustomMenuEditorTest");
KCustomMenuEditor editor(0);
KConfig *cfg = new KConfig("kdesktop_custom_menu2");
editor.load(cfg);

@ -5,7 +5,7 @@
int main( int argc, char **argv )
{
KApplication app(argc, argv, "kdirselectdialogtest");
TDEApplication app(argc, argv, "kdirselectdialogtest");
KURL u = KDirSelectDialog::selectDirectory( (argc >= 1) ? argv[1] : TQString::null );
if ( u.isValid() )

@ -134,7 +134,7 @@ void testFrame::slotSetChildCount( KFileTreeViewItem *item, int c )
int main(int argc, char **argv)
{
KApplication a(argc, argv, "kfiletreeviewtest");
TDEApplication a(argc, argv, "kfiletreeviewtest");
TQString name1;
TQStringList names;

@ -44,7 +44,7 @@
int main(int argc, char **argv)
{
KApplication a(argc, argv, "kfstest");
TDEApplication a(argc, argv, "kfstest");
TQString name1;
TQStringList names;

@ -3,7 +3,7 @@
int main( int argc, char **argv )
{
KApplication app( argc, argv, "kicondialogtest" );
TDEApplication app( argc, argv, "kicondialogtest" );
// KIconDialog::getIcon();

@ -3,7 +3,7 @@
int main( int argc, char **argv )
{
KApplication app( argc, argv, "knotifytest" );
TDEApplication app( argc, argv, "knotifytest" );
KNotifyDialog *dlg = new KNotifyDialog();
dlg->addApplicationEvents( "twin" );
return dlg->exec();

@ -28,7 +28,7 @@
int main(int argc, char **argv)
{
KApplication app(argc, argv, "kopenwithtest");
TDEApplication app(argc, argv, "kopenwithtest");
KURL::List list;
list += KURL("file:///tmp/testfile.txt");

@ -5,7 +5,7 @@
int main( int argc, char **argv )
{
KApplication app( argc, argv, "kurlrequestertest" );
TDEApplication app( argc, argv, "kurlrequestertest" );
KURL url = KURLRequesterDlg::getURL( "ftp://ftp.kde.org" );
tqDebug( "Selected url: %s", url.url().latin1());

@ -230,7 +230,7 @@ namespace KIO {
/**
* Updates the last user action timestamp to the given time.
* See KApplication::updateUserTimestamp() .
* See TDEApplication::updateUserTimestamp() .
* @since 3.5.6
*/
void updateUserTimestamp( unsigned long time );

@ -34,7 +34,7 @@ public:
const TQString &text,
const TQString &caption = TQString::null)
{
if (KApplication::guiEnabled()) {
if (TDEApplication::guiEnabled()) {
kapp->enableStyles();
KMessageBox::error( parent, text, caption );
} else
@ -45,7 +45,7 @@ public:
const TQString &text,
const TQString &caption = TQString::null)
{
if (KApplication::guiEnabled()) {
if (TDEApplication::guiEnabled()) {
kapp->enableStyles();
KMessageBox::sorry( parent, text, caption );
} else

@ -900,7 +900,7 @@ pid_t KDEDesktopMimeType::runMimeType( const KURL& url , const KSimpleConfig & )
args << url.path();
int pid;
if ( !KApplication::tdeinitExec("kfmclient", args, 0, &pid) )
if ( !TDEApplication::tdeinitExec("kfmclient", args, 0, &pid) )
return pid;
KProcess p;

@ -818,7 +818,7 @@ pid_t KRun::run( const KService& _service, const KURL::List& _urls, TQWidget* wi
}
}
int i = KApplication::startServiceByDesktopPath(
int i = TDEApplication::startServiceByDesktopPath(
_service.desktopEntryPath(), urls.toStringList(), &error, 0L, &pid, myasn
);

@ -61,7 +61,7 @@ Observer::Observer() : DCOPObject("KIO::Observer")
{
kdDebug(KDEBUG_OBSERVER) << "Starting kio_uiserver" << endl;
TQString error;
int ret = KApplication::startServiceByDesktopPath( "kio_uiserver.desktop",
int ret = TDEApplication::startServiceByDesktopPath( "kio_uiserver.desktop",
TQStringList(), &error );
if ( ret > 0 )
{

@ -245,7 +245,7 @@ void Slave::hold(const KURL &url)
pid_t pid = m_pid;
stream << pid;
TQCString launcher = KApplication::launcher();
TQCString launcher = TDEApplication::launcher();
client->call(launcher, launcher, "waitForSlave(pid_t)",
params, replyType, reply);
}
@ -431,7 +431,7 @@ Slave* Slave::createSlave( const TQString &protocol, const KURL& url, int& error
TQDataStream stream(params, IO_WriteOnly);
stream << protocol << url.host() << socketfile.name();
TQCString launcher = KApplication::launcher();
TQCString launcher = TDEApplication::launcher();
if (!client->call(launcher, launcher, "requestSlave(TQString,TQString,TQString)",
params, replyType, reply)) {
error_text = i18n("Cannot talk to klauncher");
@ -491,7 +491,7 @@ Slave* Slave::holdSlave( const TQString &protocol, const KURL& url )
TQDataStream stream(params, IO_WriteOnly);
stream << url << socketfile.name();
TQCString launcher = KApplication::launcher();
TQCString launcher = TDEApplication::launcher();
if (!client->call(launcher, launcher, "requestHoldSlave(KURL,TQString)",
params, replyType, reply)) {
delete slave;

@ -246,7 +246,7 @@ DCOPClient *SlaveBase::dcopClient()
{
if (!d->dcopClient)
{
d->dcopClient = KApplication::dcopClient();
d->dcopClient = TDEApplication::dcopClient();
if (!d->dcopClient->isAttached())
d->dcopClient->attach();
d->dcopClient->setDaemonMode( true );

@ -631,7 +631,7 @@ KSSLCertificateHome::KSSLAuthAction aa;
d->dcc = new DCOPClient;
d->dcc->attach();
if (!d->dcc->isApplicationRegistered("kio_uiserver")) {
KApplication::startServiceByDesktopPath("kio_uiserver.desktop",
TDEApplication::startServiceByDesktopPath("kio_uiserver.desktop",
TQStringList() );
}
}
@ -895,7 +895,7 @@ int TCPSlaveBase::verifyCertificate()
d->dcc = new DCOPClient;
d->dcc->attach();
if (!d->dcc->isApplicationRegistered("kio_uiserver")) {
KApplication::startServiceByDesktopPath("kio_uiserver.desktop",
TDEApplication::startServiceByDesktopPath("kio_uiserver.desktop",
TQStringList() );
}
@ -1023,7 +1023,7 @@ int TCPSlaveBase::verifyCertificate()
d->dcc = new DCOPClient;
d->dcc->attach();
if (!d->dcc->isApplicationRegistered("kio_uiserver")) {
KApplication::startServiceByDesktopPath("kio_uiserver.desktop",
TDEApplication::startServiceByDesktopPath("kio_uiserver.desktop",
TQStringList() );
}
}
@ -1107,7 +1107,7 @@ int TCPSlaveBase::verifyCertificate()
d->dcc = new DCOPClient;
d->dcc->attach();
if (!d->dcc->isApplicationRegistered("kio_uiserver")) {
KApplication::startServiceByDesktopPath("kio_uiserver.desktop",
TDEApplication::startServiceByDesktopPath("kio_uiserver.desktop",
TQStringList() );
}
}

@ -14,7 +14,7 @@ so we have no way to know when the user finished editing the file...
Conclusion: if the application has network transparency built-in, it should
put "%u" in its desktop file - and kfmexec isn't used -. If it doesn't, either
it's a KApplication and kfmexec does its job, or it's a KUniqueApplication
it's a TDEApplication and kfmexec does its job, or it's a KUniqueApplication
and... kfmexec can't see modifications to the file. Be warned.
From Waldo: "The program doesn't return _at once_. It returns

@ -283,7 +283,7 @@ int main( int argc, char **argv )
TDECmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::addCmdLineOptions( options );
KApplication app;
TDEApplication app;
KIOExec exec;

@ -423,7 +423,7 @@ int main( int argc, char **argv )
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
bool useGUI = args->isSet( "dialog" );
KApplication app( useGUI, useGUI );
TDEApplication app( useGUI, useGUI );
TQPtrList<FileProps> m_props;
m_props.setAutoDelete( true );

@ -32,7 +32,7 @@ int main( int argc, char **argv )
TDECmdLineArgs::init( argc, argv, "kmailservice", I18N_NOOP("KMailService"), I18N_NOOP("Mail service"), "unknown" );
TDECmdLineArgs::addCmdLineOptions( options );
KApplication a( false, false );
TDEApplication a( false, false );
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();

@ -265,7 +265,7 @@ TQByteArray KNTLM::getLMv2Response( const TQString &target, const TQString &user
TQByteArray hash = ntlmv2Hash( target, user, password );
TQByteArray clientChallenge( 8 );
for ( uint i = 0; i<8; i++ ) {
clientChallenge.data()[i] = KApplication::random() % 0xff;
clientChallenge.data()[i] = TDEApplication::random() % 0xff;
}
return lmv2Response( hash, clientChallenge, challenge );
}
@ -304,7 +304,7 @@ TQByteArray KNTLM::createBlob( const TQByteArray &targetinfo )
now *= (TQ_UINT64)10000000;
bl->timestamp = KFromToLittleEndian( now );
for ( uint i = 0; i<8; i++ ) {
bl->challenge[i] = KApplication::random() % 0xff;
bl->challenge[i] = TDEApplication::random() % 0xff;
}
memcpy( blob.data() + sizeof(Blob), targetinfo.data(), targetinfo.size() );
return blob;

@ -68,7 +68,7 @@ int main(int argc, char **argv) {
TDECmdLineArgs::addCmdLineOptions(options);
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
KApplication a(false, false);
TDEApplication a(false, false);
TQCString recipient = args->getOption("recipient");
if (recipient.isEmpty())

@ -42,7 +42,7 @@ int main(int argc, char **argv)
I18N_NOOP("telnet protocol handler"), "unknown");
TDECmdLineArgs::addCmdLineOptions(options);
KApplication app;
TDEApplication app;
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();

@ -95,7 +95,7 @@ KWalletD::KWalletD(const TQCString &name)
connect(_timeouts, TQT_SIGNAL(timedOut(int)), this, TQT_SLOT(timedOut(int)));
reconfigure();
KGlobal::dirs()->addResourceType("kwallet", "share/apps/kwallet");
connect(KApplication::dcopClient(),
connect(TDEApplication::dcopClient(),
TQT_SIGNAL(applicationRemoved(const TQCString&)),
this,
TQT_SLOT(slotAppUnregistered(const TQCString&)));
@ -526,7 +526,7 @@ int KWalletD::internalOpen(const TQCString& appid, const TQString& wallet, bool
}
emitDCOPSignal("walletOpened(TQString)", data);
if (_wallets.count() == 1 && _launchManager) {
KApplication::startServiceByDesktopName("kwalletmanager-kwalletd");
TDEApplication::startServiceByDesktopName("kwalletmanager-kwalletd");
}
} else {
if (!_handles[appid].contains(rc) && _openPrompt && !isAuthorizedApp(appid, wallet, w)) {

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

@ -64,9 +64,9 @@ static bool check(const TQString& txt, TQString a, TQString b)
int main(int argc, char *argv[])
{
KApplication::disableAutoDcopRegistration();
TDEApplication::disableAutoDcopRegistration();
TDECmdLineArgs::init(argc,argv,"jobtest", 0, 0, 0, 0);
KApplication app;
TDEApplication app;
JobTest test;
test.setup();

@ -67,9 +67,9 @@ static bool check(const TQString& txt, T a, T b)
int main(int argc, char *argv[])
{
KApplication::disableAutoDcopRegistration();
TDEApplication::disableAutoDcopRegistration();
TDECmdLineArgs::init(argc,argv,"kacltest", 0, 0, 0, 0);
KApplication app;
TDEApplication app;
KACLTest test;
test.setup();

@ -91,7 +91,7 @@ int TestService::exec()
int main(int argc, char *argv[])
{
putenv("IGNORE_SYCOCA_VERSION=true");
KApplication k(argc,argv,"whatever",false/*noGUI*/); // KMessageBox needs KApp for makeStdCaption
TDEApplication k(argc,argv,"whatever",false/*noGUI*/); // KMessageBox needs KApp for makeStdCaption
k.dcopClient()->setNotifications(true);

@ -7,7 +7,7 @@ using namespace KIO;
int main(int argc, char **argv)
{
KApplication app(argc, argv, "kdefaultprogresstest");
TDEApplication app(argc, argv, "kdefaultprogresstest");
DefaultProgress* dlg = new DefaultProgress();
KURL src("http://this.host.doesn't.exist/this/dir/neither/andthisfileneither");

@ -151,7 +151,7 @@ void KDirListerTest::completed()
int main ( int argc, char *argv[] )
{
KApplication app( argc, argv, "kdirlistertest" );
TDEApplication app( argc, argv, "kdirlistertest" );
KDirListerTest *test = new KDirListerTest( 0 );
test->show();

@ -28,9 +28,9 @@ int main (int argc, char **argv)
TDECmdLineArgs::init(argc, argv, "KDirWatchTest",
"Test for KDirWatch", "1.0");
TDECmdLineArgs::addCmdLineOptions( options );
KApplication::addCmdLineOptions();
TDEApplication::addCmdLineOptions();
KApplication a;
TDEApplication a;
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
myTest testObject;

@ -48,7 +48,7 @@ int main(int argc, char **argv)
TDECmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
int count = args->count();
KApplication app;
TDEApplication app;
if ( !count )
args->usage();

@ -10,7 +10,7 @@ int main ( int argc, char** argv )
{
KAboutData aboutData("kiopassdlgtest", "KIO Password Dialog Test", "1.0");
TDECmdLineArgs::init(argc, argv, &aboutData);
KApplication app;
TDEApplication app;
TQString usr, pass, comment, label;
label = "Site:";

@ -496,7 +496,7 @@ static KCmdLineOptions options[] =
int main(int argc, char **argv) {
TDECmdLineArgs::init( argc, argv, "kioslavetest", description, version );
TDECmdLineArgs::addCmdLineOptions( options );
KApplication app;
TDEApplication app;
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();

@ -35,7 +35,7 @@ int main(int argc, char *argv[])
TDECmdLineArgs::addCmdLineOptions( options );
KApplication app;
TDEApplication app;
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
TQString fileName = args->arg( 0 );

@ -17,7 +17,7 @@ int main ( int argc, char** argv )
TDECmdLineArgs::init(argc, argv, &aboutData);
TDECmdLineArgs::addCmdLineOptions( options );
KApplication app;
TDEApplication app;
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
if ( args->count() < 1 )

@ -30,7 +30,7 @@ int main(int argc, char **argv) {
"1.0");
TDECmdLineArgs::init(argc, argv, &aboutData);
KApplication app;
TDEApplication app;
KURL url;
url.setPath("/tmp");

@ -121,7 +121,7 @@ void checkPDE(const KService &service, const KURL::List &urls, bool hs, bool tf,
int main(int argc, char **argv)
{
KApplication app( argc, argv, "kruntest", true /* it _has_ a GUI ! */);
TDEApplication app( argc, argv, "kruntest", true /* it _has_ a GUI ! */);
// First some non-interactive tests
checkBN( "/usr/bin/ls", true, "ls");

@ -3,7 +3,7 @@
int main( int argc, char **argv )
{
KApplication app( argc, argv, "kscantest" );
TDEApplication app( argc, argv, "kscantest" );
KScanDialog *dlg = KScanDialog::getScanDialog();
if ( !dlg ) {
tqDebug("*** EEK, no Scan-service available, aborting!");

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

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

@ -37,7 +37,7 @@ int main( int argc, char **argv )
TDECmdLineArgs::addCmdLineOptions( options );
KApplication app( false, false ); // no GUI
TDEApplication app( false, false ); // no GUI
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();

@ -162,7 +162,7 @@ int main(int argc, char **argv)
TDECmdLineArgs::init(argc, argv, &aboutData);
TDECmdLineArgs::addCmdLineOptions( options );
KApplication app;
TDEApplication app;
app.disableAutoDcopRegistration();
// Allow testing of the search engine using both delimiters...

@ -164,9 +164,9 @@ void KURLCompletionTest::testLocalURL()
int main( int argc, char **argv )
{
KApplication::disableAutoDcopRegistration();
TDEApplication::disableAutoDcopRegistration();
TDECmdLineArgs::init(argc,argv,"kurlcompletiontest", 0, 0, 0, 0);
KApplication app;
TDEApplication app;
{
KURLCompletionTest test;

@ -187,9 +187,9 @@ int main( int argc, char **argv )
TDECmdLineArgs::addCmdLineOptions( options );
// Add options from other components
KApplication::addCmdLineOptions();
TDEApplication::addCmdLineOptions();
KApplication app;
TDEApplication app;
TDECmdLineArgs* args = TDECmdLineArgs::parsedArgs();

@ -24,7 +24,7 @@
int main(int argc, char **argv)
{
KApplication app( argc, argv, "netaccesstest", true /* it _has_ a GUI ! */);
TDEApplication app( argc, argv, "netaccesstest", true /* it _has_ a GUI ! */);
KURL srcURL( "ftp://ftp.kde.org/pub/kde/README" );
KURL tmpURL( "file:/tmp/netaccesstest_README" );

@ -55,7 +55,7 @@ void PreviewTest::slotFailed()
int main(int argc, char **argv)
{
KApplication app(argc, argv, "previewtest");
TDEApplication app(argc, argv, "previewtest");
PreviewTest *w = new PreviewTest;
w->show();
app.setMainWidget(w);

@ -69,7 +69,7 @@ int main(int argc, char **argv) {
TDECmdLineArgs::addCmdLineOptions( options );
KApplication app;
TDEApplication app;
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();

@ -5011,7 +5011,7 @@ void HTTPProtocol::cleanCache()
{
// Touch file.
utime(TQFile::encodeName(cleanFile), 0);
KApplication::startServiceByDesktopPath("http_cache_cleaner.desktop");
TDEApplication::startServiceByDesktopPath("http_cache_cleaner.desktop");
}
}
@ -5789,7 +5789,7 @@ TQString HTTPProtocol::createDigestAuth ( bool isForProxy )
info.qop = "";
// cnonce is recommended to contain about 64 bits of entropy
info.cnonce = KApplication::randomString(16).latin1();
info.cnonce = TDEApplication::randomString(16).latin1();
// HACK: Should be fixed according to RFC 2617 section 3.2.2
info.nc = "00000001";

@ -42,7 +42,7 @@ extern "C"
int kdemain(int argc, char **argv)
{
KApplication app(argc, argv, "kio_metainfo", false, true);
TDEApplication app(argc, argv, "kio_metainfo", false, true);
if (argc != 4)
{

@ -27,7 +27,7 @@
#ifndef NO_KDE
# include <kapplication.h>
KApplication* theApp;
TDEApplication* theApp;
#else
# include <tqapplication.h>
TQApplication* theApp;
@ -42,7 +42,7 @@
int main( int argc, char **argv )
{
#ifndef NO_KDE
KApplication a(argc,argv,"KFourChildren");
TDEApplication a(argc,argv,"KFourChildren");
#else
TQApplication a(argc,argv);
#endif

@ -81,7 +81,7 @@ int main(int argc,char **argv)
KAboutData aboutData("ghns","Get Hot New Stuff","0.1");
TDECmdLineArgs::init(argc,argv,&aboutData);
KApplication app;
TDEApplication app;
GhnsWidget wid;
app.setMainWidget( &wid );

@ -42,7 +42,7 @@ int main(int argc, char **argv)
TDECmdLineArgs::addCmdLineOptions(op);
args = TDECmdLineArgs::parsedArgs();
KApplication i;
TDEApplication i;
KNS::DownloadDialog d;
if(args->isSet("type")) d.setType(args->getOption("type"));

@ -72,7 +72,7 @@ void KNewStuff::download()
TQString KNewStuff::downloadDestination( Entry * )
{
return KGlobal::dirs()->saveLocation( "tmp" ) +
KApplication::randomString( 10 );
TDEApplication::randomString( 10 );
}
void KNewStuff::upload()

@ -110,7 +110,7 @@ int main(int argc,char **argv)
KAboutData aboutData("knewstufftest","KNewStuff Test","0.1");
TDECmdLineArgs::init(argc,argv,&aboutData);
KApplication app;
TDEApplication app;
MyWidget wid;
app.setMainWidget( &wid );

@ -121,7 +121,7 @@ void Shell::slotFileEdit()
int main( int argc, char **argv )
{
KApplication app( argc, argv, "kpartstest" );
TDEApplication app( argc, argv, "kpartstest" );
Shell *shell = new Shell;

@ -103,7 +103,7 @@ int main( int argc, char **argv )
{
TDECmdLineArgs::init(argc, argv, "ghostviewtest", description, version);
TDECmdLineArgs::addCmdLineOptions( options ); // Add my own options.
KApplication app;
TDEApplication app;
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
Shell *shell = new Shell;
if ( args->count() == 1 )

@ -108,7 +108,7 @@ void Shell::slotFileEdit()
int main( int argc, char **argv )
{
KApplication app( argc, argv, "kpartstest" ); // we cheat and call ourselves kpartstest for Shell::slotFileOpen()
TDEApplication app( argc, argv, "kpartstest" ); // we cheat and call ourselves kpartstest for Shell::slotFileOpen()
Shell *shell = new Shell;

@ -254,7 +254,7 @@ KDE_EXPORT bool RandRScreen::confirm()
// FIXME remember to put the dialog on the right screen
KTimerDialog acceptDialog ( 15000, KTimerDialog::CountDown,
KApplication::kApplication()->mainWidget(),
TDEApplication::kApplication()->mainWidget(),
"mainKTimerDialog",
true,
i18n("Confirm Display Setting Change"),
@ -846,7 +846,7 @@ KDE_EXPORT bool RandRScreen::showTestConfigurationDialog()
// FIXME remember to put the dialog on the right screen
KTimerDialog acceptDialog ( 15000, KTimerDialog::CountDown,
KApplication::kApplication()->mainWidget(),
TDEApplication::kApplication()->mainWidget(),
"mainKTimerDialog",
true,
i18n("Confirm Display Settings"),

@ -45,7 +45,7 @@ ManagerImpl::ManagerImpl( ManagerNotifier *notifier, const TQString &family )
{
kdDebug(5650) << "ManagerImpl::ManagerImpl()" << endl;
mId = KApplication::randomString( 8 );
mId = TDEApplication::randomString( 8 );
// Register with DCOP
if ( !kapp->dcopClient()->isRegistered() ) {

@ -61,7 +61,7 @@ Resource::Resource( const KConfig* config )
d->mName = i18n("resource");
d->mReadOnly = false;
d->mActive = true;
d->mIdentifier = KApplication::randomString( 10 );
d->mIdentifier = TDEApplication::randomString( 10 );
}
}

@ -32,7 +32,7 @@ int main( int argc, char **argv )
KAboutData aboutData( "testresources", "Kresource Test", "0" );
TDECmdLineArgs::init( argc, argv, &aboutData );
KApplication app;
TDEApplication app;
Manager<TestResource> manager( "test" );

@ -159,7 +159,7 @@ void BackgroundTest::slotMisspelling( const TQString& word, int start )
int main( int argc, char** argv )
{
KApplication app(argc, argv, "KSpell2Test");
TDEApplication app(argc, argv, "KSpell2Test");
BackgroundTest test;

@ -30,7 +30,7 @@ using namespace KSpell2;
int main( int argc, char** argv )
{
KApplication app(argc, argv, "KSpell2Test");
TDEApplication app(argc, argv, "KSpell2Test");
Broker::Ptr broker = Broker::openBroker();

@ -26,7 +26,7 @@ using namespace KSpell2;
int main( int argc, char** argv )
{
KApplication app(argc, argv, "KSpell2Test");
TDEApplication app(argc, argv, "KSpell2Test");
SettingsDialog *dialog = new SettingsDialog( 0 );

@ -27,7 +27,7 @@ using namespace KSpell2;
int main( int argc, char** argv )
{
KApplication app(argc, argv, "KSpell2Test");
TDEApplication app(argc, argv, "KSpell2Test");
Broker::Ptr broker = Broker::openBroker();
ConfigDialog *dialog = new ConfigDialog( broker, 0 );

@ -54,7 +54,7 @@ void TestDialog::doneChecking( const TQString& buf )
int main( int argc, char** argv )
{
KApplication app(argc, argv, "KSpell2Test");
TDEApplication app(argc, argv, "KSpell2Test");
TestDialog test;
test.check( "This is a sample buffer. Whih this thingg will "

@ -28,7 +28,7 @@ using namespace KSpell2;
int main( int argc, char** argv )
{
KApplication app(argc, argv, "Filter");
TDEApplication app(argc, argv, "Filter");
TQString buffer = TQString( "This is a sample buffer. Please test me." );

@ -29,7 +29,7 @@
int main( int argc, char** argv )
{
KApplication app(argc, argv, "KSpell2Test");
TDEApplication app(argc, argv, "KSpell2Test");
TQTextEdit *test = new TQTextEdit();
KSpell2::Highlighter *hl = new KSpell2::Highlighter( test );

@ -93,7 +93,7 @@ TQ_EXPORT_PLUGIN(AsteroidStylePlugin);
AsteroidStyle::AsteroidStyle() : KStyle(AllowMenuTransparency)
{
if (tqApp->inherits("KApplication")) {
if (tqApp->inherits("TDEApplication")) {
connect(tqApp, TQT_SIGNAL(kdisplayPaletteChanged()), TQT_SLOT(paletteChanged()));
}

@ -7,7 +7,7 @@
KDE3 port (C) 2001-2002 Maksim Orlovich <mo002j@mail.rochester.edu>
Port version 0.9.7
Palette setup code is from KApplication,
Palette setup code is from TDEApplication,
Copyright (C) 1997 Matthias Kalle Dalheimer (kalle@kde.org)
Copyright (C) 1998, 1999, 2000 KDE Team

@ -6,7 +6,7 @@
KDE3 port (C) 2001 Maksim Orlovich <mo002j@mail.rochester.edu>
Palette setup code is from KApplication,
Palette setup code is from TDEApplication,
Copyright (C) 1997 Matthias Kalle Dalheimer (kalle@kde.org)
Copyright (C) 1998, 1999, 2000 KDE Team

@ -38,7 +38,7 @@ static const char ver[] = "0.9.1";
int main(int argc, char **argv)
{
TDECmdLineArgs::init(argc, argv, "kinstalltheme", I18N_NOOP("KInstalltheme"), desc, ver);
KApplication qapp(false, false); //We don't allow styles.. Kind of ironic, isn't it?
TDEApplication qapp(false, false); //We don't allow styles.. Kind of ironic, isn't it?
KGlobal::dirs()->addResourceType("themercs", KGlobal::dirs()->kde_default("data")+TQString("kstyle/themes"));
TQStringList themercs = KGlobal::dirs()->findAllResources("themercs","*.themerc");

@ -152,7 +152,7 @@ SampleTest - 1 test passed, 1 test failed
*
* TDECmdLineArgs::init(argc, argv, &about);
* TDECmdLineArgs::addCmdLineOptions( options );
* KApplication app;
* TDEApplication app;
*
* KUnitTest::RunnerGUI runner(0);
* runner.show();

@ -177,7 +177,7 @@ KCModule* KCModuleLoader::loadModule(const KCModuleInfo &mod, ErrorReporting rep
*/
if(withfallback)
{
KApplication::startServiceByDesktopPath(mod.fileName(), TQString::null);
TDEApplication::startServiceByDesktopPath(mod.fileName(), TQString::null);
}
else
{

@ -124,7 +124,7 @@ void KFindTest::slotHighlight(int id, int index, int matchedLength)
int main(int argc, char **argv)
{
TDECmdLineArgs::init(argc, argv, "kfindtest", "KFindTest", 0, 0, false);
KApplication app;
TDEApplication app;
TQString text = "This file is part of the KDE project.\n"
"This library is free software; you can redistribute it and/or\n"

@ -253,7 +253,7 @@ static void testReplacementHistory()
int main( int argc, char **argv )
{
TDECmdLineArgs::init(argc, argv, "kreplacetest", 0, 0);
KApplication app;
TDEApplication app;
testReplacementHistory(); // #130831

@ -7,7 +7,7 @@
#include "kwalletbackend.h"
int main(int argc, char **argv) {
KApplication a(argc, argv, "kwalletbackendtest");
TDEApplication a(argc, argv, "kwalletbackendtest");
KWallet::Backend be("ktestwallet");
printf("KWalletBackend constructed\n");

@ -45,7 +45,7 @@ int main( int argc, char *argv[] )
{
KAboutData aboutData( "kwalletasync", "kwalletasync", "version" );
TDECmdLineArgs::init( argc, argv, &aboutData );
KApplication app( "kwalletasync" );
TDEApplication app( "kwalletasync" );
// register with DCOP
_out << "DCOP registration returned " << app.dcopClient()->registerAs(app.name()) << endl;

@ -67,7 +67,7 @@ int main( int argc, char *argv[] )
{
KAboutData aboutData( "kwalletboth", "kwalletboth", "version" );
TDECmdLineArgs::init( argc, argv, &aboutData );
KApplication app( "kwalletboth" );
TDEApplication app( "kwalletboth" );
// register with DCOP
_out << "DCOP registration returned " << app.dcopClient()->registerAs(app.name()) << endl;

@ -25,7 +25,7 @@ int main( int argc, char *argv[] )
{
KAboutData aboutData( "kwalletsync", "kwalletsync", "version" );
TDECmdLineArgs::init( argc, argv, &aboutData );
KApplication app( "kwalletsync" );
TDEApplication app( "kwalletsync" );
// register with DCOP
_out << "DCOP registration returned " << app.dcopClient()->registerAs(app.name()) << endl;

@ -67,7 +67,7 @@ KScreenSaver::KScreenSaver( WId id ) : TQWidget()
if ( w == 0 ) w = 600;
if ( h == 0 ) h = 420;
resize( w, h );
KApplication::sendPostedEvents();
TDEApplication::sendPostedEvents();
show();
}
@ -79,12 +79,12 @@ KScreenSaver::~KScreenSaver()
void KScreenSaver::embed( TQWidget *w )
{
KApplication::sendPostedEvents();
TDEApplication::sendPostedEvents();
#ifdef Q_WS_X11 //FIXME
XReparentWindow(tqt_xdisplay(), w->winId(), winId(), 0, 0);
#endif
w->setGeometry( 0, 0, width(), height() );
KApplication::sendPostedEvents();
TDEApplication::sendPostedEvents();
}
bool KScreenSaver::eventFilter( TQObject *o, TQEvent *e )

@ -98,7 +98,7 @@ KDE_EXPORT int main(int argc, char *argv[])
TDECmdLineArgs::addCmdLineOptions(options);
KApplication app;
TDEApplication app;
KCrash::setCrashHandler( crashHandler );
KGlobal::locale()->insertCatalogue("klock");

@ -92,7 +92,7 @@ void TestService::slotStatusChange()
int main( int argc, char** argv )
{
KApplication app(argc, argv, "testdcop");
TDEApplication app(argc, argv, "testdcop");
TestService * test = new TestService;
Q_UNUSED( test );
return app.exec();

@ -1,5 +1,5 @@
Matthias Kalle Dalheimer <kalle@kde.org>:
classes KConfig, KTextStream, KColorSet, KApplication
classes KConfig, KTextStream, KColorSet, TDEApplication
automake, autoconf, maintenance
Richard Moore <moorer@cs.man.ac.uk>:
@ -40,7 +40,7 @@ Christian Czezatke <e9025461@student.tuwien.ac.at>
KProcess class
Matthias Ettrich <ettrich@kde.org>
KWM, Changes to KApplication and KIconLoader
KWM, Changes to TDEApplication and KIconLoader
Stephan Kulow <coolo@kde.org>
heavy modifications to KURL, autoconf and automake stuff

@ -25,7 +25,7 @@ contrast at all which can lead to a completely unreadable UI.
Color schemes are supported by Qt (see TQColorGroup) and can be
configured on a KDE wide basis from the Control Panel. The settings
are stored in the global KDE configuration file under the "General"
setting. The KApplication class takes care that the configured
setting. The TDEApplication class takes care that the configured
settings are passed on to Qt. Application developers can just use the
values provided by TQColorGroup.

@ -6,7 +6,7 @@ support, site-independent access to the filesystem and a large number
of other (but no less important) things.
<p>
All Trinity applications should link to the tdecore library. Also, using a
KApplication derived class instead of TQApplication is almost
TDEApplication derived class instead of TQApplication is almost
mandatory if you expect your application to behave nicely within the
Trinity environment.

@ -657,7 +657,7 @@ Host[$e]=$(hostname)
KDE3 Kiosk Application API
==========================
Three new methods have been added to KApplication:
Three new methods have been added to TDEApplication:
- bool authorize(QString action); // Generic actions
- bool authorizeKAction(QString action); // For KActions exclusively

@ -30,7 +30,7 @@ ASNs which will stay too long until a timeout ). For improving the quality
of ASN and reducing the number of ASNs that don't detect when the application
has started, some .desktop file entries may be helpful ( see below ).
If you want to start an application in your code, prefer using KRun or
KApplication::startServiceByXXX() calls. Classes like KProcess don't create
TDEApplication::startServiceByXXX() calls. Classes like KProcess don't create
ASN, so if you need to use it, you have to send it manually ( only in case
ASN is useful in this case, it shouldn't be sent e.g. for system processes ).
@ -148,8 +148,8 @@ forks into background, it sends the PID change. That's how compliant
applications should work, and this support for ASN should be provided
by toolkits. All KDE application should be compliant by now, since
tdelibs do all the necessary things. The KDE_STARTUP_ENV variable
is read and unset in KApplication constructor, and _KDE_STARTUP_ID
is set on every toplevel window in KApplication::setTopWidget().
is read and unset in TDEApplication constructor, and _KDE_STARTUP_ID
is set on every toplevel window in TDEApplication::setTopWidget().
However, majority of applications aren't compliant now, and even
if I succeed making this thing a standard ( part of NETWM_SPEC
or whatever ), there still will be old applications that won't behave

@ -71,11 +71,11 @@
// 2) If another widget accepts the AccelOverride, it will expect to get a normal
// Qt generated KeyPress event afterwards. So we let Qt handle the X11 keyboard event
// again. However, this will first generate an AccelOverride event, and we already
// had send that one. To compnesate for this, the global event filter in KApplication
// had send that one. To compnesate for this, the global event filter in TDEApplication
// is instructed to eat the next AccelOveride event. Qt will then send a normal KeyPress
// event and from then on everything is normal again.
//
// kde_g_bKillAccelOverride is used to tell KApplication::notify to eat the next
// kde_g_bKillAccelOverride is used to tell TDEApplication::notify to eat the next
// AccelOverride event.
bool kde_g_bKillAccelOverride = false;
@ -147,7 +147,7 @@ bool KAccelEventHandler::x11Event( XEvent* pEvent )
kapp->sendEvent( kapp->focusWidget(), &ke );
// If the Override event was accepted from a non-KAccel widget,
// then kill the next AccelOverride in KApplication::notify.
// then kill the next AccelOverride in TDEApplication::notify.
if( ke.isAccepted() && !g_bAccelActivated )
kde_g_bKillAccelOverride = true;

@ -24,10 +24,10 @@
#include <kconfig.h>
KAppDCOPInterface::KAppDCOPInterface(KApplication * theKApp)
KAppDCOPInterface::KAppDCOPInterface(TDEApplication * theKApp)
: DCOPObject( "MainApplication-Interface")
{
m_KApplication = theKApp;
m_TDEApplication = theKApp;
}
KAppDCOPInterface::~KAppDCOPInterface()
@ -51,12 +51,12 @@ TQCString KAppDCOPInterface::caption()
void KAppDCOPInterface::quit()
{
m_KApplication->quit();
m_TDEApplication->quit();
}
void KAppDCOPInterface::updateUserTimestamp( ulong time )
{
m_KApplication->updateUserTimestamp( time );
m_TDEApplication->updateUserTimestamp( time );
}
void KAppDCOPInterface::reparseConfiguration()
@ -65,6 +65,6 @@ void KAppDCOPInterface::reparseConfiguration()
}
void KAppDCOPInterface::sendFakeKey( unsigned int keyCode) {
m_KApplication->broadcastKeyCode(keyCode);
m_TDEApplication->broadcastKeyCode(keyCode);
}

@ -26,12 +26,12 @@
#include <dcopref.h>
#include "tdelibs_export.h"
class KApplication;
class TDEApplication;
/**
This is the main interface to the KApplication. This will provide a consistant
This is the main interface to the TDEApplication. This will provide a consistant
dcop interface to all KDE applications that use it.
@short DCOP interface to KApplication.
@short DCOP interface to TDEApplication.
@author Ian Reinhart Geiser <geiseri@yahoo.com>
*/
class TDECORE_EXPORT KAppDCOPInterface : virtual public DCOPObject
@ -41,10 +41,10 @@ K_DCOP
public:
/**
Construct a new interface object.
@param theKapp - The parent KApplication object
@param theKapp - The parent TDEApplication object
that will provide us with the functional interface.
*/
KAppDCOPInterface( KApplication * theKapp );
KAppDCOPInterface( TDEApplication * theKapp );
/**
Destructor
Cleans up the dcop connection.
@ -65,14 +65,14 @@ k_dcop:
void updateUserTimestamp( ulong time );
/**
Send a fake keypress to all KApplication instances
Send a fake keypress to all TDEApplication instances
For internal use in connecting insecure function keys to
KDE applications while the X keyboard is locked.
**/
void sendFakeKey( unsigned int keyCode);
private:
KApplication *m_KApplication;
TDEApplication *m_TDEApplication;
};
#endif

Failā izmaiņas netiks attēlotas, jo tās ir par lielu Ielādēt izmaiņas

@ -48,9 +48,9 @@ class KSessionManaged;
class KStyle;
class KURL;
#define kapp KApplication::kApplication()
#define kapp TDEApplication::kApplication()
class KApplicationPrivate;
class TDEApplicationPrivate;
/**
* Controls and provides information to all KDE applications.
@ -68,10 +68,10 @@ class KApplicationPrivate;
* @li Installs a signal handler for the SIGCHLD signal in order to
* avoid zombie children. If you want to catch this signal yourself or
* don't want it to be caught at all, you have set a new signal handler
* (or SIG_IGN) after KApplication's constructor has run.
* (or SIG_IGN) after TDEApplication's constructor has run.
* @li Installs an empty signal handler for the SIGPIPE signal using
* installSigpipeHandler(). If you want to catch this signal
* yourself, you have set a new signal handler after KApplication's
* yourself, you have set a new signal handler after TDEApplication's
* constructor has run.
* @li It can start new services
*
@ -93,7 +93,7 @@ class KApplicationPrivate;
* @short Controls and provides information to all KDE applications.
* @author Matthias Kalle Dalheimer <kalle@kde.org>
*/
class TDECORE_EXPORT KApplication : public TQApplication, public KInstance
class TDECORE_EXPORT TDEApplication : public TQApplication, public KInstance
{
Q_OBJECT
@ -115,9 +115,9 @@ public:
*
* If ARGB (transparent) widgets are to be used in your application,
* please use
* KApplication app(KApplication::openX11RGBADisplay());
* TDEApplication app(TDEApplication::openX11RGBADisplay());
* or
* KApplication app(KApplication::openX11RGBADisplay(), useStyles);
* TDEApplication app(TDEApplication::openX11RGBADisplay(), useStyles);
*
* @param allowStyles Set to false to disable the loading on plugin based
* styles. This is only useful to applications that do not display a GUI
@ -128,7 +128,7 @@ public:
* @param GUIenabled Set to false to disable all GUI stuff. This implies
* no styles either.
*/
KApplication( bool allowStyles=true, bool GUIenabled=true);
TDEApplication( bool allowStyles=true, bool GUIenabled=true);
#ifdef Q_WS_X11
/**
@ -148,7 +148,7 @@ public:
*
* @see RGBADisplay()
*/
KApplication(Display *display, bool allowStyles);
TDEApplication(Display *display, bool allowStyles);
/**
* Constructor. Parses command-line arguments. Use this constructor when you
@ -177,7 +177,7 @@ public:
*
* @see RGBADisplay()
*/
KApplication(Display *display, bool disable_argb, Qt::HANDLE visual, Qt::HANDLE colormap, bool allowStyles);
TDEApplication(Display *display, bool disable_argb, Qt::HANDLE visual, Qt::HANDLE colormap, bool allowStyles);
/**
* Constructor. Parses command-line arguments. Use this constructor when you
@ -202,11 +202,11 @@ public:
*
* @since KDE 3.3
*/
KApplication(Display *display, Qt::HANDLE visual = 0, Qt::HANDLE colormap = 0,
TDEApplication(Display *display, Qt::HANDLE visual = 0, Qt::HANDLE colormap = 0,
bool allowStyles=true);
/**
* Constructor. Parses command-line arguments. Use this constructor to use KApplication
* Constructor. Parses command-line arguments. Use this constructor to use TDEApplication
* in a Motif or Xt program.
*
* @param display Will be passed to Qt as the X display. The display must be valid and already
@ -229,7 +229,7 @@ public:
* @param GUIenabled Set to false to disable all GUI stuff. This implies
* no styles either.
*/
KApplication(Display *display, int& argc, char** argv, const TQCString& rAppName,
TDEApplication(Display *display, int& argc, char** argv, const TQCString& rAppName,
bool allowStyles=true, bool GUIenabled=true);
#endif
@ -257,7 +257,7 @@ public:
*/
// REMOVE FOR KDE 4.0 - using it only gives crashing applications because
// TDECmdLineArgs::init isn't called
KApplication(int& argc, char** argv,
TDEApplication(int& argc, char** argv,
const TQCString& rAppName, bool allowStyles=true, bool GUIenabled=true) KDE_DEPRECATED;
/**
@ -265,19 +265,19 @@ public:
*/
static void addCmdLineOptions();
virtual ~KApplication();
virtual ~TDEApplication();
/**
* Returns the current application object.
*
* This is similar to the global TQApplication pointer tqApp. It
* allows access to the single global KApplication object, since
* allows access to the single global TDEApplication object, since
* more than one cannot be created in the same application. It
* saves you the trouble of having to pass the pointer explicitly
* to every function that may require it.
* @return the current application object
*/
static KApplication* kApplication() { return KApp; }
static TDEApplication* kApplication() { return KApp; }
/**
* Returns the application session config object.
@ -450,7 +450,7 @@ public:
/**
* Disable automatic dcop registration
* Must be called before creating a KApplication instance to have an effect.
* Must be called before creating a TDEApplication instance to have an effect.
*/
static void disableAutoDcopRegistration();
@ -951,10 +951,10 @@ public:
/**
* @internal
* Opens the display
* This can be used to initialize a KApplication with RGBA support like this:
* KApplication app(KApplication::openX11RGBADisplay());
* This can be used to initialize a TDEApplication with RGBA support like this:
* TDEApplication app(TDEApplication::openX11RGBADisplay());
* or
* KApplication app(KApplication::openX11RGBADisplay(), useStyles);
* TDEApplication app(TDEApplication::openX11RGBADisplay(), useStyles);
*/
static Display* openX11RGBADisplay();
@ -978,7 +978,7 @@ public:
* You must first call getX11RGBAInformation()
*
* Note that getX11RGBAInformation() has already
* been called if you used the default KApplication
* been called if you used the default TDEApplication
* constructor.
*
* Additionally, at least one application must have called
@ -994,7 +994,7 @@ public:
* Enables style plugins.
*
* This is useful only to applications that normally
* do not display a GUI and create the KApplication with
* do not display a GUI and create the TDEApplication with
* allowStyles set to false.
*/
void enableStyles();
@ -1215,7 +1215,7 @@ public:
public slots:
/**
* Tells KApplication about one more operation that should be finished
* Tells TDEApplication about one more operation that should be finished
* before the application exits. The standard behavior is to exit on the
* "last window closed" event, but some events should outlive the last window closed
* (e.g. a file copy for a file manager, or 'compacting folders on exit' for a mail client).
@ -1223,7 +1223,7 @@ public slots:
void ref();
/**
* Tells KApplication that one operation such as those described in ref() just finished.
* Tells TDEApplication that one operation such as those described in ref() just finished.
* The application exits if the counter is back to 0.
*/
void deref();
@ -1232,13 +1232,13 @@ protected:
/**
* @internal Used by KUniqueApplication
*/
KApplication( bool allowStyles, bool GUIenabled, KInstance* _instance );
TDEApplication( bool allowStyles, bool GUIenabled, KInstance* _instance );
#ifdef Q_WS_X11
/**
* @internal Used by KUniqueApplication
*/
KApplication( Display *display, Qt::HANDLE visual, Qt::HANDLE colormap,
TDEApplication( Display *display, Qt::HANDLE visual, Qt::HANDLE colormap,
bool allowStyles, KInstance* _instance );
/**
@ -1252,7 +1252,7 @@ protected:
int kipcEventMask;
/// Current application object.
static KApplication *KApp;
static TDEApplication *KApp;
int pArgc;
/**
@ -1261,8 +1261,8 @@ protected:
*
* @param slot is the slot as returned using the TQT_SLOT() macro, for example TQT_SLOT( cut() )
*
* This method can be used in KApplication subclasses to implement application wide
* edit actions not supported by the KApplication class. For example (in your subclass):
* This method can be used in TDEApplication subclasses to implement application wide
* edit actions not supported by the TDEApplication class. For example (in your subclass):
*
* \code
* void MyApplication::deselect()
@ -1386,7 +1386,7 @@ public:
* Installs a handler for the SIGPIPE signal. It is thrown when you write to
* a pipe or socket that has been closed.
* The handler is installed automatically in the constructor, but you may
* need it if your application or component does not have a KApplication
* need it if your application or component does not have a TDEApplication
* instance.
*/
static void installSigpipeHandler();
@ -1401,7 +1401,7 @@ public:
signals:
/**
* Emitted when KApplication has changed its palette due to a KControl request.
* Emitted when TDEApplication has changed its palette due to a KControl request.
*
* Normally, widgets will update their palette automatically, but you
* should connect to this to program special behavior.
@ -1409,7 +1409,7 @@ signals:
void kdisplayPaletteChanged();
/**
* Emitted when KApplication has changed its GUI style in response to a KControl request.
* Emitted when TDEApplication has changed its GUI style in response to a KControl request.
*
* Normally, widgets will update their styles automatically (as they would
* respond to an explicit setGUIStyle() call), but you should connect to
@ -1418,7 +1418,7 @@ signals:
void kdisplayStyleChanged();
/**
* Emitted when KApplication has changed its font in response to a KControl request.
* Emitted when TDEApplication has changed its font in response to a KControl request.
*
* Normally widgets will update their fonts automatically, but you should
* connect to this to monitor global font changes, especially if you are
@ -1431,7 +1431,7 @@ signals:
void kdisplayFontChanged();
/**
* Emitted when KApplication has changed either its GUI style, its font or its palette
* Emitted when TDEApplication has changed either its GUI style, its font or its palette
* in response to a kdisplay request. Normally, widgets will update their styles
* automatically, but you should connect to this to program special
* behavior. */
@ -1451,7 +1451,7 @@ signals:
/**
* Emitted when the global settings have been changed - see KGlobalSettings
* KApplication takes care of calling reparseConfiguration on KGlobal::config()
* TDEApplication takes care of calling reparseConfiguration on KGlobal::config()
* so that applications/classes using this only have to re-read the configuration
* @param category the category among the enum above
*/
@ -1536,12 +1536,12 @@ private:
int captionLayout;
KApplication(const KApplication&);
KApplication& operator=(const KApplication&);
TDEApplication(const TDEApplication&);
TDEApplication& operator=(const TDEApplication&);
protected:
virtual void virtual_hook( int id, void* data );
private:
KApplicationPrivate* d;
TDEApplicationPrivate* d;
};
@ -1572,7 +1572,7 @@ class KSessionManagedPrivate;
KSessionManaged makes it possible to provide implementations for
TQApplication::commitData() and TQApplication::saveState(), without
subclassing KApplication. KMainWindow internally makes use of this.
subclassing TDEApplication. KMainWindow internally makes use of this.
You don't need to do anything with this class when using
KMainWindow. Instead, use KMainWindow::saveProperties(),
@ -1591,7 +1591,7 @@ public:
/**
See TQApplication::saveState() for documentation.
This function is just a convenience version to avoid subclassing KApplication.
This function is just a convenience version to avoid subclassing TDEApplication.
Return true to indicate a successful state save or false to
indicate a problem and to halt the shutdown process (will
@ -1601,7 +1601,7 @@ public:
/**
See TQApplication::commitData() for documentation.
This function is just a convenience version to avoid subclassing KApplication.
This function is just a convenience version to avoid subclassing TDEApplication.
Return true to indicate a successful commit of data or false to
indicate a problem and to halt the shutdown process (will

@ -32,7 +32,7 @@
#include "shellapi.h"
/**
* MS Windows-related actions for KApplication startup.
* MS Windows-related actions for TDEApplication startup.
*
* - Use Qt translation which will be usable for TQFileDialog
* and other Qt-only GUIs. The "qt_<language>.qm" file should be stored
@ -40,7 +40,7 @@
*
* @internal
*/
void KApplication_init_windows(bool /*GUIenabled*/)
void TDEApplication_init_windows(bool /*GUIenabled*/)
{
TQString qt_transl_file = ::locate( "locale", KGlobal::locale()->language()
+ "/LC_MESSAGES/qt_" + KGlobal::locale()->language() + ".qm" );
@ -54,11 +54,11 @@ void KApplication_init_windows(bool /*GUIenabled*/)
//unsafe; create kapplication_p.h instead!
typedef void* IceIOErrorHandler;
class KApplicationPrivate
class TDEApplicationPrivate
{
public:
KApplicationPrivate();
~KApplicationPrivate();
TDEApplicationPrivate();
~TDEApplicationPrivate();
bool actionRestrictions : 1;
bool guiEnabled : 1;
@ -74,7 +74,7 @@ public:
QAssistantClient* qassistantclient;
};
void KApplication::invokeHelp( const TQString& anchor,
void TDEApplication::invokeHelp( const TQString& anchor,
const TQString& _appname, const TQCString& startup_id ) const
{
if (!d->qassistantclient) {
@ -90,14 +90,14 @@ void KApplication::invokeHelp( const TQString& anchor,
// on win32, for invoking browser we're using win32 API
// see kapplication_win.cpp
void KApplication::invokeBrowser( const TQString &url, const TQCString& startup_id )
void TDEApplication::invokeBrowser( const TQString &url, const TQCString& startup_id )
{
TQCString s = url.latin1();
const unsigned short *l = (const unsigned short *)s.data();
ShellExecuteA(0, "open", s.data(), 0, 0, SW_NORMAL);
}
void KApplication::invokeMailer(const TQString &to, const TQString &cc, const TQString &bcc,
void TDEApplication::invokeMailer(const TQString &to, const TQString &cc, const TQString &bcc,
const TQString &subject, const TQString &body,
const TQString & /*messageFile TODO*/, const TQStringList &attachURLs,
const TQCString& startup_id )

@ -189,7 +189,7 @@ void KClipboardSynchronizer::setReverseSynchronizing( bool enable )
self()->setupSignals();
}
// private, called by KApplication
// private, called by TDEApplication
void KClipboardSynchronizer::newConfiguration( int config )
{
s_sync = (config & Synchronize);

@ -40,7 +40,7 @@ class TDECORE_EXPORT KClipboardSynchronizer : public TQObject
public:
/** Systray widget for manipulating the clipboard. */
friend class KlipperWidget;
friend class KApplication;
friend class TDEApplication;
/**
* Returns the KClipboardSynchronizer singleton object.
@ -115,7 +115,7 @@ private:
private:
// needed by klipper
enum Configuration { Synchronize = 1 };
// called by KApplication upon kipc message, invoked by klipper
// called by TDEApplication upon kipc message, invoked by klipper
static void newConfiguration( int config );
};

@ -188,7 +188,7 @@ TDECmdLineArgs::init(int _argc, char **_argv, const KAboutData *_about, bool noK
win32_slashify(mCwd, PATH_MAX);
#endif
if (!noKApp)
KApplication::addCmdLineOptions();
TDEApplication::addCmdLineOptions();
}
TQString TDECmdLineArgs::cwd()
@ -671,7 +671,7 @@ TDECmdLineArgs::parseAllArgs()
}
/**
* For KApplication only:
* For TDEApplication only:
*
* Return argc
*/
@ -679,7 +679,7 @@ int *
TDECmdLineArgs::tqt_argc()
{
if (!argsList)
KApplication::addCmdLineOptions(); // Lazy bastards!
TDEApplication::addCmdLineOptions(); // Lazy bastards!
static int tqt_argc = -1;
if( tqt_argc != -1 )
@ -702,7 +702,7 @@ TDECmdLineArgs::tqt_argc()
}
/**
* For KApplication only:
* For TDEApplication only:
*
* Return argv
*/
@ -710,7 +710,7 @@ char ***
TDECmdLineArgs::tqt_argv()
{
if (!argsList)
KApplication::addCmdLineOptions(); // Lazy bastards!
TDEApplication::addCmdLineOptions(); // Lazy bastards!
static char** tqt_argv;
if( tqt_argv != NULL )

@ -68,7 +68,7 @@ struct TDECORE_EXPORT KCmdLineOptions
#define KCmdLineLastOption { 0, 0, 0 }
class TDECmdLineArgsList;
class KApplication;
class TDEApplication;
class KUniqueApplication;
class KCmdLineParsedOptions;
class KCmdLineParsedArgs;
@ -107,7 +107,7 @@ class TDECmdLineArgsPrivate;
* ....
*
* // Handle our own options/arguments
* // A KApplication will usually do this in main but this is not
* // A TDEApplication will usually do this in main but this is not
* // necessary.
* // A KUniqueApplication might want to handle it in newInstance().
*
@ -221,7 +221,7 @@ class TDECmdLineArgsPrivate;
*/
class TDECORE_EXPORT TDECmdLineArgs
{
friend class KApplication;
friend class TDEApplication;
friend class KUniqueApplication;
friend class TQPtrList<TDECmdLineArgs>;
public:
@ -242,7 +242,7 @@ public:
* @param _description A short description of what your application is about.
* @param _version A version.
* @param noKApp Set this true to not add commandline options for
* TQApplication / KApplication
* TQApplication / TDEApplication
*
* @since 3.2
*/
@ -270,7 +270,7 @@ public:
* @param _argv As passed to @p main(...).
* @param about A KAboutData object describing your program.
* @param noKApp Set this true to not add commandline options for
* TQApplication / KApplication
* TQApplication / TDEApplication
*/
static void init(int _argc, char **_argv,
const KAboutData *about, bool noKApp = false);
@ -522,8 +522,8 @@ public:
/**
* Reset all option definitions, i.e. cancel all addCmdLineOptions calls.
* Note that KApplication's options are removed too, you might want to
* call KApplication::addCmdLineOptions if you want them back.
* Note that TDEApplication's options are removed too, you might want to
* call TDEApplication::addCmdLineOptions if you want them back.
*
* You usually don't want to call this method.
*/
@ -582,14 +582,14 @@ private:
static void parseAllArgs();
/**
* @internal for KApplication only:
* @internal for TDEApplication only:
*
* Return argc
*/
static int *tqt_argc();
/**
* @internal for KApplication only:
* @internal for TDEApplication only:
*
* Return argv
*/
@ -648,7 +648,7 @@ private:
void load( TQDataStream &);
/**
* @internal for KApplication only
* @internal for TDEApplication only
*
* Initialize class.
*

@ -294,7 +294,7 @@ void KConfig::checkUpdate(const TQString &id, const TQString &updateFile)
{
TQStringList args;
args << "--check" << updateFile;
KApplication::tdeinitExecWait("kconf_update", args);
TDEApplication::tdeinitExecWait("kconf_update", args);
reparseConfiguration();
}
setGroup(oldGroup);

@ -43,7 +43,7 @@ int main( int argc, char **argv )
TDECmdLineArgs::init( argc, argv, &aboutData );
KApplication app;
TDEApplication app;
ExamplePrefsBase configSkeleton( "dummy1", "dummy2" );
configSkeleton.readConfig();

@ -37,7 +37,7 @@ int main( int argc, char **argv )
TDECmdLineArgs::init( argc, argv, &aboutData );
KApplication app;
TDEApplication app;
ExamplePrefsBase *prefs = new ExamplePrefsBase("Trans1", "Folder2");

@ -1178,7 +1178,7 @@ bool KConfigBackEnd::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.
errorMsg += i18n("Please contact your system administrator.");
TQString cmdToExec = KStandardDirs::findExe(TQString("kdialog"));
KApplication *app = kapp;
TDEApplication *app = kapp;
if (!cmdToExec.isEmpty() && app)
{
KProcess lprocess;

@ -1887,7 +1887,7 @@ protected:
/**
* Reads the locale and put in the configuration data struct.
* Note that this should be done in the constructor, but this is not
* possible due to some mutual dependencies in KApplication::init()
* possible due to some mutual dependencies in TDEApplication::init()
*/
void setLocale();

@ -176,7 +176,7 @@ KCrash::defaultCrashHandler (int sig)
// we have already tested this
argv[i++] = "--appname";
argv[i++] = appName;
if (KApplication::loadedByKdeinit)
if (TDEApplication::loadedByKdeinit)
argv[i++] = "--tdeinit";
// only add apppath if it's not NULL

@ -81,7 +81,7 @@ static TQCString getDescrFromNum(unsigned int _num)
{
if (!KDebugCache) {
kdd.setObject(KDebugCache, new TQIntDict<KDebugEntry>( 601 ));
// Do not call this deleter from ~KApplication
// Do not call this deleter from ~TDEApplication
KGlobal::unregisterStaticDeleter(&kdd);
KDebugCache->setAutoDelete(true);
}
@ -175,7 +175,7 @@ static void kDebugBackend( unsigned short nLevel, unsigned int nArea, const char
if ( !kDebug_data )
{
pcd.setObject(kDebug_data, new kDebugPrivate());
// Do not call this deleter from ~KApplication
// Do not call this deleter from ~TDEApplication
KGlobal::unregisterStaticDeleter(&pcd);
// create the dcop interface if it has not been created yet

@ -49,7 +49,7 @@ int main(int argc, char **argv)
TDECmdLineArgs::init(argc, argv, &about);
TDECmdLineArgs::addCmdLineOptions( options );
KApplication app;
TDEApplication app;
KConfig config("twinrc", true);
config.setGroup( "Notification Messages" );

@ -242,7 +242,7 @@ int TDECORE_EXPORT kasciistricmp( const char *str1, const char *str2 );
* of other (but no less important) things.
*
* All KDE applications should link to the tdecore library. Also, using a
* KApplication derived class instead of TQApplication is almost
* TDEApplication derived class instead of TQApplication is almost
* mandatory if you expect your application to behave nicely within the
* KDE environment.
*/

@ -266,7 +266,7 @@ TQColor KGlobalSettings::buttonTextColor()
// IMPORTANT:
// This function should be kept in sync with
// KApplication::kdisplaySetPalette()
// TDEApplication::kdisplaySetPalette()
TQColor KGlobalSettings::baseColor()
{
KConfigGroup g( KGlobal::config(), "General" );
@ -275,7 +275,7 @@ TQColor KGlobalSettings::baseColor()
// IMPORTANT:
// This function should be kept in sync with
// KApplication::kdisplaySetPalette()
// TDEApplication::kdisplaySetPalette()
TQColor KGlobalSettings::textColor()
{
KConfigGroup g( KGlobal::config(), "General" );
@ -284,7 +284,7 @@ TQColor KGlobalSettings::textColor()
// IMPORTANT:
// This function should be kept in sync with
// KApplication::kdisplaySetPalette()
// TDEApplication::kdisplaySetPalette()
TQColor KGlobalSettings::highlightedTextColor()
{
KConfigGroup g( KGlobal::config(), "General" );
@ -293,7 +293,7 @@ TQColor KGlobalSettings::highlightedTextColor()
// IMPORTANT:
// This function should be kept in sync with
// KApplication::kdisplaySetPalette()
// TDEApplication::kdisplaySetPalette()
TQColor KGlobalSettings::highlightColor()
{
initColors();

@ -543,15 +543,15 @@ private:
*/
static void initColors();
/**
* drop cached values for fonts (called by KApplication)
* drop cached values for fonts (called by TDEApplication)
*/
static void rereadFontSettings();
/**
* drop cached values for paths (called by KApplication)
* drop cached values for paths (called by TDEApplication)
*/
static void rereadPathSettings();
/**
* drop cached values for mouse settings (called by KApplication)
* drop cached values for mouse settings (called by TDEApplication)
*/
static void rereadMouseSettings();
@ -578,7 +578,7 @@ private:
static TQColor * alternateColor;
static KMouseSettings *s_mouseSettings;
friend class KApplication;
friend class TDEApplication;
};
#endif

@ -88,7 +88,7 @@ public:
* Usually, you use the default iconloader, which can be accessed via
* KGlobal::iconLoader(), so you hardly ever have to create an
* iconloader object yourself. That one is the current KInstance's
* (typically KApplication's) iconloader.
* (typically TDEApplication's) iconloader.
* @see KGlobal::iconLoader()
* @see KInstance::iconLoader()
*/

@ -55,12 +55,12 @@ class TDECORE_EXPORT KInstance
/**
* Constructor.
* When building a KInstance that is not your KApplication,
* When building a KInstance that is not your TDEApplication,
* make sure that the KAboutData and the KInstance have the same life time.
* You have to destroy both, since the instance doesn't own the about data.
* Don't build a KAboutData on the stack in this case !
* Building a KAboutData on the stack is only ok for usage with
* TDECmdLineArgs and KApplication (not destroyed until the app exits).
* TDECmdLineArgs and TDEApplication (not destroyed until the app exits).
* @param aboutData data about this instance (see KAboutData)
*/
KInstance( const KAboutData * aboutData );

@ -37,13 +37,13 @@
* Communications Protocol.
*
* Messages with id code < 32 are called "System Messages". These are
* directly handled by KApplication. Examples are: PaletteChanged and
* StyleChanged. Messages with id code >= 32 are user messages. KApplication
* directly handled by TDEApplication. Examples are: PaletteChanged and
* StyleChanged. Messages with id code >= 32 are user messages. TDEApplication
* emits the signal kipcMessage(id,arg) for each user message it receives.
*
* KIPC is implemented using X11 ClientMessage events.
*
* @see KApplication::kipcMessage()
* @see TDEApplication::kipcMessage()
* @author Geert Jansen <jansen@kde.org>
*/
class TDECORE_EXPORT KIPC

@ -255,7 +255,7 @@ public:
/**
* @internal
* Internal Method, called by the KApplication destructor.
* Internal Method, called by the TDEApplication destructor.
* Do not call it.
* This is what makes it possible to rely on ~KLibFactory
* being called in all cases, whether the library is unloaded

@ -336,7 +336,7 @@ KLockFile::LockResult KLockFile::lock(int options)
struct timeval tv;
tv.tv_sec = 0;
tv.tv_usec = n*((KApplication::random() % 200)+100);
tv.tv_usec = n*((TDEApplication::random() % 200)+100);
if (n < 2000)
n = n * 2;

@ -32,7 +32,7 @@ class KInstance;
* An extension to TQMimeSourceFactory that uses KIconLoader to
* find images.
*
* Normally you don't have to instantiate this class at all, KApplication does that for
* Normally you don't have to instantiate this class at all, TDEApplication does that for
* you automagically and sets TQMimeSourceFactory::setDefaultFactory().
*
* @author Peter Putzer <putzer@kde.org>

@ -241,7 +241,7 @@ bool KNotifyClient::startDaemon()
if (!kapp->dcopClient()->isApplicationRegistered(daemonName)) {
if( firstTry ) {
firstTry = false;
return KApplication::startServiceByDesktopName(daemonName) == 0;
return TDEApplication::startServiceByDesktopName(daemonName) == 0;
}
return false;
}
@ -296,7 +296,7 @@ public:
else if (!m_instances.isEmpty())
{
kdWarning(160) << "Tried to remove an Instance that is not the current," << endl;
kdWarning(160) << "Resetting to the main KApplication." << endl;
kdWarning(160) << "Resetting to the main TDEApplication." << endl;
m_instances.clear();
}
else

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

@ -32,7 +32,7 @@ class TQSocketNotifier;
* @author Christian Czezatke <e9025461@student.tuwien.ac.at>
*
* A class for internal use by KProcess only. -- Exactly one instance
* of this class is created by KApplication.
* of this class is created by TDEApplication.
*
* This class takes care of the actual (UN*X) signal handling.
*/
@ -43,13 +43,13 @@ class TDECORE_EXPORT KProcessController : public TQObject
public:
/**
* Create an instance if none exists yet.
* Called by KApplication::KApplication()
* Called by TDEApplication::TDEApplication()
*/
static void ref();
/**
* Destroy the instance if one exists and it is not referenced any more.
* Called by KApplication::~KApplication()
* Called by TDEApplication::~TDEApplication()
*/
static void deref();

@ -78,7 +78,7 @@ void KRandomSequence::setSeed( long lngSeed1 )
}
else if (lngSeed1 == 0)
{
m_lngSeed1 = -((KApplication::random() & ~1)+1);
m_lngSeed1 = -((TDEApplication::random() & ~1)+1);
}
else
{

@ -50,7 +50,7 @@ public:
*
* @param lngSeed Seed to initialize the sequence with.
* If lngSeed is 0, the sequence is initialized with a value from
* KApplication::random().
* TDEApplication::random().
*/
KRandomSequence( long lngSeed = 0 );
@ -73,7 +73,7 @@ public:
* Restart the sequence based on lngSeed.
* @param lngSeed Seed to initialize the sequence with.
* If lngSeed is 0, the sequence is initialized with a value from
* KApplication::random().
* TDEApplication::random().
*/
void setSeed( long lngSeed = 0 );

@ -91,12 +91,12 @@ class KStandardDirsPrivate;
* @li socket - UNIX Sockets (specific for both current host and current user)
* @li emoticons - Emoticons themes (Since KDE 3.4)
*
* A type that is added by the class KApplication if you use it, is
* A type that is added by the class TDEApplication if you use it, is
* appdata. This one makes the use of the type data a bit easier as it
* appends the name of the application.
* So while you had to ::locate("data", "appname/filename") so you can
* also write ::locate("appdata", "filename") if your KApplication instance
* is called "appname" (as set via KApplication's constructor or KAboutData, if
* also write ::locate("appdata", "filename") if your TDEApplication instance
* is called "appname" (as set via TDEApplication's constructor or KAboutData, if
* you use the global KStandardDirs object KGlobal::dirs()).
* Please note though that you cannot use the "appdata"
* type if you intend to use it in an applet for Kicker because 'appname' would

@ -129,9 +129,9 @@ KStartupInfo::KStartupInfo( bool clean_on_cantdetect_P, TQObject* parent_P, cons
void KStartupInfo::init( int flags_P )
{
// d == NULL means "disabled"
if( !KApplication::kApplication())
if( !TDEApplication::kApplication())
return;
if( !KApplication::kApplication()->getDisplay())
if( !TDEApplication::kApplication()->getDisplay())
return;
d = new KStartupInfoPrivate( flags_P );
@ -171,7 +171,7 @@ void KStartupInfo::got_message( const TQString& msg_P )
// if the application stops responding for a while, KWinModule may get
// the information about the already mapped window before KXMessages
// actually gets the info about the started application (depends
// on their order in X11 event filter in KApplication)
// on their order in X11 event filter in TDEApplication)
// simply delay info from KWinModule a bit
// SELI???
namespace
@ -494,7 +494,7 @@ bool KStartupInfo::sendFinishX( Display* disp_P, const KStartupInfoId& id_P,
void KStartupInfo::appStarted()
{
if( kapp != NULL ) // KApplication constructor unsets the env. variable
if( kapp != NULL ) // TDEApplication constructor unsets the env. variable
appStarted( kapp->startupId());
else
appStarted( KStartupInfo::currentStartupIdEnv().id());

@ -248,8 +248,8 @@ class TDECORE_EXPORT KStartupInfo
/**
* Returns the current startup notification identification for the current
* startup notification environment variable. Note that KApplication constructor
* unsets the variable and you have to use KApplication::startupId .
* startup notification environment variable. Note that TDEApplication constructor
* unsets the variable and you have to use TDEApplication::startupId .
* @return the current startup notification identification
*/
static KStartupInfoId currentStartupIdEnv();

@ -333,7 +333,7 @@ TQDataStream * KSycoca::findFactory(KSycocaFactoryId id)
{
triedLaunchingKdeinit = true;
kdDebug(7011) << "findFactory: we have no database.... launching tdeinit" << endl;
KApplication::startKdeinit();
TDEApplication::startKdeinit();
// Ok, the new database should be here now, open it.
}
if (!openDatabase(false))

@ -72,7 +72,7 @@ bool
KTempDir::create(const TQString &directoryPrefix, int mode)
{
// make sure the random seed is randomized
(void) KApplication::random();
(void) TDEApplication::random();
TQCString nme = TQFile::encodeName(directoryPrefix) + "XXXXXX";
char *realName;

@ -93,7 +93,7 @@ KTempFile::create(const TQString &filePrefix, const TQString &fileExtension,
int mode)
{
// make sure the random seed is randomized
(void) KApplication::random();
(void) TDEApplication::random();
TQCString ext = TQFile::encodeName(fileExtension);
TQCString nme = TQFile::encodeName(filePrefix) + "XXXXXX" + ext;

@ -187,7 +187,7 @@ KUniqueApplication::start()
#ifdef Q_WS_X11
// say we're up and running ( probably no new window will appear )
KStartupInfoId id;
if( kapp != NULL ) // KApplication constructor unsets the env. variable
if( kapp != NULL ) // TDEApplication constructor unsets the env. variable
id.initId( kapp->startupId());
else
id = KStartupInfo::currentStartupIdEnv();
@ -211,7 +211,7 @@ KUniqueApplication::start()
{
#ifdef Q_WS_X11
KStartupInfoId id;
if( kapp != NULL ) // KApplication constructor unsets the env. variable
if( kapp != NULL ) // TDEApplication constructor unsets the env. variable
id.initId( kapp->startupId());
else
id = KStartupInfo::currentStartupIdEnv();
@ -274,7 +274,7 @@ KUniqueApplication::start()
TQCString new_asn_id;
#if defined Q_WS_X11
KStartupInfoId id;
if( kapp != NULL ) // KApplication constructor unsets the env. variable
if( kapp != NULL ) // TDEApplication constructor unsets the env. variable
id.initId( kapp->startupId());
else
id = KStartupInfo::currentStartupIdEnv();
@ -315,7 +315,7 @@ KUniqueApplication::start()
KUniqueApplication::KUniqueApplication(bool allowStyles, bool GUIenabled, bool configUnique)
: KApplication( allowStyles, GUIenabled, initHack( configUnique )),
: TDEApplication( allowStyles, GUIenabled, initHack( configUnique )),
DCOPObject(TDECmdLineArgs::about->appName())
{
d = new KUniqueApplicationPrivate;
@ -331,7 +331,7 @@ KUniqueApplication::KUniqueApplication(bool allowStyles, bool GUIenabled, bool c
#ifdef Q_WS_X11
KUniqueApplication::KUniqueApplication(Display *display, Qt::HANDLE visual,
Qt::HANDLE colormap, bool allowStyles, bool configUnique)
: KApplication( display, visual, colormap, allowStyles, initHack( configUnique )),
: TDEApplication( display, visual, colormap, allowStyles, initHack( configUnique )),
DCOPObject(TDECmdLineArgs::about->appName())
{
d = new KUniqueApplicationPrivate;
@ -489,7 +489,7 @@ void KUniqueApplication::setHandleAutoStarted()
}
void KUniqueApplication::virtual_hook( int id, void* data )
{ KApplication::virtual_hook( id, data );
{ TDEApplication::virtual_hook( id, data );
DCOPObject::virtual_hook( id, data ); }
#include "kuniqueapplication.moc"

@ -42,10 +42,10 @@ class KUniqueApplicationPrivate;
* option (see TDECmdLineArgs::addTempFileOption()), to delete tempfiles after use.
* Add X-TDE-HasTempFileOption=true to the .desktop file to indicate this.
*
* @see KApplication DCOPObject
* @see TDEApplication DCOPObject
* @author Preston Brown <pbrown@kde.org>
*/
class TDECORE_EXPORT KUniqueApplication : public KApplication, public DCOPObject
class TDECORE_EXPORT KUniqueApplication : public TDEApplication, public DCOPObject
{
Q_OBJECT
public:
@ -56,7 +56,7 @@ public:
* styles. This is only useful to applications that do not display a GUI
* normally. If you do create an application with @p allowStyles set to false
* it normally runs in the background but under special circumstances
* displays widgets. Call KApplication::enableStyles() before
* displays widgets. Call TDEApplication::enableStyles() before
* displaying any widgets.
* @param GUIenabled Set to false to disable all GUI stuff. This implies
* no styles either.
@ -82,7 +82,7 @@ public:
* styles. This is only useful to applications that do not display a GUI
* normally. If you do create an application with @p allowStyles set to false
* it normally runs in the background but under special circumstances
* displays widgets. Call KApplication::enableStyles() before
* displays widgets. Call TDEApplication::enableStyles() before
* displaying any widgets.
* @param configUnique If true, the uniqueness of the application will
* depend on the value of the "MultipleInstances"

@ -1,7 +1,7 @@
# KDE namespace check file
# tdelibs classes
KApplication::*
TDEApplication::*
# these should preferably go in some namespace in KDE4
kDebugPrivate::*

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

@ -18,7 +18,7 @@ TQString KIDLTest::hello( const TQString& name )
int main( int argc, char** argv )
{
KApplication app( argc, argv, "kidlservertest", false /* No GUI */ );
TDEApplication app( argc, argv, "kidlservertest", false /* No GUI */ );
app.dcopClient()->attach();
app.dcopClient()->registerAs( "kidlservertest" );

@ -5,7 +5,7 @@
int main( int argc, char** argv )
{
KApplication app( argc, argv, "KIDLTestClient", false /* No GUI */ );
TDEApplication app( argc, argv, "KIDLTestClient", false /* No GUI */ );
kapp->dcopClient()->attach();
// kapp->dcopClient()->registerAs( "kidlclienttest" );

@ -4,7 +4,7 @@
int main( int argc, char** argv )
{
KApplication app( argc, argv, "KIDLTestClient", false );
TDEApplication app( argc, argv, "KIDLTestClient", false );
kapp->dcopClient()->attach();
// kapp->dcopClient()->registerAs( "kidlclienttest" );

@ -31,10 +31,10 @@ main(int argc, char *argv[])
KAboutData about("kapptest", "kapptest", "version");
TDECmdLineArgs::init(argc, argv, &about);
KApplication a;
TDEApplication a;
KSycoca *s = KSycoca::self();
tqWarning("s->language() %s", s->language().latin1());
tqWarning("Offset of aIconName: %ld", (long) &(static_cast<KApplication *>(0)->aIconName));
tqWarning("Offset of aIconName: %ld", (long) &(static_cast<TDEApplication *>(0)->aIconName));
}

@ -44,7 +44,7 @@ int main(int argc, char **argv) {
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
KApplication app(false, false);
TDEApplication app(false, false);
TQStringList lst = KCalendarSystemFactory::calendarSystems();
kdDebug() << "Supported calendar types: " << endl;

@ -31,7 +31,7 @@ main(int argc, char *argv[])
// MyWidget::addCmdLineOptions();
KApplication k( false, false /*true, true*/ );
TDEApplication k( false, false /*true, true*/ );
// Get application specific arguments
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
@ -81,7 +81,7 @@ main(int argc, char *argv[])
{
TDECmdLineArgs::init( argc, argv, "testapp", description, version);
KApplication k( true, true );
TDEApplication k( true, true );
k.exec();
return 0;

@ -192,7 +192,7 @@ void KConfigTestView::writeButtonClicked()
int main( int argc, char **argv )
{
KApplication a( argc, argv, "bla" );
TDEApplication a( argc, argv, "bla" );
KConfigTestView *w = new KConfigTestView();
a.setMainWidget( w );

@ -53,9 +53,9 @@ void testkasciistricmp()
int main(int argc, char *argv[])
{
KApplication::disableAutoDcopRegistration();
TDEApplication::disableAutoDcopRegistration();
TDECmdLineArgs::init( argc, argv, "kglobaltest", 0, 0, 0, 0 );
KApplication app( false, false );
TDEApplication app( false, false );
testkasciistricmp();

@ -7,7 +7,7 @@
int main(int argc, char *argv[])
{
KApplication app(argc,argv,"kiconloadertest"/*,false,false*/);
TDEApplication app(argc,argv,"kiconloadertest"/*,false,false*/);
KIconLoader * mpLoader = KGlobal::iconLoader();
KIcon::Context mContext = KIcon::Application;

@ -18,7 +18,7 @@ MyObject::MyObject()
int main(int argc, char **argv)
{
KApplication app(argc, argv, "kipc");
TDEApplication app(argc, argv, "kipc");
if (argc == 3)
{

@ -100,7 +100,7 @@ void Test::createFields()
int main( int argc, char ** argv )
{
KLocale::setMainCatalogue("tdelibs");
KApplication a( argc, argv, "klocaletest" );
TDEApplication a( argc, argv, "klocaletest" );
KGlobal::locale()->setLanguage(TQString::fromLatin1("en_US"));
KGlobal::locale()->setCountry(TQString::fromLatin1("C"));

@ -52,7 +52,7 @@ protected:
int main(int argc, char *argv[])
{
TDECmdLineArgs::init(argc, argv, ":", "", "", "");
KApplication app(false,false);
TDEApplication app(false,false);
TQString s, s2;
TQMap<TQChar,TQStringList> map1;

@ -339,7 +339,7 @@ int main (int argc, char *argv[])
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
int count = args->count();
KApplication app;
TDEApplication app;
if (!count)
{

@ -235,9 +235,9 @@ int main(int argc, char *argv[])
}
// showMem("second");
KApplication app(argc,argv,"kurltest");
TDEApplication app(argc,argv,"kurltest");
// showMem("After KApplication constructor");
// showMem("After TDEApplication constructor");
// malloc(10*1024);

@ -3,7 +3,7 @@
int main( int argc, char **argv )
{
KApplication app( argc, argv, "knotifytest" );
TDEApplication app( argc, argv, "knotifytest" );
KNotifyClient::userEvent( "This is a notification to notify you :)",
KNotifyClient::Messagebox,
KNotifyClient::Error );

@ -34,7 +34,7 @@ int main(int argc, char *argv[])
{
KProcess p1, p2, p3, p4;
Dummy dummy;
KApplication app(argc, argv, "kprocesstest");
TDEApplication app(argc, argv, "kprocesstest");
printf("Welcome to the KProcess Demo Application!\n");

@ -32,7 +32,7 @@ werke\nmerkt\nich\nund\nden\nbrauch\nund\nmit\ngeistesstaerke\ntu\nich\nwunder\n
int main(int argc, char *argv[])
{
Dummy dummy;
KApplication app(argc, argv, "kprociotest");
TDEApplication app(argc, argv, "kprociotest");
printf("Welcome to the KProcIO Demo Application!\n");

@ -26,7 +26,7 @@
int
main(int argc, char *argv[])
{
KApplication a(argc, argv, "krandomsequencetest");
TDEApplication a(argc, argv, "krandomsequencetest");
long seed;
KRandomSequence seq;

@ -21,7 +21,7 @@ bool check(TQString txt, time_t a, time_t b)
int main(int argc, char *argv[])
{
KApplication app(argc,argv,"kurltest",false,false);
TDEApplication app(argc,argv,"kurltest",false,false);
time_t a;
time_t b;

@ -20,7 +20,7 @@
int main( int argc, char **argv )
{
KApplication a( argc, argv, "kconfigtest" );
TDEApplication a( argc, argv, "kconfigtest" );
KSimpleConfig aConfig( _PATH_TMP"/simpleconfig.cfg" );

@ -59,9 +59,9 @@ main(int argc, char *argv[])
{
KAboutData about("socktest", "SockTest", "version");
TDECmdLineArgs::init(argc, argv, &about);
KApplication::addCmdLineOptions();
TDEApplication::addCmdLineOptions();
KApplication app;
TDEApplication app;
TQString host, port;

@ -23,8 +23,8 @@ static bool check(TQString txt, TQString a, TQString b)
int main(int argc, char *argv[])
{
KApplication::disableAutoDcopRegistration();
KApplication app(argc,argv,"kstdacceltest",false,false);
TDEApplication::disableAutoDcopRegistration();
TDEApplication app(argc,argv,"kstdacceltest",false,false);
check( "shortcutDefault FullScreen", KStdAccel::shortcutDefault( KStdAccel::FullScreen ).toString(), "Ctrl+Shift+F" );
check( "shortcutDefault BeginningOfLine", KStdAccel::shortcutDefault( KStdAccel::BeginningOfLine ).toString(), "Home" );

@ -6,7 +6,7 @@
int main(int argc, char **argv)
{
KApplication a(argc, argv, "whatever", false);
TDEApplication a(argc, argv, "whatever", false);
KStandardDirs t;
KConfig config; // to add custom entries - a bit tricky :/

@ -28,8 +28,8 @@
int
main(int argc, char *argv[])
{
KApplication a(argc, argv, "ktempfiletest");
printf("Making tempfile after KApplication constructor.\n");
TDEApplication a(argc, argv, "ktempfiletest");
printf("Making tempfile after TDEApplication constructor.\n");
KTempFile f4;
printf("Filename = %s\n", f4.name().ascii());

@ -81,9 +81,9 @@ void testAdjustPath()
int main(int argc, char *argv[])
{
KApplication::disableAutoDcopRegistration();
TDEApplication::disableAutoDcopRegistration();
TDECmdLineArgs::init( argc, argv, "kurltest", 0, 0, 0, 0 );
KApplication app( false, false );
TDEApplication app( false, false );
KURL::List lst;

@ -30,7 +30,7 @@ main(int argc, char *argv[])
KAboutData about("kapptest", "kapptest", "version");
TDECmdLineArgs::init(argc, argv, &about);
KApplication a;
TDEApplication a;
TQString error;
TQCString dcopService;

@ -73,7 +73,7 @@ int main(int argc, char *argv[])
tqDebug("qt arg[%d] = %s", i, qtargs->arg(i));
}
KApplication app;
TDEApplication app;
TDECmdLineArgs *kdeargs = TDECmdLineArgs::parsedArgs("tde");
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();

@ -536,10 +536,10 @@ int main_console(int argc, char **argv)
case MODE_TDE_AUTOADD_ICON:
{
printf("Searching for standard icon for name %s in the following directories:\n\r", argv[PARAM_ICON_NAME]);
KApplication::disableAutoDcopRegistration();
TDEApplication::disableAutoDcopRegistration();
KAboutData aboutd("tdelfeditor", "tdelfeditor", "0.0.1");
TDECmdLineArgs::init(&aboutd);
KApplication app(false, false);
TDEApplication app(false, false);
TQStringList rds = KGlobal::dirs()->resourceDirs("icon");
for ( TQStringList::Iterator it = rds.begin(); it != rds.end(); ++it ) {

@ -36,7 +36,7 @@ extern "C" KDE_EXPORT int kdemain(int argc, char *argv[])
I18N_NOOP("A CUPS configuration tool"),
I18N_NOOP("A CUPS configuration tool"),"0.0.1");
TDECmdLineArgs::addCmdLineOptions(options);
KApplication app;
TDEApplication app;
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
KURL configfile;

@ -362,7 +362,7 @@ bool KMManager::uncompressFile(const TQString& filename, TQString& destname)
if ((uchar)(buf[0]) == 037 && (uchar)(buf[1]) == 0213)
{
f.close();
destname = locateLocal("tmp","tdeprint_") + KApplication::randomString(8);
destname = locateLocal("tmp","tdeprint_") + TDEApplication::randomString(8);
f.setName(destname);
if (f.open(IO_WriteOnly))

@ -296,7 +296,7 @@ TQString KPrinterImpl::tempFile()
{
TQString f;
// be sure the file doesn't exist
do f = locateLocal("tmp","tdeprint_") + KApplication::randomString(8); while (TQFile::exists(f));
do f = locateLocal("tmp","tdeprint_") + TDEApplication::randomString(8); while (TQFile::exists(f));
return f;
}

@ -21,7 +21,7 @@ extern "C" KDE_EXPORT int kdemain(int argc, char *argv[])
KGlobal::locale()->setMainCatalogue("tdelibs");
KApplication app;
TDEApplication app;
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
bool doConfig = args->isSet("tdeconfig");
bool doSrvConfig = args->isSet("serverconfig");

@ -133,7 +133,7 @@ void KMWDriverTest::slotTest()
{
if (!m_printer) return;
TQString name = "tmpprinter_"+KApplication::randomString(8);
TQString name = "tmpprinter_"+TDEApplication::randomString(8);
// save printer name (can be non empty when modifying a printer)
TQString oldname = m_printer->name();

@ -245,7 +245,7 @@ void DrawView::resizeEvent( TQResizeEvent * )
int main( int argc, char **argv )
{
KApplication app( argc, argv, "drawdemo" );
TDEApplication app( argc, argv, "drawdemo" );
DrawView draw;
app.setMainWidget( &draw );
draw.show();

@ -17,7 +17,7 @@
int main( int argc, char ** argv )
{
KApplication a(argc, argv, "helpviewer");
TDEApplication a(argc, argv, "helpviewer");
TQString home;
if (argc > 1)

@ -10,7 +10,7 @@ Maintainer of KPixmapEffect, KStyle, KThemeStyle, and KThemeBase - as well as
general misc coding here and there.
Matthias Kalle Dalheimer <kalle@kde.org>:
classes KApplication, KConfig, KTextStream, KColorSet,
classes TDEApplication, KConfig, KTextStream, KColorSet,
automake, autoconf, maintenance
Richard Moore <moorer@cs.man.ac.uk>:

@ -1133,7 +1133,7 @@ void KAction::slotPopupActivated()
state = kpm->state();
else { // just a QPopupMenu? We'll ask for the state now then (small race condition?)
kdDebug(129) << "KAction::slotPopupActivated not a KPopupMenu -> using keyboardMouseState()" << endl;
state = KApplication::keyboardMouseState();
state = TDEApplication::keyboardMouseState();
}
emit activated( KAction::PopupMenuActivation, state );
slotActivated();

@ -186,7 +186,7 @@ void KDETrayProxy::withdrawWindow( Window w )
int main( int argc, char* argv[] )
{
TDECmdLineArgs::init( argc, argv, "a", "b", "c", "d" );
KApplication app( false ); // no styles
TDEApplication app( false ); // no styles
app.disableSessionManagement();
KDETrayProxy proxy;
return app.exec();

@ -65,7 +65,7 @@ KIconView::KIconView( TQWidget *parent, const char *name, WFlags f )
this, TQT_SLOT( slotOnViewport() ) );
connect( this, TQT_SIGNAL( onItem( TQIconViewItem * ) ),
this, TQT_SLOT( slotOnItem( TQIconViewItem * ) ) );
slotSettingsChanged( KApplication::SETTINGS_MOUSE );
slotSettingsChanged( TDEApplication::SETTINGS_MOUSE );
if ( kapp ) { // maybe null when used inside designer
connect( kapp, TQT_SIGNAL( settingsChanged(int) ), TQT_SLOT( slotSettingsChanged(int) ) );
kapp->addKipcEventMask( KIPC::SettingsChanged );
@ -123,7 +123,7 @@ void KIconView::slotOnViewport()
void KIconView::slotSettingsChanged(int category)
{
if ( category != KApplication::SETTINGS_MOUSE )
if ( category != TDEApplication::SETTINGS_MOUSE )
return;
m_bUseSingle = KGlobalSettings::singleClick();
//kdDebug() << "KIconView::slotSettingsChanged for mouse, usesingle=" << m_bUseSingle << endl;
@ -167,7 +167,7 @@ void KIconView::slotAutoSelect()
if( !hasFocus() )
setFocus();
ButtonState keybstate = KApplication::keyboardMouseState();
ButtonState keybstate = TDEApplication::keyboardMouseState();
TQIconViewItem* previousItem = currentItem();
setCurrentItem( m_pCurrentItem );
@ -243,7 +243,7 @@ void KIconView::emitExecute( TQIconViewItem *item, const TQPoint &pos )
return;
}
ButtonState keybstate = KApplication::keyboardMouseState();
ButtonState keybstate = TDEApplication::keyboardMouseState();
m_pAutoSelect->stop();

@ -595,7 +595,7 @@ void KKeyChooser::readGlobalKeys( TQMap< TQString, KShortcut >& map )
void KKeyChooser::slotSettingsChanged( int category )
{
if( category == KApplication::SETTINGS_SHORTCUTS )
if( category == TDEApplication::SETTINGS_SHORTCUTS )
readGlobalKeys(); // reread
}

@ -34,7 +34,7 @@ KListBox::KListBox( TQWidget *parent, const char *name, WFlags f )
this, TQT_SLOT( slotOnViewport() ) );
connect( this, TQT_SIGNAL( onItem( TQListBoxItem * ) ),
this, TQT_SLOT( slotOnItem( TQListBoxItem * ) ) );
slotSettingsChanged(KApplication::SETTINGS_MOUSE);
slotSettingsChanged(TDEApplication::SETTINGS_MOUSE);
if (kapp)
{
connect( kapp, TQT_SIGNAL( settingsChanged(int) ), TQT_SLOT( slotSettingsChanged(int) ) );
@ -71,7 +71,7 @@ void KListBox::slotOnViewport()
void KListBox::slotSettingsChanged(int category)
{
if (category != KApplication::SETTINGS_MOUSE)
if (category != TDEApplication::SETTINGS_MOUSE)
return;
m_bUseSingle = KGlobalSettings::singleClick();
@ -116,7 +116,7 @@ void KListBox::slotAutoSelect()
if( !hasFocus() )
setFocus();
ButtonState keybstate = KApplication::keyboardMouseState();
ButtonState keybstate = TDEApplication::keyboardMouseState();
TQListBoxItem* previousItem = item( currentItem() );
setCurrentItem( m_pCurrentItem );
@ -178,7 +178,7 @@ void KListBox::slotAutoSelect()
void KListBox::emitExecute( TQListBoxItem *item, const TQPoint &pos )
{
ButtonState keybstate = KApplication::keyboardMouseState();
ButtonState keybstate = TDEApplication::keyboardMouseState();
m_pAutoSelect->stop();

@ -438,7 +438,7 @@ KListView::KListView( TQWidget *parent, const char *name )
connect (this, TQT_SIGNAL(contentsMoving(int,int)),
this, TQT_SLOT(cleanItemHighlighter()));
slotSettingsChanged(KApplication::SETTINGS_MOUSE);
slotSettingsChanged(TDEApplication::SETTINGS_MOUSE);
if (kapp)
{
connect( kapp, TQT_SIGNAL( settingsChanged(int) ), TQT_SLOT( slotSettingsChanged(int) ) );
@ -543,7 +543,7 @@ void KListView::slotSettingsChanged(int category)
{
switch (category)
{
case KApplication::SETTINGS_MOUSE:
case TDEApplication::SETTINGS_MOUSE:
d->dragDelay = KGlobalSettings::dndEventDelay();
d->bUseSingle = KGlobalSettings::singleClick();
@ -563,7 +563,7 @@ void KListView::slotSettingsChanged(int category)
break;
case KApplication::SETTINGS_POPUPMENU:
case TDEApplication::SETTINGS_POPUPMENU:
d->contextMenuKey = KGlobalSettings::contextMenuKey ();
d->showContextMenusOnPress = KGlobalSettings::showContextMenusOnPress ();
@ -604,7 +604,7 @@ void KListView::slotAutoSelect()
if( !hasFocus() )
setFocus();
ButtonState keybstate = KApplication::keyboardMouseState();
ButtonState keybstate = TDEApplication::keyboardMouseState();
TQListViewItem* previousItem = currentItem();
setCurrentItem( d->pCurrentItem );
@ -646,7 +646,7 @@ void KListView::slotAutoSelect()
if( selectionMode() == TQListView::Single )
emit selectionChanged( d->pCurrentItem );
}
else if( (keybstate & KApplication::ControlModifier) )
else if( (keybstate & TDEApplication::ControlModifier) )
setSelected( d->pCurrentItem, !d->pCurrentItem->isSelected() );
else {
bool block = signalsBlocked();
@ -691,7 +691,7 @@ void KListView::emitExecute( TQListViewItem *item, const TQPoint &pos, int c )
}
else
{
ButtonState keybstate = KApplication::keyboardMouseState();
ButtonState keybstate = TDEApplication::keyboardMouseState();
d->autoSelect.stop();

@ -92,7 +92,7 @@ public:
}
bool saveState( TQSessionManager& )
{
KConfig* config = KApplication::kApplication()->sessionConfig();
KConfig* config = TDEApplication::kApplication()->sessionConfig();
if ( KMainWindow::memberList->first() ){
// According to Jochen Wilhelmy <digisnap@cs.tu-berlin.de>, this
// hook is useful for better document orientation
@ -303,9 +303,9 @@ void KMainWindow::parseGeometry(bool parsewidth)
if ( parsewidth && !(m & YValue) )
y = geometry().y();
if ( (m & XNegative) )
x = KApplication::desktop()->width() + x - w;
x = TDEApplication::desktop()->width() + x - w;
if ( (m & YNegative) )
y = KApplication::desktop()->height() + y - h;
y = TDEApplication::desktop()->height() + y - h;
move(x, y);
}
#endif
@ -1226,7 +1226,7 @@ void KMainWindow::setIcon( const TQPixmap& p )
{
TQMainWindow::setIcon( p );
#ifdef Q_WS_X11
// Qt3 doesn't support _NET_WM_ICON, but KApplication::setTopWidget(), which
// Qt3 doesn't support _NET_WM_ICON, but TDEApplication::setTopWidget(), which
// is used by KMainWindow, sets it
KWin::setIcons( winId(), p, TQPixmap());
#endif

@ -73,7 +73,7 @@ class DCOPObject;
* not supported.
*
* KMainWindow will set icon, mini icon and caption, which it gets
* from KApplication. It provides full session management, and
* from TDEApplication. It provides full session management, and
* will save its position, geometry and positions of toolbars and
* menubar on logout. If you want to save additional data, reimplement
* saveProperties() and (to read them again on next login)
@ -90,7 +90,7 @@ class DCOPObject;
* window is closed. If you do not want this behavior, specify 0 as
* widget flag in the constructor.
*
* @see KApplication
* @see TDEApplication
* @author Reginald Stadlbauer (reggie@kde.org) Stephan Kulow (coolo@kde.org), Matthias Ettrich (ettrich@kde.org), Chris Schlaeger (cs@kde.org), Sven Radej (radej@kde.org). Maintained by Sven Radej (radej@kde.org)
*/
@ -798,9 +798,9 @@ protected:
// would be useful only for the annoying 'really quit' dialog, which
// also doesn't make sense in apps with multiple mainwindows.
// And saving configuration in something called queryExit()? IMHO
// one can e.g. use KApplication::shutDown(), which if nothing else
// one can e.g. use TDEApplication::shutDown(), which if nothing else
// has at least better fitting name.
// See also KApplication::sessionSaving().
// See also TDEApplication::sessionSaving().
// This stuff should get changed somehow, so that it at least doesn't
// mess with session management.
/**
@ -820,15 +820,15 @@ protected:
If you need to do serious things on exit (like shutting a
dial-up connection down), connect to the signal
KApplication::shutDown().
TDEApplication::shutDown().
Default implementation returns @p true. Returning @p false will
cancel the exiting. In the latter case, the last window will
remain visible. If KApplication::sessionSaving() is true, refusing
remain visible. If TDEApplication::sessionSaving() is true, refusing
the exit will also cancel KDE logout.
@see queryClose()
@see KApplication::sessionSaving()
@see TDEApplication::sessionSaving()
*/
virtual bool queryExit();
@ -840,7 +840,7 @@ protected:
safe to close it, i.e. without the user losing some data.
Default implementation returns true. Returning @p false will cancel
the closing, and, if KApplication::sessionSaving() is true, it will also
the closing, and, if TDEApplication::sessionSaving() is true, it will also
cancel KDE logout.
Reimplement this function to prevent the user from losing data.
@ -864,7 +864,7 @@ protected:
may be canceled, in which case the document should remain open.
@see queryExit()
@see KApplication::sessionSaving()
@see TDEApplication::sessionSaving()
*/
virtual bool queryClose();

@ -981,7 +981,7 @@ KMessageBox::about(TQWidget *parent, const TQString &text,
parent, "about", true, true,
KStdGuiItem::ok() );
TQPixmap ret = KApplication::kApplication()->icon();
TQPixmap ret = TDEApplication::kApplication()->icon();
if (ret.isNull())
ret = TQMessageBox::standardIcon(TQMessageBox::Information);
dialog->setIcon(ret);

@ -74,7 +74,7 @@ public:
Notify = 1, ///< Emit a KNotifyClient event
AllowLink = 2, ///< The message may contain links.
Dangerous = 4, ///< The action to be confirmed by the dialog is a potentially destructive one
PlainCaption = 8, /**< Do not use KApplication::makeStdCaption()
PlainCaption = 8, /**< Do not use TDEApplication::makeStdCaption()
@since 3.4
*/
NoExec = 16 /**< Do not call exec() in createKMessageBox()

@ -55,7 +55,7 @@ class TQPopupMenu;
*
* \b X-TDE-UniqueApplet \n
*
* Similar to KApplication and KUniqueApplication there are
* Similar to TDEApplication and KUniqueApplication there are
* two types of panel applets. Use unique applets when it makes no
* sence to run more than one instance of a applet in the panel. A
* good example for unique applets is the taskbar applet. Use normal

@ -56,7 +56,7 @@ class KPanelExtensionPrivate;
*
* \b X-TDE-UniqueExtension \n
*
* Similar to KApplication and KUniqueApplication there are
* Similar to TDEApplication and KUniqueApplication there are
* two types of panel extensions. Use unique extensions when it makes no
* sence to run more than one instance of an extension in the panel. A
* good example for unique extensions is the taskbar extension. Use normal

@ -96,7 +96,7 @@ private:
*
* KToolBar uses a global config group to load toolbar settings on
* construction. It will reread this config group on a
* KApplication::appearanceChanged() signal.
* TDEApplication::appearanceChanged() signal.
*
* @author Reginald Stadlbauer <reggie@kde.org>, Stephan Kulow <coolo@kde.org>, Sven Radej <radej@kde.org>.
*/

@ -670,7 +670,7 @@ void KToolBarButton::slotClicked()
// emit buttonClicked when the button was clicked while being in an extension popupmenu
if ( d->m_parent && !d->m_parent->rect().contains( geometry().center() ) ) {
ButtonState state = KApplication::keyboardMouseState();
ButtonState state = TDEApplication::keyboardMouseState();
if ( ( state & Qt::MouseButtonMask ) == Qt::NoButton )
state = ButtonState( Qt::LeftButton | state );
emit buttonClicked( d->m_id, state ); // Doesn't work with MidButton

@ -54,7 +54,7 @@ static const char * item_xpm[] = {
" ...... "};
KApplication *app;
TDEApplication *app;
TopLevel::TopLevel(TQWidget *parent, const char *name)
: TQWidget(parent, name)
@ -212,7 +212,7 @@ void TopLevel::slotToggleSingleColumn( bool b )
int main( int argc, char ** argv )
{
app = new KApplication ( argc, argv, "ItemContainerTest" );
app = new TDEApplication ( argc, argv, "ItemContainerTest" );
TopLevel *toplevel = new TopLevel(0, "itemcontainertest");

@ -16,7 +16,7 @@
int main(int argc, char** argv)
{
(void)new KApplication(argc, argv, "KAboutDialogTest");
(void)new TDEApplication(argc, argv, "KAboutDialogTest");
TQImage logo;
TQImage bg;
TQPixmap pix;

@ -8,7 +8,7 @@
int main( int argc, char **argv )
{
KApplication app( argc, argv, "kactiontest" );
TDEApplication app( argc, argv, "kactiontest" );
KActionCollection coll( static_cast<TQObject *>( 0 ) );

@ -89,7 +89,7 @@ void KBlendWidget::paintEvent(TQPaintEvent */*ev*/)
int main(int argc, char **argv)
{
KApplication app(argc, argv, "KBlendTest");
TDEApplication app(argc, argv, "KBlendTest");
KBlendWidget w;
app.setMainWidget(&w);
w.show();

@ -24,7 +24,7 @@
#include <tqpushbutton.h>
int main(int argc, char **argv) {
KApplication a(argc, argv, "dummy");
TDEApplication a(argc, argv, "dummy");
// example 1
{

@ -4,7 +4,7 @@
int main (int argc,char **argv)
{
KApplication app( argc, argv, "kcharselecttest" );
TDEApplication app( argc, argv, "kcharselecttest" );
KCharSelect selector( 0, "char selector" );
selector.resize( selector.sizeHint() );

@ -28,7 +28,7 @@ int main( int argc, char *argv[] )
KLocale::setMainCatalogue("tdelibs");
TQApplication::setColorMode( TQApplication::CustomColors );
KApplication a( argc, argv, "KColorDialogTest" );
TDEApplication a( argc, argv, "KColorDialogTest" );
KConfig aConfig;
aConfig.setGroup( "KColorDialog-test" );

@ -160,7 +160,7 @@ int main(int argc, char **argv)
else
printf("Usage: %s [int_vs_fade | fullscreen [old_way]]\n ", argv[0]);
}
KApplication *app = new KApplication(argc, argv, "KColorTest");
TDEApplication *app = new TDEApplication(argc, argv, "KColorTest");
KColorWidget w;
app->setMainWidget(&w);
w.show();

@ -217,7 +217,7 @@ void KComboBoxTest::quitApp()
int main ( int argc, char **argv)
{
KApplication a(argc, argv, "kcomboboxtest");
TDEApplication a(argc, argv, "kcomboboxtest");
KComboBoxTest* t= new KComboBoxTest;
a.setMainWidget (t);
t->show ();

@ -186,7 +186,7 @@ TQStringList Form1::defaultItems() const
int main(int argc, char **argv )
{
KApplication app( argc, argv, "kcompletiontest" );
TDEApplication app( argc, argv, "kcompletiontest" );
Form1 *form = new Form1();
form->show();

@ -6,7 +6,7 @@
int main(int argc, char** argv)
{
KLocale::setMainCatalogue("tdelibs");
KApplication app(argc, argv, "KDatePickertest");
TDEApplication app(argc, argv, "KDatePickertest");
KDatePicker picker;
app.setMainWidget(&picker);
picker.show();

@ -5,7 +5,7 @@
int main(int argc, char** argv)
{
KLocale::setMainCatalogue("tdelibs");
KApplication app(argc, argv, "KDateTimeWidgettest");
TDEApplication app(argc, argv, "KDateTimeWidgettest");
KDateTimeWidget dateTimeWidget;
app.setMainWidget(&dateTimeWidget);
dateTimeWidget.show();

@ -6,7 +6,7 @@
int main(int argc, char** argv)
{
KLocale::setMainCatalogue("tdelibs");
KApplication app(argc, argv, "KDateWidgettest");
TDEApplication app(argc, argv, "KDateWidgettest");
KDateWidget dateWidget;
app.setMainWidget(&dateWidget);
dateWidget.show();

@ -55,7 +55,7 @@ void KDesatWidget::paintEvent(TQPaintEvent */*ev*/)
int main(int argc, char **argv)
{
KApplication *app = new KApplication(argc, argv, "KDesatTest");
TDEApplication *app = new TDEApplication(argc, argv, "KDesatTest");
KDesatWidget w;
app->setMainWidget(&w);
w.show();

@ -6,7 +6,7 @@
int main(int argc, char** argv)
{
KApplication app(argc, argv, "DialogBaseTest");
TDEApplication app(argc, argv, "DialogBaseTest");
// -----
TQString text= // the explanation shown by the example dialog
"<center><h1>DialogBase Example</h1></center><hr><br>"

@ -54,7 +54,7 @@ DockTest::DockTest( TQWidget* parent )
int
main( int argc, char** argv )
{
KApplication a( argc,argv, "docktest" );
TDEApplication a( argc,argv, "docktest" );
DockTest* ap = new DockTest();
ap->setCaption("DockWidget demo");
a.setMainWidget( ap );

@ -768,7 +768,7 @@ TQString DirectoryView::selectedDir()
/**********************************************************************************************/
int main(int argc, char* argv[]) {
KApplication app(argc,argv,"kdockwidgetdemo");
TDEApplication app(argc,argv,"kdockwidgetdemo");
#if 0
SFileDialog* openfile = new SFileDialog();

@ -242,7 +242,7 @@ void DockApplication::gSetPix2() {
}
int main(int argc, char* argv[]) {
KApplication a(argc,argv, "kdockdemoapp1");
TDEApplication a(argc,argv, "kdockdemoapp1");
DockApplication* ap = new DockApplication("DockWidget demo");
ap->setCaption("DockWidget demo");
a.setMainWidget(ap);

@ -51,7 +51,7 @@ void KDualColorWidget::slotCurrentChanged(KDualColorButton::DualColor current)
int main(int argc, char **argv)
{
KApplication *app = new KApplication(argc, argv, "KDualColorTest");
TDEApplication *app = new TDEApplication(argc, argv, "KDualColorTest");
KDualColorWidget w;
app->setMainWidget(&w);
w.show();

@ -4,7 +4,7 @@
int main( int argc, char **argv )
{
KApplication app( argc, argv, "keditlistboxtest" );
TDEApplication app( argc, argv, "keditlistboxtest" );
KEditListBox::CustomEditor editor( new KComboBox( true, 0L, "test" ) );
KEditListBox *box = new KEditListBox( TQString::fromLatin1("KEditListBox"),

@ -4,7 +4,7 @@
int main( int argc, char **argv )
{
KApplication app( argc, argv, "kedittest" );
TDEApplication app( argc, argv, "kedittest" );
KEdit *edit = new KEdit( 0L );
TQPopupMenu *pop = new TQPopupMenu( 0L );
pop->insertItem( "Popupmenu item" );

@ -31,7 +31,7 @@
int main( int argc, char **argv )
{
KApplication app( argc, argv, "KFontDialogTest" );
TDEApplication app( argc, argv, "KFontDialogTest" );
KConfig aConfig;
aConfig.setGroup( "KFontDialog-test" );

@ -98,7 +98,7 @@ void KGradientWidget::paintEvent(TQPaintEvent */*ev*/)
int main(int argc, char **argv)
{
KApplication *app = new KApplication(argc, argv, "KGradientTest");
TDEApplication *app = new TDEApplication(argc, argv, "KGradientTest");
KGradientWidget w;
w.resize(250 * cols, 250 * rows);
app->setMainWidget(&w);

@ -126,7 +126,7 @@ void KHashWidget::paintEvent(TQPaintEvent * /*ev*/)
int main(int argc, char **argv)
{
KApplication *app = new KApplication(argc, argv, "KHashTest");
TDEApplication *app = new TDEApplication(argc, argv, "KHashTest");
KHashWidget w;
w.resize(250 * cols, 250 * rows);
app->setMainWidget(&w);

@ -12,7 +12,7 @@
int main( int argc, char *argv[] )
{
KApplication app( argc, argv, "kinputdialogtest" );
TDEApplication app( argc, argv, "kinputdialogtest" );
bool ok;
TQString svalue;

@ -7,7 +7,7 @@
int main(int argc, char** argv)
{
KApplication app(argc, argv, "JanusWidgetTest");
TDEApplication app(argc, argv, "JanusWidgetTest");
// -----
KJanusWidget* janus = new KJanusWidget( 0, 0, KJanusWidget::IconList );

@ -134,7 +134,7 @@ KLedTest::timeout()
int main( int argc, char **argv )
{
KApplication a( argc, argv, "KLedTest" );
TDEApplication a( argc, argv, "KLedTest" );
KLedTest widget;
// -----
/*

@ -6,7 +6,7 @@
int main(int argc, char** argv)
{
KApplication app(argc, argv, "klineedittest");
TDEApplication app(argc, argv, "klineedittest");
KLineEditDlg dialog( "_text", "_value", 0L );
if(dialog.exec())
{

@ -120,9 +120,9 @@ int main ( int argc, char **argv)
{
KAboutData aboutData( "klineedittest", "klineedittest", "1.0" );
TDECmdLineArgs::init(argc, argv, &aboutData);
KApplication::addCmdLineOptions();
TDEApplication::addCmdLineOptions();
KApplication a;
TDEApplication a;
KLineEditTest *t = new KLineEditTest();
//t->lineEdit()->setTrapReturnKey( true );
//t->lineEdit()->completionBox()->setTabHandling( false );

@ -6,7 +6,7 @@
int main( int argc, char **argv )
{
KApplication app( argc, argv, "klistviewtest" );
TDEApplication app( argc, argv, "klistviewtest" );
KDialogBase dialog;
KListView *view = new KListView( dialog.makeVBoxMainWidget() );
view->setSelectionModeExt( KListView::FileManager );

@ -14,7 +14,7 @@
int main( int argc, char * argv[] ) {
KApplication app( argc, argv, "kmainwindowrestoretest" );
TDEApplication app( argc, argv, "kmainwindowrestoretest" );
if ( kapp->isRestored() ) {
kRestoreMainWindows< MainWin1, MainWin2, MainWin3 >();

@ -24,7 +24,7 @@ void MainWindow::showMessage()
int main( int argc, char **argv )
{
KApplication app( argc, argv, "kmainwindowtest" );
TDEApplication app( argc, argv, "kmainwindowtest" );
MainWindow* mw = new MainWindow; // deletes itself when closed
mw->show();

@ -63,7 +63,7 @@ void showResult(int test, int i)
int main( int argc, char *argv[] )
{
int i, test;
new KApplication( argc, argv, "MyApplication" );
new TDEApplication( argc, argv, "MyApplication" );
ExampleWidget *w = new ExampleWidget();
w->show();

@ -16,7 +16,7 @@
#include "knuminputtest.h"
KApplication *a;
TDEApplication *a;
#include <kdebug.h>
void TopLevel::slotPrint( int n ) {
@ -132,7 +132,7 @@ TopLevel::TopLevel(TQWidget *parent, const char *name)
int main( int argc, char ** argv )
{
a = new KApplication ( argc, argv, "KNuminputTest" );
a = new TDEApplication ( argc, argv, "KNuminputTest" );
TopLevel *toplevel = new TopLevel(0, "knuminputtest");

@ -12,7 +12,7 @@
int main( int argc, char **argv )
{
KApplication a( argc, argv, "KPalettetest" );
TDEApplication a( argc, argv, "KPalettetest" );
TQStringList palettes = KPalette::getPaletteList();
for(TQStringList::ConstIterator it = palettes.begin();

@ -57,7 +57,7 @@ void TestWidget::slotSubMenuCalled(int id)
int main(int argc, char **argv)
{
KApplication *app = new KApplication(argc, argv, "menutest");
TDEApplication *app = new TDEApplication(argc, argv, "menutest");
TestWidget w;
app->setMainWidget(&w);

@ -15,7 +15,7 @@ int main(int argc, char**argv)
{
TDECmdLineArgs::init(argc, argv, "test", "test" ,"test" ,"1.0");
TDECmdLineArgs::addCmdLineOptions( options );
KApplication app("test");
TDEApplication app("test");
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
if (args->count()!=1)

@ -30,7 +30,7 @@ public:
int main(int argc, char **argv)
{
KApplication app(argc, argv, "kpopupmenutest");
TDEApplication app(argc, argv, "kpopupmenutest");
DemoWidget w;
app.setMainWidget(&w);
w.setFont(TQFont("helvetica", 12, TQFont::Bold), true);

@ -46,7 +46,7 @@ void MyWidget::timerEvent(TQTimerEvent *)
int main(int argc, char *argv[])
{
KApplication app(argc, argv, "KProgressTest");
TDEApplication app(argc, argv, "KProgressTest");
MyWidget w;
app.setMainWidget(&w);

@ -358,10 +358,10 @@ KRulerTest::slotSetYTrans(double d)
/* --- MAIN -----------------------*/
int main(int argc, char **argv)
{
KApplication *testapp;
TDEApplication *testapp;
KRulerTest *window;
testapp = new KApplication(argc, argv,"krulertest");
testapp = new TDEApplication(argc, argv,"krulertest");
testapp->setFont(TQFont("Helvetica",12),true);
window = new KRulerTest("main");

@ -26,7 +26,7 @@
int main(int argc, char **argv)
{
KApplication *app = new KApplication(argc, argv, "KSpellTest");
TDEApplication *app = new TDEApplication(argc, argv, "KSpellTest");
// test ASCII
//TQString text( "I have noo idee of how to wride englisch or englisch" );

@ -3,7 +3,7 @@
int main( int argc, char **argv )
{
KApplication app( argc, argv, "KSqueezedTextLabelTest" );
TDEApplication app( argc, argv, "KSqueezedTextLabelTest" );
KSqueezedTextLabel l( "This is a rather long string", 0);
app.setMainWidget( &l );

@ -22,7 +22,7 @@ testWindow::testWindow (TQWidget *, const char *name)
menuBar = new KMenuBar (this);
fileMenu = new TQPopupMenu;
menuBar->insertItem ("&File", fileMenu);
fileMenu->insertItem ("&Exit", KApplication::kApplication(),
fileMenu->insertItem ("&Exit", TDEApplication::kApplication(),
TQT_SLOT( quit() ), ALT + Key_Q );
statusbar = new KStatusBar (this);
statusbar->insertItem("Zoom: XXXX", 0);
@ -41,7 +41,7 @@ testWindow::testWindow (TQWidget *, const char *name)
setCentralWidget(widget);
setCaption( KApplication::kApplication()->caption() );
setCaption( TDEApplication::kApplication()->caption() );
smenu = new TQPopupMenu;
@ -104,7 +104,7 @@ testWindow::~testWindow ()
int main( int argc, char *argv[] )
{
KApplication *myApp = new KApplication( argc, argv, "KStatusBarTest" );
TDEApplication *myApp = new TDEApplication( argc, argv, "KStatusBarTest" );
testWindow *test = new testWindow;
myApp->setMainWidget(test);

@ -3,7 +3,7 @@
int main(int argc, char **argv)
{
KApplication app( argc, argv, "ksystemtraytest" );
TDEApplication app( argc, argv, "ksystemtraytest" );
TQLabel *l = new TQLabel("System Tray Main Window", 0L);
KSystemTray *tray = new KSystemTray( l );
tray->setText("Test");

@ -30,7 +30,7 @@
TQFont default_font("Helvetica", 12);
KApplication *a;
TDEApplication *a;
TopLevel::TopLevel(TQWidget *parent, const char *name)
: TQWidget(parent, name)
@ -90,7 +90,7 @@ void TopLevel::okPressed()
int main( int argc, char ** argv )
{
a = new KApplication ( argc, argv, "KTabCtlTest" );
a = new TDEApplication ( argc, argv, "KTabCtlTest" );
a->setFont(default_font);

@ -355,7 +355,7 @@ void Test::toggleLabels(bool state)
int main(int argc, char** argv )
{
TDECmdLineArgs::init(argc, argv, "ktabwidgettest", "ktabwidget test app", "1.0");
KApplication app(argc, argv);
TDEApplication app(argc, argv);
Test *t = new Test();
app.setMainWidget( t );

@ -24,7 +24,7 @@
int main( int argc, char **argv )
{
KApplication app( argc, argv, "ktextedittest" );
TDEApplication app( argc, argv, "ktextedittest" );
KTextEdit *edit = new KTextEdit();
edit->setReadOnly( true );
edit->setCheckSpellingEnabled( true );

@ -5,7 +5,7 @@
int main(int argc, char** argv)
{
KLocale::setMainCatalogue("tdelibs");
KApplication app(argc, argv, "KTimeWidgettest");
TDEApplication app(argc, argv, "KTimeWidgettest");
KTimeWidget timeWidget;
app.setMainWidget(&timeWidget);
timeWidget.show();

@ -84,7 +84,7 @@ public:
int main( int argc, char **argv )
{
KApplication app( argc, argv, "ktoolbarlabelactiontest" );
TDEApplication app( argc, argv, "ktoolbarlabelactiontest" );
KGlobal::instance()->dirs()->addResourceDir("data", ".");

@ -166,7 +166,7 @@ void myTopWidget::rebalance()
int main(int argc, char **argv)
{
KApplication *app = new KApplication(argc, argv, "KUnbalancedGradientTest");
TDEApplication *app = new TDEApplication(argc, argv, "KUnbalancedGradientTest");
myTopWidget w;
app->setMainWidget(&w);
w.show();

@ -25,7 +25,7 @@
int main(int argc, char **argv)
{
KApplication a(argc,argv,"kwizardtest");
TDEApplication a(argc,argv,"kwizardtest");
KWizard *wiz = new KWizard(0, "kwizardtest", false);
TQObject::connect((TQObject*) wiz->cancelButton(), TQT_SIGNAL(clicked()),
&a, TQT_SLOT(quit()));

@ -23,7 +23,7 @@
int main(int argc, char *argv[])
{
KApplication app(argc, argv, "KWordWrapTest");
TDEApplication app(argc, argv, "KWordWrapTest");
TQFont font( "helvetica", 12 ); // let's hope we all have the same...
TQFontMetrics fm( font );

@ -18,7 +18,7 @@ void Client::slotSec()
int main( int argc, char **argv )
{
KApplication app( argc, argv, "kxmlguitest" );
TDEApplication app( argc, argv, "kxmlguitest" );
// KXMLGUIClient looks in the "data" resource for the .rc files
// Let's add $PWD (ideally $srcdir instead...) to it

@ -55,7 +55,7 @@ setAutoSaveSettings();
menuBar->insertItem ("&File", fileMenu);
// We insert item "Exit" with accelerator ALT-Q, and connect
// it to application's exit-slot.
fileMenu->insertItem ("&Exit", KApplication::kApplication(),
fileMenu->insertItem ("&Exit", TDEApplication::kApplication(),
TQT_SLOT( quit() ), ALT + Key_Q );
// Another popup...
@ -148,7 +148,7 @@ setAutoSaveSettings();
// Now add another button and align it right
pix = BarIcon("exit");
tb->insertButton(pix, 6, TQT_SIGNAL(clicked()), KApplication::kApplication(),
tb->insertButton(pix, 6, TQT_SIGNAL(clicked()), TDEApplication::kApplication(),
TQT_SLOT( quit() ), true, "Exit");
tb->alignItemRight (6);
@ -408,7 +408,7 @@ void testWindow::slotExit ()
{
TQPixmap pix;
pix = BarIcon("exit");
tb->insertButton(pix, 6, TQT_SIGNAL(clicked()), KApplication::kApplication(),
tb->insertButton(pix, 6, TQT_SIGNAL(clicked()), TDEApplication::kApplication(),
TQT_SLOT( quit() ), true, "Exit");
tb->alignItemRight (6);
exitB = true;
@ -504,7 +504,7 @@ int main( int argc, char *argv[] )
int i;
TDECmdLineArgs::init(argc, argv, "KWindowTest", "description", "version");
KApplication *myApp = new KApplication();
TDEApplication *myApp = new TDEApplication();
testWindow *test = new testWindow;
myApp->setMainWidget(test);

Notiek ielāde…
Atcelt
Saglabāt