Wx::Perl::Smart::* (technical advantages of GCL)

As en extention of my last post, where I introduced the first rough ideas of the still changing GCL syntax, I want to write now about further advantages of the DSL I created this new namespace for. Yes it reminds a bit on smartmatch, but that's wanted, because these modules that implement the functionalities of GCL in the Wx realm (second planned target is Prima because I cant install Gtk2 here) and there is a lot things going on depending on the type of the value, exactly like in smartmatch. Plus the Wx::Perl::* namespace will be more free for other normal modules that do far less magic.

I now added to the Wx::Perl::Smart::Frame class a SubscribeWidgets method. This will free you from severel problems.

1.) Depending on the input it creates widgets for you with minimal data needed which (no -1 params anymore) declutteres your program greatly and you get kinda getter/setter for them for free. (most understand SetValue, some have other methods)

2.) You don't have to care about the parenting anyway because thats handeled by smart sizers.

3.) it automatically hides all widgets so only widgets. so only things that are part of the layout show up. This is handy while playing with the layout. When you comment something in the layout it stays hidden and will not popup in left upper corner, like in usual WxPerl code where you have to somment also the code that created the widget.

4.) It beautifies the GCL syntax. Instead of $widgetvar or $app->{'widgetname'} (second is much more likesly since you will process similar widgets by common routines) you have now just to write which is an even Perl 6 compatible syntax. Not to mention you can give widgets an ID while there are autogenerated by GCL, to play with them later.