#include "umake.h"

void Ide::ConsoleShow()
{
}

void Ide::ConsoleSync()
{
}

Vector<String> Ide::PickErrors()
{
	return console.PickErrors();
}

void Ide::DoProcessEvents()
{
}

void Ide::ReQualifyCodeBase()
{
}

String Ide::GetMain()
{
	return main;
}

void Ide::BeginBuilding(bool sync_files, bool clear_console)
{
	SetupDefaultMethod();
	HdependTimeDirty();
	build_time = GetTickCount();
}

void Ide::EndBuilding(bool ok)
{
	console.EndGroup();
	console.Wait();
	Vector<String> errors = console.PickErrors();
	CreateHost(false)->DeleteFile(errors);
	if(!errors.IsEmpty())
		ok = false;
	PutConsole("");
	PutConsole((ok ? "OK. " : "There were errors. ") + GetPrintTime(build_time));
}

void Ide::ConsoleClear()
{
}

void Ide::SetupDefaultMethod()
{
}

void Ide::ClearErrorEditor()
{
}

void Ide::SetErrorEditor()
{
}

