You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
adept/adept/manager/main.cpp

58 lines
1.5 KiB

#include <stdlib.h>
#include <kcmdlineargs.h>
#include <kaboutdata.h>
#include <kuniqueapplication.h>
#include "app.h"
static KCmdLineOptions options[] =
{
KCmdLineLastOption
};
int main(int argc, char *argv[])
{
KLocale::setMainCatalogue("adept");
putenv( "QT_IM_MODULE=xim" );
QString description = i18n("Adept Manager");
KAboutData aboutData( "adept_manager",
I18N_NOOP("Adept Manager"),
"2.1 Cruiser",
description.latin1(),
KAboutData::License_BSD,
I18N_NOOP("(c) 2005, 2006 Peter Rockai"),
0,
"http://web.mornfall.net/adept.html");
aboutData.addAuthor ( "Peter Rockai",
I18N_NOOP("developer"),
"me at mornfall dot net",
"http://web.mornfall.net");
KCmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( options );
KApplication app;
KCmdLineArgs* args = KCmdLineArgs::parsedArgs();
// if (args && args->isSet("xy")) ...
/* KConfig* config = KGlobal::config();
config->setGroup("General Settings");
QString version = config->readEntry("Version"); */
KGlobal::locale()->insertCatalogue(QString::fromUtf8("libept"));
KGlobal::locale()->insertCatalogue(QString::fromUtf8("libapt-front"));
TestApp *ta = new TestApp();
app.setMainWidget(ta);
ta->show();
return app.exec();
}