Wt examples
3.7.1
public-git
wt
examples
charts
ChartsApplication.C
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2008 Emweb bv, Herent, 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
* Set our style sheet last, so that it loaded after the ext stylesheets.
30
*/
31
useStyleSheet(
"charts.css"
);
32
}
33
};
34
35
WApplication
*
createApplication
(
const
WEnvironment
& env)
36
{
37
WApplication
*app =
new
ChartsApplication
(env);
38
39
return
app;
40
}
41
42
int
main
(
int
argc,
char
**argv)
43
{
44
return
WRun(argc, argv, &
createApplication
);
45
}
ChartsExample
A widget that demonstrates various aspects of the charting lib.
Definition:
ChartsExample.h:69
ChartsExample.h
Wt::WEnvironment
Wt::WLength::Auto
static WLength Auto
Wt::WApplication
ChartsApplication::ChartsApplication
ChartsApplication(const WEnvironment &env)
Definition:
ChartsApplication.C:15
createApplication
WApplication * createApplication(const WEnvironment &env)
Definition:
ChartsApplication.C:35
ChartsApplication
Definition:
ChartsApplication.C:12
main
int main(int argc, char **argv)
Definition:
ChartsApplication.C:42
Wt
Generated on Tue Dec 15 2020 for
the C++ Web Toolkit (Wt)
by
1.8.13