MenuUIFixture.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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. #pragma once
  9. #include <Tests/SystemComponentFixture.h>
  10. #include <Tests/UI/UIFixture.h>
  11. #include <AzCore/UserSettings/UserSettingsComponent.h>
  12. #include <AzToolsFramework/UI/PropertyEditor/PropertyManagerComponent.h>
  13. #include <EMotionStudio/Plugins/StandardPlugins/Source/AnimGraph/BlendGraphWidget.h>
  14. #include <QString>
  15. namespace EMotionFX
  16. {
  17. class MenuUIFixture
  18. : public UIFixture
  19. {
  20. public:
  21. static QMenu *FindMainMenuWithName(const QString& menuName);
  22. static QMenu* FindMenuWithName(const QObject* parent, const QString& objectName);
  23. static QAction* FindMenuAction(const QMenu* menu, const QString itemName, const QString& parentName);
  24. static QAction* FindMenuActionWithObjectName(const QMenu* menu, const QString& itemName, const QString& parentName);
  25. protected:
  26. };
  27. } // end namespace EMotionFX