diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2013-06-29 16:33:55 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2013-07-04 03:57:45 +0200 |
commit | f2d4b48ad7f6ce4f23c6cbba3e85c67486f922db (patch) | |
tree | 0414ba9f0823b98d2a159c11513ddcda84b932cc /src/main.cpp | |
parent | 5f5e7c5455d52826b0bd50f64fcffb7695ce970d (diff) | |
download | kbibtex-f2d4b48ad7f6ce4f23c6cbba3e85c67486f922db.tar.gz kbibtex-f2d4b48ad7f6ce4f23c6cbba3e85c67486f922db.zip |
Initial TDE conversion
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
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 <kuniqueapplication.h> #else // UNIQUEAPP -#include <kapplication.h> +#include <tdeapplication.h> #endif // UNIQUEAPP -#include <kmessagebox.h> -#include <kaboutdata.h> -#include <kcmdlineargs.h> -#include <klocale.h> -#include <kglobal.h> +#include <tdemessagebox.h> +#include <tdeaboutdata.h> +#include <tdecmdlineargs.h> +#include <tdelocale.h> +#include <tdeglobal.h> #include <kstandarddirs.h> #include <kdebug.h> #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() ) |