| 351 | } |
| 352 | |
| 353 | void WorkspaceControl::Command_GridSizeLeft(const MyGUI::UString& _commandName, bool& _result) |
| 354 | { |
| 355 | if (!checkCommand()) |
| 356 | return; |
| 357 | |
| 358 | if (!mMoveableWidget) |
| 359 | return; |
| 360 | |
| 361 | mCoordValue.width = |
| 362 | GridManager::getInstance().toGrid(mCoordValue.right(), GridManager::Previous) - mCoordValue.left; |
| 363 | updateFromCoordValue(); |
| 364 | |
| 365 | UndoManager::getInstance().addValue(PR_KEY_POSITION); |
| 366 | |
| 367 | _result = true; |
| 368 | } |
| 369 | |
| 370 | void WorkspaceControl::Command_GridSizeRight(const MyGUI::UString& _commandName, bool& _result) |
| 371 | { |