wxPlatform class ?

Francesco Montorsi f18m_cpp217828 at yahoo.it
Tue Jul 4 10:35:53 PDT 2006


Vadim Zeitlin ha scritto:
> On Tue, 04 Jul 2006 17:17:30 +0200 Francesco Montorsi <f18m_cpp217828 at yahoo.it> wrote:
> 
> FM> 1) wxAppTraits does not provide any way to convert between the enums in 
> FM> defs.h and their string representation
> 
>  What is this needed for?
it can be useful when e.g. loading/writing non-binary files which need 
to contain a reference to a wx port.
In the applications where I found it useful it was used when loading XML 
files with port="wxgtk|wxmsw|..."-like attributes, to be more precise.


> FM> 2) I don't understand why wxToolkitInfo is a virtual wxAppTraits member 
> FM> function.
> 
>  Because it works differently in console and GUI applications, as comment
> in front of it explains.
ok - I got it now looking at how wxGetOsVersion() is implemented; 
without knowing that it internally uses wxAppTraits I did not understood 
that comment.

BTW, I still propose to:
1) make wxToolkitInfo a full class with a form like the wxPlatform class 
mentioned in my first mail of this thread
2) document wxToolkitInfo and also wxAppTraits

Francesco





More information about the wx-dev mailing list