Wt examples  3.3.8
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 
38 {
39 public:
43 
44  void setValueFill(Wt::Chart::FillRangeType fill);
45 
46 private:
49 
51  struct SeriesControl {
59  };
60 
62  std::vector<SeriesControl> seriesControls_;
63 
65  struct AxisControl {
77  };
78 
80  std::vector<AxisControl> axisControls_;
81 
90 
91  void connectSignals(Wt::WFormWidget *w);
92  void update();
93 
94  static bool validate(Wt::WFormWidget *w);
95 };
96 
99 #endif // CHARTS_EXAMPLE_H_
Wt::WCheckBox * borderEdit_
Definition: ChartConfig.h:89
Wt::WComboBox * axisEdit
Definition: ChartConfig.h:55
Wt::Chart::FillRangeType fill_
Definition: ChartConfig.h:48
Wt::WComboBox * scaleEdit
Definition: ChartConfig.h:67
Wt::WLineEdit * titleEdit_
Definition: ChartConfig.h:82
Wt::Chart::WCartesianChart * chart_
Definition: ChartConfig.h:47
Wt::WCheckBox * enabledEdit
Definition: ChartConfig.h:52
Wt::WComboBox * locationEdit
Definition: ChartConfig.h:76
Struct that holds the controls for one series.
Definition: ChartConfig.h:51
Wt::WLineEdit * titleEdit
Definition: ChartConfig.h:73
Wt::WComboBox * typeEdit
Definition: ChartConfig.h:53
Wt::WCheckBox * visibleEdit
Definition: ChartConfig.h:66
Wt::WComboBox * markerEdit
Definition: ChartConfig.h:54
Wt::WLineEdit * chartWidthEdit_
Definition: ChartConfig.h:83
Struct that holds the controls for one axis.
Definition: ChartConfig.h:65
Wt::WComboBox * chartOrientationEdit_
Definition: ChartConfig.h:85
Wt::WComboBox * legendLocationEdit_
Definition: ChartConfig.h:86
std::vector< SeriesControl > seriesControls_
Controls for series.
Definition: ChartConfig.h:62
Wt::WLineEdit * minimumEdit
Definition: ChartConfig.h:69
Wt::WComboBox * legendSideEdit_
Definition: ChartConfig.h:87
std::vector< AxisControl > axisControls_
Controls for axes.
Definition: ChartConfig.h:80
Wt::WCheckBox * shadowEdit
Definition: ChartConfig.h:57
Wt::WComboBox * labelsEdit
Definition: ChartConfig.h:58
Wt::WComboBox * tickDirectionEdit
Definition: ChartConfig.h:75
Wt::WLineEdit * labelAngleEdit
Definition: ChartConfig.h:72
Wt::WCheckBox * legendEdit
Definition: ChartConfig.h:56
Wt::WCheckBox * gridLinesEdit
Definition: ChartConfig.h:71
Wt::WComboBox * titleOrientationEdit
Definition: ChartConfig.h:74
Wt::WComboBox * legendAlignmentEdit_
Definition: ChartConfig.h:88
Wt::WCheckBox * autoEdit
Definition: ChartConfig.h:68
A class that allows configuration of a cartesian chart.
Definition: ChartConfig.h:37
Wt::WLineEdit * maximumEdit
Definition: ChartConfig.h:70
Wt::WLineEdit * chartHeightEdit_
Definition: ChartConfig.h:84

Generated on Mon Sep 4 2017 for the C++ Web Toolkit (Wt) by doxygen 1.8.11