00001 //LabPlot : CompressListDialog.h 00002 00003 #ifndef COMPRESSLISTDIALOG_H 00004 #define COMPRESSLISTDIALOG_H 00005 00006 #include "ListDialog.h" 00007 00008 class CompressListDialog : public ListDialog 00009 { 00010 Q_OBJECT 00011 public: 00012 CompressListDialog(MainWin *mw, const char *name); 00013 public slots: 00014 void setN(int n) { nni->setValue(n); } 00015 void setAverage(bool a=true) { averagecb->setChecked(a); } 00016 void enableAverage(bool e=true) { setAverage(e); } 00017 int Apply() { return apply_clicked(); } 00018 private: 00019 KIntNumInput *nni; 00020 QCheckBox *averagecb; 00021 private slots: 00022 void saveSettings(); 00023 int apply_clicked(); 00024 }; 00025 00026 #endif // COMPRESSLISTDIALOG_H