Wt examples: /home/koen/project/wt/public-git/wt/examples/charts/ChartsApplication.C Source File

Wt examples 3.3.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

/home/koen/project/wt/public-git/wt/examples/charts/ChartsApplication.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 #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      * Set our style sheet last, so that it loaded after the ext stylesheets.
    00030      */
    00031     useStyleSheet("charts.css");
    00032   }
    00033 };
    00034
    00035 WApplication *createApplication(const WEnvironment& env)
    00036 {
    00037   WApplication *app = new ChartsApplication(env);
    00038
    00039   return app;
    00040 }
    00041
    00042 int main(int argc, char **argv)
    00043 {
    00044   return WRun(argc, argv, &createApplication);
    00045 }