From f2d4b48ad7f6ce4f23c6cbba3e85c67486f922db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 29 Jun 2013 16:33:55 +0200 Subject: Initial TDE conversion --- src/main.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index b4fc9df..a3f4078 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -25,13 +25,13 @@ #ifdef UNIQUEAPP #include #else // UNIQUEAPP -#include +#include #endif // UNIQUEAPP -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include #include #include "kbibtexshell.h" @@ -41,17 +41,17 @@ static const char description[] = static const char version[] = "0.2.3.91"; -static KCmdLineOptions options[] = +static TDECmdLineOptions options[] = { { "+[URL]", I18N_NOOP( "Document to open." ), 0 }, - KCmdLineLastOption + TDECmdLineLastOption }; #ifdef UNIQUEAPP class KBibTeXApplication: public KUniqueApplication #else // UNIQUEAPP -class KBibTeXApplication: public KApplication +class KBibTeXApplication: public TDEApplication #endif // UNIQUEAPP { public: @@ -64,7 +64,7 @@ public: int newInstance() { #else // UNIQUEAPP - KBibTeXApplication() : KApplication() + KBibTeXApplication() : TDEApplication() { #endif // UNIQUEAPP // see if we are starting with session management @@ -75,7 +75,7 @@ public: else { // no session.. just start up normally - KCmdLineArgs * args = KCmdLineArgs::parsedArgs(); + TDECmdLineArgs * args = TDECmdLineArgs::parsedArgs(); if ( args->count() == 0 ) { @@ -108,12 +108,12 @@ public: int main( int argc, char **argv ) { - KAboutData about( "kbibtex", I18N_NOOP( "KBibTeX" ), version, description, - KAboutData::License_GPL, "(C) 2004-2009 Thomas Fischer", 0, "http://www.unix-ag.uni-kl.de/~fischer/kbibtex/", "fischer@unix-ag.uni-kl.de" ); + TDEAboutData about( "kbibtex", I18N_NOOP( "KBibTeX" ), version, description, + TDEAboutData::License_GPL, "(C) 2004-2009 Thomas Fischer", 0, "http://www.unix-ag.uni-kl.de/~fischer/kbibtex/", "fischer@unix-ag.uni-kl.de" ); about.addAuthor( "Thomas Fischer", 0, "fischer@unix-ag.uni-kl.de" ); about.setTranslator( I18N_NOOP( "NAME OF TRANSLATORS" ), I18N_NOOP( "EMAIL OF TRANSLATORS" ) ); - KCmdLineArgs::init( argc, argv, &about ); - KCmdLineArgs::addCmdLineOptions( options ); + TDECmdLineArgs::init( argc, argv, &about ); + TDECmdLineArgs::addCmdLineOptions( options ); #ifdef UNIQUEAPP if ( !KUniqueApplication::start() ) -- cgit v1.2.3