Robot: Apply clang format

This commit is contained in:
wmayer
2023-09-11 10:53:40 +02:00
committed by wwmayer
parent 3acb817ee7
commit 4bc2b1b03c
47 changed files with 1592 additions and 1263 deletions

View File

@@ -23,8 +23,8 @@
#include "PreCompiled.h"
#include <Gui/Control.h>
#include <Mod/Robot/Gui/TaskDlgTrajectoryCompound.h>
#include <Mod/Robot/App/TrajectoryCompound.h>
#include <Mod/Robot/Gui/TaskDlgTrajectoryCompound.h>
#include "ViewProviderTrajectoryCompound.h"
@@ -34,31 +34,30 @@ using namespace RobotGui;
PROPERTY_SOURCE(RobotGui::ViewProviderTrajectoryCompound, RobotGui::ViewProviderTrajectory)
//bool ViewProviderTrajectoryCompound::doubleClicked(void)
// bool ViewProviderTrajectoryCompound::doubleClicked(void)
//{
// Gui::TaskView::TaskDialog* dlg = new TaskDlgTrajectoryCompound(dynamic_cast<Robot::TrajectoryCompound *>(getObject()));
// Gui::Control().showDialog(dlg);
// return true;
//}
// Gui::TaskView::TaskDialog* dlg = new
// TaskDlgTrajectoryCompound(dynamic_cast<Robot::TrajectoryCompound *>(getObject()));
// Gui::Control().showDialog(dlg);
// return true;
// }
bool ViewProviderTrajectoryCompound::setEdit(int)
{
Gui::TaskView::TaskDialog* dlg = new TaskDlgTrajectoryCompound(dynamic_cast<Robot::TrajectoryCompound *>(getObject()));
Gui::TaskView::TaskDialog* dlg =
new TaskDlgTrajectoryCompound(dynamic_cast<Robot::TrajectoryCompound*>(getObject()));
Gui::Control().showDialog(dlg);
return true;
}
void ViewProviderTrajectoryCompound::unsetEdit(int)
{
// when pressing ESC make sure to close the dialog
Gui::Control().closeDialog();
}
std::vector<App::DocumentObject*> ViewProviderTrajectoryCompound::claimChildren()const
std::vector<App::DocumentObject*> ViewProviderTrajectoryCompound::claimChildren() const
{
return static_cast<Robot::TrajectoryCompound *>(getObject())->Source.getValues();
return static_cast<Robot::TrajectoryCompound*>(getObject())->Source.getValues();
}