Rename KUniqueApplication to TDEUniqueApplication

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/33/head
Michele Calgaro 2 weeks ago
parent fb0b2bd903
commit 5f67539d4b
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -70,7 +70,7 @@ using namespace Kontact;
int UniqueAppHandler::newInstance() int UniqueAppHandler::newInstance()
{ {
// This bit is duplicated from KUniqueApplication::newInstance() // This bit is duplicated from TDEUniqueApplication::newInstance()
if ( kapp->mainWidget() ) { if ( kapp->mainWidget() ) {
kapp->mainWidget()->show(); kapp->mainWidget()->show();
KWin::forceActiveWindow( kapp->mainWidget()->winId() ); KWin::forceActiveWindow( kapp->mainWidget()->winId() );
@ -91,7 +91,7 @@ bool UniqueAppHandler::process( const TQCString &fun, const TQByteArray &data,
TDECmdLineArgs::reset(); // forget options defined by other "applications" TDECmdLineArgs::reset(); // forget options defined by other "applications"
loadCommandLineOptions(); loadCommandLineOptions();
// This bit is duplicated from KUniqueApplication::processDelayed() // This bit is duplicated from TDEUniqueApplication::processDelayed()
TQDataStream ds( data, IO_ReadOnly ); TQDataStream ds( data, IO_ReadOnly );
TDECmdLineArgs::loadAppArgs( ds ); TDECmdLineArgs::loadAppArgs( ds );
if ( !ds.atEnd() ) { // backwards compatibility if ( !ds.atEnd() ) { // backwards compatibility

@ -33,7 +33,7 @@
#include "bnpview.h" #include "bnpview.h"
Application::Application() Application::Application()
: KUniqueApplication() : TDEUniqueApplication()
{ {
} }
@ -43,7 +43,7 @@ Application::~Application()
int Application::newInstance() int Application::newInstance()
{ {
KUniqueApplication::newInstance(); TDEUniqueApplication::newInstance();
// Open the basket archive or template file supplied as argument: // Open the basket archive or template file supplied as argument:
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();

@ -21,13 +21,13 @@
#ifndef APPLICATION_H #ifndef APPLICATION_H
#define APPLICATION_H #define APPLICATION_H
#include <kuniqueapplication.h> #include <tdeuniqueapplication.h>
#include <tqstring.h> #include <tqstring.h>
/** /**
* @author Sébastien Laoût <slaout@linux62.org> * @author Sébastien Laoût <slaout@linux62.org>
*/ */
class Application : public KUniqueApplication class Application : public TDEUniqueApplication
{ {
public: public:
Application(); Application();

@ -50,24 +50,6 @@
#include "basket_options.h" #include "basket_options.h"
#include "backup.h" #include "backup.h"
/* Thanks to JuK for this Application class */
/*#if KDE_IS_VERSION( 3, 1, 90 )
typedef KUniqueApplication Application; // KDE 3.2 and later already re-show the main window
#else
class Application : public KUniqueApplication
{
public:
Application() : KUniqueApplication(true, true, false) {}
virtual ~Application() {}
virtual int newInstance() {
if (win)
win->setActive(true);
return KUniqueApplication::newInstance();
}
};
#endif
*/
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
// TDECmdLineArgs::init will modify argv[0] so we remember it: // TDECmdLineArgs::init will modify argv[0] so we remember it:
@ -76,8 +58,7 @@ int main(int argc, char *argv[])
TDECmdLineArgs::init(argc, argv, Global::about()); TDECmdLineArgs::init(argc, argv, Global::about());
TDECmdLineArgs::addCmdLineOptions(basket_options); TDECmdLineArgs::addCmdLineOptions(basket_options);
KUniqueApplication::addCmdLineOptions(); TDEUniqueApplication::addCmdLineOptions();
//KUniqueApplication app;
Application app; Application app;
Backup::figureOutBinaryPath(argv0, app); Backup::figureOutBinaryPath(argv0, app);

Loading…
Cancel
Save