1
/***************************************************************************
2
* Copyright (C) 2003 by Stephen Allewell *
3
* stephen@mirramar.fsnet.co.uk *
5
* This program is free software; you can redistribute it and/or modify *
6
* it under the terms of the GNU General Public License as published by *
7
* the Free Software Foundation; either version 2 of the License, or *
8
* (at your option) any later version. *
9
***************************************************************************/
11
#include <kcmdlineargs.h>
12
#include <kaboutdata.h>
16
static const char *description =
17
I18N_NOOP("KXStitch");
19
static KCmdLineOptions options[] =
21
{ "+[File]", I18N_NOOP("file to open"), 0 },
25
int main(int argc, char *argv[])
27
KAboutData aboutData( "kxstitch", I18N_NOOP("KXStitch"),
28
VERSION, description, KAboutData::License_GPL,
29
"(c) 2004, Stephen Allewell", 0, 0, "stephen@mirramar.fsnet.co.uk");
30
aboutData.addAuthor("Stephen Allewell",0, "stephen@mirramar.fsnet.co.uk");
31
aboutData.addCredit("Pierre Brua",I18N_NOOP("Bug fixes, application icons, French translation"),"kxstitchdev@paralline.com");
32
KCmdLineArgs::init( argc, argv, &aboutData );
33
KCmdLineArgs::addCmdLineOptions( options );
35
KXStitchApplication app;
43
KXStitchApp *kxstitch = new KXStitchApp();
46
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
50
kxstitch->openDocumentFile(args->arg(0));