CommandSystemCommandManager.h 907 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. namespace CommandSystem
  9. {
  10. class CommandManager
  11. : public MCore::CommandManager
  12. {
  13. public:
  14. virtual ~CommandManager() = default;
  15. MOCK_METHOD0(GetCurrentSelection, SelectionList&());
  16. MOCK_METHOD1(SetCurrentSelection, void(SelectionList& selection));
  17. MOCK_CONST_METHOD0(GetLockSelection, bool());
  18. MOCK_METHOD1(SetLockSelection, void(bool lockSelection));
  19. MOCK_METHOD1(SetWorkspaceDirtyFlag, void(bool dirty));
  20. MOCK_CONST_METHOD0(GetWorkspaceDirtyFlag, bool());
  21. };
  22. CommandManager* GetCommandManager()
  23. {
  24. static CommandManager manager;
  25. return &manager;
  26. }
  27. } // namespace CommandSystem