Skip to content
Snippets Groups Projects
Commit dc0463c1 authored by Peter Albrecht's avatar Peter Albrecht
Browse files

Made profile-related widgets more descriptive

parent af65ef5d
No related branches found
No related tags found
1 merge request!406Refactor skill memory GUI
......@@ -34,8 +34,9 @@ namespace armarx::skills::gui
setArgsFromClipboard->setText(QString::fromStdString(SET_ARGS_BUTTON_TEXT));
copyArgsToClipboard->setText(QString::fromStdString(COPY_ARGS_BUTTON_TEXT));
resetArgsToProfile->setText(QString::fromStdString(RESET_ARGS_BUTTON_TEXT));
profileSelector->setCurrentText(QString::fromStdString(DEFAULT_PROFILE_TEXT));
profileSelector->addItem(QString::fromStdString(DEFAULT_PROFILE_TEXT));
profileSelector->setDisabled(true);
profileSelector->setToolTip(QString::fromStdString(PROFILE_NOT_IMPLEMENTED));
}
......
......@@ -17,6 +17,8 @@ namespace armarx::skills::gui
static const constexpr char* COPY_ARGS_BUTTON_TEXT = "Copy Args to Clipboard";
static const constexpr char* RESET_ARGS_BUTTON_TEXT = "Reset Args to Profile";
static const constexpr char* DEFAULT_PROFILE_TEXT = "<No Profile selected. Using root>";
static const constexpr char* PROFILE_NOT_IMPLEMENTED =
"Profiles other than the root profile are currently not supported.";
// contents are public, as this class is just a convenience wrapper
QPushButton* setArgsFromClipboard = nullptr;
......
......@@ -59,14 +59,6 @@ namespace armarx::skills::gui
// description widget
skillDescriptionWidget->setSkillDescription(descr);
// select root profile
profileMenuWidget->profileSelector->setCurrentIndex(0);
// remove any profile
while (profileMenuWidget->profileSelector->count() > 1)
{
profileMenuWidget->profileSelector->removeItem(1);
}
// add new profiles for this skill
// TODO: Where stored?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment