44 ui->buttonBox->button(QDialogButtonBox::Ok)->setText(
"Open selected use case");
45 ui->buttonBox->button(QDialogButtonBox::Ok)
47 "Opens the selected use case and loads the associated preconfigured widgets.");
48 ui->buttonBox->button(QDialogButtonBox::Cancel)->setText(
"Open empty GUI");
49 ui->buttonBox->button(QDialogButtonBox::Cancel)->setToolTip(
"Opens an empty gui.");
50 for (
auto& p : mainWindow->getDefaultPackageNames())
52 CMakePackageFinder f(p);
53 if (!f.packageFound())
57 std::filesystem::path path = f.getDataDir();
59 path /=
"GuiDefaultConfigs";
60 if (!std::filesystem::exists(path))
65 for (std::filesystem::recursive_directory_iterator end, dir(path); dir != end;
68 if (dir->path().extension() ==
".armarxgui")
75 ARMARX_INFO_S <<
"Scanning file " << i <<
": " << dir->path().c_str();
79 ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(
false);
80 ui->checkBoxDoNotShowAgain->setChecked(doNotShowAgain);
119 QSettings s(configPath, QSettings::IniFormat);
121 s.value(
"ConfigDescription").toString(),
124 s.value(
"IconPath").toString(),
126 ui->verticalLayout_3->addWidget(item);
127 connect(item, SIGNAL(selected(QString)),
this, SLOT(
setSelection(QString)));
128 connect(item, SIGNAL(doubleClicked()),
this, SLOT(accept()));
The ArmarXMainWindow class.