| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- // Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved
- // Please see LICENSE.md in repository root for license information
- // https://github.com/AtomicGameEngine/AtomicEditor
- #pragma once
- #include "AEWidget.h"
- using namespace Atomic;
- namespace tb
- {
- class TBLayout;
- }
- namespace AtomicEditor
- {
- class WelcomeFrame : public AEWidget
- {
- OBJECT(WelcomeFrame);
- public:
- /// Construct.
- WelcomeFrame(Context* context);
- /// Destruct.
- virtual ~WelcomeFrame();
- bool OnEvent(const TBWidgetEvent &ev);
- private:
- struct ExampleInfo
- {
- String name;
- String folder;
- TBID id;
- };
- void AddExample(const String& name, const String& desc, const String& screenshot, const String &folder);
- void FillExamples();
- bool HandleExampleCopy(const String& name, const String& exampleFolder, String &atomicProjectFile);
- void UpdateRecentProjects();
- String exampleInfoDir_;
- String exampleSourceDir_;
- List<ExampleInfo> exampleInfo_;
- tb::TBLayout* currentExampleLayout_;
- int exampleCount_;
- };
- }
|