Export dialog keeps last config. Updated "clear the cache" to remove all visible images/trajectory/background color.

git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@1811 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
matlabbe
2014-10-01 17:52:27 +00:00
parent 1367143171
commit 9559eee614
6 changed files with 72 additions and 34 deletions

View File

@@ -32,15 +32,11 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
namespace rtabmap {
ExportCloudsDialog::ExportCloudsDialog(QWidget *parent, bool toSave) :
ExportCloudsDialog::ExportCloudsDialog(QWidget *parent) :
QDialog(parent)
{
_ui = new Ui_ExportCloudsDialog();
_ui->setupUi(this);
if(toSave)
{
_ui->buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Save);
}
}
ExportCloudsDialog::~ExportCloudsDialog()
@@ -48,6 +44,16 @@ ExportCloudsDialog::~ExportCloudsDialog()
delete _ui;
}
void ExportCloudsDialog::setSaveButton()
{
_ui->buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Save);
}
void ExportCloudsDialog::setOkButton()
{
_ui->buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
}
bool ExportCloudsDialog::getAssemble() const
{
return _ui->groupBox_assemble->isChecked();