3
#include "%{APPNAMELC}.h"
4
#include <kapplication.h>
5
#include <kaboutdata.h>
6
#include <kcmdlineargs.h>
9
static const char description[] =
10
I18N_NOOP("A KDE KPart Application");
12
static const char version[] = "0.1";
14
static KCmdLineOptions options[] =
16
// { "+[URL]", I18N_NOOP( "Document to open" ), 0 },
20
int main(int argc, char **argv)
22
KAboutData about("%{APPNAMELC}", I18N_NOOP("%{APPNAME}"), version, description,
23
KAboutData::License_%{LICENSE}, "(C) %{YEAR} %{AUTHOR}", 0, 0, "%{EMAIL}");
24
about.addAuthor( "%{AUTHOR}", 0, "%{EMAIL}" );
25
KCmdLineArgs::init(argc, argv, &about);
26
KCmdLineArgs::addCmdLineOptions( options );
28
%{APPNAME} *mainWin = 0;
36
// no session.. just start up normally
37
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
39
/// @todo do something with the command line args here
41
mainWin = new %{APPNAME}();
42
app.setMainWidget( mainWin );