1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
|
// This may look like C code, but it's really -*- C++ -*-
/*
* Copyright (C) 2013 Emweb bvba, Leuven, Belgium.
*
* See the LICENSE file for terms of use.
*/
#ifndef DATASETTINGS
#define DATASETTINGS
#include <Wt/WContainerWidget>
namespace Wt {
class WLineEdit;
class WComboBox;
class WCheckBox;
class WTemplate;
class WText;
namespace Chart {
class WCartesian3DChart;
class WAbstractDataSeries3D;
class WAbstractGridData;
class WGridData;
class WScatterData;
}
}
using namespace Wt;
using namespace Wt::Chart;
class DataSettings : public WContainerWidget {
public:
DataSettings();
void bindBaseToTemplate(WTemplate *configtemplate);
void bindBaseDataSet(WAbstractDataSeries3D *data);
private:
WLineEdit *setName_;
WLineEdit *pointsize_;
WComboBox *colormap_;
WCheckBox *showColormap_;
WComboBox *colormapSide_;
// WText *description_;
WCheckBox *hide_;
WAbstractDataSeries3D *data_;
};
class NumGridDataSettings : public DataSettings {
public:
NumGridDataSettings();
void bindDataSet(WAbstractGridData *data);
private:
WComboBox *typeSelection_;
WCheckBox *enableMesh_;
WLineEdit *penSize_;
WComboBox *penColor_;
WAbstractGridData *gridData_;
};
class CatGridDataSettings : public DataSettings {
public:
CatGridDataSettings();
void bindDataSet(WAbstractGridData *data);
private:
WLineEdit *barWidthX_;
WLineEdit *barWidthY_;
WAbstractGridData *gridData_;
};
class ScatterDataSettings : public DataSettings {
public:
ScatterDataSettings();
void bindDataSet(WScatterData *data);
private:
WCheckBox *enableDroplines_;
WLineEdit *penSize_;
WComboBox *penColor_;
WScatterData *scatterData_;
};
#endif
|