27 #include <ArmarXGui/gui-plugins/ScenarioManager/gui/ui_createscenarioview.h>
29 #include <QMessageBox>
36 ui->okButton->setDefault(
true);
46 ui->packageBox->clear();
48 for (QPair<QString, bool>
const& pair : packages)
50 ui->packageBox->addItem(pair.first);
53 ui->packageBox->setItemText(i, pair.first +
" (read-only)");
55 QModelIndex
index = ui->packageBox->model()->index(i, 0);
61 ui->packageBox->model()->setData(
index,
v, Qt::UserRole - 1);
67 void CreateScenarioView::on_okButton_clicked()
69 if (ui->lineEdit->text() !=
"")
71 emit
created(ui->lineEdit->text().toStdString(), ui->packageBox->itemText(ui->packageBox->currentIndex()).toStdString());
76 QMessageBox messageBox;
77 messageBox.setText(
"Please enter an Scenario name");
82 void CreateScenarioView::on_cancelButton_clicked()