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 #include "ChartsExample.h" 00009 00010 using namespace Wt; 00011 00012 class ChartsApplication: public WApplication 00013 { 00014 public: 00015 ChartsApplication(const WEnvironment& env): WApplication(env) { 00016 setTitle("Charts example"); 00017 00018 messageResourceBundle().use("charts"); 00019 00020 root()->setPadding(10); 00021 root()->resize(WLength::Auto, WLength::Auto); 00022 00023 new ChartsExample(root()); 00024 00025 00026 /* 00027 * Set our style sheet last, so that it loaded after the ext stylesheets. 00028 */ 00029 useStyleSheet("charts.css"); 00030 } 00031 }; 00032 00033 WApplication *createApplication(const WEnvironment& env) 00034 { 00035 WApplication *app = new ChartsApplication(env); 00036 00037 return app; 00038 } 00039 00040 int main(int argc, char **argv) 00041 { 00042 return WRun(argc, argv, &createApplication); 00043 }