UIConsoleWidget.h 775 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. using namespace Atomic;
  7. using namespace tb;
  8. namespace tb
  9. {
  10. class TBLayout;
  11. }
  12. namespace AtomicEditor
  13. {
  14. class ListView;
  15. class ConsoleWidget: public AEWidget
  16. {
  17. OBJECT(ConsoleWidget);
  18. public:
  19. ConsoleWidget(Context* context);
  20. virtual ~ConsoleWidget();
  21. bool OnEvent(const TBWidgetEvent &ev);
  22. void HandleMessage(StringHash eventType, VariantMap& eventData);
  23. private:
  24. void HandleEditorShutdown(StringHash eventType, VariantMap& eventData);
  25. SharedPtr<ListView> consoleList_;
  26. TBLayout* consolelayout_;
  27. };
  28. }