00001 //LabPlot : PeakListDialog.h 00002 00003 #ifndef PEAKLISTDIALOG_H 00004 #define PEAKLISTDIALOG_H 00005 00006 #include "ListDialog.h" 00007 00008 class PeakListDialog : public ListDialog 00009 { 00010 Q_OBJECT 00011 public: 00012 PeakListDialog(MainWin *mw, const char *name); 00013 public slots: 00014 void setThreshold(double t) { thresholdle->setText(QString::number(t)); } 00015 void setAccuracy(int a) { accuni->setValue(a); } 00016 void searchNegative(bool n=true) { negativecb->setChecked(n); } 00017 void enableNegativePeaks(bool e=true) { searchNegative(e); } 00018 int Apply() { return apply_clicked(); } 00019 private: 00020 KLineEdit *thresholdle; 00021 KIntNumInput *accuni; 00022 QCheckBox *negativecb; 00023 private slots: 00024 void saveSettings(); 00025 int apply_clicked(); 00026 }; 00027 00028 #endif // PEAKLISTDIALOG_H