00001 //LabPlot : InterpolationListDialog.h 00002 00003 #ifndef INTERPOLATIONLISTDIALOG_H 00004 #define INTERPOLATIONLISTDIALOG_H 00005 00006 #include "ListDialog.h" 00007 00008 class InterpolationListDialog : public ListDialog 00009 { 00010 Q_OBJECT 00011 public: 00012 InterpolationListDialog(MainWin *mw, const char *name); 00013 public slots: 00014 void setType(int type) {typecb->setCurrentItem(type); } 00015 void setRange(double a, double b) { 00016 ale->setText(QString::number(a)); ble->setText(QString::number(b)); } 00017 void setNumber(int nr) { nrle->setText(QString::number(nr)); } 00018 private: 00019 KComboBox *typecb; 00020 KLineEdit *nrle; 00021 private slots: 00022 int apply_clicked(); 00023 }; 00024 00025 #endif // INTERPOLATIONLISTDIALOG_H