|
@@ -145,6 +145,10 @@ void MainAndSecondaryCamerasWnd::InitPage()
|
|
}
|
|
}
|
|
delete manager;
|
|
delete manager;
|
|
}
|
|
}
|
|
|
|
+ //清理ui->viewwidgetgroup_L
|
|
|
|
+ ui->viewwidgetgroup_L->clearLayout();
|
|
|
|
+ QPixmap pixmap = ui->viewwidgetgroup_L->getCurrentComboBoxPixmap(0);
|
|
|
|
+ GetGroupImageShowSignalsTo_L(pixmap);
|
|
|
|
|
|
// 设置控件的最小高度和最大宽度
|
|
// 设置控件的最小高度和最大宽度
|
|
int minHeight = 162;
|
|
int minHeight = 162;
|
|
@@ -571,13 +575,13 @@ void MainAndSecondaryCamerasWnd::GetCurrentSelectSlots(int groupId, int nIndex)
|
|
m_veCurrentSelectGroup_L = m_veCurrentSelectGroup_R;
|
|
m_veCurrentSelectGroup_L = m_veCurrentSelectGroup_R;
|
|
|
|
|
|
//判断更新前的右窗口的index是相机还是物料
|
|
//判断更新前的右窗口的index是相机还是物料
|
|
|
|
+ int currentLeftComboBoxIndex = m_veCurrentSelectGroup_L.pSelectGroup->getCurrentComboBoxIndex();
|
|
|
|
+ ui->viewwidgetgroup_L->setComboBox(m_mapFileListMap[m_veCurrentSelectGroup_L.pSelectGroup->m_nGroupId], currentLeftComboBoxIndex);
|
|
if (lastIndex == 1) {
|
|
if (lastIndex == 1) {
|
|
//左窗口绑定
|
|
//左窗口绑定
|
|
//更新左边的下拉框内容同步小窗口索引
|
|
//更新左边的下拉框内容同步小窗口索引
|
|
- int currentLeftComboBoxIndex = m_veCurrentSelectGroup_L.pSelectGroup->getCurrentComboBoxIndex();
|
|
|
|
- ui->viewwidgetgroup_L->setEnableControls(true);
|
|
|
|
- ui->viewwidgetgroup_L->setComboBox(m_mapFileListMap[m_veCurrentSelectGroup_L.pSelectGroup->m_nGroupId],currentLeftComboBoxIndex);
|
|
|
|
|
|
|
|
|
|
+ ui->viewwidgetgroup_L->setEnableControls(true);
|
|
BindImageOrMaterial(m_nLastLeft, m_nImageIndex);
|
|
BindImageOrMaterial(m_nLastLeft, m_nImageIndex);
|
|
QPixmap pixmap = ui->viewwidgetgroup_L->getCurrentComboBoxPixmap(currentLeftComboBoxIndex);
|
|
QPixmap pixmap = ui->viewwidgetgroup_L->getCurrentComboBoxPixmap(currentLeftComboBoxIndex);
|
|
GetGroupImageShowSignalsTo_L(pixmap);
|
|
GetGroupImageShowSignalsTo_L(pixmap);
|
|
@@ -593,16 +597,16 @@ void MainAndSecondaryCamerasWnd::GetCurrentSelectSlots(int groupId, int nIndex)
|
|
//右边更新物料窗口
|
|
//右边更新物料窗口
|
|
m_veCurrentSelectGroup_R.pSelectGroup = m_allGroup.at(nOnClickGroupId);
|
|
m_veCurrentSelectGroup_R.pSelectGroup = m_allGroup.at(nOnClickGroupId);
|
|
//判断当前index是相机还是物料
|
|
//判断当前index是相机还是物料
|
|
|
|
+ int currentRightComboBoxIndex = m_veCurrentSelectGroup_R.pSelectGroup->getCurrentComboBoxIndex();
|
|
|
|
+ ui->viewwidgetgroup_R->setComboBox(m_mapFileListMap[m_veCurrentSelectGroup_R.pSelectGroup->m_nGroupId], currentRightComboBoxIndex);
|
|
if (nIndex == 2) {
|
|
if (nIndex == 2) {
|
|
ui->viewwidgetgroup_R->setEnableControls(false);
|
|
ui->viewwidgetgroup_R->setEnableControls(false);
|
|
BindImageOrMaterial(m_nCurrentRight, m_nMaterialIndex);
|
|
BindImageOrMaterial(m_nCurrentRight, m_nMaterialIndex);
|
|
|
|
|
|
}
|
|
}
|
|
else if (nIndex == 1) {//当前切换时相机序号
|
|
else if (nIndex == 1) {//当前切换时相机序号
|
|
- int currentRightComboBoxIndex = m_veCurrentSelectGroup_R.pSelectGroup->getCurrentComboBoxIndex();
|
|
|
|
- ui->viewwidgetgroup_R->setEnableControls(true);
|
|
|
|
- ui->viewwidgetgroup_R->setComboBox(m_mapFileListMap[m_veCurrentSelectGroup_R.pSelectGroup->m_nGroupId],currentRightComboBoxIndex);
|
|
|
|
|
|
|
|
|
|
+ ui->viewwidgetgroup_R->setEnableControls(true);
|
|
BindImageOrMaterial(m_nCurrentRight, m_nImageIndex);
|
|
BindImageOrMaterial(m_nCurrentRight, m_nImageIndex);
|
|
QPixmap pixmap = ui->viewwidgetgroup_R->getCurrentComboBoxPixmap(currentRightComboBoxIndex);
|
|
QPixmap pixmap = ui->viewwidgetgroup_R->getCurrentComboBoxPixmap(currentRightComboBoxIndex);
|
|
GetGroupImageShowSignalsTo_R(pixmap);
|
|
GetGroupImageShowSignalsTo_R(pixmap);
|