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

47 lines
858 B
C++

#include "tishidialog.h"
TiShiDialog::TiShiDialog(QWidget *parent)
: QDialog(parent)
{
m_pUI.setupUi(this);
QObject::connect(m_pUI.pushButtonTH, SIGNAL(clicked()), this, SLOT(slotTH()));
QObject::connect(m_pUI.pushButtonHB, SIGNAL(clicked()), this, SLOT(slotHB()));
QObject::connect(m_pUI.pushButtonLC, SIGNAL(clicked()), this, SLOT(slotLC()));
QObject::connect(m_pUI.pushButtonTG, SIGNAL(clicked()), this, SLOT(slotTG()));
}
TiShiDialog::~TiShiDialog()
{
}
void TiShiDialog::slotTH()
{
flag=1;
accept();
return ;
}
void TiShiDialog::slotHB()
{
flag=2;
accept();
return ;
}
void TiShiDialog::slotLC()
{
flag=3;
accept();
return ;
}
void TiShiDialog::slotTG()
{
flag=0;
accept();
return ;
}
void TiShiDialog::init(std::vector<char*> OutCurve)
{
for(int i=0;i<OutCurve.size();i++)
{
m_pUI.textEdit_2->append(QString(OutCurve[i]));
}
}