WebWidgets

We are currently in progress of changing the WebWidgets library. We now have a core library defining the GUI elements, the CodeGenerators aka Renderers are kept in a separate library. The renderer I am currently working on is a Codegenerator for ExtJs. The code is still very incomplete (especially callbacks, events, table stuff) but writing C++ code like that


Page::Ptr ptr = new Page("test");
TabView::Ptr ptrTab(new TabView("tab1"));
ptrTab->add(new Image("Image", Poco::URI("Sunset.jpg")));
Label::Ptr ptrLbl(new Label("Label"));
ptrLbl->setText("Hallo");
ptrTab->add(ptrLbl);

TabView::Ptr ptrTab2(new TabView("TabView"));
ptrTab->add(ptrTab2);
ptr->add(ptrTab);

Form::Ptr ptrFrm(new Form("theForm"));
ptrTab2->add(ptrFrm);
ptrTab2->setActiveView(0);
Image::Ptr ptrImg (new Image("img1", Poco::URI("Sunset.jpg")));
ptrImg->setText("Image");
ptrImg->setToolTip("This is just an image");

ptrFrm->add(ptrImg);
RadioButton::Ptr ptrBut2 (new RadioButton("radio"));
ptrBut2->setText("Disable");
ptrBut2->setToolTip("click here to disable");
ptrTab2->add(ptrBut2);
ptrTab->setActiveView(2);

already produces the following HTML page:

Webkit

Code is not yet in SVN, I estimate another one to two weeks until you can play with it and either start
writing your own renderers or extend the extjs one.