1
// GGZap - GGZ quick start application for the KDE panel
2
// Copyright (C) 2001 - 2003 Josef Spillner, josef@ggzgamingzone.org
4
// This program is free software; you can redistribute it and/or modify
5
// it under the terms of the GNU General Public License as published by
6
// the Free Software Foundation; either version 2 of the License, or
7
// (at your option) any later version.
9
// This program is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
// GNU General Public License for more details.
14
// You should have received a copy of the GNU General Public License
15
// along with this program; if not, write to the Free Software
16
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22
#include <kapplication.h>
23
#include <kcmdlineargs.h>
24
#include <kaboutdata.h>
28
int main(int argc, char **argv)
31
KAboutData *aboutData;
33
static const KCmdLineOptions op[] =
35
{"module <modulename>", I18N_NOOP("Specify module to launch"), 0},
36
{"frontend <frontendtype>", I18N_NOOP("Preferred frontend"), 0},
40
aboutData = new KAboutData("ggzap",
41
I18N_NOOP("GGZ Quick Launcher"),
43
I18N_NOOP("Tool to start GGZ games directly."),
44
KAboutData::License_GPL,
45
"(C) 2000 - 2003 Josef Spillner\n"
46
"The MindX Open Source Project",
48
"http://ggz.sourceforge.net/coreclients/ggzap",
49
"josef@ggzgamingzone.org");
51
aboutData->addAuthor("Josef Spillner", I18N_NOOP("Author"), "josef@ggzgamingzone.org", "http://mindx.sourceforge.net");
53
KCmdLineArgs::init(argc, argv, aboutData);
54
KCmdLineArgs::addCmdLineOptions(op);
56
args = KCmdLineArgs::parsedArgs();
60
if(args->isSet("module")) zap->setModule(args->getOption("module"));
61
if(args->isSet("frontend")) zap->setFrontend(args->getOption("frontend"));
63
a.setMainWidget(zap->gui());