main(int argc, char *argv[]) { fl_initialize(&argc,argv,"Randoms",0,0); the_gui = create_form_rgui(); InitDistributionChoice(); InitPlot(); fl_show_form(the_gui->rgui,FL_PLACE_CENTER,FL_FULLBORDER,"Random Distributions"); while (1) fl_do_forms(); }
frmSensorData::frmSensorData(QWidget *parent) : QWidget(parent), ui(new Ui::frmSensorData) { ui->setupUi(this); webData = new WebData(this); plots.append(ui->plot_temperature); plots.append(ui->plot_humidity); plots.append(ui->plot_light); isOff = true; index = 0; ledState = -1; ledStateNum = 0; InitPlot(); InitPlot1(); InitPlot2(); InitPlot3(); ui->ckBackground->setChecked(true); ui->ckLegend->setChecked(true); }