Wt examples  3.2.1
/home/koen/project/wt/public-git/wt/examples/painting/PaintApplication.C
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2008 Emweb bvba, Kessel-Lo, Belgium.
00003  *
00004  * See the LICENSE file for terms of use.
00005  */
00006 
00007 #include <Wt/WApplication>
00008 
00009 #include "PaintExample.h"
00010 
00011 using namespace Wt;
00012 
00013 class PaintApplication: public WApplication
00014 {
00015 public:
00016   PaintApplication(const WEnvironment &env): WApplication(env) {
00017     setTitle("Paint example");
00018     
00019     useStyleSheet("painting.css");
00020     
00021     new PaintExample(root());
00022   }
00023 };
00024 
00025 WApplication *createApplication(const WEnvironment& env)
00026 {
00027   return new PaintApplication(env);
00028 }
00029 
00030 int main(int argc, char **argv)
00031 {
00032   return WRun(argc, argv, &createApplication);
00033 }

Generated on Fri Mar 30 2012 for the C++ Web Toolkit (Wt) by doxygen 1.7.5.1