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

wxWidget project wizard

<< < (2/3) > >>

Biplab:
I believe Byo would be the best person to answer both the questions. :)

The sample code is a wxSmith generated code. I am unsure whether the generated code can be customised or not.

BTW, I have one question for you.


--- Quote from: killerbot on July 06, 2007, 02:48:37 pm ---in my case I created a little dialog app. So I ended up with 1 wxs file. But that file was NOT added to the project, so that means if I change it and then build, it does NOT get autosaved !!!

--- End quote ---

On which platform did you face this issue? :)

raph:

--- Quote from: Biplab on July 07, 2007, 12:12:50 pm ---The sample code is a wxSmith generated code. I am unsure whether the generated code can be customised or not.

--- End quote ---
Yes, wxSmith will regenerate that code frequently, so simply changing that code will not help.

killerbot:
@Biplab : on linux

killerbot:
well I should restate it : I looked at my project file (cbp) :


--- Code: --- <Unit filename="UtcTranslatorApp.cpp" />
<Unit filename="UtcTranslatorApp.h" />
<Unit filename="UtcTranslatorMain.cpp" />
<Unit filename="UtcTranslatorMain.h" />
<Unit filename="wxsmith/UtcTranslatordialog.wxs" />

--- End code ---

So it seems it is added to the project. Seems more a bug of CB then, that a build time it refuses to save it !!!

byo:

--- Quote from: killerbot on July 07, 2007, 11:29:53 am ---
I *think*  that the following are NOT needed :
1) wx/bitmap.h
2) wx.fontenum.h
3) wx/fontmap.h
4) wx/image.h

Is this correct ?


--- End quote ---

Right, those are not needed, but including them conditionally will require some more sophisticated include-generating system checking whether wxBitmap / wxImage etc is really used in generated code. Generated code is correct and will compile fine so I've marked it to post-release feature.


--- Quote ---A remark about readability : several methods their arguments are all concatenated without any whitespace in between, which makes it hard to read. Is it possible to insert a space (no tab ;-) ) ?

--- End quote ---

Quite easy to do but time-consuming. I just wonder why someone would like to read wxSmith's generated code ;) 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.

Regards
   BYO

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version