54 lines
1.1 KiB
C++
54 lines
1.1 KiB
C++
#ifndef SMOOTHTOOL_H
|
|
#define SMOOTHTOOL_H
|
|
|
|
#include <QDialog>
|
|
#pragma execution_character_set("utf-8")
|
|
|
|
namespace Ui {
|
|
class SmoothTool;
|
|
}
|
|
|
|
class SmoothTool : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
signals:
|
|
void sendDataSmoothSign(float,float,int,int,int);
|
|
void cancelSmooth();
|
|
void SaveSmooth();
|
|
public:
|
|
explicit SmoothTool(QDialog *parent = 0);
|
|
~SmoothTool();
|
|
|
|
void setSmoothDep(float rsd, float red, float sd, float ed);
|
|
void setSliderValue(int);
|
|
void setLineEditable();
|
|
|
|
private:
|
|
float Sdep, edep, realSdep, realEdep; //平滑深度范围, 实际井深度范围
|
|
int maxSmoothCount;//平滑最大次数
|
|
int mode, cal;
|
|
|
|
void depCheck();
|
|
void setmaxSmoothCount(int c);
|
|
void sliderChange();
|
|
|
|
public slots:
|
|
void sdepChange_SLOT();
|
|
void edepChange_SLOT();
|
|
void Sm3_SLOT(bool a);
|
|
void Sm5_SLOT(bool a);
|
|
void Sm7_SLOT(bool a);
|
|
void SmJ_SLOT(bool a);
|
|
void SmZ_SLOT(bool a);
|
|
void SmG_SLOT(bool a);
|
|
void SmU_SLOT(bool a);
|
|
void smoothApplication_SLOT();
|
|
void rejectSmooth_SLOT();
|
|
void acceptSmooth_SLOT();
|
|
private:
|
|
Ui::SmoothTool *Sm_UI;
|
|
};
|
|
|
|
#endif // SMOOTHTOOL_H
|