summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog/cmCursesForm.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/CursesDialog/cmCursesForm.h')
-rw-r--r--Source/CursesDialog/cmCursesForm.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/Source/CursesDialog/cmCursesForm.h b/Source/CursesDialog/cmCursesForm.h
index c333cf4..35a3f13 100644
--- a/Source/CursesDialog/cmCursesForm.h
+++ b/Source/CursesDialog/cmCursesForm.h
@@ -1,6 +1,7 @@
#ifndef __cmCursesForm_h
#define __cmCursesForm_h
+#include "../cmStandardIncludes.h"
#include "cmCursesStandardIncludes.h"
class cmCursesForm
@@ -22,13 +23,31 @@ public:
// The only exception is during a resize.
virtual void UpdateStatusBar() = 0;
+ // Description:
// During a CMake run, an error handle should add errors
// to be displayed afterwards.
virtual void AddError(const char* message, const char* title) {};
+ // Description:
+ // Turn debugging on. This will create ccmakelog.txt.
+ static void DebugStart();
+
+ // Description:
+ // Turn debugging off. This will close ccmakelog.txt.
+ static void DebugEnd();
+
+ // Description:
+ // Write a debugging message.
+ static void LogMessage(const char* msg);
+
static cmCursesForm* CurrentForm;
+
protected:
+
+ static std::ofstream DebugFile;
+ static bool Debug;
+
cmCursesForm(const cmCursesForm& from);
void operator=(const cmCursesForm&);