logplus/DataOutput/src/SetOutDepParDlg.cpp
2025-10-29 17:23:30 +08:00

51 lines
1.2 KiB
C++

#pragma warning(push,0)
// #include "Family.h"
#include <QMessageBox>
#include "SetOutDepParDlg.h"
#include "ui_SetOutDepPar.h"
#include "CStringType.h"
#pragma warning(pop)
// using namespace pai::ios::welllog;
BEGIN_OSGGRAPHICS_NAMESPACE
CSetOutDepParDlg::CSetOutDepParDlg(QWidget * parent, Qt::WindowFlags flags)
: QDialog(parent,flags)
{
m_pUI = new Ui_SetOutDepPar();
m_pUI->setupUi(this);
QObject::connect(m_pUI->okbtn, SIGNAL(clicked()), this, SLOT(slotSave()));
QObject::connect(m_pUI->cancelbtn, SIGNAL(clicked()), this, SLOT(slotCancel()));
m_pUI->lineEdit_2->setText("-9999.0");
m_pUI->lineEdit_3->setText("-9999.0");
m_pUI->lineEdit_4->setText("-9999.0");
}
void CSetOutDepParDlg::slotSave()
{
if(m_pUI->lineEdit_2->text().isEmpty()) {
AfxMessageBox("请输入开始名称");
return;
}
if(m_pUI->lineEdit_3->text().isEmpty()) {
AfxMessageBox("请输入结束名称");
return;
}
if(m_pUI->lineEdit_4->text().isEmpty()) {
AfxMessageBox("请输入采样间隔");
return;
}
Sdep=m_pUI->lineEdit_2->text();
Edep=m_pUI->lineEdit_3->text();
Rlev=m_pUI->lineEdit_4->text();
accept();
}
/**
*@brief 取消槽函数
*/
void CSetOutDepParDlg::slotCancel()
{
reject ();
}
END_OSGGRAPHICS_NAMESPACE