UIErrorsWidget.h 790 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved
  2. // Please see LICENSE.md in repository root for license information
  3. // https://github.com/AtomicGameEngine/AtomicGameEngine
  4. #pragma once
  5. #include "AEWidget.h"
  6. #include "../Player/AEPlayer.h"
  7. using namespace Atomic;
  8. using namespace tb;
  9. namespace tb
  10. {
  11. class TBLayout;
  12. }
  13. namespace AtomicEditor
  14. {
  15. class ListView;
  16. class ErrorsWidget: public AEWidget
  17. {
  18. OBJECT(ErrorsWidget);
  19. public:
  20. ErrorsWidget(Context* context);
  21. virtual ~ErrorsWidget();
  22. void UpdateErrors();
  23. bool OnEvent(const TBWidgetEvent &ev);
  24. private:
  25. void HandleEditorShutdown(StringHash eventType, VariantMap& eventData);
  26. Vector<AEPlayerError> errors_;
  27. SharedPtr<ListView> errorList_;
  28. TBLayout* errorlayout_;
  29. };
  30. }