21#include <kofficeversion.h>
22#include <tdeaboutdata.h>
23#include <tdecmdlineargs.h>
26#include <kuniqueapplication.h>
31#include "koshell_shell.h"
33static const char* description = I18N_NOOP( "KOffice Workspace");
34static const char* version = KOFFICE_VERSION_STRING;
36class KoShellApp : public KUniqueApplication {
38 KoShellApp() : mMainWindow( 0 ) {}
44 KoShellWindow *mMainWindow;
48int KoShellApp::newInstance()
52 if ( TDEMainWindow::canBeRestored( 1 ) ) {
53 mMainWindow = new KoShellWindow();
54 setMainWidget( mMainWindow );
56 mMainWindow->restore( 1 );
60 mMainWindow = new KoShellWindow();
62 setMainWidget( mMainWindow );
67 return KUniqueApplication::newInstance();
70extern "C" KOSHELL_EXPORT int kdemain( int argc, char **argv )
72 TDEAboutData * aboutData = new TDEAboutData( "koshell", I18N_NOOP( "KOffice Workspace"),
73 version, description, TDEAboutData::License_GPL,
74 "(c) 1998-2006, Torben Weis\n(c) 2002-2005, David Faure\n(c) 2005, Sven Lüppken");
75 aboutData->addAuthor( "Sven Lüppken", I18N_NOOP( "Current Maintainer"), "sven@kde.org");
76 aboutData->addAuthor( "Torben Weis", 0, "weis@kde.org");
77 aboutData->addAuthor( "David Faure", 0, "faure@kde.org");
78 TDECmdLineArgs::init( argc, argv, aboutData );
80 if ( !KoShellApp::start() ) {
86 KoGlobal::initialize();
|