CONFIGURATION
The configuration tag comes in handy for indicating *exactly* the amount of objects you are going to use in your application,
and thus want Prosciutto to reserve memory for them up-front (upon initialisation).
All attributes - including the tag itself - are optional, but we strongly recommend that you specify your own settings, as the
default values might not be the best fit for your application.
Here's how to populate the config tag. Note that the values are actually the default values as defined inside the engine, so it wouldn't take
any effect to declare particularly those values in a config tag. Again, you should change the values for whatever better suits your application.
<config
language="1" //default language. Can be set to 0 (english), 1 (spanish), or 2 (portuguese). Default if not specified is 0 (english).
form_qty="10" //form quantity. The amount of forms you want Prosciutto to reserve cache for.
buttons_form="60" //buttons per form. The maximum amount of buttons you expect to use in any given form.
tpl_qty="10" //template quantity. The amount of different templates you want Prosciutto to reserve cache for. Usually matches the amount of forms, as templates are only attached to forms.
buttons_tpl="8" //buttons per template. The amount of buttons you say you'll have (maximum) in any given template.
timer_qty="8" //timer quantity. The amount of different timer objects you expect to live in Prosciutto's lifecycle, at any given time.
font_qty="8" //font quantity. How many different font objects will you define in your application?
imgarray_qty="8" //image arrays quantity. How many different image arrays objects do you want Prosciutto to set heap space apart for?
images_per_array="8" //images per array quantity. In each image array object, how many actual images (maximum) will each contain, at any given time?
msg_qty="100" //message inbox capacity. Override this only if you are not using any object-to-object messaging by means of the API. Mostly used for "goback" actions internally; my recommendation is you can set it to the amount of "goto" actions you have in your app.
colordef_qty="100" //color definitions quantity. How many colors will you define for this apps' UI objects?. This is the amount that Prosciutto will reserve for you.
wrapper_buttons="5" //number of wrapper buttons you expect to use in your application.
wrapper_lines="100" //maximum number of wrapper lines each wrapper button will allow to split. If a button's text exceed this number in lines, exceeding lines will be discarded.
lbs_timeout="60" //this is only read by Prosciutto in the LBS supporting version. Indicates the timeout in seconds, for which Prosciutto will wait for the underlying platform to read the current location.
debug_form="26000" //if you are using debugging (only for developers), you can tell Prosciutto which form you will be using for showing debug information, so Prosciutto won't keep track of events when showing this specific form.
/>
<config
form_qty="10"
buttons_form="60"
tpl_qty="10"
buttons_tpl="8"
timer_qty="8"
font_qty="8"
imgarray_qty="8"
images_per_array="8"
msg_qty="100"
colordef_qty="100"
/>
Actually, this is identical to the default values embedded with the engine, so commenting out this line or not declaring it all
will have equal effects as to memory allocation.
<config
form_qty="5"
buttons_form="20"
tpl_qty="5"
buttons_tpl="8"
timer_qty="1"
font_qty="8"
imgarray_qty="8"
images_per_array="1"
msg_qty="50"
colordef_qty="10"
/>