| 303 | } |
| 304 | |
| 305 | void WorkspaceControl::Command_GridMoveRight(const MyGUI::UString& _commandName, bool& _result) |
| 306 | { |
| 307 | if (!checkCommand()) |
| 308 | return; |
| 309 | |
| 310 | if (!mMoveableWidget) |
| 311 | return; |
| 312 | |
| 313 | mCoordValue.left = GridManager::getInstance().toGrid(mCoordValue.left, GridManager::Next); |
| 314 | updateFromCoordValue(); |
| 315 | |
| 316 | UndoManager::getInstance().addValue(PR_KEY_POSITION); |
| 317 | |
| 318 | _result = true; |
| 319 | } |
| 320 | |
| 321 | void WorkspaceControl::Command_GridMoveTop(const MyGUI::UString& _commandName, bool& _result) |
| 322 | { |