Wt examples 3.3.12
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
13namespace Wt {
14 class WCheckBox;
15 class WComboBox;
16 class WFormWidget;
17 class WLineEdit;
18 class WStandardItemModel;
19 class WTable;
20 class WValidator;
21
22 namespace Chart {
23 class WAxis;
24 class WCartesianChart;
25 }
26}
27
32
41{
42public:
46
48
49private:
52
63
65 std::vector<SeriesControl> seriesControls_;
66
81
83 std::vector<AxisControl> axisControls_;
84
93
97
99 void update();
100 void addYAxis();
101 void addAxis(Wt::Chart::Axis axis, int yAxis);
102 void removeYAxis(const Wt::Chart::WAxis *axis);
103 void clearYAxes();
104
105 static bool validate(Wt::WFormWidget *w);
106};
107
110#endif // CHARTS_EXAMPLE_H_
A class that allows configuration of a cartesian chart.
Definition ChartConfig.h:41
std::vector< SeriesControl > seriesControls_
Controls for series.
Definition ChartConfig.h:65
Wt::WComboBox * legendAlignmentEdit_
Definition ChartConfig.h:91
Wt::WComboBox * legendLocationEdit_
Definition ChartConfig.h:89
Wt::WTable * axisConfig_
Definition ChartConfig.h:95
Wt::WComboBox * legendSideEdit_
Definition ChartConfig.h:90
void addAxis(Wt::Chart::Axis axis, int yAxis)
Wt::WStandardItemModel * yScales_
Definition ChartConfig.h:94
void setValueFill(Wt::Chart::FillRangeType fill)
Wt::WLineEdit * chartWidthEdit_
Definition ChartConfig.h:86
Wt::WLineEdit * titleEdit_
Definition ChartConfig.h:85
void removeYAxis(const Wt::Chart::WAxis *axis)
void addYAxis()
static bool validate(Wt::WFormWidget *w)
Wt::WStandardItemModel * xScales_
Definition ChartConfig.h:94
void connectSignals(Wt::WFormWidget *w)
Wt::WValidator * angleValidator_
Definition ChartConfig.h:96
Wt::Chart::WCartesianChart * chart_
Definition ChartConfig.h:50
std::vector< AxisControl > axisControls_
Controls for axes.
Definition ChartConfig.h:83
void clearYAxes()
Wt::Chart::FillRangeType fill_
Definition ChartConfig.h:51
Wt::WValidator * anyNumberValidator_
Definition ChartConfig.h:96
void update()
Wt::WCheckBox * borderEdit_
Definition ChartConfig.h:92
Wt::WLineEdit * chartHeightEdit_
Definition ChartConfig.h:87
Wt::WComboBox * chartOrientationEdit_
Definition ChartConfig.h:88
Wt::WStandardItemModel * yAxesModel_
Definition ChartConfig.h:94
WWidget * parent() const
Struct that holds the controls for one axis.
Definition ChartConfig.h:68
Wt::WLineEdit * maximumEdit
Definition ChartConfig.h:73
Wt::WComboBox * tickDirectionEdit
Definition ChartConfig.h:78
Wt::WLineEdit * titleEdit
Definition ChartConfig.h:76
Wt::WLineEdit * labelAngleEdit
Definition ChartConfig.h:75
Wt::WComboBox * titleOrientationEdit
Definition ChartConfig.h:77
Wt::WCheckBox * gridLinesEdit
Definition ChartConfig.h:74
Wt::WLineEdit * minimumEdit
Definition ChartConfig.h:72
Wt::WComboBox * locationEdit
Definition ChartConfig.h:79
Wt::WComboBox * scaleEdit
Definition ChartConfig.h:70
Wt::WCheckBox * visibleEdit
Definition ChartConfig.h:69
Wt::WCheckBox * autoEdit
Definition ChartConfig.h:71
Struct that holds the controls for one series.
Definition ChartConfig.h:54
Wt::WComboBox * markerEdit
Definition ChartConfig.h:57
Wt::WComboBox * labelsEdit
Definition ChartConfig.h:61
Wt::WComboBox * axisEdit
Definition ChartConfig.h:58
Wt::WCheckBox * enabledEdit
Definition ChartConfig.h:55
Wt::WCheckBox * legendEdit
Definition ChartConfig.h:59
Wt::WCheckBox * shadowEdit
Definition ChartConfig.h:60
Wt::WComboBox * typeEdit
Definition ChartConfig.h:56

Generated on Fri May 17 2024 for the C++ Web Toolkit (Wt) by doxygen 1.9.8