#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 OutCurve) { for(int i=0;iappend(QString(OutCurve[i])); } }