UIWelcomeFrame.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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/AtomicEditor
  4. #pragma once
  5. #include "AEWidget.h"
  6. using namespace Atomic;
  7. namespace tb
  8. {
  9. class TBLayout;
  10. }
  11. namespace AtomicEditor
  12. {
  13. class WelcomeFrame : public AEWidget
  14. {
  15. OBJECT(WelcomeFrame);
  16. public:
  17. /// Construct.
  18. WelcomeFrame(Context* context);
  19. /// Destruct.
  20. virtual ~WelcomeFrame();
  21. bool OnEvent(const TBWidgetEvent &ev);
  22. private:
  23. struct ExampleInfo
  24. {
  25. String name;
  26. String folder;
  27. TBID id;
  28. };
  29. void AddExample(const String& name, const String& desc, const String& screenshot, const String &folder);
  30. void FillExamples();
  31. bool HandleExampleCopy(const String& name, const String& exampleFolder, String &atomicProjectFile);
  32. void UpdateRecentProjects();
  33. String exampleInfoDir_;
  34. String exampleSourceDir_;
  35. List<ExampleInfo> exampleInfo_;
  36. tb::TBLayout* currentExampleLayout_;
  37. int exampleCount_;
  38. };
  39. }