Assembly: Solver messages (#24623)
* Assembly: Solver messages * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update ViewProviderAssembly.cpp * Update src/Mod/Assembly/App/AssemblyUtils.cpp Co-authored-by: Kacper Donat <kadet1090@gmail.com> * Update src/Mod/Assembly/App/AssemblyUtils.cpp Co-authored-by: Kacper Donat <kadet1090@gmail.com> * Update src/Mod/Assembly/App/AssemblyUtils.cpp Co-authored-by: Kacper Donat <kadet1090@gmail.com> * Update src/Mod/Assembly/Gui/Commands.cpp Co-authored-by: Kacper Donat <kadet1090@gmail.com> * Update ViewProviderAssembly.cpp * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update src/Mod/Assembly/Gui/TaskAssemblyMessages.cpp Co-authored-by: Kacper Donat <kadet1090@gmail.com> * Update AssemblyObject.h * Update AssemblyObject.cpp * Update Commands.cpp * Update ViewProviderAssembly.cpp * Update AssemblyObject.cpp * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Thank you --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Kacper Donat <kadet1090@gmail.com>
This commit is contained in:
@@ -59,35 +59,40 @@ void TaskAssemblyMessages::updateToolTip(const QString& link)
|
||||
setLinkTooltip(tr("Click to select these redundant joints."));
|
||||
}
|
||||
else if (link == QStringLiteral("#dofs")) {
|
||||
setLinkTooltip(
|
||||
tr("The assembly has unconstrained components giving rise to those "
|
||||
"Degrees Of Freedom. Click to select these unconstrained components.")
|
||||
);
|
||||
setLinkTooltip(tr(
|
||||
"The assembly has unconstrained components giving rise to those "
|
||||
"Degrees Of Freedom.\nClick to select these unconstrained components.\nNote: Currently "
|
||||
"this selects only unconnected parts, not constrained parts that still have free "
|
||||
"DoF."
|
||||
));
|
||||
}
|
||||
else if (link == QStringLiteral("#malformed")) {
|
||||
setLinkTooltip(tr("Click to select these malformed joints."));
|
||||
}
|
||||
}
|
||||
|
||||
void TaskAssemblyMessages::onLabelStatusLinkClicked(const QString& /*str*/)
|
||||
void TaskAssemblyMessages::onLabelStatusLinkClicked(const QString& str)
|
||||
{
|
||||
// The commands are not implemented yet since App is not reporting yet the solver's status
|
||||
/* if (str == QStringLiteral("#conflicting")) {
|
||||
if (str == QStringLiteral("#conflicting")) {
|
||||
Gui::Application::Instance->commandManager().runCommandByName(
|
||||
"Assembly_SelectConflictingConstraints");
|
||||
"Assembly_SelectConflictingConstraints"
|
||||
);
|
||||
}
|
||||
else if (str == QStringLiteral("#redundant")) {
|
||||
Gui::Application::Instance->commandManager().runCommandByName(
|
||||
"Assembly_SelectRedundantConstraints");
|
||||
"Assembly_SelectRedundantConstraints"
|
||||
);
|
||||
}
|
||||
else if (str == QStringLiteral("#dofs")) {
|
||||
Gui::Application::Instance->commandManager().runCommandByName(
|
||||
"Assembly_SelectComponentsWithDoFs");
|
||||
"Assembly_SelectComponentsWithDoFs"
|
||||
);
|
||||
}
|
||||
else if (str == QStringLiteral("#malformed")) {
|
||||
Gui::Application::Instance->commandManager().runCommandByName(
|
||||
"Assembly_SelectMalformedConstraints");
|
||||
}*/
|
||||
"Assembly_SelectMalformedConstraints"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
#include "moc_TaskAssemblyMessages.cpp"
|
||||
|
||||
Reference in New Issue
Block a user