I'm thinking of include lua script to fluid to allow more flexibility and
customization of code generation, my initial idea is to have one new tab
"Script" on widget_panel with two tabs: "Project", "User".

"User" scripts are saved to user preferences and is availlable for all
projects, "Project" is saved to project fluid file and is specific to the
project, the way lua works will be easy to merge both, first load the user
script and after project script to allow overwrite of user scripts for the
project.

How it can be used ?

One idea is to start an entry in some/any input fields with a prefix for
example "=myluascript widget_name" and when fluid will generate code it
checks to see if there is a lua function with the given name and if found
pass to it the generated code and write whatever that function returns,
also fluid can call special named scripts at specific points of code
generation to allow more control for the users.

Someone already did something like this ?
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to