2001-11-05 02:05:21 +03:00
|
|
|
#include "cmCursesForm.h"
|
|
|
|
|
2001-12-04 19:16:04 +03:00
|
|
|
std::ofstream cmCursesForm::DebugFile;
|
|
|
|
bool cmCursesForm::Debug = false;
|
|
|
|
|
2001-11-05 02:05:21 +03:00
|
|
|
cmCursesForm::cmCursesForm()
|
|
|
|
{
|
|
|
|
m_Form = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
cmCursesForm::~cmCursesForm()
|
|
|
|
{
|
|
|
|
if (m_Form)
|
|
|
|
{
|
|
|
|
unpost_form(m_Form);
|
|
|
|
free_form(m_Form);
|
|
|
|
m_Form = 0;
|
|
|
|
}
|
|
|
|
}
|
2001-12-04 19:16:04 +03:00
|
|
|
|
|
|
|
void cmCursesForm::DebugStart()
|
|
|
|
{
|
|
|
|
cmCursesForm::Debug = true;
|
|
|
|
cmCursesForm::DebugFile.open("ccmakelog.txt");
|
|
|
|
}
|
|
|
|
|
|
|
|
void cmCursesForm::DebugEnd()
|
|
|
|
{
|
|
|
|
if (!cmCursesForm::Debug)
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
cmCursesForm::Debug = false;
|
|
|
|
cmCursesForm::DebugFile.close();
|
|
|
|
}
|
|
|
|
|
|
|
|
void cmCursesForm::LogMessage(const char* msg)
|
|
|
|
{
|
|
|
|
if (!cmCursesForm::Debug)
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
cmCursesForm::DebugFile << msg << std::endl;
|
|
|
|
}
|