00001 //LabPlot : IntegrationListDialog.h 00002 00003 #ifndef INTEGRATIONLISTDIALOG_H 00004 #define INTEGRATIONLISTDIALOG_H 00005 00006 #include "ListDialog.h" 00007 00008 class IntegrationListDialog : public ListDialog 00009 { 00010 Q_OBJECT 00011 public: 00012 IntegrationListDialog(MainWin *mw, const char *name); 00013 public slots: 00014 void setRegion(double a, double b) { 00015 regioncb->setChecked(true); 00016 regionminle->setText(QString::number(a)); 00017 regionmaxle->setText(QString::number(b)); 00018 } 00019 void enableRegion(bool e=true) { regioncb->setChecked(e); } 00020 void setArea(bool a=true) { areacb->setChecked(a); } 00021 void setBaseline(double v=0) { baselinecb->setChecked(true); baselinele->setText(QString::number(v)); } 00023 void enableBaseline(bool e=true) { baselinecb->setChecked(e); } 00024 void addGraph(bool a=true) { addgraph->setChecked(a); } 00025 void showInfo(bool a=true) { infocb->setChecked(a); } 00026 QString Result() { return result; } 00027 int Apply() { return apply_clicked(); } 00028 private: 00029 QString result; 00030 KLineEdit *baselinele, *regionminle, *regionmaxle; 00031 QCheckBox *addgraph, *baselinecb, *areacb, *infocb, *regioncb; 00032 private slots: 00033 void saveSettings(); 00034 int apply_clicked(); 00035 }; 00036 00037 #endif // INTEGRATIONLISTDIALOG_H