[wx-discuss] wxTNG: compatibility with wx2 API
Stefan Csomor
csomor at advancedconcepts.ch
Thu Feb 16 09:43:48 PST 2006
Hi
> JS> >So this would eg mean that while wx3 might have a
> wx::Window with
> JS> >value semantics, there still would be a wxWindow for
> keeping old code running.
>
> Right. Now the question is just whether wx::Window has a "wxWindow *"
> inside it or if wxWindow becomes a wrapper around wx::Window.
yes, IMHO boils down to wx2 on wx3 or wx3 on wx2
> As such, the possibility to start using some of wx3 features
> in existing code is important, I think. And being able to mix
> wx2 and wx3 in the same program should be one of the goals IMO.
so far we both agree
> JS> >wx2 wrapping wx3 will allow both sides to move gradually,
>
> Sorry, I fail to see how. We need to spend a massive effort
> on rewriting (or at least refitting) the existing code into
> wx3 and during this time the development of wx2 would be
> practically stopped as it couldn't even continue on another
> branch as merging won't be possible later. Also, moving all
> wx2 code into wx3 at once like this will automatically mean
> inheriting a lot of legacy code (think: exception-unsafe, not
> using std classes, ...) while in my dream wx3 would contain
> only clean, modern and, most importantly, peer-reviewed code.
>
> When Julian says that wx2-on-wx3 approach is the cleanest
> and the easiest one to implement, I agree with the first part
> but strongly disagree with the second one. I'm afraid
> wx3-on-wx2 is the only possibility in practice.
that's where I disagree, for me it would be a waste of time to build wx3
upon wx2, apart from the High-Level APIs I mentioned before, where we
could gain something already then, but at the lower level it would still
be the same problems. the wx2 on wx3 approach would eg be to implement
some of the wx2 classes directly using some of the external libraries,
this could be done piece by piece, libcurl or boost or whatever. We
could eg also start implementing a new DC architecture using paths,
colours etc. and have a wx2 wxDC that is more or less the same on all
platforms that is implemented using wx3::dc
Best,
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: wx-discuss-unsubscribe at lists.wxwidgets.org
For additional commands, e-mail: wx-discuss-help at lists.wxwidgets.org
More information about the wx-discuss
mailing list