summaryrefslogtreecommitdiffstats
path: root/ksvg/test/external/svgdisplay.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2020-12-13 19:22:19 +0900
committerMichele Calgaro <[email protected]>2020-12-13 19:22:19 +0900
commit14d0fbe96c6abdb9da80e99953aec672f999948c (patch)
treed48726c1256a1a495b415570847f08ecf9e5ecdd /ksvg/test/external/svgdisplay.cpp
parentdb124e3167670efff59f6aef4bc0daff316dddf8 (diff)
downloadtdegraphics-14d0fbe96c6abdb9da80e99953aec672f999948c.tar.gz
tdegraphics-14d0fbe96c6abdb9da80e99953aec672f999948c.zip
Renaming of files in preparation for code style tools.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'ksvg/test/external/svgdisplay.cpp')
-rw-r--r--ksvg/test/external/svgdisplay.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/ksvg/test/external/svgdisplay.cpp b/ksvg/test/external/svgdisplay.cpp
new file mode 100644
index 00000000..de1172dc
--- /dev/null
+++ b/ksvg/test/external/svgdisplay.cpp
@@ -0,0 +1,32 @@
+#include <tdeapplication.h>
+#include <tdecmdlineargs.h>
+#include <tdelocale.h>
+#include <tdeaboutdata.h>
+#include "SVGTestWidget.h"
+
+static TDECmdLineOptions options[] =
+{
+ { "+URL", I18N_NOOP("SVG file to open"), 0 },
+ TDECmdLineLastOption
+};
+
+int main(int argc, char **argv)
+{
+
+ TDEAboutData *about = new TDEAboutData( "KSVG test app", I18N_NOOP("KSVG test"), "0.1", I18N_NOOP("KSVG standalone test app") );
+ TDECmdLineArgs::init(argc, argv, about);
+ TDECmdLineArgs::addCmdLineOptions( options );
+ TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
+ if(args->count() == 0)
+ {
+ args->usage();
+ return 0;
+ }
+ KURL url = args->url(0);
+ TDEApplication a( argc, argv );
+ SVGTestWidget *w = new SVGTestWidget(url);
+ a.setMainWidget(w);
+ w->show();
+
+ return a.exec();
+}