29 #include "ui_exportDialog.h"
31 #include <QFileDialog>
32 #include <QPushButton>
39 _ui =
new Ui_ExportDialog();
42 connect(
_ui->toolButton_path, SIGNAL(clicked()),
this, SLOT(
getPath()));
45 connect(
_ui->buttonBox->button(QDialogButtonBox::RestoreDefaults), SIGNAL(clicked()),
this, SLOT(
restoreDefaults()));
47 connect(
_ui->spinBox_ignored, SIGNAL(valueChanged(
int)),
this, SIGNAL(
configChanged()));
48 connect(
_ui->doubleSpinBox_framerate, SIGNAL(valueChanged(
double)),
this, SIGNAL(
configChanged()));
49 connect(
_ui->spinBox_session, SIGNAL(valueChanged(
int)),
this, SIGNAL(
configChanged()));
50 connect(
_ui->checkBox_rgb, SIGNAL(stateChanged(
int)),
this, SIGNAL(
configChanged()));
51 connect(
_ui->checkBox_depth, SIGNAL(stateChanged(
int)),
this, SIGNAL(
configChanged()));
52 connect(
_ui->checkBox_depth2d, SIGNAL(stateChanged(
int)),
this, SIGNAL(
configChanged()));
53 connect(
_ui->checkBox_odom, SIGNAL(stateChanged(
int)),
this, SIGNAL(
configChanged()));
54 connect(
_ui->checkBox_userData, SIGNAL(stateChanged(
int)),
this, SIGNAL(
configChanged()));
56 _ui->lineEdit_path->setText(QDir::currentPath()+QDir::separator()+
"output.db");
68 settings.beginGroup(group);
88 settings.beginGroup(group);
90 _ui->spinBox_ignored->setValue(settings.value(
"framesIgnored",
this->framesIgnored()).toInt());
91 _ui->doubleSpinBox_framerate->setValue(settings.value(
"targetFramerate",
this->targetFramerate()).toDouble());
92 _ui->spinBox_session->setValue(settings.value(
"sessionExported",
this->sessionExported()).toInt());
93 _ui->checkBox_rgb->setChecked(settings.value(
"rgbExported",
this->isRgbExported()).toBool());
94 _ui->checkBox_depth->setChecked(settings.value(
"depthExported",
this->isDepthExported()).toBool());
95 _ui->checkBox_depth2d->setChecked(settings.value(
"depth2dExported",
this->isDepth2dExported()).toBool());
96 _ui->checkBox_odom->setChecked(settings.value(
"odomExported",
this->isOdomExported()).toBool());
97 _ui->checkBox_userData->setChecked(settings.value(
"userDataExported",
this->isUserDataExported()).toBool());
106 _ui->spinBox_ignored->setValue(0);
107 _ui->doubleSpinBox_framerate->setValue(0);
108 _ui->spinBox_session->setValue(-1);
109 _ui->checkBox_rgb->setChecked(
true);
110 _ui->checkBox_depth->setChecked(
true);
111 _ui->checkBox_depth2d->setChecked(
true);
112 _ui->checkBox_odom->setChecked(
true);
113 _ui->checkBox_userData->setChecked(
false);
118 QString
path = QFileDialog::getSaveFileName(
this, tr(
"Output database path..."),
_ui->lineEdit_path->text(), tr(
"RTAB-Map database (*.db)"));
121 _ui->lineEdit_path->setText(
path);
127 return _ui->lineEdit_path->text();
132 return _ui->spinBox_ignored->value();
137 return _ui->doubleSpinBox_framerate->value();
142 return _ui->spinBox_session->value();
147 return _ui->checkBox_rgb->isChecked();
152 return _ui->checkBox_depth->isChecked();
157 return _ui->checkBox_depth2d->isChecked();
162 return _ui->checkBox_odom->isChecked();
167 return _ui->checkBox_userData->isChecked();