ChartsExample.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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 CHARTS_EXAMPLE_H_
  8. #define CHARTS_EXAMPLE_H_
  9. #include <Wt/WContainerWidget>
  10. #include <iostream>
  11. namespace Wt {
  12. class WAbstractItemModel;
  13. namespace Ext {
  14. class TableView;
  15. }
  16. }
  17. /**
  18. * \defgroup chartsexample Charts example
  19. */
  20. /*@{*/
  21. /*! \brief A widget that demonstrates a times series chart
  22. */
  23. class TimeSeriesExample: public Wt::WContainerWidget
  24. {
  25. public:
  26. /*! \brief Creates the time series scatter plot example
  27. */
  28. TimeSeriesExample(Wt::WContainerWidget *parent);
  29. };
  30. /*! \brief A Widget that demonstrates a category chart
  31. */
  32. class CategoryExample: public Wt::WContainerWidget
  33. {
  34. public:
  35. /*! \brief Creates the category chart example
  36. */
  37. CategoryExample(Wt::WContainerWidget *parent);
  38. };
  39. /*! \brief A Widget that demonstrates a scatter plot
  40. */
  41. class ScatterPlotExample: public Wt::WContainerWidget
  42. {
  43. public:
  44. /*! \brief Creates the scatter plot example
  45. */
  46. ScatterPlotExample(Wt::WContainerWidget *parent);
  47. };
  48. /*! \brief A Widget that demonstrates a Pie chart
  49. */
  50. class PieExample: public Wt::WContainerWidget
  51. {
  52. public:
  53. /*! \brief Creates the pie chart example
  54. */
  55. PieExample(Wt::WContainerWidget *parent);
  56. };
  57. /*! \brief A widget that demonstrates various aspects of the charting lib.
  58. */
  59. class ChartsExample : public Wt::WContainerWidget
  60. {
  61. public:
  62. /*! \brief Constructor.
  63. */
  64. ChartsExample(Wt::WContainerWidget *root);
  65. };
  66. /*@}*/
  67. #endif // CHARTS_EXAMPLE_H_