|
@@ -178,7 +178,9 @@ MainWindow::MainWindow(QWidget *parent)
|
|
|
|
|
|
connect(this,SIGNAL(CamUpdate(int)),this,SLOT(onCamUpdate(int)));
|
|
connect(this,SIGNAL(CamUpdate(int)),this,SLOT(onCamUpdate(int)));
|
|
|
|
|
|
- setWindowTitle(mstrProgName +mstrVIN+ mstrGPSTime + mstrPicTime);
|
|
|
|
|
|
+ setWindowTitle(mstrProgName +mstrVIN+ mstrGPSTime );
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@@ -253,6 +255,11 @@ void MainWindow::CreateView()
|
|
|
|
|
|
ui->radioButton_Null->setChecked(true);
|
|
ui->radioButton_Null->setChecked(true);
|
|
|
|
|
|
|
|
+ connect(mmyview,SIGNAL(EscFull()),this,SLOT(onEscFull()));
|
|
|
|
+ connect(mmyviewRear,SIGNAL(EscFull()),this,SLOT(onEscFull()));
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@@ -826,7 +833,7 @@ void MainWindow::onTimerUpdateView()
|
|
snprintf(strtem,100,"LT(%lld|%d|%lld) ",mgrpcpc->GetPicLatency(2),mgrpcpc->GetFrameRate(2),mgrpcpc->GetPicDownLatency(2));strncat(strlatency,strtem,1000);
|
|
snprintf(strtem,100,"LT(%lld|%d|%lld) ",mgrpcpc->GetPicLatency(2),mgrpcpc->GetFrameRate(2),mgrpcpc->GetPicDownLatency(2));strncat(strlatency,strtem,1000);
|
|
snprintf(strtem,100,"RT(%lld|%d|%lld) ",mgrpcpc->GetPicLatency(3),mgrpcpc->GetFrameRate(3),mgrpcpc->GetPicDownLatency(3));strncat(strlatency,strtem,1000);
|
|
snprintf(strtem,100,"RT(%lld|%d|%lld) ",mgrpcpc->GetPicLatency(3),mgrpcpc->GetFrameRate(3),mgrpcpc->GetPicDownLatency(3));strncat(strlatency,strtem,1000);
|
|
|
|
|
|
- mpLabelLatency->setText(strlatency);
|
|
|
|
|
|
+ // mpLabelLatency->setText(strlatency);
|
|
|
|
|
|
|
|
|
|
if(gTimeGPSIMUUpdate != time_gps)
|
|
if(gTimeGPSIMUUpdate != time_gps)
|
|
@@ -1277,6 +1284,11 @@ void MainWindow::threadframe(int ncamppos)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ if(bSaving)
|
|
|
|
+ {
|
|
|
|
+ av_write_trailer(ofmt_ctx);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
void MainWindow::threadpic(int ncampos)
|
|
void MainWindow::threadpic(int ncampos)
|
|
@@ -1378,6 +1390,7 @@ void MainWindow::on_horizontalSlider_wheelspeed_valueChanged(int value)
|
|
|
|
|
|
void MainWindow::on_actionSave_Video_triggered()
|
|
void MainWindow::on_actionSave_Video_triggered()
|
|
{
|
|
{
|
|
|
|
+
|
|
static bool bSave = false;
|
|
static bool bSave = false;
|
|
|
|
|
|
|
|
|
|
@@ -1403,3 +1416,27 @@ void MainWindow::on_actionSave_Video_triggered()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+void MainWindow::closeEvent(QCloseEvent * event)
|
|
|
|
+{
|
|
|
|
+ switch( QMessageBox::information( this, tr("Exit"), tr("Do you really want exit?"), tr("Yes"), tr("No"), 0, 1 ) )
|
|
|
|
+ {
|
|
|
|
+ case 0:
|
|
|
|
+ event->accept();
|
|
|
|
+ gwleft->SetColse();
|
|
|
|
+ gwright->SetColse();
|
|
|
|
+ break;
|
|
|
|
+ case 1:
|
|
|
|
+ default:
|
|
|
|
+ event->ignore();
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+void MainWindow::onEscFull()
|
|
|
|
+{
|
|
|
|
+ showNormal();
|
|
|
|
+ ui->menubar->setVisible(true);
|
|
|
|
+ ui->statusbar->setVisible(true);
|
|
|
|
+}
|