UnitTestTreeView.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. #if !defined(Q_MOC_RUN)
  10. #include <QCompleter>
  11. #include <QAbstractItemModel>
  12. #include <QRegExp>
  13. #include <QString>
  14. #include <QSortFilterProxyModel>
  15. #include <QTreeView>
  16. #include <AzCore/Component/EntityId.h>
  17. #include <AzCore/Memory/SystemAllocator.h>
  18. #include <ScriptCanvas/Data/Data.h>
  19. #include <AzToolsFramework/AssetBrowser/AssetBrowserEntry.h>
  20. #include <AzToolsFramework/UI/UICore/QTreeViewStateSaver.hxx>
  21. #include <GraphCanvas/Widgets/StyledItemDelegates/IconDecoratedNameDelegate.h>
  22. #include <AzToolsFramework/AssetBrowser/Search/Filter.h>
  23. #endif
  24. namespace AzToolsFramework
  25. {
  26. namespace AssetBrowser
  27. {
  28. class AssetBrowserModel;
  29. }
  30. }
  31. namespace ScriptCanvasEditor
  32. {
  33. class UnitTestBrowserFilterModel;
  34. struct UnitTestResult;
  35. class UnitTestTreeView
  36. : public AzToolsFramework::QTreeViewWithStateSaving
  37. {
  38. Q_OBJECT
  39. public:
  40. UnitTestTreeView(QWidget* parent);
  41. ~UnitTestTreeView();
  42. void SetSearchFilter(const QString& filter);
  43. friend class UnitTestDockWidget;
  44. protected:
  45. void mouseMoveEvent(QMouseEvent* event) Q_DECL_OVERRIDE;
  46. void leaveEvent(QEvent* ev) Q_DECL_OVERRIDE;
  47. private:
  48. AzToolsFramework::AssetBrowser::AssetBrowserModel* m_model;
  49. UnitTestBrowserFilterModel* m_filter;
  50. };
  51. }