Search code examples
htmlxmlwxwidgetsxrc

Is there a tool to convert wxWidgets XRC files to HTML?


I have an application with tons of windows (frames and dialogs) made with wxWidgets XRC. I'm preparing to convert all generated screens to HTML to make an web version, before doing it I would like to know if someone knows a tool for doing so, convert XRC resource to a bunch of DIVs, INPUTs, CHECKBOXes, TABLEs, etc., so I don't need to reinvent the wheel :)


Solution

  • To the best of my knowledge, no such tool exists and, to be honest, I have trouble understanding how one could be written considering that:

    1. wxWidgets layout model based on sizers is very different from the typical layout models used on the web, so you would need to find a way to reimplement it in CSS first.
    2. wxWidgets provides a much richer set of widgets than standard HTML, so you would also need to have a JavaScript library implementing many of them.