#ifndef WIDGET_H1 #define WIDGET_H1 #include #include #include #include #include #include #include #include "MemRdWt.h" #include "DrawCurveView.h" namespace Ui { class ShowCurve; } class ShowCurve : public QWidget { Q_OBJECT public: explicit ShowCurve(QWidget *parent = 0); ~ShowCurve(); Slf_CURVE curveinfo; float *val; DWORD count; float sdep,edep,rlev,stime,etime,curTime,curDepth; float vmax,vmin; DrawCurveView *m_view; //void readcurve(); void init(); QString FileName,CurveName; int index; int initVerMaxRange; void mouseMkChange(float depth, float value); void lineEdit_curValue_Change(float); void setTableBro(QScrollBar *p); void setCurveTable(QTableWidget *t); protected: //implement class QWidget virtual void showEvent(QShowEvent *sEvent); virtual void resizeEvent(QResizeEvent *resize); public slots: void onVerDeptSliderValueChange(int value); void SliderUP_SLOT(); void SliderDOWN_SLOT(); void linkVerDeptSliderValueChange(int value,float tipValue); void slotChangeDepth(const QString &text); void slotChangeScale(); void slotStretch(); void slotCompres(); void editSig_SLOT(); void smoothSig_SLOT(); void angSig_SLOT(); void editButtonsCon_SLOT(); void unEditButtonsCon_SLOT(); void R2LButton_SLOT(); void R2LMouse_SLOT(); private: bool getBar; bool locked; float mouseDepth, mouseValue; QScrollBar *tableBro; QTableWidget *curveTable; QWidget* thisParent; Ui::ShowCurve *m_pUI; float tipsWidth, tipsHeight; bool hasTipsWidth; QTimer *m_timer; QString tipsText; void curDepRange(); void setCurveTableForce(float dep); bool getValueRangeFromIni(); private slots: void testButton_SLOT(); void lockChange_SLOT(); void editModeTips_SLOT(); void promptDisplay(); void clearTips_SLOT(); }; #endif