Altering xrc code generation in wxCrafter

Post here wxCrafter related issues / features / bugs
ArsDigita
CodeLite Curious
Posts: 1
Joined: Thu Oct 06, 2022 6:16 pm
Genuine User: Yes
IDE Question: C++
Contact:

Altering xrc code generation in wxCrafter

Post by ArsDigita »

I need to alter the header of a XRC file generated by wxCrafter. The header at present looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<resource xmlns="http://www.wxwidgets.org/wxxrc">

to make it work in up to date wxWidget compilation I need this:

<?xml version="1.0" encoding="ISO-8859-1"?>
<resource xmlns="http://www.wxwidgets.org/wxxrc" version="2.5.3.0">

in other words, I want to add a string "version="2.5.3.0"" to existing <resource> statement.
How do I do it from within wxCrafter/CodeLite? Is it possible at all to alter xrc code generation in wxCrafter?

Best, Bogdan Rozborski, ArsDigita.

DavidGH
CodeLite Plugin
Posts: 774
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: Altering xrc code generation in wxCrafter

Post by DavidGH »

Hi,

to make it work in up to date wxWidget compilation I need this

Hmm. I'd not noticed the change. I wonder why they did it...

But I've just tested the 'xrc' sample (that comes with the wxWidgets source), using the latest git wx version. Changing back to the original

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<resource xmlns="http://www.wxwidgets.org/wxxrc">

in the sample runs without a problem here (Linux, debian 10). Does it for you?

However, to answer your question: no, afaik there's no way to tell wxCrafter to alter those strings. Perhaps there should be, though.

Regards,

David

Post Reply