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 00022 new ChartsExample(root()); 00023 00024 00025 /* 00026 * Set our style sheet last, so that it loaded after the ext stylesheets. 00027 */ 00028 useStyleSheet("charts.css"); 00029 } 00030 }; 00031 00032 WApplication *createApplication(const WEnvironment& env) 00033 { 00034 WApplication *app = new ChartsApplication(env); 00035 00036 return app; 00037 } 00038 00039 int main(int argc, char **argv) 00040 { 00041 return WRun(argc, argv, &createApplication); 00042 }