|
@@ -57,6 +57,8 @@ BondMatrixProgramPage::BondMatrixProgramPage(QWidget* parent) :
|
|
|
|
|
|
connect(ui.pushButtonSave, &QPushButton::clicked, this, [=] {
|
|
connect(ui.pushButtonSave, &QPushButton::clicked, this, [=] {
|
|
MatrixChangeEvent();
|
|
MatrixChangeEvent();
|
|
|
|
+ CBondMatrix* pBondMatrix = CResources::GetInstance()->GetBondMatrix();
|
|
|
|
+ pBondMatrix->LoadMatrix(BOND_DIR::OrderAndS);
|
|
});
|
|
});
|
|
|
|
|
|
connect(ui.pushButtonAddOutMatrix, &QPushButton::clicked, this, [=]() {
|
|
connect(ui.pushButtonAddOutMatrix, &QPushButton::clicked, this, [=]() {
|
|
@@ -90,7 +92,7 @@ BondMatrixProgramPage::BondMatrixProgramPage(QWidget* parent) :
|
|
newMatrix.BondMatrixId = newBondMatrixID;
|
|
newMatrix.BondMatrixId = newBondMatrixID;
|
|
newMatrix.BondMatrixRow = 0;
|
|
newMatrix.BondMatrixRow = 0;
|
|
newMatrix.BondMatrixCol = 0;
|
|
newMatrix.BondMatrixCol = 0;
|
|
- newMatrix.strModuleName = "UltraHead";
|
|
|
|
|
|
+ newMatrix.strModuleName = "BondHead";
|
|
newMatrix.iModuleId = MODULE_LIST::BondHead;
|
|
newMatrix.iModuleId = MODULE_LIST::BondHead;
|
|
int newVectorIndex = m_vectBondMatrixs.size();
|
|
int newVectorIndex = m_vectBondMatrixs.size();
|
|
|
|
|
|
@@ -105,10 +107,21 @@ BondMatrixProgramPage::BondMatrixProgramPage(QWidget* parent) :
|
|
connect(ui.pushButtonSavePara, &QPushButton::clicked, this, [=] {
|
|
connect(ui.pushButtonSavePara, &QPushButton::clicked, this, [=] {
|
|
MatrixChangeEvent();
|
|
MatrixChangeEvent();
|
|
ParamChangeEvent();
|
|
ParamChangeEvent();
|
|
|
|
+ CBondMatrix* pBondMatrix = CResources::GetInstance()->GetBondMatrix();
|
|
|
|
+ pBondMatrix->LoadMatrix(BOND_DIR::OrderAndS);
|
|
});
|
|
});
|
|
connect(ui.pushButtonSaveParaAs, &QPushButton::clicked, this, [=] {
|
|
connect(ui.pushButtonSaveParaAs, &QPushButton::clicked, this, [=] {
|
|
ParamSaveAsEvent();
|
|
ParamSaveAsEvent();
|
|
|
|
+ CBondMatrix* pBondMatrix = CResources::GetInstance()->GetBondMatrix();
|
|
|
|
+ pBondMatrix->LoadMatrix(BOND_DIR::OrderAndS);
|
|
});
|
|
});
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ connect(ui.comboBoxCurrentPara, SIGNAL(currentIndexChanged(int)), this, SLOT(onComboBoxIndexChanged(int)));
|
|
|
|
+ //connect(ui.comboBoxCurrentPara, SIGNAL(showPopup()), this, SLOT(onComboBoxPopup()));
|
|
|
|
+ //connect(ui.comboBoxCurrentPara, &QComboBox::showPopup, this, &BondMatrixProgramPage::onComboBoxPopup);
|
|
|
|
+ ui.comboBoxCurrentPara->installEventFilter(this);
|
|
|
|
+
|
|
//参数
|
|
//参数
|
|
connect(ui.comboBoxDieSource, QOverload<int>::of(&QComboBox::currentIndexChanged), this, [=](int index) {
|
|
connect(ui.comboBoxDieSource, QOverload<int>::of(&QComboBox::currentIndexChanged), this, [=](int index) {
|
|
if (index == 0)
|
|
if (index == 0)
|
|
@@ -460,6 +473,7 @@ XY_DOUBLE_STRUCT BondMatrixProgramPage::BondGetAxisPosition(std::string ModuleTy
|
|
|
|
|
|
return pos;
|
|
return pos;
|
|
}
|
|
}
|
|
|
|
+
|
|
void BondMatrixProgramPage::AddOutMatrixPage(int vectorIndex, PROGRAM_BOND_MATRIX_STRUCT matrixData, std::vector<PROGRAM_POINT_MATRIX_STRUCT> vecSubMatrix)
|
|
void BondMatrixProgramPage::AddOutMatrixPage(int vectorIndex, PROGRAM_BOND_MATRIX_STRUCT matrixData, std::vector<PROGRAM_POINT_MATRIX_STRUCT> vecSubMatrix)
|
|
{
|
|
{
|
|
int matrixNum = m_mapSubMatrixControls.size();
|
|
int matrixNum = m_mapSubMatrixControls.size();
|
|
@@ -499,7 +513,7 @@ void BondMatrixProgramPage::AddOutMatrixPage(int vectorIndex, PROGRAM_BOND_MATRI
|
|
// Add matrix title
|
|
// Add matrix title
|
|
QLabel* labelTitle = new QLabel(outWidget);
|
|
QLabel* labelTitle = new QLabel(outWidget);
|
|
labelTitle->setObjectName(QString::fromUtf8("labelTitle"));
|
|
labelTitle->setObjectName(QString::fromUtf8("labelTitle"));
|
|
- labelTitle->setText(tr("Bond Matrix ") + QString::number(vectorIndex));
|
|
|
|
|
|
+ labelTitle->setText(tr("Bond Matrix ") + QString::number(vectorIndex+1));
|
|
labelTitle->setStyleSheet("color: #6A78FF;height: 30px");
|
|
labelTitle->setStyleSheet("color: #6A78FF;height: 30px");
|
|
matrixGridLayout->addWidget(labelTitle, 0, 0, 1, 1);
|
|
matrixGridLayout->addWidget(labelTitle, 0, 0, 1, 1);
|
|
vecControls.push_back(labelTitle);
|
|
vecControls.push_back(labelTitle);
|
|
@@ -549,7 +563,7 @@ void BondMatrixProgramPage::AddOutMatrixPage(int vectorIndex, PROGRAM_BOND_MATRI
|
|
}
|
|
}
|
|
|
|
|
|
subMatrix.MatrixId = newSubMatrixID;
|
|
subMatrix.MatrixId = newSubMatrixID;
|
|
- subMatrix.strModuleName = "UltraHead";
|
|
|
|
|
|
+ subMatrix.strModuleName = "BondHead";
|
|
subMatrix.iModuleId = MODULE_LIST::BondHead;
|
|
subMatrix.iModuleId = MODULE_LIST::BondHead;
|
|
subMatrix.MatrixRow = 0;
|
|
subMatrix.MatrixRow = 0;
|
|
subMatrix.MatrixCol = 0;
|
|
subMatrix.MatrixCol = 0;
|
|
@@ -587,7 +601,7 @@ void BondMatrixProgramPage::AddOutMatrixPage(int vectorIndex, PROGRAM_BOND_MATRI
|
|
}
|
|
}
|
|
|
|
|
|
//删除缓存数据
|
|
//删除缓存数据
|
|
- m_vectBondMatrixs.erase(m_vectBondMatrixs.begin() + vectorIndex);
|
|
|
|
|
|
+ m_vectBondMatrixs.erase(m_vectBondMatrixs.begin() + index);
|
|
//m_mapBondMatrixToSubMatrices.remove(vectorIndex); // Remove mapping between BondMatrix and its SubMatrices
|
|
//m_mapBondMatrixToSubMatrices.remove(vectorIndex); // Remove mapping between BondMatrix and its SubMatrices
|
|
delete outWidget;
|
|
delete outWidget;
|
|
});
|
|
});
|
|
@@ -642,7 +656,7 @@ void BondMatrixProgramPage::AddOutMatrixPage(int vectorIndex, PROGRAM_BOND_MATRI
|
|
matrixGridLayout->addWidget(buttonLeftTop, 4, 3, 1, 1); // Position the button next to LeftTopPos
|
|
matrixGridLayout->addWidget(buttonLeftTop, 4, 3, 1, 1); // Position the button next to LeftTopPos
|
|
|
|
|
|
connect(buttonLeftTop, &QPushButton::clicked, this, [=]() {
|
|
connect(buttonLeftTop, &QPushButton::clicked, this, [=]() {
|
|
- XY_DOUBLE_STRUCT position = BondGetAxisPosition("BondMatrix", m_vectBondMatrixs[vectorIndex].LeftTopPoint);
|
|
|
|
|
|
+ XY_DOUBLE_STRUCT position = BondGetAxisPosition("BondHead", m_vectBondMatrixs[vectorIndex].LeftTopPoint);
|
|
doubleSpinBoxLeftTopX->setValue(position.x);
|
|
doubleSpinBoxLeftTopX->setValue(position.x);
|
|
doubleSpinBoxLeftTopY->setValue(position.y);
|
|
doubleSpinBoxLeftTopY->setValue(position.y);
|
|
});
|
|
});
|
|
@@ -671,7 +685,7 @@ void BondMatrixProgramPage::AddOutMatrixPage(int vectorIndex, PROGRAM_BOND_MATRI
|
|
matrixGridLayout->addWidget(buttonRightTop, 5, 3, 1, 1); // Position the button next to RightTopPos
|
|
matrixGridLayout->addWidget(buttonRightTop, 5, 3, 1, 1); // Position the button next to RightTopPos
|
|
|
|
|
|
connect(buttonRightTop, &QPushButton::clicked, this, [=]() {
|
|
connect(buttonRightTop, &QPushButton::clicked, this, [=]() {
|
|
- XY_DOUBLE_STRUCT position = BondGetAxisPosition("BondMatrix", m_vectBondMatrixs[vectorIndex].RightTopPoint);
|
|
|
|
|
|
+ XY_DOUBLE_STRUCT position = BondGetAxisPosition("BondHead", m_vectBondMatrixs[vectorIndex].RightTopPoint);
|
|
doubleSpinBoxRightTopX->setValue(position.x);
|
|
doubleSpinBoxRightTopX->setValue(position.x);
|
|
doubleSpinBoxRightTopY->setValue(position.y);
|
|
doubleSpinBoxRightTopY->setValue(position.y);
|
|
});
|
|
});
|
|
@@ -700,7 +714,7 @@ void BondMatrixProgramPage::AddOutMatrixPage(int vectorIndex, PROGRAM_BOND_MATRI
|
|
matrixGridLayout->addWidget(buttonRightButtom, 6, 3, 1, 1); // Position the button next to RightBottomPos
|
|
matrixGridLayout->addWidget(buttonRightButtom, 6, 3, 1, 1); // Position the button next to RightBottomPos
|
|
|
|
|
|
connect(buttonRightButtom, &QPushButton::clicked, this, [=]() {
|
|
connect(buttonRightButtom, &QPushButton::clicked, this, [=]() {
|
|
- XY_DOUBLE_STRUCT position = BondGetAxisPosition("BondMatrix", m_vectBondMatrixs[vectorIndex].RightBottomPoint);
|
|
|
|
|
|
+ XY_DOUBLE_STRUCT position = BondGetAxisPosition("BondHead", m_vectBondMatrixs[vectorIndex].RightBottomPoint);
|
|
doubleSpinBoxRightButtomX->setValue(position.x);
|
|
doubleSpinBoxRightButtomX->setValue(position.x);
|
|
doubleSpinBoxRightButtomY->setValue(position.y);
|
|
doubleSpinBoxRightButtomY->setValue(position.y);
|
|
});
|
|
});
|
|
@@ -747,6 +761,7 @@ void BondMatrixProgramPage::AddOutMatrixPage(int vectorIndex, PROGRAM_BOND_MATRI
|
|
// 添加项并使用 setData 存储 iInfoId 作为附加数据
|
|
// 添加项并使用 setData 存储 iInfoId 作为附加数据
|
|
comboBoxParagramSet->addItem(itemText, bondMatrix.iInfoId);
|
|
comboBoxParagramSet->addItem(itemText, bondMatrix.iInfoId);
|
|
}
|
|
}
|
|
|
|
+ comboBoxParagramSet->setCurrentIndex(m_vectBondMatrixs[vectorIndex].BondInfoId-1);
|
|
|
|
|
|
// 将下拉框添加到布局中
|
|
// 将下拉框添加到布局中
|
|
matrixGridLayout->addWidget(comboBoxParagramSet, 8, 1, 1, 1);
|
|
matrixGridLayout->addWidget(comboBoxParagramSet, 8, 1, 1, 1);
|
|
@@ -755,8 +770,9 @@ void BondMatrixProgramPage::AddOutMatrixPage(int vectorIndex, PROGRAM_BOND_MATRI
|
|
vecControls.push_back(comboBoxParagramSet);
|
|
vecControls.push_back(comboBoxParagramSet);
|
|
// 连接 QComboBox 的信号和槽
|
|
// 连接 QComboBox 的信号和槽
|
|
connect(comboBoxParagramSet, SIGNAL(currentIndexChanged(int)), this, SLOT(onComboBoxIndexChanged(int)));
|
|
connect(comboBoxParagramSet, SIGNAL(currentIndexChanged(int)), this, SLOT(onComboBoxIndexChanged(int)));
|
|
- connect(comboBoxParagramSet, SIGNAL(showPopup()), this, SLOT(onComboBoxPopup()));
|
|
|
|
-
|
|
|
|
|
|
+ //connect(, SIGNAL(showPopup()), this, SLOT(onComboBoxPopup()));
|
|
|
|
+ //connect(comboBoxParagramSet, &QComboBox::showPopup, this, &BondMatrixProgramPage::onComboBoxPopup);
|
|
|
|
+ comboBoxParagramSet->installEventFilter(this);
|
|
|
|
|
|
QPushButton* buttonParagram = new QPushButton("ShowParagram", this);
|
|
QPushButton* buttonParagram = new QPushButton("ShowParagram", this);
|
|
//buttonParagram->setFixedWidth(62); // Set the same width for the button
|
|
//buttonParagram->setFixedWidth(62); // Set the same width for the button
|
|
@@ -848,12 +864,14 @@ void BondMatrixProgramPage::AddOutMatrixPage(int vectorIndex, PROGRAM_BOND_MATRI
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
-void BondMatrixProgramPage::onComboBoxPopup() {
|
|
|
|
|
|
+void BondMatrixProgramPage::onComboBoxPopup(QComboBox* comboBox) {
|
|
// 获取当前的 QComboBox
|
|
// 获取当前的 QComboBox
|
|
- QComboBox* comboBox = qobject_cast<QComboBox*>(sender());
|
|
|
|
|
|
+ //QComboBox* comboBox = qobject_cast<QComboBox*>(sender());
|
|
if (!comboBox) {
|
|
if (!comboBox) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+ int currentIndex = comboBox->currentIndex(); // 获取当前选中的索引
|
|
|
|
+ QVariant currentData = comboBox->currentData(); // 获取当前选中的附加数据(例如 iInfoId)
|
|
|
|
|
|
// 清空下拉框中的所有项
|
|
// 清空下拉框中的所有项
|
|
comboBox->clear();
|
|
comboBox->clear();
|
|
@@ -866,6 +884,11 @@ void BondMatrixProgramPage::onComboBoxPopup() {
|
|
// 将 iInfoId 添加到下拉框
|
|
// 将 iInfoId 添加到下拉框
|
|
comboBox->addItem(itemText, bondMatrix.iInfoId);
|
|
comboBox->addItem(itemText, bondMatrix.iInfoId);
|
|
}
|
|
}
|
|
|
|
+ // 恢复原来的选中项
|
|
|
|
+ // 通过 index 恢复选中项
|
|
|
|
+ if (currentIndex >= 0 && currentIndex < comboBox->count()) {
|
|
|
|
+ comboBox->setCurrentIndex(currentIndex);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
//// 槽函数:每次下拉框弹出时刷新内容
|
|
//// 槽函数:每次下拉框弹出时刷新内容
|
|
@@ -1074,7 +1097,7 @@ void BondMatrixProgramPage::AddMatrixPage(int vectorIndex, int subVectorIndex, P
|
|
subGridLayout->addWidget(buttonLeftTop, 4, 3, 1, 1); // 添加按钮到4行3列
|
|
subGridLayout->addWidget(buttonLeftTop, 4, 3, 1, 1); // 添加按钮到4行3列
|
|
|
|
|
|
connect(buttonLeftTop, &QPushButton::clicked, this, [=]() {
|
|
connect(buttonLeftTop, &QPushButton::clicked, this, [=]() {
|
|
- XY_DOUBLE_STRUCT position = BondGetAxisPosition("UltraHead", m_vectBondMatrixs[subVectorIndex].LeftTopPoint);
|
|
|
|
|
|
+ XY_DOUBLE_STRUCT position = BondGetAxisPosition("BondHead", m_vecSubMatrixs[subVectorIndex].LeftTopPoint);
|
|
doubleSpinBoxLeftTopX->setValue(position.x); // 更新 X 轴
|
|
doubleSpinBoxLeftTopX->setValue(position.x); // 更新 X 轴
|
|
doubleSpinBoxLeftTopY->setValue(position.y); // 更新 Y 轴
|
|
doubleSpinBoxLeftTopY->setValue(position.y); // 更新 Y 轴
|
|
});
|
|
});
|
|
@@ -1085,7 +1108,7 @@ void BondMatrixProgramPage::AddMatrixPage(int vectorIndex, int subVectorIndex, P
|
|
subGridLayout->addWidget(buttonRightTop, 5, 3, 1, 1); // 添加按钮到5行3列
|
|
subGridLayout->addWidget(buttonRightTop, 5, 3, 1, 1); // 添加按钮到5行3列
|
|
|
|
|
|
connect(buttonRightTop, &QPushButton::clicked, this, [=]() {
|
|
connect(buttonRightTop, &QPushButton::clicked, this, [=]() {
|
|
- XY_DOUBLE_STRUCT position = BondGetAxisPosition("UltraHead", m_vectBondMatrixs[subVectorIndex].RightTopPoint);
|
|
|
|
|
|
+ XY_DOUBLE_STRUCT position = BondGetAxisPosition("BondHead", m_vecSubMatrixs[subVectorIndex].RightTopPoint);
|
|
doubleSpinBoxRightTopX->setValue(position.x); // 更新 X 轴
|
|
doubleSpinBoxRightTopX->setValue(position.x); // 更新 X 轴
|
|
doubleSpinBoxRightTopY->setValue(position.y); // 更新 Y 轴
|
|
doubleSpinBoxRightTopY->setValue(position.y); // 更新 Y 轴
|
|
});
|
|
});
|
|
@@ -1096,7 +1119,7 @@ void BondMatrixProgramPage::AddMatrixPage(int vectorIndex, int subVectorIndex, P
|
|
subGridLayout->addWidget(buttonRightButtom, 6, 3, 1, 1); // 添加按钮到6行3列
|
|
subGridLayout->addWidget(buttonRightButtom, 6, 3, 1, 1); // 添加按钮到6行3列
|
|
|
|
|
|
connect(buttonRightButtom, &QPushButton::clicked, this, [=]() {
|
|
connect(buttonRightButtom, &QPushButton::clicked, this, [=]() {
|
|
- XY_DOUBLE_STRUCT position = BondGetAxisPosition("UltraHead", m_vectBondMatrixs[subVectorIndex].RightBottomPoint);
|
|
|
|
|
|
+ XY_DOUBLE_STRUCT position = BondGetAxisPosition("BondHead", m_vecSubMatrixs[subVectorIndex].RightBottomPoint);
|
|
doubleSpinBoxRightButtomX->setValue(position.x); // 更新 X 轴
|
|
doubleSpinBoxRightButtomX->setValue(position.x); // 更新 X 轴
|
|
doubleSpinBoxRightButtomY->setValue(position.y); // 更新 Y 轴
|
|
doubleSpinBoxRightButtomY->setValue(position.y); // 更新 Y 轴
|
|
});
|
|
});
|
|
@@ -1171,11 +1194,18 @@ void BondMatrixProgramPage::AddMatrixPage(int vectorIndex, int subVectorIndex, P
|
|
|
|
|
|
|
|
|
|
bool BondMatrixProgramPage::eventFilter(QObject* obj, QEvent* event) {
|
|
bool BondMatrixProgramPage::eventFilter(QObject* obj, QEvent* event) {
|
|
- if (event->type() == QEvent::MouseButtonPress)
|
|
|
|
- {
|
|
|
|
|
|
+ // 捕获鼠标点击事件(QEvent::MouseButtonPress)
|
|
|
|
+ if (event->type() == QEvent::MouseButtonPress) {
|
|
|
|
+ auto* comboBox = qobject_cast<QComboBox*>(obj);
|
|
|
|
+ if (comboBox) {
|
|
|
|
+ // 当 QComboBox 被点击时执行 onComboBoxPopup()
|
|
|
|
+ onComboBoxPopup(comboBox);
|
|
|
|
+ return false; // 拦截事件,防止进一步传播
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ // 处理 QLineEdit 的点击事件
|
|
auto* lineEdit = qobject_cast<QLineEdit*>(obj);
|
|
auto* lineEdit = qobject_cast<QLineEdit*>(obj);
|
|
- if (lineEdit)
|
|
|
|
- {
|
|
|
|
|
|
+ if (lineEdit) {
|
|
int index = lineEdit->property("vectorIndex").toInt(); // 当前矩阵索引
|
|
int index = lineEdit->property("vectorIndex").toInt(); // 当前矩阵索引
|
|
int parentIndex = lineEdit->property("parentMatrixIndex").toInt(); // 父矩阵索引
|
|
int parentIndex = lineEdit->property("parentMatrixIndex").toInt(); // 父矩阵索引
|
|
|
|
|
|
@@ -1183,6 +1213,8 @@ bool BondMatrixProgramPage::eventFilter(QObject* obj, QEvent* event) {
|
|
return true; // 拦截事件
|
|
return true; // 拦截事件
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+
|
|
return QWidget::eventFilter(obj, event);
|
|
return QWidget::eventFilter(obj, event);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1275,6 +1307,17 @@ int BondMatrixProgramPage::ParamSaveAsEvent()
|
|
m_manageDB->GetCProduct()->AddBondParam(m_curBondParam, iBondParamId);
|
|
m_manageDB->GetCProduct()->AddBondParam(m_curBondParam, iBondParamId);
|
|
int iInfoId;
|
|
int iInfoId;
|
|
m_manageDB->GetCProduct()->AddBondInfoData(m_curBondInfo, iInfoId);
|
|
m_manageDB->GetCProduct()->AddBondInfoData(m_curBondInfo, iInfoId);
|
|
|
|
+
|
|
|
|
+ ns_db::BOND_INFO_STRUCT newBondInfo;
|
|
|
|
+ m_manageDB->GetCProduct()->GetBondInfoData(iInfoId, newBondInfo);
|
|
|
|
+ m_vecBondInfoData.push_back(newBondInfo);// = m_manageDB->GetCProduct()->GetAllBondInfoData();
|
|
|
|
+ // 填充 QComboBox
|
|
|
|
+ ui.comboBoxCurrentPara->clear();
|
|
|
|
+ for (const auto& bondMatrix : m_vecBondInfoData) {
|
|
|
|
+ QString itemText = QString::number(bondMatrix.iInfoId);
|
|
|
|
+ ui.comboBoxCurrentPara->addItem(itemText, bondMatrix.iInfoId);
|
|
|
|
+ }
|
|
|
|
+ ui.comboBoxCurrentPara->setCurrentIndex(iInfoId-1);
|
|
return iInfoId;
|
|
return iInfoId;
|
|
}
|
|
}
|
|
void BondMatrixProgramPage::ParamChangeEvent()
|
|
void BondMatrixProgramPage::ParamChangeEvent()
|
|
@@ -1446,6 +1489,18 @@ void BondMatrixProgramPage::initPage()
|
|
{
|
|
{
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ // 清空下拉框中的所有项
|
|
|
|
+ ui.comboBoxCurrentPara->clear();
|
|
|
|
+
|
|
|
|
+ // 重新填充下拉框选项,并更新 QMap 中的绑定关系
|
|
|
|
+ for (const auto& bondMatrix : m_vecBondInfoData) {
|
|
|
|
+ // 显示编号 iInfoId
|
|
|
|
+ QString itemText = QString::number(bondMatrix.iInfoId);
|
|
|
|
+
|
|
|
|
+ // 将 iInfoId 添加到下拉框
|
|
|
|
+ ui.comboBoxCurrentPara->addItem(itemText, bondMatrix.iInfoId);
|
|
|
|
+ }
|
|
UpdateShowBondInfoData(m_vectBondMatrixs[0].BondInfoId);
|
|
UpdateShowBondInfoData(m_vectBondMatrixs[0].BondInfoId);
|
|
////pBondMatrix->GetPintInfoByIndex(0, m_curPointInfo);
|
|
////pBondMatrix->GetPintInfoByIndex(0, m_curPointInfo);
|
|
//m_manageDB->GetCProduct()->GetBondInfoData(m_vectBondMatrixs[0].BondInfoId, m_curBondInfo);
|
|
//m_manageDB->GetCProduct()->GetBondInfoData(m_vectBondMatrixs[0].BondInfoId, m_curBondInfo);
|
|
@@ -1467,6 +1522,7 @@ void BondMatrixProgramPage::UpdateShowBondInfoData(UINT iInfoId) {
|
|
m_manageDB->GetCProduct()->GetBondParam(m_curBondInfo.iCalibPickParamId, m_curCalibPickParam);
|
|
m_manageDB->GetCProduct()->GetBondParam(m_curBondInfo.iCalibPickParamId, m_curCalibPickParam);
|
|
m_manageDB->GetCProduct()->GetBondParam(m_curBondInfo.iBondParamId, m_curBondParam);
|
|
m_manageDB->GetCProduct()->GetBondParam(m_curBondInfo.iBondParamId, m_curBondParam);
|
|
|
|
|
|
|
|
+ ui.comboBoxCurrentPara->setCurrentIndex(iInfoId-1);
|
|
//显示界面参数
|
|
//显示界面参数
|
|
UpdatePageParam();
|
|
UpdatePageParam();
|
|
}
|
|
}
|