make templates configurable from a file
commitcc7b5e1a8c07bbc070480a32f43d7878e67a23ab
authorMichal Kottman <michal.kottman@gmail.com>
Thu, 5 Aug 2010 14:27:50 +0000 (5 16:27 +0200)
committerMichal Kottman <michal.kottman@gmail.com>
Thu, 5 Aug 2010 14:27:50 +0000 (5 16:27 +0200)
tree34d049af51640554d3a2793e57a4e045f926f3b5
parentba26d6a2d156f6ebab4add72ce02f728b3f4e02e
make templates configurable from a file

The templates are now configurable via a Lua file returning the
translation table. It is 'qtemplates.lua' by default, but a custom file
can be specified on the command line using the '-c filepath' switch.

The keys in the table can be either the names of template classes,
or the module name (qtcore, qtgui...). See generator/qtemplates.lua
for examples of usage.
generator/generator.lua
generator/qtemplates.lua [new file with mode: 0644]
generator/templates.lua