17#include <QDialogButtonBox>
23 const std::string& old_name =
"", QDialog* parent)
26 QString
const& label =
27 QString::fromStdString(geo_object_type) +
"#" + QString::number(
id);
41 const std::string& old_name)
43 _layout =
new QVBoxLayout(
this);
44 QString dialog_text(
"Please enter a name for " + label);
46 _new_name =
new QLineEdit(QString::fromStdString(old_name));
48 setWindowTitle(
"Set name...");
52 new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
67 this->done(QDialog::Accepted);
72 this->done(QDialog::Rejected);