main.cpp
00001
#include <signal.h>
00002
#include <kapplication.h>
00003
#include <klocale.h>
00004
#include <kcmdlineargs.h>
00005
#include <kaboutdata.h>
00006
#include <kdebug.h>
00007
#include "version.h"
00008
#include "mainwindow.h"
00009
00010
00011
namespace
00012
{
00013
const char* description = I18N_NOOP(
"KDE Time tracker tool.");
00014
00015
void cleanup(
int )
00016 {
00017 kdDebug() << i18n(
"Just caught a software interrupt.") << endl;
00018 kapp->exit();
00019 }
00020 }
00021
00022
int main(
int argc,
char *argv[] )
00023 {
00024 KAboutData aboutData(
"karm", I18N_NOOP(
"KArm"),
00025 KARM_VERSION, description, KAboutData::License_GPL,
00026
"(c) 1997-2000, Sirtaj Singh Kang, Espen Sand, Jesper Pedersen,\n"
00027
"Kalle Dalheimer, Klarälvdalens Datakonsult AB,\n"
00028
"Tomas Pospisek, Sourcepole");
00029
00030 aboutData.addAuthor(
"Tomas Pospisek", 0,
"tpo_deb@sourcepole.ch" );
00031 aboutData.addAuthor(
"Sirtaj Singh Kang", I18N_NOOP(
"Original Author"),
00032
"taj@kde.org" );
00033 aboutData.addAuthor(
"Espen Sand", 0,
"espen@kde.org");
00034 aboutData.addAuthor(
"Kalle Dalheimer", 0,
"kalle@kde.org" );
00035 aboutData.addAuthor(
"Jesper Pedersen", 0,
"blackie@kde.org" );
00036 aboutData.addAuthor(
"Gioele Barabucci", 0,
"gioele@gioelebarabucci.com");
00037 aboutData.addAuthor(
"Jan Schaumann", 0,
"jschauma@netmeister.org");
00038 aboutData.addAuthor(
"Scott Monachello", 0,
"smonach@cox.net");
00039 aboutData.addAuthor(
"Willi Richert", 0,
"w.richert@gmx.net");
00040 aboutData.addAuthor(
"Mark Bucciarelli", I18N_NOOP(
"Current Maintainer"),
00041
"mark@hubcapconsulting.com");
00042 aboutData.addAuthor(
"David Faure", 0,
"faure@kde.org");
00043
00044 KCmdLineArgs::init( argc, argv, &aboutData );
00045 KApplication myApp;
00046
00047
MainWindow *mainWindow =
new MainWindow;
00048
00049 myApp.setMainWidget( mainWindow );
00050 mainWindow->show();
00051 signal( SIGQUIT, cleanup );
00052 signal( SIGINT, cleanup );
00053
int ret = myApp.exec();
00054
00055
delete mainWindow;
00056
return ret;
00057 }
This file is part of the documentation for karm Library Version 3.2.2.