mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-22 10:05:37 -04:00
da788c5091
Adapted to the new support for external C++ source files and C++ code events. git-svn-id: svn://localhost@659 8062f311-0dae-4547-b526-b8ab9ac864a5
52 lines
1.5 KiB
C++
52 lines
1.5 KiB
C++
#include "BuildToolsPnl.h"
|
|
|
|
//(*InternalHeaders(BuildToolsPnl)
|
|
#include <wx/intl.h>
|
|
#include <wx/string.h>
|
|
//*)
|
|
#include "ProjectManager.h"
|
|
#include "BuildProgressPnl.h"
|
|
#include "BuildMessagesPnl.h"
|
|
#include "GDL/IDE/CodeCompiler.h"
|
|
|
|
//(*IdInit(BuildToolsPnl)
|
|
const long BuildToolsPnl::ID_NOTEBOOK1 = wxNewId();
|
|
//*)
|
|
|
|
BEGIN_EVENT_TABLE(BuildToolsPnl,wxPanel)
|
|
//(*EventTable(BuildToolsPnl)
|
|
//*)
|
|
END_EVENT_TABLE()
|
|
|
|
BuildToolsPnl::BuildToolsPnl(wxWindow* parent, ProjectManager * projectManager)
|
|
{
|
|
//(*Initialize(BuildToolsPnl)
|
|
wxFlexGridSizer* FlexGridSizer1;
|
|
|
|
Create(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL, _T("wxID_ANY"));
|
|
FlexGridSizer1 = new wxFlexGridSizer(0, 3, 0, 0);
|
|
FlexGridSizer1->AddGrowableCol(0);
|
|
FlexGridSizer1->AddGrowableRow(0);
|
|
notebook = new wxNotebook(this, ID_NOTEBOOK1, wxDefaultPosition, wxDefaultSize, 0, _T("ID_NOTEBOOK1"));
|
|
FlexGridSizer1->Add(notebook, 1, wxALL|wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 0);
|
|
SetSizer(FlexGridSizer1);
|
|
FlexGridSizer1->Fit(this);
|
|
FlexGridSizer1->SetSizeHints(this);
|
|
//*)
|
|
|
|
buildProgressPnl = new BuildProgressPnl(notebook);
|
|
buildMessagesPnl = new BuildMessagesPnl(notebook, projectManager);
|
|
|
|
notebook->AddPage(buildProgressPnl, _("Compilation"));
|
|
notebook->AddPage(buildMessagesPnl, _("Messages de compilation"));
|
|
|
|
CodeCompiler::GetInstance()->AddNotifiedControl(buildProgressPnl);
|
|
CodeCompiler::GetInstance()->AddNotifiedControl(buildMessagesPnl);
|
|
}
|
|
|
|
BuildToolsPnl::~BuildToolsPnl()
|
|
{
|
|
//(*Destroy(BuildToolsPnl)
|
|
//*)
|
|
}
|