27 #include <ArmarXGui/gui-plugins/ScenarioManager/gui/ui_namelocationview.h>
28 #include <QFileDialog>
35 ui->okButton->setDefault(
true);
43 void NameLocationView::on_locationChooserButton_clicked()
46 QString path = QFileDialog::getExistingDirectory(
this, tr(
"Directory"), directory.path());
47 if (path.isNull() ==
false)
49 this->path = path.toStdString();
53 void NameLocationView::on_nameLineEdit_textChanged(
const QString& text)
55 name = text.toStdString();
58 void NameLocationView::on_okButton_clicked()
60 if (name.length() != 0 && path.length() != 0)
67 void NameLocationView::on_cancelButton_clicked()
72 void NameLocationView::on_nameLineEdit_editingFinished()