Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: byo on March 23, 2006, 01:21:38 pm

Title: Rewritten wxSmith
Post by: byo on March 23, 2006, 01:21:38 pm
I've decided to add current source code of rewritten wxSmith into svn (it will be in wxSmith/new directory) :)

If someone want to look into new structure, I tried to document almost everytning in doxygen (doxyfile attached in sources).

But I must warn that this is still during development and older version must be used for designing wxWidgets forms. New version will simply not work. Some things still need to be coded and of course there are some really bad bugs  :?.
As soon as new version gets the functionality of old one, it will replace current wxSmith.

And one more thing for those who are waiting for some new features - after rewriting, wxSmith will look almost exactly as the old version. Only it's internal structure changes.
But I hope that new structure will make coding new features easier (and much more bug-free) :)
Title: Re: Rewritten wxSmith
Post by: mandrav on March 23, 2006, 01:39:32 pm
Quote
I've decided to add current source code of rewritten wxSmith into svn (it will be in wxSmith/new directory)

Wise move ;)
Title: Re: Rewritten wxSmith
Post by: Game_Ender on March 23, 2006, 06:06:34 pm
Very Cool.  It would be slightly cleaner to create a new branch in the root "branches" directory and just merge that branch into the old version of wxSmith when you are finished.  After all if you are doing branch based development in subversion you might as well do it the subversion way.
Title: Re: Rewritten wxSmith
Post by: cyberkoa on March 24, 2006, 08:12:26 am
byo, a reply to your mail . the in fact the wxsbitmapbutton.h is not missing , in contract , I add wxsbitmapbutton.cpp accidentally , I have not coded the bitmapbutton widget . Anyway , I shall add the wxsbitmapbutton.h later.

One thing that I notice in the wxSmith.cbp , both in "new" and HEAD version, miss out the host application setting ..  Any purpose of taking of the that ? I could only run the wxSmith project when the host application is set.

Title: Re: Rewritten wxSmith
Post by: PsYhLo on April 06, 2006, 10:16:13 am
i found this in src\plugins\contrib\wxSmith\new\defwidgets\wxsheaders.h
Code: cpp
void wxsFlexGridSizer::BuildSizerCreatingCode(wxString& Code,const wxString& WindowParent,wxsCodingLang Language)
{
    switch ( Language )
    {
        case wxsCPP:
            Code << GetVarName() << _T(" = new wxFlexGridSizer(")
                 << wxString::Format(_T("%d,%d,"),Cols,Rows) [b]<<[/b]
                 << wxsDimensionProperty::GetPixelsCode(VGap,VGapDU,WindowParent,wxsCPP) << _T(",")
                 << wxsDimensionProperty::GetPixelsCode(HGap,HGapDU,WindowParent,wxsCPP) << _T(");\n");

the << must not be there
Title: Re: Rewritten wxSmith
Post by: byo on April 06, 2006, 01:19:09 pm
i found this in src\plugins\contrib\wxSmith\new\defwidgets\wxsheaders.h

Some other file but I've found it in few seconds ;)

the << must not be there

true, true  :D  It will be fixed after next commit :)
Title: Re: Rewritten wxSmith
Post by: MortenMacFly on May 11, 2006, 08:53:10 pm
I just wanted to say that I'm very impressed by the progress of the new wxSmith. I've realised that there were "loads" of commits since the date of this topic's first post. Thus I'd like to ask the following: Do you think it's already time to do the switch to start the testing and (maybe) bug-reporting phase? But of course if you think that this:
But I must warn that this is still during development and older version must be used for designing wxWidgets forms. New version will simply not work.
...is still true it doesn't. I'm not pushing anything here, really - but it may (or may not) help already...?!
With regards, Morten.
Title: Re: Rewritten wxSmith
Post by: byo on May 12, 2006, 01:50:18 am
I just wanted to say that I'm very impressed by the progress of the new wxSmith.
And I'm impressed by posts like this one :D. Since I don't have as much time to work on wxSmith as before I feel like it just goes to slow. But maybe it's like with games you've already played. Next time you know better what to do and do it faster ;)

Quote
Do you think it's already time to do the switch to start the testing and (maybe) bug-reporting phase?

I think that testing may start now. In previous state wxSmith was unable to open editors and other basic stuff. Currently it works, editors are almost done. Some featres and widgets are still missing but the worst part of rewrite is done. And of course there are bugs - sometimes really annoying and hard to find (especially OS-specific). And here I'm waiting for bug reports :)

If anyone is interested in testing here are some guidelines:

And what's most important (especially for me): Thanx for testing :D