@@ -272,7 +272,6 @@ void MainWindow::settingsLoadAll()
272
272
ui->comboBoxRAMSaveMode ->setCurrentIndex (appSettings.value (" GUI_Elements/comboBoxRAMSaveMode.currentIndex" ).value <int >());
273
273
ui->comboBoxLoggingMode ->setCurrentIndex (appSettings.value (" GUI_Elements/comboBoxLoggingMode.currentIndex" ).value <int >());
274
274
275
-
276
275
ui->checkBoxDTR ->setChecked (appSettings.value (" GUI_Elements/checkBoxDTR.isChecked" ).value <bool >());
277
276
ui->checkBoxSimplify ->setChecked (appSettings.value (" GUI_Elements/checkBoxSimplify.isChecked" ).value <bool >());
278
277
ui->checkBoxSendKey ->setChecked (appSettings.value (" GUI_Elements/checkBoxSendKey.isChecked" ).value <bool >());
@@ -285,11 +284,12 @@ void MainWindow::settingsLoadAll()
285
284
ui->checkBoxAppendDate ->setChecked (appSettings.value (" GUI_Elements/checkBoxAppendDate.isChecked" ).value <bool >());
286
285
ui->checkBoxSimplifyLog ->setChecked (appSettings.value (" GUI_Elements/checkBoxSimplifyLog.isChecked" ).value <bool >());
287
286
ui->checkBoxRAMClearChart ->setChecked (appSettings.value (" GUI_Elements/checkBoxRAMClearChart.isChecked" ).value <bool >());
288
- ui->checkBoxEnableRAMBuffer ->setChecked (appSettings.value (" GUI_Elements/checkBoxEnableRAMBuffer.isChecked" , true ).value <bool >()); // default value set to true !
287
+ ui->checkBoxAutoSaveBuffer ->setChecked (appSettings.value (" GUI_Elements/checkBoxAutoSaveBuffer.isChecked" , true ).value <bool >());
288
+ ui->checkBoxTableAutoResize ->setChecked (appSettings.value (" GUI_Elements/checkBoxTableAutoResize.isChecked" , true ).value <bool >()); // default value set to true !
289
289
290
- ui->pushButtonEnablePlot ->setChecked (appSettings.value (" GUI_Elements/pushButtonEnablePlot.isChecked" ).value <bool >());
290
+ ui->pushButtonEnablePlot ->setChecked (appSettings.value (" GUI_Elements/pushButtonEnablePlot.isChecked" , false ).value <bool >());
291
291
292
- ui->tabWidgetConnectivity ->setCurrentIndex (appSettings.value (" GUI_Elements/tabWidgetConnectivity .currentIndex" ).value <int >());
292
+ ui->tabWidgetControlSection ->setCurrentIndex (appSettings.value (" GUI_Elements/tabWidgetControlSection .currentIndex" ).value <int >());
293
293
294
294
ui->lineEditCustomParsingRules ->setText (appSettings.value (" data/lineEditCustomParsingRules.text" ).value <QString>());
295
295
ui->lineEditUDPTargetIP ->setText (appSettings.value (" data/lineEditUDPTargetIP.text" ).value <QString>());
@@ -367,11 +367,12 @@ void MainWindow::settingsSaveAll()
367
367
appSettings.setValue (" GUI_Elements/checkBoxAppendDate.isChecked" , ui->checkBoxAppendDate ->isChecked ());
368
368
appSettings.setValue (" GUI_Elements/checkBoxSimplifyLog.isChecked" , ui->checkBoxSimplifyLog ->isChecked ());
369
369
appSettings.setValue (" GUI_Elements/checkBoxRAMClearChart.isChecked" , ui->checkBoxRAMClearChart ->isChecked ());
370
- appSettings.setValue (" GUI_Elements/checkBoxEnableRAMBuffer.isChecked" , ui->checkBoxEnableRAMBuffer ->isChecked ());
370
+ appSettings.setValue (" GUI_Elements/checkBoxAutoSaveBuffer.isChecked" , ui->checkBoxAutoSaveBuffer ->isChecked ());
371
+ appSettings.setValue (" GUI_Elements/checkBoxTableAutoResize.isChecked" , ui->checkBoxTableAutoResize ->isChecked ());
371
372
372
373
appSettings.setValue (" GUI_Elements/pushButtonEnablePlot.isChecked" , ui->pushButtonEnablePlot ->isChecked ());
373
374
374
- appSettings.setValue (" GUI_Elements/tabWidgetConnectivity .currentIndex" , ui->tabWidgetConnectivity ->currentIndex ());
375
+ appSettings.setValue (" GUI_Elements/tabWidgetControlSection .currentIndex" , ui->tabWidgetControlSection ->currentIndex ());
375
376
376
377
appSettings.setValue (" data/lineEditCustomParsingRules.text" , ui->lineEditCustomParsingRules ->text ());
377
378
appSettings.setValue (" data/lineEditUDPTargetIP.text" , ui->lineEditUDPTargetIP ->text ());
@@ -1108,7 +1109,7 @@ void MainWindow::sendSerial(QString message)
1108
1109
1109
1110
void MainWindow::saveToRAM (QStringList newlabelList, QList<double > newDataList, QList<long > newTimeList, bool saveText, QString text)
1110
1111
{
1111
- if (ui->checkBoxEnableRAMBuffer ->isChecked () == false )
1112
+ if (ui->checkBoxAutoSaveBuffer ->isChecked () == false )
1112
1113
return ;
1113
1114
1114
1115
if (text.isEmpty () == false && saveText == true )
@@ -1938,6 +1939,8 @@ void MainWindow::on_updateProgressBar(float *percent)
1938
1939
1939
1940
void MainWindow::on_processLoadedFile (QString *text)
1940
1941
{
1942
+ disconnect (&fileReader, SIGNAL (textReady (QString *)), this , SLOT (on_processLoadedFile (QString *)));
1943
+
1941
1944
connect (&parser, SIGNAL (updateProgress (float *)), this , SLOT (on_updateProgressBar (float *)));
1942
1945
parser.setReportProgress (true );
1943
1946
@@ -1956,8 +1959,6 @@ void MainWindow::on_processLoadedFile(QString *text)
1956
1959
this ->processChart (labelList, numericDataList, timeStampList);
1957
1960
this ->processTable (labelList, numericDataList);
1958
1961
this ->saveToRAM (labelList, numericDataList, timeStampList);
1959
-
1960
- disconnect (&fileReader, SIGNAL (textReady (QString *)), this , SLOT (on_processLoadedFile (QString *)));
1961
1962
}
1962
1963
1963
1964
void MainWindow::on_pushButtonLoadRAMBuffer_clicked ()
0 commit comments