UIProgressModal.h 803 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 <UI/AEWidget.h>
  6. namespace tb
  7. {
  8. class TBWindow;
  9. class TBDimmer;
  10. class TBTextField;
  11. }
  12. using namespace Atomic;
  13. using namespace tb;
  14. namespace AtomicEditor
  15. {
  16. class ProgressModal : public AEWidget
  17. {
  18. OBJECT(ProgressModal);
  19. public:
  20. /// Construct.
  21. ProgressModal(Context* context, const String& title, const String& message);
  22. /// Destruct.
  23. virtual ~ProgressModal();
  24. void Show();
  25. void Hide();
  26. void Center();
  27. void SetMessage(const String& message);
  28. private:
  29. TBWindow* window_;
  30. TBDimmer* dimmer_;
  31. TBTextField* message_;
  32. };
  33. }