Wt examples  3.2.0
Functions
/home/koen/project/wt/public-git/wt/examples/treelist/DemoTreeList.C File Reference
#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

WApplicationcreateApplication (const WEnvironment &env)
int main (int argc, char **argv)

Function Documentation

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);
}

Generated on Tue Nov 29 2011 for the C++ Web Toolkit (Wt) by doxygen 1.7.5.1