--- a/src/toolsets/movetoolset.cpp Thu Jan 04 19:40:52 2018 +0200 +++ b/src/toolsets/movetoolset.cpp Thu Jan 04 19:44:26 2018 +0200 @@ -22,81 +22,81 @@ #include "../mainwindow.h" #include "movetoolset.h" -MoveToolset::MoveToolset (MainWindow* parent) : - Toolset (parent) {} +MoveToolset::MoveToolset(MainWindow* parent) : + Toolset(parent) {} -void MoveToolset::moveSelection (bool up) +void MoveToolset::moveSelection(bool up) { LDObjectList objs = selectedObjects(); - LDObject::moveObjects (objs, up); + LDObject::moveObjects(objs, up); m_window->buildObjectList(); } void MoveToolset::moveUp() { - moveSelection (true); + moveSelection(true); } void MoveToolset::moveDown() { - moveSelection (false); + moveSelection(false); } void MoveToolset::gridCoarse() { - config.setGrid (Grid::Coarse); + config.setGrid(Grid::Coarse); m_window->updateGridToolBar(); } void MoveToolset::gridMedium() { - config.setGrid (Grid::Medium); + config.setGrid(Grid::Medium); m_window->updateGridToolBar(); } void MoveToolset::gridFine() { - config.setGrid (Grid::Fine); + config.setGrid(Grid::Fine); m_window->updateGridToolBar(); } -void MoveToolset::moveObjects (Vertex vect) +void MoveToolset::moveObjects(Vertex vect) { // Apply the grid values vect *= gridCoordinateSnap(); for (LDObject* obj : selectedObjects()) - obj->move (vect); + obj->move(vect); } void MoveToolset::moveXNeg() { - moveObjects ({-1, 0, 0}); + moveObjects({-1, 0, 0}); } void MoveToolset::moveYNeg() { - moveObjects ({0, -1, 0}); + moveObjects({0, -1, 0}); } void MoveToolset::moveZNeg() { - moveObjects ({0, 0, -1}); + moveObjects({0, 0, -1}); } void MoveToolset::moveXPos() { - moveObjects ({1, 0, 0}); + moveObjects({1, 0, 0}); } void MoveToolset::moveYPos() { - moveObjects ({0, 1, 0}); + moveObjects({0, 1, 0}); } void MoveToolset::moveZPos() { - moveObjects ({0, 0, 1}); + moveObjects({0, 0, 1}); } double MoveToolset::getRotateActionAngle() @@ -106,32 +106,32 @@ void MoveToolset::rotateXPos() { - RotateObjects (1, 0, 0, getRotateActionAngle(), selectedObjects()); + RotateObjects(1, 0, 0, getRotateActionAngle(), selectedObjects()); } void MoveToolset::rotateYPos() { - RotateObjects (0, 1, 0, getRotateActionAngle(), selectedObjects()); + RotateObjects(0, 1, 0, getRotateActionAngle(), selectedObjects()); } void MoveToolset::rotateZPos() { - RotateObjects (0, 0, 1, getRotateActionAngle(), selectedObjects()); + RotateObjects(0, 0, 1, getRotateActionAngle(), selectedObjects()); } void MoveToolset::rotateXNeg() { - RotateObjects (-1, 0, 0, getRotateActionAngle(), selectedObjects()); + RotateObjects(-1, 0, 0, getRotateActionAngle(), selectedObjects()); } void MoveToolset::rotateYNeg() { - RotateObjects (0, -1, 0, getRotateActionAngle(), selectedObjects()); + RotateObjects(0, -1, 0, getRotateActionAngle(), selectedObjects()); } void MoveToolset::rotateZNeg() { - RotateObjects (0, 0, -1, getRotateActionAngle(), selectedObjects()); + RotateObjects(0, 0, -1, getRotateActionAngle(), selectedObjects()); } void MoveToolset::configureRotationPoint()