00001
00002
00003 #ifndef DATADIALOG_H
00004 #define DATADIALOG_H
00005
00006 #include <qtoolbutton.h>
00007 #include <qcheckbox.h>
00008 #include "Dialog.h"
00009 #include "GraphListDialog.h"
00010 #include "FilterAUDIOFILE.h"
00011
00013 class DataDialog: public Dialog
00014 {
00015 Q_OBJECT
00016 public:
00017 DataDialog(Worksheet *p, const char *name,class ListDialog *l,int item,PType newtype);
00018 public slots:
00019 void selectFile();
00020 void applyStyle();
00021 void setLabel(){ labelle->setText(filele->text()); }
00022 private slots :
00023 void fileInfo();
00024 void checkData();
00025 void updateRead();
00026 int addData();
00027 int agree();
00028 void ok_clicked() { if (!agree()) accept(); }
00029 private:
00030 double formatLabel(QString value,int item);
00031 double getValue(FilterAUDIOFILE auf,int var, int i,double *data, int startRow);
00032 int type;
00033 QLabel *readx, *ready, *readz, *readt;
00034 KLineEdit *readxle, *readyle, *readzle, *readtle;
00035 KLineEdit *filele, *labelle;
00036 KComboBox *interpretxcb, *interpretycb, *interpretzcb, *interprettcb;
00037 KComboBox *cbi;
00038 QCheckBox *reread;
00039 KLineEdit *readsc, *startrow, *endrow;
00040 ListDialog *l;
00041 int item;
00042 Graph *graph;
00043 };
00044 #endif //DATADIALOG_H