Skip to content
Snippets Groups Projects

Skill-Gui Stability and QOL

Merged Peter Albrecht requested to merge feature/skill-gui-stability into master
5 files
+ 51
6
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -22,14 +22,16 @@ namespace armarx::skills::gui
copyArgsToClipboard = new QPushButton();
copySkillIdToClipboard = new QPushButton();
resetArgsToProfile = new QPushButton();
profileSelector = new QComboBox();
//profileSelector = new QComboBox();
historySelector = new QPushButton();
// layouting
QVBoxLayout* mainLayout = new QVBoxLayout();
QHBoxLayout* topLayout = new QHBoxLayout();
mainLayout->addLayout(topLayout);
mainLayout->addWidget(profileSelector);
//mainLayout->addWidget(profileSelector);
mainLayout->addWidget(historySelector);
topLayout->addWidget(setArgsFromClipboard);
topLayout->addWidget(copyArgsToClipboard);
@@ -46,9 +48,16 @@ namespace armarx::skills::gui
copySkillIdToClipboard->setIcon(getIcon("edit-copy-4.svg"));
resetArgsToProfile->setText(QString::fromStdString(RESET_ARGS_BUTTON_TEXT));
resetArgsToProfile->setIcon(getIcon("refresh-black.svg"));
profileSelector->addItem(QString::fromStdString(DEFAULT_PROFILE_TEXT));
profileSelector->setDisabled(true);
profileSelector->setToolTip(QString::fromStdString(PROFILE_NOT_IMPLEMENTED));
//profileSelector->addItem(QString::fromStdString(DEFAULT_PROFILE_TEXT));
//profileSelector->setDisabled(true);
//profileSelector->setToolTip(QString::fromStdString(PROFILE_NOT_IMPLEMENTED));
historySelector->setText(QString::fromStdString(HIST_BUTTON_TEXT));
}
void ProfileMenuWidget::updateHistorySelector(skills::SkillID shownSkill)
{
auto params = memory->getLatestParametersForSkill(shownSkill);
historySelector->setDisabled(not params.has_value());
}
Loading