as we know Projucer allows to write custom code (headers, pre and post constructors…), in order to avoid this code to be erased when changes are made and file re-generated.
I would like to add custom code in other zones of the code, where tags were not originally put.
Ok indeed I see that in the class tab of the gui editor for given component, in General Class Settings, we have a field “Template File”, what is it expecting from me? Path for a cpp template file? or other format?
ok so just to close this thread, I have investigated the projucer code, and got to the conclusion that we simply need to create 2 files myTemplate.cpp and myTemplate.h (same names required), and put them in the same directory as the concerned component file.
Then in the component settings (in the GUI editor) you simply input the myTemplate (with no extension)
save the whole, and the new field magically appears now in our auto-generated file
Is there a way to change the template used by all components ?
I modified JUCE\extras\Projucer\Source\BinaryData\jucer_ComponentTemplate.cpp and jucer_ComponentTemplate…h but the ProJucer seems to ignore my changes …
Or if it’s not possible could you please add the old jucer back in the Juce repo ? Because that’s something it could do …