| 385 | } |
| 386 | |
| 387 | void WorkspaceControl::Command_GridSizeTop(const MyGUI::UString& _commandName, bool& _result) |
| 388 | { |
| 389 | if (!checkCommand()) |
| 390 | return; |
| 391 | |
| 392 | if (!mMoveableWidget) |
| 393 | return; |
| 394 | |
| 395 | mCoordValue.height = |
| 396 | GridManager::getInstance().toGrid(mCoordValue.bottom(), GridManager::Previous) - mCoordValue.top; |
| 397 | updateFromCoordValue(); |
| 398 | |
| 399 | UndoManager::getInstance().addValue(PR_KEY_POSITION); |
| 400 | |
| 401 | _result = true; |
| 402 | } |
| 403 | |
| 404 | void WorkspaceControl::Command_GridSizeBottom(const MyGUI::UString& _commandName, bool& _result) |
| 405 | { |