Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

wxWidget project wizard

<< < (3/3)

killerbot:

--- Quote ---Quite easy to do but time-consuming. I just wonder why someone would like to read wxSmith's generated code Wink Since it's automatically generated, people may thread it as some black-box (even though it's content is available) which just do what it should. Currently I don't have enough time to switch. So this is probably also post-release task.
--- End quote ---

If you can pinpoint me the code, I am happy to help ;-)

byo:

--- Quote from: killerbot on July 09, 2007, 01:18:52 pm ---
--- Quote ---Quite easy to do but time-consuming. I just wonder why someone would like to read wxSmith's generated code Wink Since it's automatically generated, people may thread it as some black-box (even though it's content is available) which just do what it should. Currently I don't have enough time to switch. So this is probably also post-release task.
--- End quote ---

If you can pinpoint me the code, I am happy to help ;-)

--- End quote ---

Search for OnBuildCreatingCode functions in classes inside wxSmith/wxwidgets/defitems directory. Each of these functions is responsible for generating code and usually it's done through Codef function. This function works simillar to printf but is dedicated to code generation. So when you have f. ex. :

--- Code: ---Code << Codef(Language,_T("%C(%W,%I,%P,%S,%T,%N);\n"));

--- End code ---

Just change it to:

--- Code: ---Code << Codef(Language,_T("%C(%W, %I, %P, %S, %T, %N);\n"));

--- End code ---

That's all :)

(Note that some funcitons may use easier version of Codef - without streaming operator and Language argument,  but it works the same).

Regards
   BYO

Navigation

[0] Message Index

[*] Previous page

Go to full version