#include "ChartConfig.h"
#include "PanelList.h"
#include <iostream>
#include <boost/lexical_cast.hpp>
#include <Wt/WAbstractItemModel>
#include <Wt/WApplication>
#include <Wt/WCheckBox>
#include <Wt/WComboBox>
#include <Wt/WDoubleValidator>
#include <Wt/WEnvironment>
#include <Wt/WIntValidator>
#include <Wt/WLineEdit>
#include <Wt/WPanel>
#include <Wt/WPushButton>
#include <Wt/WStandardItemModel>
#include <Wt/WTable>
#include <Wt/WText>
#include <Wt/Chart/WCartesianChart>
Go to the source code of this file.
Functions | |
void | addHeader (WTable *t, const char *value) |
void | addEntry (WAbstractItemModel *model, const char *value) |
bool | getDouble (WLineEdit *edit, double &value) |
void @89::addEntry | ( | WAbstractItemModel * | model, | |
const char * | value | |||
) | [static] |
Definition at line 37 of file ChartConfig.C.
00037 { 00038 model->insertRows(model->rowCount(), 1); 00039 model->setData(model->rowCount()-1, 0, boost::any(std::string(value))); 00040 }
void @89::addHeader | ( | WTable * | t, | |
const char * | value | |||
) | [static] |
Definition at line 33 of file ChartConfig.C.
00033 { 00034 t->elementAt(0, t->columnCount())->addWidget(new WText(value)); 00035 }
bool @89::getDouble | ( | WLineEdit * | edit, | |
double & | value | |||
) | [static] |
Definition at line 42 of file ChartConfig.C.
00042 { 00043 try { 00044 value = boost::lexical_cast<double>(edit->text().toUTF8()); 00045 return true; 00046 } catch (...) { 00047 return false; 00048 } 00049 }