[glade--]RE : [Glade-devel] Re: glade code generation



Murray wrote:
>
> > but in fact, you can't do much better if you generate code.
> 
> C++ has the concept of inheritance. glademm generates only 
> base classes.
> User-written code is in user-written derived classes.

That's irrelevant.  The question is: what happens when the user edits
code that he shouldn't edit and later it regenerates this code?

Two different places to put the same info is one too much, and as the
task of extract the information from a .glade file is several orders of
magnitude easier than extracting it from the code, .glade files should
be used.

I still see useful (for those who don't like an extra dependency) a
utility that converts a .glade file to [pick you language] code,
hopefully one that, with enough makefile's magic can do the conversion
automatically at compilation time (kind of like the RC compiler on
windows).

But that's out of glade's scope.

Cheers,





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]