#ifndef WIDGET_H #define WIDGET_H #include #include #include #include #include #include "DrawWaveView.h" #include "MemRdWt.h" #pragma execution_character_set("utf-8") namespace Ui { class ShowWave; } class ShowWave : public QWidget { Q_OBJECT public: explicit ShowWave(QWidget *parent = 0); ~ShowWave(); Slf_WAVE waveinfo; //QFile *waveFile; float *val; //int count; float sdep,edep,stime,etime,curTime,curDepth; float vmax,vmin; DrawWaveView m_view; void readwave(); bool IsFirst; void init(); QString FileName,WaveName; int index; protected: //implement class QWidget virtual void showEvent(QShowEvent *sEvent); virtual void resizeEvent(QResizeEvent *resize); public slots: void onVerDeptSliderValueChange(int value); void onHorTimeSliderValueChange(int value); void slotCheck(); void slotChangeDepth(const QString &text); void slotChangeTime(const QString &text); void slotChangeXGrid(const QString &text); void slotChangeYGrid(const QString &text); void slotChangeValue(const QString &text); private: void bindViewData(); private: Ui::ShowWave *m_pUI; }; #endif