summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2025-10-16 09:37:19 +0200
committerSlávek Banko <slavek.banko@axis.cz>2025-10-16 20:59:48 +0200
commit051cb41fe66c875d50eb8c4d8fa9e0213b6ccda7 (patch)
tree9cdde01f9b56dadecda84c24ff0f2c52eb96eb02 /src/main.cpp
downloadtdexsldbg-051cb41fe66c875d50eb8c4d8fa9e0213b6ccda7.tar.gz
tdexsldbg-051cb41fe66c875d50eb8c4d8fa9e0213b6ccda7.zip
Initial import of kxsldbg source code from tdewebdev and translations from tde-i18n.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
new file mode 100644
index 0000000..f90cfb7
--- /dev/null
+++ b/src/main.cpp
@@ -0,0 +1,38 @@
+#include "kxsldbg.h"
+#include <tdeapplication.h>
+#include <tdeaboutdata.h>
+#include <tdecmdlineargs.h>
+#include <tdelocale.h>
+#include <kdebug.h>
+
+static const char *description =
+ I18N_NOOP("A TDE KPart Application for xsldbg, an XSLT debugger");
+
+static const char *version = VERSION;
+static const TDECmdLineOptions options[] =
+{
+ { "+XSLSource", I18N_NOOP("XSL script to run"), 0},
+ { "+XMLData", I18N_NOOP("XML data to be transformed"), 0},
+ { "+OutputFile", I18N_NOOP("File to save results to"), 0},
+ TDECmdLineLastOption // End of options.
+};
+
+int main(int argc, char **argv)
+{
+ TDEAboutData about("kxsldbg", I18N_NOOP("KXSLDbg"), version, description, TDEAboutData::License_GPL, "(C) 2003 Keith Isdale", 0, 0, "k_isdale@tpg.com.au");
+ about.addAuthor( "Keith Isdale", 0, "k_isdale@tpg.com.au" );
+ TDECmdLineArgs::init(argc, argv, &about);
+ TDECmdLineArgs::addCmdLineOptions( options );
+ TDEApplication app;
+
+ // see if we are starting with session management
+ if (app.isRestored())
+ RESTORE(KXsldbg)
+ else
+ {
+ KXsldbg *widget = new KXsldbg;
+ widget->show();
+ }
+
+ return app.exec();
+}