Program Listing for File ProjectBrowser.hpp¶
↰ Return to documentation for file (include/shiva/windows/ProjectBrowser.hpp
)
#pragma once
#include "shiva/shivadef.hpp"
#include "ari/en/Entity.hpp"
#include "ari/en/gui/Gui.hpp"
#include "ari/en/gui/Button.hpp"
#include "ari/en/gui/Label.hpp"
#include "DockWindow.hpp"
namespace ari
{
class DockableWindow;
class World;
class TextBox;
class Popup;
} // ari
namespace shiva
{
class Project;
class ProjectGui: public ari::Gui
{
public:
bool BeginRender() override;
void EndRender() override;
}; // ProjectGui
class SHIVA_API ProjectBrowser : DockWindow
{
public:
ProjectBrowser();
~ProjectBrowser();
void Init(ari::World* p_world) override;
void Shutdown() override;
protected:
ari::TextBox * m_pNewProjectName;
ari::TextBox * m_pNewProjectPath;
ari::Button * m_pNewProjectBtn;
ari::TextBox * m_pOpenProjectPath;
ari::Button * m_pOpenProjectBtn;
ari::Popup * m_pMessageBox;
ari::Label * m_pMbLabel;
ari::Button * m_pMbOkBtn;
void OnNewProjectClick();
void OnOpenProjectClick();
void OnClickMbOk();
void ProjectOpened(Project* project);
}; // ProjectBrowser
} // shiva