00001 //LabPlot : HistListDialog.h 00002 00003 #ifndef HISTLISTDIALOG_H 00004 #define HISTLISTDIALOG_H 00005 00006 #include "ListDialog.h" 00007 00008 class HistListDialog : public ListDialog 00009 { 00010 Q_OBJECT 00011 public: 00012 HistListDialog(MainWin *mw, const char *name); 00013 public slots: 00014 void setRange(double a, double b) { 00015 ale->setText(QString::number(a)); ble->setText(QString::number(b)); } 00016 void setFrom(double v) { ale->setText(QString::number(v)); } 00017 void setTo(double v) { ble->setText(QString::number(v)); } 00018 void setBins(int bin) { binni->setValue(bin); } 00019 int Apply() { return apply_clicked(); } 00020 private: 00021 KIntNumInput *binni; 00022 private slots: 00023 void saveSettings(); 00024 int apply_clicked(); 00025 }; 00026 00027 #endif // HISTLISTDIALOG_H