Robot: Apply clang format
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user