2
/* This template is based off of the KOffice example written by Torben Weis <weis@kde.org
3
It was converted to a KDevelop template by Ian Reinhart Geiser <geiseri@yahoo.com>
6
#include <koApplication.h>
7
#include <koDocument.h>
8
#include <koMainWindow.h>
9
#include <kcmdlineargs.h>
11
#include <dcopclient.h>
12
#include "%{APPNAMELC}_aboutdata.h"
15
static const KCmdLineOptions options[]=
17
{"+[file]", I18N_NOOP("File to open"),0},
21
int main( int argc, char **argv )
23
KCmdLineArgs::init( argc, argv, new%{APPNAME}AboutData() );
24
KCmdLineArgs::addCmdLineOptions( options );
27
app.dcopClient()->attach();
28
app.dcopClient()->registerAs( "%{APPNAMELC}" );
30
if (!app.start()) // parses command line args, create initial docs and shells