logplus/DataMgr/src/ShowWave.h
2026-01-29 16:57:06 +08:00

57 lines
1.1 KiB
C++

#ifndef WIDGET_H
#define WIDGET_H
#include <QWidget>
#include <QTableWidgetItem>
#include <windows.h>
#include <QFileInfo>
#include <QDir>
#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