Wt examples
3.2.1
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
build
witty-RcvJ2D
witty-3.2.1
examples
charts
ChartsApplication.C
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2008 Emweb bvba, Kessel-Lo, Belgium.
3
*
4
* See the LICENSE file for terms of use.
5
*/
6
7
#include <Wt/WApplication>
8
#include "
ChartsExample.h
"
9
10
using namespace
Wt;
11
12
class
ChartsApplication
:
public
WApplication
13
{
14
public
:
15
ChartsApplication
(
const
WEnvironment
& env)
16
:
WApplication
(env)
17
{
18
setTitle(
"Charts example"
);
19
20
setCssTheme(
"polished"
);
21
messageResourceBundle().use(appRoot() +
"charts"
);
22
23
root()->setPadding(10);
24
root()->resize(
WLength::Auto
,
WLength::Auto
);
25
26
new
ChartsExample
(root());
27
28
29
/*
30
* Set our style sheet last, so that it loaded after the ext stylesheets.
31
*/
32
useStyleSheet(
"charts.css"
);
33
}
34
};
35
36
WApplication
*
createApplication
(
const
WEnvironment
& env)
37
{
38
WApplication
*app =
new
ChartsApplication
(env);
39
40
return
app;
41
}
42
43
int
main
(
int
argc,
char
**argv)
44
{
45
return
WRun(argc, argv, &
createApplication
);
46
}
Generated on Wed Aug 27 2014 for
the C++ Web Toolkit (Wt)
by
1.8.1.2