You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
771 B
33 lines
771 B
12 years ago
|
#include <tdeapplication.h>
|
||
|
#include <tdecmdlineargs.h>
|
||
12 years ago
|
#include <tdelocale.h>
|
||
12 years ago
|
#include <tdeaboutdata.h>
|
||
15 years ago
|
#include "SVGTestWidget.h"
|
||
|
|
||
12 years ago
|
static TDECmdLineOptions options[] =
|
||
15 years ago
|
{
|
||
|
{ "+URL", I18N_NOOP("SVG file to open"), 0 },
|
||
12 years ago
|
TDECmdLineLastOption
|
||
15 years ago
|
};
|
||
|
|
||
|
int main(int argc, char **argv)
|
||
|
{
|
||
|
|
||
12 years ago
|
TDEAboutData *about = new TDEAboutData( "KSVG test app", I18N_NOOP("KSVG test"), "0.1", I18N_NOOP("KSVG standalone test app") );
|
||
12 years ago
|
TDECmdLineArgs::init(argc, argv, about);
|
||
|
TDECmdLineArgs::addCmdLineOptions( options );
|
||
|
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
|
||
15 years ago
|
if(args->count() == 0)
|
||
|
{
|
||
|
args->usage();
|
||
|
return 0;
|
||
|
}
|
||
|
KURL url = args->url(0);
|
||
12 years ago
|
TDEApplication a( argc, argv );
|
||
15 years ago
|
SVGTestWidget *w = new SVGTestWidget(url);
|
||
|
a.setMainWidget(w);
|
||
|
w->show();
|
||
|
|
||
|
return a.exec();
|
||
|
}
|