| Wt examples
    3.3.0
    | 
#include <boost/lexical_cast.hpp>#include <Wt/WApplication>#include <Wt/WText>#include <Wt/WImage>#include <Wt/WPushButton>#include "DemoTreeList.h"#include "TreeNode.h"#include "IconPair.h"Go to the source code of this file.
| Functions | |
| WApplication * | createApplication (const WEnvironment &env) | 
| int | main (int argc, char **argv) | 
| WApplication* createApplication | ( | const WEnvironment & | env | ) | 
Definition at line 157 of file DemoTreeList.C.
{
  WApplication *app = new WApplication(env);
  new DemoTreeList(app->root());
  /*
   * The look & feel of the tree node is configured using a CSS style sheet.
   * If you are not familiar with CSS, you can use the WCssDecorationStyle
   * class ...
   */
  WCssDecorationStyle treeNodeLabelStyle;
  treeNodeLabelStyle.font().setFamily(WFont::Serif, "Helvetica");
  app->styleSheet().addRule(".treenodelabel", treeNodeLabelStyle);
  /*
   * ... or if you speak CSS fluently, you can add verbatim rules.
   */
  app->styleSheet().addRule(".treenodechildcount",
                            "color:blue; font-family:Helvetica,serif;");
  return app;
}
| int main | ( | int | argc, | 
| char ** | argv | ||
| ) | 
Definition at line 180 of file DemoTreeList.C.
{
   return WRun(argc, argv, &createApplication);
}
 1.7.5.1
 1.7.5.1