2
#include <kapplication.h>
3
#include <kaboutdata.h>
4
#include <kcmdlineargs.h>
6
#include "mainviewimp.h"
8
static const char description[] = I18N_NOOP("A KDE Application");
10
static const char version[] = "%{VERSION}";
12
static KCmdLineOptions options[] =
14
{ "+[URL]", I18N_NOOP( "Document to open" ), 0 },
19
int main(int argc, char **argv)
21
KAboutData about("%{APPNAME}", I18N_NOOP("%{APPNAME}"), version, description,
22
KAboutData::License_%{LICENSE}, "(C) 2004 %{AUTHOR}", 0, 0, "%{EMAIL}");
23
about.addAuthor( "%{AUTHOR}", 0, "%{EMAIL}" );
24
KCmdLineArgs::init(argc, argv, &about);
25
KCmdLineArgs::addCmdLineOptions(options);
26
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
28
MainViewImp *widget = new MainViewImp;
29
app.setMainWidget(widget);