/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.

00158 {
00159   WApplication *app = new WApplication(env);
00160   new DemoTreeList(app->root());
00161 
00162   /*
00163    * The look & feel of the tree node is configured using a CSS style sheet.
00164    * If you are not familiar with CSS, you can use the WCssDecorationStyle
00165    * class ...
00166    */
00167   WCssDecorationStyle treeNodeLabelStyle;
00168   treeNodeLabelStyle.font().setFamily(WFont::Serif, "Helvetica");
00169   app->styleSheet().addRule(".treenodelabel", treeNodeLabelStyle);
00170 
00171   /*
00172    * ... or if you speak CSS fluently, you can add verbatim rules.
00173    */
00174   app->styleSheet().addRule(".treenodechildcount",
00175                             "color:blue; font-family:Helvetica,serif;");
00176 
00177   return app;
00178 }

int main ( int  argc,
char **  argv 
)

Definition at line 180 of file DemoTreeList.C.

00181 {
00182    return WRun(argc, argv, &createApplication);
00183 }


Generated on Mon Mar 9 08:28:56 2009 for Wt by doxygen 1.5.6