{"id":136,"date":"2008-04-11T10:38:19","date_gmt":"2008-04-11T08:38:19","guid":{"rendered":"http:\/\/pocoproject.org\/poco\/blog\/?p=136"},"modified":"2008-04-11T10:38:19","modified_gmt":"2008-04-11T08:38:19","slug":"webwidgets","status":"publish","type":"post","link":"https:\/\/pocoproject.org\/blog\/?p=136","title":{"rendered":"WebWidgets"},"content":{"rendered":"<p>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<\/p>\n<p><code><br \/>\n\tPage::Ptr ptr = new Page(\"test\");<br \/>\n\tTabView::Ptr ptrTab(new TabView(\"tab1\"));<br \/>\n\tptrTab->add(new Image(\"Image\", Poco::URI(\"Sunset.jpg\")));<br \/>\n\tLabel::Ptr ptrLbl(new Label(\"Label\"));<br \/>\n\tptrLbl->setText(\"Hallo\");<br \/>\n\tptrTab->add(ptrLbl);<\/p>\n<p>\tTabView::Ptr ptrTab2(new TabView(\"TabView\"));<br \/>\n\tptrTab->add(ptrTab2);<br \/>\n\tptr->add(ptrTab);<\/p>\n<p>\tForm::Ptr ptrFrm(new Form(\"theForm\"));<br \/>\n\tptrTab2->add(ptrFrm);<br \/>\n\tptrTab2->setActiveView(0);<br \/>\n\tImage::Ptr ptrImg (new Image(\"img1\", Poco::URI(\"Sunset.jpg\")));<br \/>\n\tptrImg->setText(\"Image\");<br \/>\n\tptrImg->setToolTip(\"This is just an image\");<\/p>\n<p>\tptrFrm->add(ptrImg);<br \/>\n\tRadioButton::Ptr ptrBut2 (new RadioButton(\"radio\"));<br \/>\n\tptrBut2->setText(\"Disable\");<br \/>\n\tptrBut2->setToolTip(\"click here to disable\");<br \/>\n\tptrTab2->add(ptrBut2);<br \/>\n\tptrTab->setActiveView(2);<br \/>\n<\/code><\/p>\n<p>already produces the following HTML page:<\/p>\n<p><a href='http:\/\/pocoproject.org\/poco\/blog\/wp-content\/uploads\/webkit.jpg' title='Webkit'><img src='http:\/\/pocoproject.org\/poco\/blog\/wp-content\/uploads\/webkit.thumbnail.jpg' alt='Webkit' \/><\/a><\/p>\n<p>Code is not yet in SVN, I estimate another one to two weeks until you can play with it and either start<br \/>\nwriting your own renderers or extend the extjs one.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-136","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/pocoproject.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pocoproject.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pocoproject.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pocoproject.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/pocoproject.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=136"}],"version-history":[{"count":0,"href":"https:\/\/pocoproject.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/136\/revisions"}],"wp:attachment":[{"href":"https:\/\/pocoproject.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pocoproject.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pocoproject.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}