28 if (ref_curve.isEmpty())
37 const auto&
data = it->second;
38 auto position =
data.getYfromX(current_time);
56 QDomElement config = doc.createElement(
"config");
57 config.setAttribute(
"video_file",
_dialog->
ui->lineFilename->text());
58 config.setAttribute(
"curve_name",
_dialog->
ui->lineEditReference->text());
59 config.setAttribute(
"use_frame",
60 _dialog->
ui->radioButtonFrame->isChecked() ?
"true" :
"false");
62 parent_element.appendChild(config);
68 QDomElement config = parent_element.firstChildElement(
"config");
74 _dialog->
ui->lineEditReference->setText(config.attribute(
"curve_name"));
75 if (config.attribute(
"use_frame") ==
"true")
77 _dialog->
ui->radioButtonFrame->setChecked(
true);
81 _dialog->
ui->radioButtonTime->setChecked(
true);
95 QString filename = settings.value(
"VideoDialog::video_file",
"").toString();
96 if (filename != ui->lineFilename->text())
101 auto curve_name = settings.value(
"VideoDialog::curve_name",
"").toString();
102 ui->lineEditReference->setText(curve_name);
103 _dialog->restoreGeometry(settings.value(
"VideoDialog::geometry").toByteArray());
109 settings.setValue(
"VideoDialog::video_file", ui->lineFilename->text());
110 settings.setValue(
"VideoDialog::curve_name", ui->lineEditReference->text());
111 settings.setValue(
"VideoDialog::geometry",
_dialog->saveGeometry());