25 #include <QPushButton>
27 #include <ArmarXGui/gui-plugins/StatechartEditorPlugin/view/dialogs/ui_StatechartEditorConfigDialog.h>
31 QDialog(parent), ui(new Ui_StatechartEditorConfigDialog())
34 QPushButton* okButton = ui->buttonBox->button(QDialogButtonBox::Ok);
35 okButton->setEnabled(
false);
39 QListWidgetItem* item =
new QListWidgetItem(QString::fromUtf8(p->getName().data()));
40 profileMap.insert(std::make_pair(item, p));
42 ui->listWidgetProfiles->addItem(item);
45 connect(ui->listWidgetProfiles, SIGNAL(itemSelectionChanged()), SLOT(itemSelectionChanged()));
56 QList<QListWidgetItem*> selected = ui->listWidgetProfiles->selectedItems();
58 if (selected.size() == 0)
64 return profileMap.at(selected.at(0));
71 return ui->checkBoxOpenAllStates->isChecked();
75 armarx::StatechartEditorConfigDialog::itemSelectionChanged()
77 QPushButton* okButton = ui->buttonBox->button(QDialogButtonBox::Ok);
78 okButton->setEnabled(ui->listWidgetProfiles->selectedItems().size() > 0);
82 armarx::StatechartEditorConfigDialog::on_listWidgetProfiles_doubleClicked(
const QModelIndex&
index)