[wx-dev] Re: wxpresets problems/suggestions

Vadim Zeitlin vadim at wxwidgets.org
Sat Dec 1 05:16:27 PST 2007


On Sat, 1 Dec 2007 02:12:48 +0100 Vaclav Slavik <vslavik at fastmail.fm> wrote:

VS> For me, it makes most sense to have a neutral base template and two 
VS> specialized derived templates (GUI and console modes are unrelated, 
VS> so neither should derive from the other one) [*]:
VS> 
VS>   +-- wx-library     // all common stuff
VS>       +-- wxgui      // GUI only (<app-type>, maybe <wx-lib>core too)
VS>       +-- wxconsole  // console only (<app-type> only)

 I agree. And I could even agree that "wx" should be "wx-library", although
I still have a slight preference for mapping it to "wxgui". But at least
with the diagram above calling the common base "wx" would be logical so I
definitely can live with it. The current situation is not logical however.

VS> If we were to derive one from the other, I'd consider it better to 
VS> mirror wxApp hierarchy, i.e. to have
VS> 
VS>   +-- wxconsole            as in        +-- wxAppConsole
VS>       +-- wxgui                             +-- wxAppBase
VS>                                                 +-- wxApp

 If the only difference is that "wxgui" adds core library (I imagine
wxconsole would include the base one automatically) and <app-type>gui</>
then this is quite logical as well.

VS> But again, I think it's best to do [*], regardless of what particular 
VS> names are used for the templates (as long as they are not confusing).

 I think both of your proposals are much better than the current situation.

 Regards,
VZ





More information about the wx-dev mailing list