2025-03-13 09:27:31 +00:00
|
|
|
#include <qmessagebox.h>
|
|
|
|
|
|
2025-03-05 09:33:46 +00:00
|
|
|
#include "mainwindow.h"
|
|
|
|
|
#include "ui_mainwindow.h"
|
2025-03-12 09:29:52 +00:00
|
|
|
#include "global.h"
|
|
|
|
|
#include "serialport.h"
|
2025-03-13 09:27:31 +00:00
|
|
|
#include "dataparser.h"
|
2025-03-17 13:16:16 +00:00
|
|
|
#include "filemanager.h"
|
2025-04-22 08:59:26 +00:00
|
|
|
#include "logger.h"
|
|
|
|
|
#include "xlsxhandler.h"
|
2025-03-05 09:33:46 +00:00
|
|
|
|
|
|
|
|
MainWindow::MainWindow(QWidget *parent)
|
2025-03-21 09:28:36 +00:00
|
|
|
: QMainWindow(parent),
|
|
|
|
|
ui(new Ui::MainWindow),
|
|
|
|
|
_centralWidget(new CentralWidget(this)),
|
|
|
|
|
_leftWidget(new LeftWidget(this)),
|
|
|
|
|
_expertmentSettingForm(new ExperimentSettingForm(this)),
|
|
|
|
|
_realTimeDataForm(new RealTimeDataForm(this)),
|
|
|
|
|
_rightWidget(new QDockWidget(this))
|
|
|
|
|
,_analysisSettingWidget(new AnalysisSettingForm(this))
|
|
|
|
|
,_contextMenu(new QMenu(this))
|
2025-04-03 09:24:29 +00:00
|
|
|
,_specificHeatComparisonMethodForm(new SpecificHeatComparisonMethodForm(this))
|
2025-04-11 05:51:47 +00:00
|
|
|
,_instrumentCoefficientForm(new InstrumentCoefficientForm(this))
|
|
|
|
|
,_degreeOfCureForm(new DegreeOfCureForm(this))
|
2025-04-11 09:17:37 +00:00
|
|
|
,_OITAutoAnalysisParamForm(new OITAutoAnalysisParamForm(this))
|
|
|
|
|
,_degreeOfCrystallinityForm(new DegreeOfCrystallinityForm(this))
|
2025-04-14 09:11:01 +00:00
|
|
|
,_aboutForm(new AboutForm(this))
|
2025-04-16 07:38:25 +00:00
|
|
|
,_enthalpyDataCorrectionForm(new EnthalpyDataCorrectionForm(this))
|
2025-04-18 09:30:35 +00:00
|
|
|
,_coefficientSelectionForm(new CoefficientSelectionForm(this))
|
2025-04-25 09:20:33 +00:00
|
|
|
,_printPreviewForm(new PrintPreviewForm(this))
|
2025-04-29 09:29:14 +00:00
|
|
|
,_axisSettingForm(new AxisSettingForm(this))
|
2025-03-05 09:33:46 +00:00
|
|
|
{
|
|
|
|
|
ui->setupUi(this);
|
|
|
|
|
this->setToolTip(".....");
|
|
|
|
|
|
|
|
|
|
setCentralWidget(_centralWidget);
|
2025-03-12 09:29:52 +00:00
|
|
|
addDockWidget(Qt::LeftDockWidgetArea, _leftWidget);
|
2025-03-21 09:28:36 +00:00
|
|
|
addDockWidget(Qt::RightDockWidgetArea, _rightWidget);
|
|
|
|
|
|
|
|
|
|
_rightWidget->setWidget(_analysisSettingWidget);
|
|
|
|
|
_rightWidget->hide();
|
2025-03-14 08:58:08 +00:00
|
|
|
//
|
|
|
|
|
ui->statusbar->showMessage("showMessage show temp message!");
|
|
|
|
|
// permenent show
|
|
|
|
|
QLabel *permenentLabel = new QLabel(this);
|
2025-04-16 07:38:25 +00:00
|
|
|
permenentLabel->setText("Software Ver:" + Global::ConSoftVersion);
|
2025-03-14 08:58:08 +00:00
|
|
|
ui->statusbar->addPermanentWidget(permenentLabel);
|
2025-04-30 02:59:08 +00:00
|
|
|
|
|
|
|
|
ui->actionTimeAxisAnalysisPCTMode->setCheckable(true);
|
2025-03-14 08:58:08 +00:00
|
|
|
//
|
2025-04-11 09:17:37 +00:00
|
|
|
setSubWidgetAttribute(_expertmentSettingForm);
|
|
|
|
|
setSubWidgetAttribute(_specificHeatComparisonMethodForm);
|
|
|
|
|
setSubWidgetAttribute(_realTimeDataForm);
|
|
|
|
|
setSubWidgetAttribute(_degreeOfCureForm);
|
|
|
|
|
setSubWidgetAttribute(_instrumentCoefficientForm);
|
|
|
|
|
setSubWidgetAttribute(_OITAutoAnalysisParamForm);
|
|
|
|
|
setSubWidgetAttribute(_degreeOfCrystallinityForm);
|
2025-04-14 09:11:01 +00:00
|
|
|
setSubWidgetAttribute(_aboutForm);
|
2025-04-16 07:38:25 +00:00
|
|
|
setSubWidgetAttribute(_enthalpyDataCorrectionForm);
|
2025-04-18 09:30:35 +00:00
|
|
|
setSubWidgetAttribute(_coefficientSelectionForm);
|
2025-04-25 09:20:33 +00:00
|
|
|
setSubWidgetAttribute(_printPreviewForm);
|
2025-04-29 09:29:14 +00:00
|
|
|
setSubWidgetAttribute(_axisSettingForm);
|
|
|
|
|
|
2025-04-11 09:17:37 +00:00
|
|
|
//
|
2025-03-21 09:28:36 +00:00
|
|
|
setActionEnable(true);
|
2025-04-10 09:33:38 +00:00
|
|
|
|
|
|
|
|
_eventHandler = _centralWidget->getEvnetHandler();
|
|
|
|
|
//
|
|
|
|
|
connections();
|
2025-04-22 08:59:26 +00:00
|
|
|
//
|
|
|
|
|
// ui->actionStop->setEnabled(false);
|
2025-04-10 09:33:38 +00:00
|
|
|
|
2025-03-05 09:33:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MainWindow::~MainWindow()
|
|
|
|
|
{
|
|
|
|
|
delete ui;
|
2025-03-21 09:28:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MainWindow::slotContextMenuShow(const QPoint point)
|
|
|
|
|
{
|
|
|
|
|
_contextMenu->exec(point);
|
2025-03-05 09:33:46 +00:00
|
|
|
}
|
|
|
|
|
|
2025-04-25 09:20:33 +00:00
|
|
|
void MainWindow::slotUpdateStatusbarMsg(const QString msg)
|
2025-04-24 08:41:20 +00:00
|
|
|
{
|
2025-04-25 09:20:33 +00:00
|
|
|
ui->statusbar->showMessage(msg);
|
2025-04-24 08:41:20 +00:00
|
|
|
}
|
|
|
|
|
|
2025-04-16 07:38:25 +00:00
|
|
|
void MainWindow::closeEvent(QCloseEvent *event)
|
|
|
|
|
{
|
|
|
|
|
// 弹出确认对话框
|
|
|
|
|
QMessageBox::StandardButton reply;
|
|
|
|
|
reply = QMessageBox::question(this, "确认退出", "你确定要退出吗?",
|
|
|
|
|
QMessageBox::Yes | QMessageBox::No);
|
|
|
|
|
if (reply == QMessageBox::Yes) {
|
|
|
|
|
event->accept(); // 接受关闭事件,关闭窗口
|
|
|
|
|
} else {
|
|
|
|
|
event->ignore(); // 忽略关闭事件,不关闭窗口
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-03-12 09:29:52 +00:00
|
|
|
void MainWindow::connections()
|
|
|
|
|
{
|
2025-03-18 03:43:14 +00:00
|
|
|
// ui
|
|
|
|
|
connect(_expertmentSettingForm, &ExperimentSettingForm::sigDeliverData,
|
|
|
|
|
SerialPort::instance(), &SerialPort::slotDeliverData);
|
2025-03-14 08:58:08 +00:00
|
|
|
#if 1
|
2025-03-18 03:43:14 +00:00
|
|
|
// dynamic data
|
|
|
|
|
connect(SerialPort::instance(), &SerialPort::sigSendCommonData,
|
2025-03-19 07:19:45 +00:00
|
|
|
_centralWidget, &CentralWidget::slotRecvCommonData);
|
2025-03-18 03:43:14 +00:00
|
|
|
connect(SerialPort::instance(), &SerialPort::sigSendCommonData,
|
|
|
|
|
_realTimeDataForm, &RealTimeDataForm::slotRevCommonData);
|
|
|
|
|
|
|
|
|
|
connect(SerialPort::instance(), &SerialPort::sigSendCommonDataToRealDataForm,
|
|
|
|
|
_realTimeDataForm, &RealTimeDataForm::slotRevCommonData);
|
|
|
|
|
|
|
|
|
|
connect(SerialPort::instance(), &SerialPort::sigSendPhaseInfo,
|
|
|
|
|
_expertmentSettingForm, &ExperimentSettingForm::slotRecvPhaseInfo);
|
|
|
|
|
|
2025-04-23 07:33:39 +00:00
|
|
|
connect(SerialPort::instance(), &SerialPort::sigAxisModify,
|
|
|
|
|
_centralWidget, &CentralWidget::slotAxisModify);
|
2025-04-25 09:20:33 +00:00
|
|
|
|
|
|
|
|
connect(SerialPort::instance(), &SerialPort::sigUpdateStatusbarMsg,
|
|
|
|
|
this,&MainWindow::slotUpdateStatusbarMsg);
|
|
|
|
|
|
2025-03-14 08:58:08 +00:00
|
|
|
#endif
|
|
|
|
|
|
2025-03-18 03:43:14 +00:00
|
|
|
// mode
|
2025-04-15 08:03:00 +00:00
|
|
|
// connect(Global::instance(), &Global::sigModeModify,
|
|
|
|
|
// _centralWidget, &CentralWidget::slotModeModify);
|
2025-04-23 07:33:39 +00:00
|
|
|
|
2025-03-19 07:19:45 +00:00
|
|
|
//analysis
|
|
|
|
|
connect(_leftWidget,&LeftWidget::sigSendAnalysisFileName,
|
|
|
|
|
_centralWidget,&CentralWidget::slotRecvAnalysisFileName);
|
2025-03-21 09:28:36 +00:00
|
|
|
connect(_centralWidget,&CentralWidget::sigSendLineXCoord,
|
|
|
|
|
_analysisSettingWidget,&AnalysisSettingForm::slotRecvLineXCoord);
|
|
|
|
|
|
|
|
|
|
connect(_analysisSettingWidget,&AnalysisSettingForm::sigApply,
|
|
|
|
|
_centralWidget,&CentralWidget::slotAnalysisSettingApply);
|
2025-03-24 09:30:42 +00:00
|
|
|
connect(_analysisSettingWidget,&AnalysisSettingForm::sigUndo,
|
|
|
|
|
_centralWidget,&CentralWidget::slotAnalysisSettingUndo);
|
2025-04-24 06:35:53 +00:00
|
|
|
connect(_analysisSettingWidget,&AnalysisSettingForm::sigConfirm,
|
|
|
|
|
_centralWidget,&CentralWidget::slotAnalysisSettingConfirm);
|
2025-03-24 09:30:42 +00:00
|
|
|
connect(_analysisSettingWidget,&AnalysisSettingForm::sigCancel,
|
|
|
|
|
_centralWidget,&CentralWidget::slotAnalysisSettingCancel);
|
2025-04-01 09:25:12 +00:00
|
|
|
|
|
|
|
|
connect(_centralWidget,&CentralWidget::sigRightDockWidgetHide,
|
|
|
|
|
[&](){ _rightWidget->hide(); });
|
2025-04-10 09:33:38 +00:00
|
|
|
|
2025-04-27 07:27:07 +00:00
|
|
|
connect(_degreeOfCrystallinityForm,&DegreeOfCrystallinityForm::sigDrawCustomText,
|
|
|
|
|
_centralWidget,&CentralWidget::slotDrawCustomText);
|
2025-04-28 06:16:26 +00:00
|
|
|
connect(_specificHeatComparisonMethodForm,&SpecificHeatComparisonMethodForm::sigDrawCustomText,
|
|
|
|
|
_centralWidget,&CentralWidget::slotDrawCustomText);
|
2025-04-27 07:27:07 +00:00
|
|
|
|
2025-04-10 09:33:38 +00:00
|
|
|
//SpecificHeatComparisonMethodForm
|
|
|
|
|
connect(_eventHandler,&EventHandler::sigSetCurve,
|
|
|
|
|
_specificHeatComparisonMethodForm,
|
|
|
|
|
&SpecificHeatComparisonMethodForm::slotSetCurve);
|
2025-04-22 08:59:26 +00:00
|
|
|
|
2025-04-29 09:29:14 +00:00
|
|
|
// Axis settings.
|
|
|
|
|
connect(_axisSettingForm,&AxisSettingForm::sigGetAxisInfo,
|
|
|
|
|
_centralWidget,&CentralWidget::slotGetAxisInfo);
|
|
|
|
|
connect(_centralWidget,&CentralWidget::sigGetAxisInfoWithData,
|
|
|
|
|
_axisSettingForm,&AxisSettingForm::slotGetAxisInfoWithData);
|
|
|
|
|
connect(_axisSettingForm,&AxisSettingForm::sigSetAxisSettings,
|
|
|
|
|
_centralWidget,&CentralWidget::slotSetAxisSettings);
|
2025-03-12 09:29:52 +00:00
|
|
|
}
|
|
|
|
|
|
2025-03-13 09:27:31 +00:00
|
|
|
void MainWindow::setActionEnable(const bool flag)
|
|
|
|
|
{
|
2025-03-18 03:43:14 +00:00
|
|
|
if (flag)
|
|
|
|
|
{
|
2025-03-13 09:27:31 +00:00
|
|
|
ui->actionNew->setEnabled(true);
|
|
|
|
|
ui->actionStart->setEnabled(true);
|
|
|
|
|
ui->actionStop->setEnabled(true);
|
|
|
|
|
ui->actionRealTimeWidget->setEnabled(true);
|
2025-03-18 03:43:14 +00:00
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2025-03-13 09:27:31 +00:00
|
|
|
ui->actionNew->setEnabled(false);
|
|
|
|
|
ui->actionStart->setEnabled(false);
|
|
|
|
|
ui->actionStop->setEnabled(false);
|
|
|
|
|
ui->actionRealTimeWidget->setEnabled(false);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-04-11 09:17:37 +00:00
|
|
|
void MainWindow::setSubWidgetAttribute(QWidget *widget)
|
|
|
|
|
{
|
|
|
|
|
widget->setWindowModality(Qt::ApplicationModal);
|
|
|
|
|
widget->setWindowFlags(Qt::Dialog);
|
2025-04-17 09:31:46 +00:00
|
|
|
|
|
|
|
|
widget->setFixedSize(widget->geometry().width(),widget->geometry().height());
|
2025-04-11 09:17:37 +00:00
|
|
|
}
|
|
|
|
|
|
2025-04-22 08:59:26 +00:00
|
|
|
bool MainWindow::saveExperimentFile(const QString fileName)
|
2025-03-13 09:27:31 +00:00
|
|
|
{
|
2025-04-22 08:59:26 +00:00
|
|
|
QString localFileName = fileName;
|
|
|
|
|
if(fileName.isEmpty()){
|
|
|
|
|
localFileName = "new";
|
|
|
|
|
}
|
|
|
|
|
QString xlsxfilePath = Global::SampleDataFloder + "/" + localFileName + ".xlsx";
|
|
|
|
|
QString filePath = QFileDialog::getSaveFileName(nullptr, "Save experiment file",
|
|
|
|
|
xlsxfilePath, "Excel Files (*.xlsx)");
|
|
|
|
|
logde<<"filePath:"<<filePath.toStdString();
|
|
|
|
|
|
|
|
|
|
if (filePath.isEmpty()) {
|
|
|
|
|
qDebug() << "User cancel the operation.";
|
|
|
|
|
return false;
|
|
|
|
|
}
|
2025-03-18 09:28:40 +00:00
|
|
|
|
2025-04-22 08:59:26 +00:00
|
|
|
XlsxHandler::writeFile(filePath);
|
2025-03-24 09:30:42 +00:00
|
|
|
|
2025-04-22 08:59:26 +00:00
|
|
|
return true;
|
|
|
|
|
}
|
2025-04-15 08:03:00 +00:00
|
|
|
|
2025-04-22 08:59:26 +00:00
|
|
|
void MainWindow::on_actionStop_triggered()
|
|
|
|
|
{
|
|
|
|
|
if(Global::_mode == Global::Mode::Experiment)
|
|
|
|
|
{
|
|
|
|
|
QByteArray ba = DataParser::setDeviceStartStop(DeviceStartMode::Stop);
|
|
|
|
|
SerialPort::instance()->slotSendData(ba);
|
|
|
|
|
|
2025-04-23 07:33:39 +00:00
|
|
|
#if 1
|
2025-04-22 08:59:26 +00:00
|
|
|
// Save data.
|
|
|
|
|
if(saveExperimentFile(Global::_experimentInfo.sampleName)){
|
|
|
|
|
_leftWidget->reloadFileName();
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
// Set software mode to analysis.
|
|
|
|
|
Global::_mode = Global::Mode::Analysis;
|
|
|
|
|
}
|
2025-03-13 09:27:31 +00:00
|
|
|
}
|
2025-03-12 09:29:52 +00:00
|
|
|
|
2025-03-13 09:27:31 +00:00
|
|
|
void MainWindow::on_actionNew_triggered()
|
2025-03-12 09:29:52 +00:00
|
|
|
{
|
2025-03-13 09:27:31 +00:00
|
|
|
_expertmentSettingForm->show();
|
|
|
|
|
}
|
2025-03-12 09:29:52 +00:00
|
|
|
|
2025-03-13 09:27:31 +00:00
|
|
|
void MainWindow::on_actionStart_triggered()
|
|
|
|
|
{
|
|
|
|
|
QByteArray ba = DataParser::setDeviceStartStop(DeviceStartMode::Start);
|
2025-03-14 08:58:08 +00:00
|
|
|
|
|
|
|
|
QString hexData = ba.toHex(' '); // ' ' 作为分隔符,可选参数
|
|
|
|
|
qDebug() << "on_actionStart_triggered info (hex):" << hexData;
|
|
|
|
|
|
2025-03-13 09:27:31 +00:00
|
|
|
SerialPort::instance()->slotSendData(ba);
|
2025-03-24 09:30:42 +00:00
|
|
|
|
2025-04-22 08:59:26 +00:00
|
|
|
Global::_mode = Global::Mode::Experiment;
|
|
|
|
|
|
|
|
|
|
logde<<"start experiment,set soft into experiment mode.";
|
2025-03-13 09:27:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MainWindow::on_actionReadOnly_triggered()
|
|
|
|
|
{
|
2025-04-22 08:59:26 +00:00
|
|
|
Global::_mode = Global::Mode::Experiment;
|
2025-03-13 09:27:31 +00:00
|
|
|
SerialPort::instance()->openSp();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MainWindow::on_actionRealTimeWidget_triggered()
|
|
|
|
|
{
|
|
|
|
|
_realTimeDataForm->show();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MainWindow::on_actionConnectToDev_triggered()
|
|
|
|
|
{
|
2025-03-18 03:43:14 +00:00
|
|
|
if (SerialPort::instance()->openSp())
|
|
|
|
|
{
|
2025-03-18 09:28:40 +00:00
|
|
|
setActionEnable(true);
|
2025-04-15 08:03:00 +00:00
|
|
|
// Global::instance()->setMode(Global::Mode::ConnectedToDev);
|
2025-04-14 09:11:01 +00:00
|
|
|
Global::_mode = Global::Mode::ConnectedToDev;
|
2025-03-19 03:19:52 +00:00
|
|
|
|
2025-03-18 09:28:40 +00:00
|
|
|
QByteArray ba = DataParser::inquirePhaseInfo();
|
|
|
|
|
SerialPort::instance()->sendData(ba);
|
2025-03-18 03:43:14 +00:00
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2025-03-13 09:27:31 +00:00
|
|
|
QMessageBox::warning(this, "warnning", "Serial Port open failed.");
|
|
|
|
|
}
|
2025-03-12 09:29:52 +00:00
|
|
|
}
|
2025-03-20 09:28:22 +00:00
|
|
|
|
|
|
|
|
void MainWindow::on_actionStartPoint_triggered()
|
|
|
|
|
{
|
2025-03-25 08:45:16 +00:00
|
|
|
_rightWidget->show();
|
|
|
|
|
_centralWidget->setAnalysisMode(CentralWidget::AnalysisMode::StartPoint);
|
2025-03-20 09:28:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MainWindow::on_actionStopPoint_triggered()
|
|
|
|
|
{
|
2025-03-25 08:45:16 +00:00
|
|
|
_rightWidget->show();
|
|
|
|
|
_centralWidget->setAnalysisMode(CentralWidget::AnalysisMode::StopPoint);
|
2025-03-20 09:28:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MainWindow::on_actionNumericalLabel_triggered()
|
|
|
|
|
{
|
2025-03-21 09:28:36 +00:00
|
|
|
_rightWidget->show();
|
|
|
|
|
_centralWidget->setAnalysisMode(CentralWidget::AnalysisMode::NumericalLabel);
|
2025-03-20 09:28:22 +00:00
|
|
|
}
|
2025-03-24 09:30:42 +00:00
|
|
|
|
|
|
|
|
void MainWindow::on_actionPeakSynthesisAnalysis_triggered()
|
|
|
|
|
{
|
|
|
|
|
_rightWidget->show();
|
|
|
|
|
_centralWidget->setAnalysisMode(CentralWidget::AnalysisMode::PeakSynthesisAnalysis);
|
|
|
|
|
}
|
2025-03-25 08:45:16 +00:00
|
|
|
|
|
|
|
|
void MainWindow::on_actionClearAllData_triggered()
|
|
|
|
|
{
|
2025-04-09 09:30:32 +00:00
|
|
|
_rightWidget->hide();
|
2025-03-25 08:45:16 +00:00
|
|
|
_centralWidget->clearAllData();
|
|
|
|
|
}
|
2025-04-03 09:24:29 +00:00
|
|
|
|
|
|
|
|
void MainWindow::on_actionGlassTransition_triggered()
|
|
|
|
|
{
|
|
|
|
|
_rightWidget->show();
|
|
|
|
|
_centralWidget->setAnalysisMode(CentralWidget::AnalysisMode::GlassTransition);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MainWindow::on_actionOIT_triggered()
|
|
|
|
|
{
|
2025-04-11 05:51:47 +00:00
|
|
|
QMessageBox::warning(this, "warnning", "on_actionOIT_triggered.");
|
2025-04-03 09:24:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MainWindow::on_actionSpecificHeatCompMethod_triggered()
|
|
|
|
|
{
|
|
|
|
|
_specificHeatComparisonMethodForm->show();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MainWindow::on_actionDegreeOfCrystallinity_triggered()
|
|
|
|
|
{
|
2025-04-15 08:03:00 +00:00
|
|
|
// QMessageBox::warning(this, "warnning", "结晶度.");
|
2025-04-11 09:17:37 +00:00
|
|
|
_degreeOfCrystallinityForm->show();
|
2025-04-03 09:24:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MainWindow::on_actionInstrumentParameter_triggered()
|
|
|
|
|
{
|
2025-04-11 05:51:47 +00:00
|
|
|
_instrumentCoefficientForm->show();
|
2025-04-03 09:24:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void MainWindow::on_actionOITAutoAnalysisParam_triggered()
|
|
|
|
|
{
|
2025-04-11 09:17:37 +00:00
|
|
|
_OITAutoAnalysisParamForm->show();
|
2025-04-03 09:24:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MainWindow::on_actionOITAutoAnalysisMode_triggered()
|
|
|
|
|
{
|
2025-04-11 05:51:47 +00:00
|
|
|
//
|
2025-04-03 09:24:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MainWindow::on_actionTimeAxisAnalysisPCTMode_triggered()
|
|
|
|
|
{
|
2025-04-30 02:59:08 +00:00
|
|
|
Global::_displayTimeValue = ui->actionTimeAxisAnalysisPCTMode->isChecked();
|
2025-04-03 09:24:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MainWindow::on_actionDegreeOfCuring_triggered()
|
|
|
|
|
{
|
2025-04-11 05:51:47 +00:00
|
|
|
//
|
|
|
|
|
_degreeOfCureForm->show();
|
2025-04-03 09:24:29 +00:00
|
|
|
}
|
2025-04-14 09:11:01 +00:00
|
|
|
|
|
|
|
|
void MainWindow::on_actionAbout_triggered()
|
|
|
|
|
{
|
|
|
|
|
_aboutForm->show();
|
|
|
|
|
}
|
2025-04-16 07:38:25 +00:00
|
|
|
|
2025-04-18 09:30:35 +00:00
|
|
|
|
|
|
|
|
void MainWindow::on_actionEnthalpyCorrectionEdit_triggered()
|
2025-04-16 07:38:25 +00:00
|
|
|
{
|
|
|
|
|
_enthalpyDataCorrectionForm->show();
|
|
|
|
|
}
|
2025-04-18 09:30:35 +00:00
|
|
|
|
|
|
|
|
void MainWindow::on_actionEnthalpyCorrectionSelection_triggered()
|
|
|
|
|
{
|
|
|
|
|
_coefficientSelectionForm->show();
|
|
|
|
|
}
|
2025-04-23 07:33:39 +00:00
|
|
|
|
|
|
|
|
void MainWindow::on_actionSaveExperimentData_triggered()
|
|
|
|
|
{
|
|
|
|
|
if(saveExperimentFile(Global::_experimentInfo.sampleName)){
|
|
|
|
|
_leftWidget->reloadFileName();
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-04-25 09:20:33 +00:00
|
|
|
|
|
|
|
|
void MainWindow::on_actionPrintPreview_triggered()
|
|
|
|
|
{
|
|
|
|
|
_printPreviewForm->setPixmap(_centralWidget->getPixMap());
|
|
|
|
|
_printPreviewForm->show();
|
|
|
|
|
}
|
2025-04-28 06:16:26 +00:00
|
|
|
|
|
|
|
|
void MainWindow::on_actionOnsetTemperaturePoint_triggered()
|
|
|
|
|
{
|
|
|
|
|
_rightWidget->show();
|
|
|
|
|
_centralWidget->setAnalysisMode(CentralWidget::AnalysisMode::OnsetTemperaturePoint);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MainWindow::on_actionEndsetTemperaturePoint_triggered()
|
|
|
|
|
{
|
|
|
|
|
_rightWidget->show();
|
|
|
|
|
_centralWidget->setAnalysisMode(CentralWidget::AnalysisMode::EndsetTemperaturePoint);
|
|
|
|
|
}
|
2025-04-28 09:31:29 +00:00
|
|
|
|
|
|
|
|
void MainWindow::on_actionYAxis_triggered()
|
|
|
|
|
{
|
|
|
|
|
_centralWidget->switchAxisMode();
|
|
|
|
|
}
|
2025-04-29 09:29:14 +00:00
|
|
|
|
|
|
|
|
void MainWindow::on_actionAxisSetting_triggered()
|
|
|
|
|
{
|
|
|
|
|
_axisSettingForm->show();
|
|
|
|
|
}
|