00001
00002
00003 #ifndef DUMPDIALOG_H
00004 #define DUMPDIALOG_H
00005
00006 #include <qfont.h>
00007 #include <qcheckbox.h>
00008 #include "Worksheet.h"
00009 #include "Dialog.h"
00010
00011 class DumpDialog: public Dialog
00012 {
00013 Q_OBJECT
00014 public:
00015 DumpDialog(class MainWin *mw, const char *name, int item);
00016 public slots:
00017 void selectFile();
00018 void ok_clicked() { if(!apply_clicked()) accept(); }
00019 int apply_clicked();
00020 private slots:
00021 void updateOptions(int item);
00022 void updateAudioFormat(int item) { updateOptions(3); }
00023 void updateImageFormat(int item) { updateOptions(4); }
00024 private:
00025 void dumpASCII(QTextStream *t, QString sep);
00026 void dumpCDF(QString filename);
00027 void dumpNETCDF(QString filename);
00028 void dumpAUDIOFILE(QString filename);
00029 void dumpIMAGE(QString filename);
00030 class MainWin *mw;
00031 Plot *plot;
00032 int item;
00033 KLineEdit *startrow, *endrow, *samplele;
00034 QLabel *slabel, *flabel, *cdfcomlabel, *cdfenclabel, *audioformatlabel, *samplelabel;
00035 KComboBox *sc, *ic, *exportcb, *cdfcomcb, *cdfenccb, *audioformatcb;
00036 QCheckBox *imagecb, *compresscb, *headercb;
00037 };
00038
00039 #endif //DUMPDIALOG_H