From 8b18346c02610fd9bc7978e4d4cfd9e990506cae Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Sat, 30 Jul 2016 10:36:08 +0200 Subject: [PATCH] Added xsl to transform gtkform to zakform definition files. --- Makefile.am | 2 +- configure.ac | 1 + tools/Makefile.am | 5 +++++ tools/gtk2zak.xsl | 50 +++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 tools/Makefile.am create mode 100644 tools/gtk2zak.xsl diff --git a/Makefile.am b/Makefile.am index 9256369..898d285 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,6 @@ DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc -SUBDIRS = po libgtkform libgtkformui test docs data +SUBDIRS = po libgtkform libgtkformui test docs data tools ACLOCAL_AMFLAGS = -I m4 diff --git a/configure.ac b/configure.ac index ffe3a97..6062f39 100644 --- a/configure.ac +++ b/configure.ac @@ -107,6 +107,7 @@ AC_CONFIG_FILES([ libgtkformui/Makefile libgtkformui/test/Makefile test/Makefile + tools/Makefile docs/Makefile docs/reference/Makefile docs/reference/version.xml diff --git a/tools/Makefile.am b/tools/Makefile.am new file mode 100644 index 0000000..f45e2f4 --- /dev/null +++ b/tools/Makefile.am @@ -0,0 +1,5 @@ +toolsdir = $(datadir)/$(PACKAGE)/tools + +tools_DATA = gtk2zak.xsl + +EXTRA_DIST = $(tools_DATA) diff --git a/tools/gtk2zak.xsl b/tools/gtk2zak.xsl new file mode 100644 index 0000000..2a685c4 --- /dev/null +++ b/tools/gtk2zak.xsl @@ -0,0 +1,50 @@ + + + + + + + + + zak_form_gtk_form_element_entry + zak_form_gtk_form_element_label + zak_form_gtk_form_element_textview + zak_form_gtk_form_element_radio + zak_form_gtk_form_element_check + + + + + + string + integer + datetime + boolean + float + + + + TRUE + FALSE + FALSE + + + + @now + + + + + + + + + + + + + + + + -- 2.49.0