Logo Search packages:      
Sourcecode: codeblocks version File versions  Download package

byogame.cpp

#include <sdk.h> // PCH support
#ifndef CB_PRECOMP
#include <wx/sizer.h>
#endif
#include <annoyingdialog.h>
#include <manager.h>
#include <editormanager.h>
#include "byogame.h"

00010 byoGameLauncher::GamesT& byoGameLauncher::GetGames()
{
    static GamesT m_Games;
    return m_Games;
}

00016 byoGameLauncher::byoGameLauncher(const wxString& Name): m_Name(Name)
{
    GetGames().Add(this);
}

00021 byoGameLauncher::~byoGameLauncher()
{
    GetGames().Remove(this);
}

//////////////////////////////////////////////////////////////////////////////////////////

BEGIN_EVENT_TABLE(byoEditorBase,EditorBase)
    EVT_SET_FOCUS(byoEditorBase::OnSetFocus)
END_EVENT_TABLE()

00032 byoEditorBase::byoEditorBase(const wxString& GameName):
    EditorBase((wxWindow*)Manager::Get()->GetEditorManager()->GetNotebook(),GameName)
{
}

00037 byoEditorBase::~byoEditorBase()
{
}

00041 void byoEditorBase::AddGameContent(byoGameBase* base)
{
    wxSizer* Sizer = new wxBoxSizer(wxHORIZONTAL);
    m_Shortname = GetFilename();
    SetTitle(GetFilename());
    m_Content = base;
    Sizer->Add(m_Content,1,wxEXPAND);
    SetSizer(Sizer);
    Layout();
    m_Content->SetFocus();
}


Generated by  Doxygen 1.6.0   Back to index