| 319 | } |
| 320 | |
| 321 | void WorkspaceControl::Command_GridMoveTop(const MyGUI::UString& _commandName, bool& _result) |
| 322 | { |
| 323 | if (!checkCommand()) |
| 324 | return; |
| 325 | |
| 326 | if (!mMoveableWidget) |
| 327 | return; |
| 328 | |
| 329 | mCoordValue.top = GridManager::getInstance().toGrid(mCoordValue.top, GridManager::Previous); |
| 330 | updateFromCoordValue(); |
| 331 | |
| 332 | UndoManager::getInstance().addValue(PR_KEY_POSITION); |
| 333 | |
| 334 | _result = true; |
| 335 | } |
| 336 | |
| 337 | void WorkspaceControl::Command_GridMoveBottom(const MyGUI::UString& _commandName, bool& _result) |
| 338 | { |