| 368 | } |
| 369 | |
| 370 | void WorkspaceControl::Command_GridSizeRight(const MyGUI::UString& _commandName, bool& _result) |
| 371 | { |
| 372 | if (!checkCommand()) |
| 373 | return; |
| 374 | |
| 375 | if (!mMoveableWidget) |
| 376 | return; |
| 377 | |
| 378 | mCoordValue.width = |
| 379 | GridManager::getInstance().toGrid(mCoordValue.right(), GridManager::Next) - mCoordValue.left; |
| 380 | updateFromCoordValue(); |
| 381 | |
| 382 | UndoManager::getInstance().addValue(PR_KEY_POSITION); |
| 383 | |
| 384 | _result = true; |
| 385 | } |
| 386 | |
| 387 | void WorkspaceControl::Command_GridSizeTop(const MyGUI::UString& _commandName, bool& _result) |
| 388 | { |