Wt examples
3.3.0
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
build
buildd
witty-3.3.0
examples
charts
ChartConfig.h
Go to the documentation of this file.
1
// This may look like C code, but it's really -*- C++ -*-
2
/*
3
* Copyright (C) 2008 Emweb bvba, Kessel-Lo, Belgium.
4
*
5
* See the LICENSE file for terms of use.
6
*/
7
#ifndef CHART_CONFIG_H_
8
#define CHART_CONFIG_H_
9
10
#include <Wt/WContainerWidget>
11
#include <Wt/Chart/WDataSeries>
12
13
namespace
Wt {
14
class
WCheckBox;
15
class
WComboBox;
16
class
WFormWidget;
17
class
WLineEdit;
18
class
WTable;
19
20
namespace
Chart {
21
class
WCartesianChart;
22
}
23
}
24
29
37
class
ChartConfig
:
public
Wt::WContainerWidget
38
{
39
public
:
42
ChartConfig
(
Wt::Chart::WCartesianChart
*chart,
Wt::WContainerWidget
*parent);
43
44
void
setValueFill
(
Wt::Chart::FillRangeType
fill);
45
46
private
:
47
Wt::Chart::WCartesianChart
*
chart_
;
48
Wt::Chart::FillRangeType
fill_
;
49
51
struct
SeriesControl
{
52
Wt::WCheckBox
*
enabledEdit
;
53
Wt::WComboBox
*
typeEdit
;
54
Wt::WComboBox
*
markerEdit
;
55
Wt::WComboBox
*
axisEdit
;
56
Wt::WCheckBox
*
legendEdit
;
57
Wt::WCheckBox
*
shadowEdit
;
58
Wt::WComboBox
*
labelsEdit
;
59
};
60
62
std::vector<SeriesControl>
seriesControls_
;
63
65
struct
AxisControl
{
66
Wt::WCheckBox
*
visibleEdit
;
67
Wt::WComboBox
*
scaleEdit
;
68
Wt::WCheckBox
*
autoEdit
;
69
Wt::WLineEdit
*
minimumEdit
;
70
Wt::WLineEdit
*
maximumEdit
;
71
Wt::WCheckBox
*
gridLinesEdit
;
72
Wt::WLineEdit
*
labelAngleEdit
;
73
};
74
76
std::vector<AxisControl>
axisControls_
;
77
78
Wt::WLineEdit
*
titleEdit_
;
79
Wt::WLineEdit
*
chartWidthEdit_
;
80
Wt::WLineEdit
*
chartHeightEdit_
;
81
Wt::WComboBox
*
chartOrientationEdit_
;
82
Wt::WComboBox
*
legendLocationEdit_
;
83
Wt::WComboBox
*
legendSideEdit_
;
84
Wt::WComboBox
*
legendAlignmentEdit_
;
85
86
void
connectSignals
(
Wt::WFormWidget
*w);
87
void
update
();
88
89
static
bool
validate
(
Wt::WFormWidget
*w);
90
};
91
94
#endif // CHARTS_EXAMPLE_H_
Generated on Fri May 31 2013 for
the C++ Web Toolkit (Wt)
by
1.8.3.1