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