| 287 | } |
| 288 | |
| 289 | void WorkspaceControl::Command_GridMoveLeft(const MyGUI::UString& _commandName, bool& _result) |
| 290 | { |
| 291 | if (!checkCommand()) |
| 292 | return; |
| 293 | |
| 294 | if (!mMoveableWidget) |
| 295 | return; |
| 296 | |
| 297 | mCoordValue.left = GridManager::getInstance().toGrid(mCoordValue.left, GridManager::Previous); |
| 298 | updateFromCoordValue(); |
| 299 | |
| 300 | UndoManager::getInstance().addValue(PR_KEY_POSITION); |
| 301 | |
| 302 | _result = true; |
| 303 | } |
| 304 | |
| 305 | void WorkspaceControl::Command_GridMoveRight(const MyGUI::UString& _commandName, bool& _result) |
| 306 | { |