29 if(ref_curve.isEmpty())
38 const auto&
data = it->second;
39 auto position =
data.getYfromX(current_time);
57 QDomElement config = doc.createElement(
"config");
58 config.setAttribute(
"video_file",
_dialog->
ui->lineFilename->text());
59 config.setAttribute(
"curve_name",
_dialog->
ui->lineEditReference->text());
60 config.setAttribute(
"use_frame",
_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);
80 _dialog->
ui->radioButtonTime->setChecked(
true);
94 QString filename = settings.value(
"VideoDialog::video_file",
"").toString();
95 if(filename != ui->lineFilename->text())
100 auto curve_name = settings.value(
"VideoDialog::curve_name",
"").toString();
101 ui->lineEditReference->setText(curve_name);
102 _dialog->restoreGeometry(settings.value(
"VideoDialog::geometry").toByteArray());
108 settings.setValue(
"VideoDialog::video_file", ui->lineFilename->text());
109 settings.setValue(
"VideoDialog::curve_name", ui->lineEditReference->text());
110 settings.setValue(
"VideoDialog::geometry",
_dialog->saveGeometry());
const PlotDataMapRef * _datamap
bool loadFile(QString filename)
bool enabled() const override
True if started.
bool xmlSaveState(QDomDocument &doc, QDomElement &parent_element) const override
Override this method to save the status of the plugin to XML.
void updateState(double current_time) override
Method called when the timetracker is moved manually to a certain position.
QString referenceCurve() const
TimeseriesMap numeric
Numerical timeseries.
virtual ~PublisherVideo()
virtual void setEnabled(bool enabled) override
void seekByValue(double value)
bool xmlLoadState(const QDomElement &parent_element) override
Override this method to load the status of the plugin from XML.
void closed()
signal to be emitted when the plugin disable itself.
void play(double current_time) override