summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog/cmCursesForm.h
diff options
context:
space:
mode:
authorBerk Geveci <berk.geveci@kitware.com>2001-12-04 16:16:04 (GMT)
committerBerk Geveci <berk.geveci@kitware.com>2001-12-04 16:16:04 (GMT)
commitd42ded5b166b37d29c9837c5f3e0bceaa661c5ba (patch)
tree4eaec928dec9f555fca4067f3d85ddac8f5ba4ce /Source/CursesDialog/cmCursesForm.h
parentcb4f04c94e5815393e9b1d765588c23656149b4e (diff)
downloadCMake-d42ded5b166b37d29c9837c5f3e0bceaa661c5ba.zip
CMake-d42ded5b166b37d29c9837c5f3e0bceaa661c5ba.tar.gz
CMake-d42ded5b166b37d29c9837c5f3e0bceaa661c5ba.tar.bz2
Added debugging.
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&);