diff --git a/src/ui/aboutform.cpp b/src/ui/aboutform.cpp
index a065d6a..421b78b 100644
--- a/src/ui/aboutform.cpp
+++ b/src/ui/aboutform.cpp
@@ -1,6 +1,7 @@
#include "aboutform.h"
#include "ui_aboutform.h"
#include "defines.h"
+#include "global.h"
AboutForm::AboutForm(QWidget *parent) :
QWidget(parent),
@@ -8,9 +9,38 @@ AboutForm::AboutForm(QWidget *parent) :
{
ui->setupUi(this);
- // ui->labelContent->setText(ConSoftVersion);
+ setFixedSize(geometry().width(),geometry().height());
+
+ setWindowTitle("About");
+
+ QPixmap pixmap(":/images/logo.png"); // 假设图片在资源文件中
+ ui->labelLogo->setPixmap(pixmap);
+ ui->labelLogo->resize(pixmap.size());
+
+ //
+ ui->labelTitle->setAlignment(Qt::AlignHCenter);
+ ui->labelTitle->setText(QString("关于差示扫描量热仪数据分析软件
"));
+
+
+//#define COMPILE_TIME QString("编译时间:%1 %2").arg(__DATE__).arg(__TIME__)
+
+ QString ConCompleTime = QString("编译时间:%1 %2").arg(__DATE__).arg(__TIME__);
+
+ QString aboutText = QString(
+ "软件版本:%1
"
+ "%2
"
+ "版权所有 © 2025 山东云唐智能科技有限公司 保留所有权
"
+ "
"
+ "本软件基于 Qt 框架开发,Qt 遵循 "
+ "LGPL 协议。
"
+ "Qt 官网:www.qt.io
")
+ .arg(Global::ConSoftVersion).arg(ConCompleTime);
+
ui->labelContent->setAlignment(Qt::AlignTop | Qt::AlignLeft);
- ui->labelContent->setText(QString("软件版本:%1").arg(ConSoftVersion));
+ ui->labelContent->setTextFormat(Qt::RichText);
+ ui->labelContent->setText(aboutText);
+ ui->labelContent->setStyleSheet("p { line-height: 1em; }");
+ ui->labelContent->setOpenExternalLinks(true); // 允许用户点击链接
}
AboutForm::~AboutForm()
diff --git a/src/ui/aboutform.ui b/src/ui/aboutform.ui
index 3c4d380..c41b4a5 100644
--- a/src/ui/aboutform.ui
+++ b/src/ui/aboutform.ui
@@ -6,7 +6,7 @@
0
0
- 428
+ 498
290
@@ -17,7 +17,7 @@
20
- 70
+ 80
131
101
@@ -30,9 +30,9 @@
150
- 20
- 261
- 251
+ 60
+ 331
+ 171
@@ -42,8 +42,8 @@
- 300
- 240
+ 310
+ 250
80
20
@@ -52,6 +52,19 @@
关闭
+
+
+
+ 20
+ 10
+ 511
+ 31
+
+
+
+ TextLabel
+
+
diff --git a/src/ui/centralwidget.cpp b/src/ui/centralwidget.cpp
index 78a9ac9..efcd010 100644
--- a/src/ui/centralwidget.cpp
+++ b/src/ui/centralwidget.cpp
@@ -176,6 +176,7 @@ void CentralWidget::slotRecvAnalysisFileName(const QString &fileName)
Global::PhaseTotalInfo& pti = cfd.phaseTotalVtr[i];
PointCalculate::setExperimentData(pti.dataVtr);
+
QPairstartEndPointPair = PointCalculate::getStartAndEndPoint();
QPointF endPoint = startEndPointPair.second;
@@ -189,6 +190,7 @@ void CentralWidget::slotRecvAnalysisFileName(const QString &fileName)
_customPlot->yAxis->setLabel("DSC/mW");
_customPlot->xAxis->setLabel("Temp/℃");
+ QVector dataVtr;
QVector tVtr,xVtr, yVtr;
int index = 0;
for (Global::ExperimentData &ed : pti.dataVtr)
@@ -196,32 +198,17 @@ void CentralWidget::slotRecvAnalysisFileName(const QString &fileName)
tVtr.push_back(index++);
xVtr.push_back(ed.sampleTemp);
yVtr.push_back(ed.dsc);
+
}
_currentCurve = new QCPCurve(_customPlot->xAxis, _customPlot->yAxis);
_currentCurve->setData(tVtr, xVtr, yVtr);
- // _currentCurve->setPen(QPen(Qt::red)); // 设置线条颜色为红色
- // _currentCurve->setBrush(QBrush(QColor(255, 0, 0, 20))); // 设置填充颜色并带有透明度
_currentCurve->setSelectable(QCP::stWhole); // 设置曲线可选
- // _currentCurve->setSelectable(QCP::stPlottable); // 设置曲线可选
+ //
+// Global::_curveExperimentDataVtr.push_back();
}
- // 清除第一个图表上的数据
-#if 0
- if (_customPlot->graphCount() > 0 && _graph)
- {
- // 清除第一个图表上的数据
- _graph->setData(QVector(), QVector());
- }
-#endif
-
-#if 0
- _currentGraph = _customPlot->addGraph();
- _graphVtr.push_back(_currentGraph);
-
- _currentGraph->addData(xVtr, yVtr);
-#endif
_customPlot->replot();
}
@@ -308,6 +295,8 @@ void CentralWidget::slotAnalysisSettingApply()
QPointF selectPoint = PointCalculate::getClosestPointByX(
_line1->point1->coords().x());
+ logde<<"lin1 x:"<<_line1->point1->coords().x();
+
drawText(selectPoint,PointCalculate::textFormatNumbericalLabel(selectPoint));
break;
diff --git a/src/ui/enthalpydatacorrectionform.cpp b/src/ui/enthalpydatacorrectionform.cpp
new file mode 100644
index 0000000..61e6693
--- /dev/null
+++ b/src/ui/enthalpydatacorrectionform.cpp
@@ -0,0 +1,30 @@
+#include "enthalpydatacorrectionform.h"
+#include "ui_enthalpydatacorrectionform.h"
+
+EnthalpyDataCorrectionForm::EnthalpyDataCorrectionForm(QWidget *parent) :
+ QWidget(parent),
+ ui(new Ui::EnthalpyDataCorrectionForm)
+{
+ ui->setupUi(this);
+
+// ui->lineEditTheoryIn->setText("28.6");
+// ui->lineEditTheorySn->setText("60.5");
+// ui->lineEditTheoryBi->setText("53.3");
+
+
+}
+
+EnthalpyDataCorrectionForm::~EnthalpyDataCorrectionForm()
+{
+ delete ui;
+}
+
+void EnthalpyDataCorrectionForm::on_pushButtonSave_clicked()
+{
+
+}
+
+void EnthalpyDataCorrectionForm::on_pushButtonExit_clicked()
+{
+ hide();
+}
diff --git a/src/ui/enthalpydatacorrectionform.h b/src/ui/enthalpydatacorrectionform.h
new file mode 100644
index 0000000..07553bf
--- /dev/null
+++ b/src/ui/enthalpydatacorrectionform.h
@@ -0,0 +1,27 @@
+#ifndef ENTHALPYDATACORRECTIONFORM_H
+#define ENTHALPYDATACORRECTIONFORM_H
+
+#include
+
+namespace Ui {
+class EnthalpyDataCorrectionForm;
+}
+
+class EnthalpyDataCorrectionForm : public QWidget
+{
+ Q_OBJECT
+
+public:
+ explicit EnthalpyDataCorrectionForm(QWidget *parent = nullptr);
+ ~EnthalpyDataCorrectionForm();
+
+private slots:
+ void on_pushButtonSave_clicked();
+
+ void on_pushButtonExit_clicked();
+
+private:
+ Ui::EnthalpyDataCorrectionForm *ui;
+};
+
+#endif // ENTHALPYDATACORRECTIONFORM_H
diff --git a/src/ui/enthalpydatacorrectionform.ui b/src/ui/enthalpydatacorrectionform.ui
new file mode 100644
index 0000000..1ed6870
--- /dev/null
+++ b/src/ui/enthalpydatacorrectionform.ui
@@ -0,0 +1,630 @@
+
+
+ EnthalpyDataCorrectionForm
+
+
+
+ 0
+ 0
+ 514
+ 626
+
+
+
+ Form
+
+
+
+
+ 40
+ 50
+ 431
+ 518
+
+
+
+ -
+
+
+ 7
+
+
+
+ -
+
+
+ K2SO4
+
+
+
+ -
+
+
+ Sn
+
+
+
+ -
+
+
+ CsCl
+
+
+
+ -
+
+
+ In
+
+
+
+ -
+
+
+ 573.0
+
+
+
+ -
+
+
+ -
+
+
+ 299.5
+
+
+
+ -
+
+
+ 8
+
+
+
+ -
+
+
+ -
+
+
+ 13
+
+
+
+ -
+
+
+ 476.0
+
+
+
+ -
+
+
+ 5
+
+
+
+ -
+
+
+ C6H5COOH
+
+
+
+ -
+
+
+ 327.4
+
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ 430.0
+
+
+
+ -
+
+
+ 28.42
+
+
+
+ -
+
+
+ 理论温度(℃)
+
+
+
+ -
+
+
+ 665.0
+
+
+
+ -
+
+
+ -
+
+
+ 11
+
+
+
+ -
+
+
+ 11.47
+
+
+
+ -
+
+
+ Cu
+
+
+
+ -
+
+
+ -
+
+
+ 10
+
+
+
+ -
+
+
+ C6H12
+
+
+
+ -
+
+
+ 231.9
+
+
+
+ -
+
+
+ 15
+
+
+
+ -
+
+
+ 122.1
+
+
+
+ -
+
+
+ -
+
+
+ 4
+
+
+
+ -
+
+
+ 16
+
+
+
+ -
+
+
+ -
+
+
+ 810.0
+
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ 标样
+
+
+
+ -
+
+
+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